1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for jikes 1.22.
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" 	$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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='jikes'
269PACKAGE_TARNAME='jikes'
270PACKAGE_VERSION='1.22'
271PACKAGE_STRING='jikes 1.22'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os TOUCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP JIKESPG LIBOBJS LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355  # If the previous option needs an argument, assign it.
356  if test -n "$ac_prev"; then
357    eval "$ac_prev=\$ac_option"
358    ac_prev=
359    continue
360  fi
361
362  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364  # Accept the important Cygnus configure options, so we can diagnose typos.
365
366  case $ac_option in
367
368  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369    ac_prev=bindir ;;
370  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371    bindir=$ac_optarg ;;
372
373  -build | --build | --buil | --bui | --bu)
374    ac_prev=build_alias ;;
375  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376    build_alias=$ac_optarg ;;
377
378  -cache-file | --cache-file | --cache-fil | --cache-fi \
379  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380    ac_prev=cache_file ;;
381  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383    cache_file=$ac_optarg ;;
384
385  --config-cache | -C)
386    cache_file=config.cache ;;
387
388  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389    ac_prev=datadir ;;
390  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391  | --da=*)
392    datadir=$ac_optarg ;;
393
394  -disable-* | --disable-*)
395    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396    # Reject names that are not valid shell variable names.
397    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399   { (exit 1); exit 1; }; }
400    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401    eval "enable_$ac_feature=no" ;;
402
403  -enable-* | --enable-*)
404    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405    # Reject names that are not valid shell variable names.
406    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408   { (exit 1); exit 1; }; }
409    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410    case $ac_option in
411      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "enable_$ac_feature='$ac_optarg'" ;;
415
416  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418  | --exec | --exe | --ex)
419    ac_prev=exec_prefix ;;
420  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422  | --exec=* | --exe=* | --ex=*)
423    exec_prefix=$ac_optarg ;;
424
425  -gas | --gas | --ga | --g)
426    # Obsolete; use --with-gas.
427    with_gas=yes ;;
428
429  -help | --help | --hel | --he | -h)
430    ac_init_help=long ;;
431  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432    ac_init_help=recursive ;;
433  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434    ac_init_help=short ;;
435
436  -host | --host | --hos | --ho)
437    ac_prev=host_alias ;;
438  -host=* | --host=* | --hos=* | --ho=*)
439    host_alias=$ac_optarg ;;
440
441  -includedir | --includedir | --includedi | --included | --include \
442  | --includ | --inclu | --incl | --inc)
443    ac_prev=includedir ;;
444  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445  | --includ=* | --inclu=* | --incl=* | --inc=*)
446    includedir=$ac_optarg ;;
447
448  -infodir | --infodir | --infodi | --infod | --info | --inf)
449    ac_prev=infodir ;;
450  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451    infodir=$ac_optarg ;;
452
453  -libdir | --libdir | --libdi | --libd)
454    ac_prev=libdir ;;
455  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456    libdir=$ac_optarg ;;
457
458  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459  | --libexe | --libex | --libe)
460    ac_prev=libexecdir ;;
461  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462  | --libexe=* | --libex=* | --libe=*)
463    libexecdir=$ac_optarg ;;
464
465  -localstatedir | --localstatedir | --localstatedi | --localstated \
466  | --localstate | --localstat | --localsta | --localst \
467  | --locals | --local | --loca | --loc | --lo)
468    ac_prev=localstatedir ;;
469  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472    localstatedir=$ac_optarg ;;
473
474  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475    ac_prev=mandir ;;
476  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477    mandir=$ac_optarg ;;
478
479  -nfp | --nfp | --nf)
480    # Obsolete; use --without-fp.
481    with_fp=no ;;
482
483  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484  | --no-cr | --no-c | -n)
485    no_create=yes ;;
486
487  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489    no_recursion=yes ;;
490
491  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493  | --oldin | --oldi | --old | --ol | --o)
494    ac_prev=oldincludedir ;;
495  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498    oldincludedir=$ac_optarg ;;
499
500  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501    ac_prev=prefix ;;
502  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503    prefix=$ac_optarg ;;
504
505  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506  | --program-pre | --program-pr | --program-p)
507    ac_prev=program_prefix ;;
508  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510    program_prefix=$ac_optarg ;;
511
512  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513  | --program-suf | --program-su | --program-s)
514    ac_prev=program_suffix ;;
515  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517    program_suffix=$ac_optarg ;;
518
519  -program-transform-name | --program-transform-name \
520  | --program-transform-nam | --program-transform-na \
521  | --program-transform-n | --program-transform- \
522  | --program-transform | --program-transfor \
523  | --program-transfo | --program-transf \
524  | --program-trans | --program-tran \
525  | --progr-tra | --program-tr | --program-t)
526    ac_prev=program_transform_name ;;
527  -program-transform-name=* | --program-transform-name=* \
528  | --program-transform-nam=* | --program-transform-na=* \
529  | --program-transform-n=* | --program-transform-=* \
530  | --program-transform=* | --program-transfor=* \
531  | --program-transfo=* | --program-transf=* \
532  | --program-trans=* | --program-tran=* \
533  | --progr-tra=* | --program-tr=* | --program-t=*)
534    program_transform_name=$ac_optarg ;;
535
536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537  | -silent | --silent | --silen | --sile | --sil)
538    silent=yes ;;
539
540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541    ac_prev=sbindir ;;
542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543  | --sbi=* | --sb=*)
544    sbindir=$ac_optarg ;;
545
546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548  | --sharedst | --shareds | --shared | --share | --shar \
549  | --sha | --sh)
550    ac_prev=sharedstatedir ;;
551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554  | --sha=* | --sh=*)
555    sharedstatedir=$ac_optarg ;;
556
557  -site | --site | --sit)
558    ac_prev=site ;;
559  -site=* | --site=* | --sit=*)
560    site=$ac_optarg ;;
561
562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563    ac_prev=srcdir ;;
564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565    srcdir=$ac_optarg ;;
566
567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568  | --syscon | --sysco | --sysc | --sys | --sy)
569    ac_prev=sysconfdir ;;
570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572    sysconfdir=$ac_optarg ;;
573
574  -target | --target | --targe | --targ | --tar | --ta | --t)
575    ac_prev=target_alias ;;
576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577    target_alias=$ac_optarg ;;
578
579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580    verbose=yes ;;
581
582  -version | --version | --versio | --versi | --vers | -V)
583    ac_init_version=: ;;
584
585  -with-* | --with-*)
586    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package| sed 's/-/_/g'`
592    case $ac_option in
593      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594      *) ac_optarg=yes ;;
595    esac
596    eval "with_$ac_package='$ac_optarg'" ;;
597
598  -without-* | --without-*)
599    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600    # Reject names that are not valid shell variable names.
601    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602      { echo "$as_me: error: invalid package name: $ac_package" >&2
603   { (exit 1); exit 1; }; }
604    ac_package=`echo $ac_package | sed 's/-/_/g'`
605    eval "with_$ac_package=no" ;;
606
607  --x)
608    # Obsolete; use --with-x.
609    with_x=yes ;;
610
611  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612  | --x-incl | --x-inc | --x-in | --x-i)
613    ac_prev=x_includes ;;
614  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616    x_includes=$ac_optarg ;;
617
618  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620    ac_prev=x_libraries ;;
621  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623    x_libraries=$ac_optarg ;;
624
625  -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627   { (exit 1); exit 1; }; }
628    ;;
629
630  *=*)
631    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632    # Reject names that are not valid shell variable names.
633    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635   { (exit 1); exit 1; }; }
636    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637    eval "$ac_envvar='$ac_optarg'"
638    export $ac_envvar ;;
639
640  *)
641    # FIXME: should be removed in autoconf 3.0.
642    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646    ;;
647
648  esac
649done
650
651if test -n "$ac_prev"; then
652  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653  { echo "$as_me: error: missing argument to $ac_option" >&2
654   { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670	      localstatedir libdir includedir oldincludedir infodir mandir
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689  if test "x$build_alias" = x; then
690    cross_compiling=maybe
691    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692    If a cross compiler is detected then cross compile mode will be used." >&2
693  elif test "x$build_alias" != "x$host_alias"; then
694    cross_compiling=yes
695  fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706  ac_srcdir_defaulted=yes
707  # Try the directory containing this script, then its parent.
708  ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710	 X"$0" : 'X\(//\)[^/]' \| \
711	 X"$0" : 'X\(//\)$' \| \
712	 X"$0" : 'X\(/\)' \| \
713	 .     : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717  	  /^X\(\/\/\)$/{ s//\1/; q; }
718  	  /^X\(\/\).*/{ s//\1/; q; }
719  	  s/.*/./; q'`
720  srcdir=$ac_confdir
721  if test ! -r $srcdir/$ac_unique_file; then
722    srcdir=..
723  fi
724else
725  ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728  if test "$ac_srcdir_defaulted" = yes; then
729    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730   { (exit 1); exit 1; }; }
731  else
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733   { (exit 1); exit 1; }; }
734  fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738   { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CXX_set=${CXX+set}
753ac_env_CXX_value=$CXX
754ac_cv_env_CXX_set=${CXX+set}
755ac_cv_env_CXX_value=$CXX
756ac_env_CXXFLAGS_set=${CXXFLAGS+set}
757ac_env_CXXFLAGS_value=$CXXFLAGS
758ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
759ac_cv_env_CXXFLAGS_value=$CXXFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CXXCPP_set=${CXXCPP+set}
769ac_env_CXXCPP_value=$CXXCPP
770ac_cv_env_CXXCPP_set=${CXXCPP+set}
771ac_cv_env_CXXCPP_value=$CXXCPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777  # Omit some internal or obsolete options to make the list less imposing.
778  # This message is too long to be a string in the A/UX 3.1 sh.
779  cat <<_ACEOF
780\`configure' configures jikes 1.22 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790  -h, --help              display this help and exit
791      --help=short        display options specific to this package
792      --help=recursive    display the short help of all the included packages
793  -V, --version           display version information and exit
794  -q, --quiet, --silent   do not print \`checking...' messages
795      --cache-file=FILE   cache test results in FILE [disabled]
796  -C, --config-cache      alias for \`--cache-file=config.cache'
797  -n, --no-create         do not create output files
798      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802  cat <<_ACEOF
803Installation directories:
804  --prefix=PREFIX         install architecture-independent files in PREFIX
805			  [$ac_default_prefix]
806  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807			  [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817  --bindir=DIR           user executables [EPREFIX/bin]
818  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819  --libexecdir=DIR       program executables [EPREFIX/libexec]
820  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824  --libdir=DIR           object code libraries [EPREFIX/lib]
825  --includedir=DIR       C header files [PREFIX/include]
826  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827  --infodir=DIR          info documentation [PREFIX/info]
828  --mandir=DIR           man documentation [PREFIX/man]
829_ACEOF
830
831  cat <<\_ACEOF
832
833Program names:
834  --program-prefix=PREFIX            prepend PREFIX to installed program names
835  --program-suffix=SUFFIX            append SUFFIX to installed program names
836  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838System types:
839  --build=BUILD     configure for building on BUILD [guessed]
840  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841_ACEOF
842fi
843
844if test -n "$ac_init_help"; then
845  case $ac_init_help in
846     short | recursive ) echo "Configuration of jikes 1.22:";;
847   esac
848  cat <<\_ACEOF
849
850Optional Features:
851  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853  --enable-maintainer-mode  enable make rules and dependencies not useful
854			  (and sometimes confusing) to the casual installer
855  --enable-debug          Turn on internal compiler debugging.
856  --disable-dependency-tracking  speeds up one-time build
857  --enable-dependency-tracking   do not reject slow dependency extractors
858  --enable-jikes-namespace
859                          Define Jikes classes in a C++ namespace
860  --disable-fp-emulation  Use native floating point operations instead of
861                          emulation
862  --enable-source15       Enable experimental 1.5 source features
863
864Optional Packages:
865  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867  --with-jikespg=PROG     location of jikes parser generator (optional)
868
869Some influential environment variables:
870  CXX         C++ compiler command
871  CXXFLAGS    C++ compiler flags
872  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
873              nonstandard directory <lib dir>
874  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
875              headers in a nonstandard directory <include dir>
876  CXXCPP      C++ preprocessor
877
878Use these variables to override the choices made by `configure' or to help
879it to find libraries and programs with nonstandard names/locations.
880
881_ACEOF
882fi
883
884if test "$ac_init_help" = "recursive"; then
885  # If there are subdirs, report their specific --help.
886  ac_popdir=`pwd`
887  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
888    test -d $ac_dir || continue
889    ac_builddir=.
890
891if test "$ac_dir" != .; then
892  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
893  # A "../" for each directory in $ac_dir_suffix.
894  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895else
896  ac_dir_suffix= ac_top_builddir=
897fi
898
899case $srcdir in
900  .)  # No --srcdir option.  We are building in place.
901    ac_srcdir=.
902    if test -z "$ac_top_builddir"; then
903       ac_top_srcdir=.
904    else
905       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906    fi ;;
907  [\\/]* | ?:[\\/]* )  # Absolute path.
908    ac_srcdir=$srcdir$ac_dir_suffix;
909    ac_top_srcdir=$srcdir ;;
910  *) # Relative path.
911    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
912    ac_top_srcdir=$ac_top_builddir$srcdir ;;
913esac
914
915# Do not use `cd foo && pwd` to compute absolute paths, because
916# the directories may not exist.
917case `pwd` in
918.) ac_abs_builddir="$ac_dir";;
919*)
920  case "$ac_dir" in
921  .) ac_abs_builddir=`pwd`;;
922  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
923  *) ac_abs_builddir=`pwd`/"$ac_dir";;
924  esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_top_builddir=${ac_top_builddir}.;;
928*)
929  case ${ac_top_builddir}. in
930  .) ac_abs_top_builddir=$ac_abs_builddir;;
931  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
932  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
933  esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_srcdir=$ac_srcdir;;
937*)
938  case $ac_srcdir in
939  .) ac_abs_srcdir=$ac_abs_builddir;;
940  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
941  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
942  esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_srcdir=$ac_top_srcdir;;
946*)
947  case $ac_top_srcdir in
948  .) ac_abs_top_srcdir=$ac_abs_builddir;;
949  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
950  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
951  esac;;
952esac
953
954    cd $ac_dir
955    # Check for guested configure; otherwise get Cygnus style configure.
956    if test -f $ac_srcdir/configure.gnu; then
957      echo
958      $SHELL $ac_srcdir/configure.gnu  --help=recursive
959    elif test -f $ac_srcdir/configure; then
960      echo
961      $SHELL $ac_srcdir/configure  --help=recursive
962    elif test -f $ac_srcdir/configure.ac ||
963	   test -f $ac_srcdir/configure.in; then
964      echo
965      $ac_configure --help
966    else
967      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968    fi
969    cd $ac_popdir
970  done
971fi
972
973test -n "$ac_init_help" && exit 0
974if $ac_init_version; then
975  cat <<\_ACEOF
976jikes configure 1.22
977generated by GNU Autoconf 2.59
978
979Copyright (C) 2003 Free Software Foundation, Inc.
980This configure script is free software; the Free Software Foundation
981gives unlimited permission to copy, distribute and modify it.
982_ACEOF
983  exit 0
984fi
985exec 5>config.log
986cat >&5 <<_ACEOF
987This file contains any messages produced by compilers while
988running configure, to aid debugging if configure makes a mistake.
989
990It was created by jikes $as_me 1.22, which was
991generated by GNU Autoconf 2.59.  Invocation command line was
992
993  $ $0 $@
994
995_ACEOF
996{
997cat <<_ASUNAME
998## --------- ##
999## Platform. ##
1000## --------- ##
1001
1002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007
1008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1010
1011/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1012/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1015/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1016/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1017/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1018
1019_ASUNAME
1020
1021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022for as_dir in $PATH
1023do
1024  IFS=$as_save_IFS
1025  test -z "$as_dir" && as_dir=.
1026  echo "PATH: $as_dir"
1027done
1028
1029} >&5
1030
1031cat >&5 <<_ACEOF
1032
1033
1034## ----------- ##
1035## Core tests. ##
1036## ----------- ##
1037
1038_ACEOF
1039
1040
1041# Keep a trace of the command line.
1042# Strip out --no-create and --no-recursion so they do not pile up.
1043# Strip out --silent because we don't want to record it for future runs.
1044# Also quote any args containing shell meta-characters.
1045# Make two passes to allow for proper duplicate-argument suppression.
1046ac_configure_args=
1047ac_configure_args0=
1048ac_configure_args1=
1049ac_sep=
1050ac_must_keep_next=false
1051for ac_pass in 1 2
1052do
1053  for ac_arg
1054  do
1055    case $ac_arg in
1056    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058    | -silent | --silent | --silen | --sile | --sil)
1059      continue ;;
1060    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062    esac
1063    case $ac_pass in
1064    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065    2)
1066      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067      if test $ac_must_keep_next = true; then
1068	ac_must_keep_next=false # Got value, back to normal.
1069      else
1070	case $ac_arg in
1071	  *=* | --config-cache | -C | -disable-* | --disable-* \
1072	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074	  | -with-* | --with-* | -without-* | --without-* | --x)
1075	    case "$ac_configure_args0 " in
1076	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077	    esac
1078	    ;;
1079	  -* ) ac_must_keep_next=true ;;
1080	esac
1081      fi
1082      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083      # Get rid of the leading space.
1084      ac_sep=" "
1085      ;;
1086    esac
1087  done
1088done
1089$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091
1092# When interrupted or exit'd, cleanup temporary files, and complete
1093# config.log.  We remove comments because anyway the quotes in there
1094# would cause problems or look ugly.
1095# WARNING: Be sure not to use single quotes in there, as some shells,
1096# such as our DU 5.0 friend, will then `close' the trap.
1097trap 'exit_status=$?
1098  # Save into config.log some information that might help in debugging.
1099  {
1100    echo
1101
1102    cat <<\_ASBOX
1103## ---------------- ##
1104## Cache variables. ##
1105## ---------------- ##
1106_ASBOX
1107    echo
1108    # The following way of writing the cache mishandles newlines in values,
1109{
1110  (set) 2>&1 |
1111    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112    *ac_space=\ *)
1113      sed -n \
1114	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116      ;;
1117    *)
1118      sed -n \
1119	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120      ;;
1121    esac;
1122}
1123    echo
1124
1125    cat <<\_ASBOX
1126## ----------------- ##
1127## Output variables. ##
1128## ----------------- ##
1129_ASBOX
1130    echo
1131    for ac_var in $ac_subst_vars
1132    do
1133      eval ac_val=$`echo $ac_var`
1134      echo "$ac_var='"'"'$ac_val'"'"'"
1135    done | sort
1136    echo
1137
1138    if test -n "$ac_subst_files"; then
1139      cat <<\_ASBOX
1140## ------------- ##
1141## Output files. ##
1142## ------------- ##
1143_ASBOX
1144      echo
1145      for ac_var in $ac_subst_files
1146      do
1147	eval ac_val=$`echo $ac_var`
1148	echo "$ac_var='"'"'$ac_val'"'"'"
1149      done | sort
1150      echo
1151    fi
1152
1153    if test -s confdefs.h; then
1154      cat <<\_ASBOX
1155## ----------- ##
1156## confdefs.h. ##
1157## ----------- ##
1158_ASBOX
1159      echo
1160      sed "/^$/d" confdefs.h | sort
1161      echo
1162    fi
1163    test "$ac_signal" != 0 &&
1164      echo "$as_me: caught signal $ac_signal"
1165    echo "$as_me: exit $exit_status"
1166  } >&5
1167  rm -f core *.core &&
1168  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169    exit $exit_status
1170     ' 0
1171for ac_signal in 1 2 13 15; do
1172  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173done
1174ac_signal=0
1175
1176# confdefs.h avoids OS command line length limits that DEFS can exceed.
1177rm -rf conftest* confdefs.h
1178# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179echo >confdefs.h
1180
1181# Predefined preprocessor variables.
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_NAME "$PACKAGE_NAME"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_VERSION "$PACKAGE_VERSION"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_STRING "$PACKAGE_STRING"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205_ACEOF
1206
1207
1208# Let the site file select an alternate cache file if it wants to.
1209# Prefer explicitly selected file to automatically selected ones.
1210if test -z "$CONFIG_SITE"; then
1211  if test "x$prefix" != xNONE; then
1212    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213  else
1214    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215  fi
1216fi
1217for ac_site_file in $CONFIG_SITE; do
1218  if test -r "$ac_site_file"; then
1219    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220echo "$as_me: loading site script $ac_site_file" >&6;}
1221    sed 's/^/| /' "$ac_site_file" >&5
1222    . "$ac_site_file"
1223  fi
1224done
1225
1226if test -r "$cache_file"; then
1227  # Some versions of bash will fail to source /dev/null (special
1228  # files actually), so we avoid doing that.
1229  if test -f "$cache_file"; then
1230    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231echo "$as_me: loading cache $cache_file" >&6;}
1232    case $cache_file in
1233      [\\/]* | ?:[\\/]* ) . $cache_file;;
1234      *)                      . ./$cache_file;;
1235    esac
1236  fi
1237else
1238  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239echo "$as_me: creating cache $cache_file" >&6;}
1240  >$cache_file
1241fi
1242
1243# Check that the precious variables saved in the cache have kept the same
1244# value.
1245ac_cache_corrupted=false
1246for ac_var in `(set) 2>&1 |
1247	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249  eval ac_new_set=\$ac_env_${ac_var}_set
1250  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251  eval ac_new_val="\$ac_env_${ac_var}_value"
1252  case $ac_old_set,$ac_new_set in
1253    set,)
1254      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256      ac_cache_corrupted=: ;;
1257    ,set)
1258      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260      ac_cache_corrupted=: ;;
1261    ,);;
1262    *)
1263      if test "x$ac_old_val" != "x$ac_new_val"; then
1264	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1267echo "$as_me:   former value:  $ac_old_val" >&2;}
1268	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1269echo "$as_me:   current value: $ac_new_val" >&2;}
1270	ac_cache_corrupted=:
1271      fi;;
1272  esac
1273  # Pass precious variables to config.status.
1274  if test "$ac_new_set" = set; then
1275    case $ac_new_val in
1276    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278    *) ac_arg=$ac_var=$ac_new_val ;;
1279    esac
1280    case " $ac_configure_args " in
1281      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1282      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283    esac
1284  fi
1285done
1286if $ac_cache_corrupted; then
1287  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291   { (exit 1); exit 1; }; }
1292fi
1293
1294ac_ext=c
1295ac_cpp='$CPP $CPPFLAGS'
1296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326am__api_version="1.8"
1327ac_aux_dir=
1328for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329  if test -f $ac_dir/install-sh; then
1330    ac_aux_dir=$ac_dir
1331    ac_install_sh="$ac_aux_dir/install-sh -c"
1332    break
1333  elif test -f $ac_dir/install.sh; then
1334    ac_aux_dir=$ac_dir
1335    ac_install_sh="$ac_aux_dir/install.sh -c"
1336    break
1337  elif test -f $ac_dir/shtool; then
1338    ac_aux_dir=$ac_dir
1339    ac_install_sh="$ac_aux_dir/shtool install -c"
1340    break
1341  fi
1342done
1343if test -z "$ac_aux_dir"; then
1344  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346   { (exit 1); exit 1; }; }
1347fi
1348ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352# Find a good install program.  We prefer a C program (faster),
1353# so one script is as good as another.  But avoid the broken or
1354# incompatible versions:
1355# SysV /etc/install, /usr/sbin/install
1356# SunOS /usr/etc/install
1357# IRIX /sbin/install
1358# AIX /bin/install
1359# AmigaOS /C/install, which installs bootblocks on floppy discs
1360# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363# OS/2's system install, which has a completely different semantic
1364# ./install, which can be erroneously created by make from ./install.sh.
1365echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1366echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1367if test -z "$INSTALL"; then
1368if test "${ac_cv_path_install+set}" = set; then
1369  echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372for as_dir in $PATH
1373do
1374  IFS=$as_save_IFS
1375  test -z "$as_dir" && as_dir=.
1376  # Account for people who put trailing slashes in PATH elements.
1377case $as_dir/ in
1378  ./ | .// | /cC/* | \
1379  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1380  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1381  /usr/ucb/* ) ;;
1382  *)
1383    # OSF1 and SCO ODT 3.0 have their own names for install.
1384    # Don't use installbsd from OSF since it installs stuff as root
1385    # by default.
1386    for ac_prog in ginstall scoinst install; do
1387      for ac_exec_ext in '' $ac_executable_extensions; do
1388	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1389	  if test $ac_prog = install &&
1390	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1391	    # AIX install.  It has an incompatible calling convention.
1392	    :
1393	  elif test $ac_prog = install &&
1394	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1395	    # program-specific install script used by HP pwplus--don't use.
1396	    :
1397	  else
1398	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1399	    break 3
1400	  fi
1401	fi
1402      done
1403    done
1404    ;;
1405esac
1406done
1407
1408
1409fi
1410  if test "${ac_cv_path_install+set}" = set; then
1411    INSTALL=$ac_cv_path_install
1412  else
1413    # As a last resort, use the slow shell script.  We don't cache a
1414    # path for INSTALL within a source directory, because that will
1415    # break other packages using the cache if that directory is
1416    # removed, or if the path is relative.
1417    INSTALL=$ac_install_sh
1418  fi
1419fi
1420echo "$as_me:$LINENO: result: $INSTALL" >&5
1421echo "${ECHO_T}$INSTALL" >&6
1422
1423# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1424# It thinks the first close brace ends the variable substitution.
1425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1426
1427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1428
1429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430
1431echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1432echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1433# Just in case
1434sleep 1
1435echo timestamp > conftest.file
1436# Do `set' in a subshell so we don't clobber the current shell's
1437# arguments.  Must try -L first in case configure is actually a
1438# symlink; some systems play weird games with the mod time of symlinks
1439# (eg FreeBSD returns the mod time of the symlink's containing
1440# directory).
1441if (
1442   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1443   if test "$*" = "X"; then
1444      # -L didn't work.
1445      set X `ls -t $srcdir/configure conftest.file`
1446   fi
1447   rm -f conftest.file
1448   if test "$*" != "X $srcdir/configure conftest.file" \
1449      && test "$*" != "X conftest.file $srcdir/configure"; then
1450
1451      # If neither matched, then we have a broken ls.  This can happen
1452      # if, for instance, CONFIG_SHELL is bash and it inherits a
1453      # broken ls alias from the environment.  This has actually
1454      # happened.  Such a system could not be considered "sane".
1455      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1456alias in your environment" >&5
1457echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1458alias in your environment" >&2;}
1459   { (exit 1); exit 1; }; }
1460   fi
1461
1462   test "$2" = conftest.file
1463   )
1464then
1465   # Ok.
1466   :
1467else
1468   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1469Check your system clock" >&5
1470echo "$as_me: error: newly created file is older than distributed files!
1471Check your system clock" >&2;}
1472   { (exit 1); exit 1; }; }
1473fi
1474echo "$as_me:$LINENO: result: yes" >&5
1475echo "${ECHO_T}yes" >&6
1476test "$program_prefix" != NONE &&
1477  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1478# Use a double $ so make ignores it.
1479test "$program_suffix" != NONE &&
1480  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1481# Double any \ or $.  echo might interpret backslashes.
1482# By default was `s,x,x', remove it if useless.
1483cat <<\_ACEOF >conftest.sed
1484s/[\\$]/&&/g;s/;s,x,x,$//
1485_ACEOF
1486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1487rm conftest.sed
1488
1489# expand $ac_aux_dir to an absolute path
1490am_aux_dir=`cd $ac_aux_dir && pwd`
1491
1492test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1493# Use eval to expand $SHELL
1494if eval "$MISSING --run true"; then
1495  am_missing_run="$MISSING --run "
1496else
1497  am_missing_run=
1498  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1499echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1500fi
1501
1502if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1503  # Keeping the `.' argument allows $(mkdir_p) to be used without
1504  # argument.  Indeed, we sometimes output rules like
1505  #   $(mkdir_p) $(somedir)
1506  # where $(somedir) is conditionally defined.
1507  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1508  # expensive solution, as it forces Make to start a sub-shell.)
1509  mkdir_p='mkdir -p -- .'
1510else
1511  # On NextStep and OpenStep, the `mkdir' command does not
1512  # recognize any option.  It will interpret all options as
1513  # directories to create, and then abort because `.' already
1514  # exists.
1515  for d in ./-p ./--version;
1516  do
1517    test -d $d && rmdir $d
1518  done
1519  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520  if test -f "$ac_aux_dir/mkinstalldirs"; then
1521    mkdir_p='$(mkinstalldirs)'
1522  else
1523    mkdir_p='$(install_sh) -d'
1524  fi
1525fi
1526
1527for ac_prog in gawk mawk nawk awk
1528do
1529  # Extract the first word of "$ac_prog", so it can be a program name with args.
1530set dummy $ac_prog; ac_word=$2
1531echo "$as_me:$LINENO: checking for $ac_word" >&5
1532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533if test "${ac_cv_prog_AWK+set}" = set; then
1534  echo $ECHO_N "(cached) $ECHO_C" >&6
1535else
1536  if test -n "$AWK"; then
1537  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538else
1539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540for as_dir in $PATH
1541do
1542  IFS=$as_save_IFS
1543  test -z "$as_dir" && as_dir=.
1544  for ac_exec_ext in '' $ac_executable_extensions; do
1545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546    ac_cv_prog_AWK="$ac_prog"
1547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548    break 2
1549  fi
1550done
1551done
1552
1553fi
1554fi
1555AWK=$ac_cv_prog_AWK
1556if test -n "$AWK"; then
1557  echo "$as_me:$LINENO: result: $AWK" >&5
1558echo "${ECHO_T}$AWK" >&6
1559else
1560  echo "$as_me:$LINENO: result: no" >&5
1561echo "${ECHO_T}no" >&6
1562fi
1563
1564  test -n "$AWK" && break
1565done
1566
1567echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571  echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573  cat >conftest.make <<\_ACEOF
1574all:
1575	@echo 'ac_maketemp="$(MAKE)"'
1576_ACEOF
1577# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579if test -n "$ac_maketemp"; then
1580  eval ac_cv_prog_make_${ac_make}_set=yes
1581else
1582  eval ac_cv_prog_make_${ac_make}_set=no
1583fi
1584rm -f conftest.make
1585fi
1586if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587  echo "$as_me:$LINENO: result: yes" >&5
1588echo "${ECHO_T}yes" >&6
1589  SET_MAKE=
1590else
1591  echo "$as_me:$LINENO: result: no" >&5
1592echo "${ECHO_T}no" >&6
1593  SET_MAKE="MAKE=${MAKE-make}"
1594fi
1595
1596rm -rf .tst 2>/dev/null
1597mkdir .tst 2>/dev/null
1598if test -d .tst; then
1599  am__leading_dot=.
1600else
1601  am__leading_dot=_
1602fi
1603rmdir .tst 2>/dev/null
1604
1605# test to see if srcdir already configured
1606if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607   test -f $srcdir/config.status; then
1608  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610   { (exit 1); exit 1; }; }
1611fi
1612
1613# test whether we have cygpath
1614if test -z "$CYGPATH_W"; then
1615  if (cygpath --version) >/dev/null 2>/dev/null; then
1616    CYGPATH_W='cygpath -w'
1617  else
1618    CYGPATH_W=echo
1619  fi
1620fi
1621
1622
1623# Define the identity of the package.
1624 PACKAGE='jikes'
1625 VERSION='1.22'
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define PACKAGE "$PACKAGE"
1630_ACEOF
1631
1632
1633cat >>confdefs.h <<_ACEOF
1634#define VERSION "$VERSION"
1635_ACEOF
1636
1637# Some tools Automake needs.
1638
1639ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1640
1641
1642AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1643
1644
1645AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1646
1647
1648AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1649
1650
1651MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652
1653
1654AMTAR=${AMTAR-"${am_missing_run}tar"}
1655
1656install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657
1658# Installed binaries are usually stripped using `strip' when the user
1659# run `make install-strip'.  However `strip' might not be the right
1660# tool to use in cross-compilation environments, therefore Automake
1661# will honor the `STRIP' environment variable to overrule this program.
1662if test "$cross_compiling" != no; then
1663  if test -n "$ac_tool_prefix"; then
1664  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1665set dummy ${ac_tool_prefix}strip; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_STRIP+set}" = set; then
1669  echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671  if test -n "$STRIP"; then
1672  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
1677  IFS=$as_save_IFS
1678  test -z "$as_dir" && as_dir=.
1679  for ac_exec_ext in '' $ac_executable_extensions; do
1680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683    break 2
1684  fi
1685done
1686done
1687
1688fi
1689fi
1690STRIP=$ac_cv_prog_STRIP
1691if test -n "$STRIP"; then
1692  echo "$as_me:$LINENO: result: $STRIP" >&5
1693echo "${ECHO_T}$STRIP" >&6
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699fi
1700if test -z "$ac_cv_prog_STRIP"; then
1701  ac_ct_STRIP=$STRIP
1702  # Extract the first word of "strip", so it can be a program name with args.
1703set dummy strip; ac_word=$2
1704echo "$as_me:$LINENO: checking for $ac_word" >&5
1705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1707  echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709  if test -n "$ac_ct_STRIP"; then
1710  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1711else
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715  IFS=$as_save_IFS
1716  test -z "$as_dir" && as_dir=.
1717  for ac_exec_ext in '' $ac_executable_extensions; do
1718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719    ac_cv_prog_ac_ct_STRIP="strip"
1720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721    break 2
1722  fi
1723done
1724done
1725
1726  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1727fi
1728fi
1729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1730if test -n "$ac_ct_STRIP"; then
1731  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1732echo "${ECHO_T}$ac_ct_STRIP" >&6
1733else
1734  echo "$as_me:$LINENO: result: no" >&5
1735echo "${ECHO_T}no" >&6
1736fi
1737
1738  STRIP=$ac_ct_STRIP
1739else
1740  STRIP="$ac_cv_prog_STRIP"
1741fi
1742
1743fi
1744INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745
1746# We need awk for the "check" target.  The system "awk" is bad on
1747# some platforms.
1748
1749
1750
1751
1752
1753
1754cat >>confdefs.h <<\_ACEOF
1755#define JIKES_VERSION_STRING "Version 1.22 - 3 October 2004"
1756_ACEOF
1757
1758
1759
1760          ac_config_headers="$ac_config_headers src/config.h"
1761
1762
1763
1764
1765echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1766echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1767    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1768if test "${enable_maintainer_mode+set}" = set; then
1769  enableval="$enable_maintainer_mode"
1770  USE_MAINTAINER_MODE=$enableval
1771else
1772  USE_MAINTAINER_MODE=no
1773fi;
1774  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1775echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1776
1777
1778if test $USE_MAINTAINER_MODE = yes; then
1779  MAINTAINER_MODE_TRUE=
1780  MAINTAINER_MODE_FALSE='#'
1781else
1782  MAINTAINER_MODE_TRUE='#'
1783  MAINTAINER_MODE_FALSE=
1784fi
1785
1786  MAINT=$MAINTAINER_MODE_TRUE
1787
1788
1789
1790# Make sure we can run config.sub.
1791$ac_config_sub sun4 >/dev/null 2>&1 ||
1792  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1793echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1794   { (exit 1); exit 1; }; }
1795
1796echo "$as_me:$LINENO: checking build system type" >&5
1797echo $ECHO_N "checking build system type... $ECHO_C" >&6
1798if test "${ac_cv_build+set}" = set; then
1799  echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801  ac_cv_build_alias=$build_alias
1802test -z "$ac_cv_build_alias" &&
1803  ac_cv_build_alias=`$ac_config_guess`
1804test -z "$ac_cv_build_alias" &&
1805  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1806echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1807   { (exit 1); exit 1; }; }
1808ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1809  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1810echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1811   { (exit 1); exit 1; }; }
1812
1813fi
1814echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1815echo "${ECHO_T}$ac_cv_build" >&6
1816build=$ac_cv_build
1817build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1818build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1819build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1820
1821
1822echo "$as_me:$LINENO: checking host system type" >&5
1823echo $ECHO_N "checking host system type... $ECHO_C" >&6
1824if test "${ac_cv_host+set}" = set; then
1825  echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827  ac_cv_host_alias=$host_alias
1828test -z "$ac_cv_host_alias" &&
1829  ac_cv_host_alias=$ac_cv_build_alias
1830ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1831  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1832echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1833   { (exit 1); exit 1; }; }
1834
1835fi
1836echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1837echo "${ECHO_T}$ac_cv_host" >&6
1838host=$ac_cv_host
1839host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1840host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1841host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1842
1843
1844
1845case "${host}" in
1846    *windows32*)
1847        jikes_vcpp=yes
1848        ;;
1849esac
1850
1851# Extract the first word of "touch", so it can be a program name with args.
1852set dummy touch; ac_word=$2
1853echo "$as_me:$LINENO: checking for $ac_word" >&5
1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855if test "${ac_cv_path_TOUCH+set}" = set; then
1856  echo $ECHO_N "(cached) $ECHO_C" >&6
1857else
1858  case $TOUCH in
1859  [\\/]* | ?:[\\/]*)
1860  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1861  ;;
1862  *)
1863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866  IFS=$as_save_IFS
1867  test -z "$as_dir" && as_dir=.
1868  for ac_exec_ext in '' $ac_executable_extensions; do
1869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
1871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872    break 2
1873  fi
1874done
1875done
1876
1877  ;;
1878esac
1879fi
1880TOUCH=$ac_cv_path_TOUCH
1881
1882if test -n "$TOUCH"; then
1883  echo "$as_me:$LINENO: result: $TOUCH" >&5
1884echo "${ECHO_T}$TOUCH" >&6
1885else
1886  echo "$as_me:$LINENO: result: no" >&5
1887echo "${ECHO_T}no" >&6
1888fi
1889
1890
1891# Check whether --enable-debug or --disable-debug was given.
1892if test "${enable_debug+set}" = set; then
1893  enableval="$enable_debug"
1894  jikes_debug=$enableval
1895else
1896  jikes_debug=no
1897fi;
1898
1899if test "$jikes_debug" = yes; then
1900
1901cat >>confdefs.h <<\_ACEOF
1902#define JIKES_DEBUG 1
1903_ACEOF
1904
1905
1906      if test "${CXXFLAGS+set}" != "set" ; then
1907    if test "$jikes_vcpp" = "yes" ; then
1908      CXXFLAGS="-Zi -MDd -GX -GR"
1909    else
1910      CXXFLAGS="-g"
1911    fi
1912  fi
1913else
1914      if test "${CXXFLAGS+set}" != "set" ; then
1915    if test "$jikes_vcpp" = "yes" ; then
1916      CXXFLAGS="-MD -GX -GR"
1917    fi
1918  fi
1919fi
1920
1921
1922ac_ext=cc
1923ac_cpp='$CXXCPP $CPPFLAGS'
1924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1927
1928
1929ac_ext=cc
1930ac_cpp='$CXXCPP $CPPFLAGS'
1931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1934if test -n "$ac_tool_prefix"; then
1935  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1936  do
1937    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1939echo "$as_me:$LINENO: checking for $ac_word" >&5
1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941if test "${ac_cv_prog_CXX+set}" = set; then
1942  echo $ECHO_N "(cached) $ECHO_C" >&6
1943else
1944  if test -n "$CXX"; then
1945  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1946else
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  test -z "$as_dir" && as_dir=.
1952  for ac_exec_ext in '' $ac_executable_extensions; do
1953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956    break 2
1957  fi
1958done
1959done
1960
1961fi
1962fi
1963CXX=$ac_cv_prog_CXX
1964if test -n "$CXX"; then
1965  echo "$as_me:$LINENO: result: $CXX" >&5
1966echo "${ECHO_T}$CXX" >&6
1967else
1968  echo "$as_me:$LINENO: result: no" >&5
1969echo "${ECHO_T}no" >&6
1970fi
1971
1972    test -n "$CXX" && break
1973  done
1974fi
1975if test -z "$CXX"; then
1976  ac_ct_CXX=$CXX
1977  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1978do
1979  # Extract the first word of "$ac_prog", so it can be a program name with args.
1980set dummy $ac_prog; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$ac_ct_CXX"; then
1987  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1988else
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994  for ac_exec_ext in '' $ac_executable_extensions; do
1995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996    ac_cv_prog_ac_ct_CXX="$ac_prog"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003fi
2004fi
2005ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2006if test -n "$ac_ct_CXX"; then
2007  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2008echo "${ECHO_T}$ac_ct_CXX" >&6
2009else
2010  echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014  test -n "$ac_ct_CXX" && break
2015done
2016test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2017
2018  CXX=$ac_ct_CXX
2019fi
2020
2021
2022# Provide some information about the compiler.
2023echo "$as_me:$LINENO:" \
2024     "checking for C++ compiler version" >&5
2025ac_compiler=`set X $ac_compile; echo $2`
2026{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2027  (eval $ac_compiler --version </dev/null >&5) 2>&5
2028  ac_status=$?
2029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030  (exit $ac_status); }
2031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2032  (eval $ac_compiler -v </dev/null >&5) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }
2036{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2037  (eval $ac_compiler -V </dev/null >&5) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }
2041
2042cat >conftest.$ac_ext <<_ACEOF
2043/* confdefs.h.  */
2044_ACEOF
2045cat confdefs.h >>conftest.$ac_ext
2046cat >>conftest.$ac_ext <<_ACEOF
2047/* end confdefs.h.  */
2048
2049int
2050main ()
2051{
2052
2053  ;
2054  return 0;
2055}
2056_ACEOF
2057ac_clean_files_save=$ac_clean_files
2058ac_clean_files="$ac_clean_files a.out a.exe b.out"
2059# Try to create an executable without -o first, disregard a.out.
2060# It will help us diagnose broken compilers, and finding out an intuition
2061# of exeext.
2062echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2063echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2064ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2065if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2066  (eval $ac_link_default) 2>&5
2067  ac_status=$?
2068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069  (exit $ac_status); }; then
2070  # Find the output, starting from the most likely.  This scheme is
2071# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2072# resort.
2073
2074# Be careful to initialize this variable, since it used to be cached.
2075# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2076ac_cv_exeext=
2077# b.out is created by i960 compilers.
2078for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2079do
2080  test -f "$ac_file" || continue
2081  case $ac_file in
2082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2083	;;
2084    conftest.$ac_ext )
2085	# This is the source file.
2086	;;
2087    [ab].out )
2088	# We found the default executable, but exeext='' is most
2089	# certainly right.
2090	break;;
2091    *.* )
2092	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2093	# FIXME: I believe we export ac_cv_exeext for Libtool,
2094	# but it would be cool to find out if it's true.  Does anybody
2095	# maintain Libtool? --akim.
2096	export ac_cv_exeext
2097	break;;
2098    * )
2099	break;;
2100  esac
2101done
2102else
2103  echo "$as_me: failed program was:" >&5
2104sed 's/^/| /' conftest.$ac_ext >&5
2105
2106{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2107See \`config.log' for more details." >&5
2108echo "$as_me: error: C++ compiler cannot create executables
2109See \`config.log' for more details." >&2;}
2110   { (exit 77); exit 77; }; }
2111fi
2112
2113ac_exeext=$ac_cv_exeext
2114echo "$as_me:$LINENO: result: $ac_file" >&5
2115echo "${ECHO_T}$ac_file" >&6
2116
2117# Check the compiler produces executables we can run.  If not, either
2118# the compiler is broken, or we cross compile.
2119echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2120echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2121# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2122# If not cross compiling, check that we can run a simple program.
2123if test "$cross_compiling" != yes; then
2124  if { ac_try='./$ac_file'
2125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126  (eval $ac_try) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; }; then
2130    cross_compiling=no
2131  else
2132    if test "$cross_compiling" = maybe; then
2133	cross_compiling=yes
2134    else
2135	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2136If you meant to cross compile, use \`--host'.
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: cannot run C++ compiled programs.
2139If you meant to cross compile, use \`--host'.
2140See \`config.log' for more details." >&2;}
2141   { (exit 1); exit 1; }; }
2142    fi
2143  fi
2144fi
2145echo "$as_me:$LINENO: result: yes" >&5
2146echo "${ECHO_T}yes" >&6
2147
2148rm -f a.out a.exe conftest$ac_cv_exeext b.out
2149ac_clean_files=$ac_clean_files_save
2150# Check the compiler produces executables we can run.  If not, either
2151# the compiler is broken, or we cross compile.
2152echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2153echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2154echo "$as_me:$LINENO: result: $cross_compiling" >&5
2155echo "${ECHO_T}$cross_compiling" >&6
2156
2157echo "$as_me:$LINENO: checking for suffix of executables" >&5
2158echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2160  (eval $ac_link) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }; then
2164  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2165# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2166# work properly (i.e., refer to `conftest.exe'), while it won't with
2167# `rm'.
2168for ac_file in conftest.exe conftest conftest.*; do
2169  test -f "$ac_file" || continue
2170  case $ac_file in
2171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2172    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173	  export ac_cv_exeext
2174	  break;;
2175    * ) break;;
2176  esac
2177done
2178else
2179  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2180See \`config.log' for more details." >&5
2181echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2182See \`config.log' for more details." >&2;}
2183   { (exit 1); exit 1; }; }
2184fi
2185
2186rm -f conftest$ac_cv_exeext
2187echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2188echo "${ECHO_T}$ac_cv_exeext" >&6
2189
2190rm -f conftest.$ac_ext
2191EXEEXT=$ac_cv_exeext
2192ac_exeext=$EXEEXT
2193echo "$as_me:$LINENO: checking for suffix of object files" >&5
2194echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2195if test "${ac_cv_objext+set}" = set; then
2196  echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198  cat >conftest.$ac_ext <<_ACEOF
2199/* confdefs.h.  */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h.  */
2204
2205int
2206main ()
2207{
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.o conftest.obj
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; then
2219  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2220  case $ac_file in
2221    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2222    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2223       break;;
2224  esac
2225done
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: cannot compute suffix of object files: cannot compile
2233See \`config.log' for more details." >&2;}
2234   { (exit 1); exit 1; }; }
2235fi
2236
2237rm -f conftest.$ac_cv_objext conftest.$ac_ext
2238fi
2239echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2240echo "${ECHO_T}$ac_cv_objext" >&6
2241OBJEXT=$ac_cv_objext
2242ac_objext=$OBJEXT
2243echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2244echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2245if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2246  echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248  cat >conftest.$ac_ext <<_ACEOF
2249/* confdefs.h.  */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h.  */
2254
2255int
2256main ()
2257{
2258#ifndef __GNUC__
2259       choke me
2260#endif
2261
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268  (eval $ac_compile) 2>conftest.er1
2269  ac_status=$?
2270  grep -v '^ *+' conftest.er1 >conftest.err
2271  rm -f conftest.er1
2272  cat conftest.err >&5
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); } &&
2275	 { ac_try='test -z "$ac_cxx_werror_flag"
2276			 || test ! -s conftest.err'
2277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278  (eval $ac_try) 2>&5
2279  ac_status=$?
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); }; } &&
2282	 { ac_try='test -s conftest.$ac_objext'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; }; then
2288  ac_compiler_gnu=yes
2289else
2290  echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293ac_compiler_gnu=no
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2297
2298fi
2299echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2300echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2301GXX=`test $ac_compiler_gnu = yes && echo yes`
2302ac_test_CXXFLAGS=${CXXFLAGS+set}
2303ac_save_CXXFLAGS=$CXXFLAGS
2304CXXFLAGS="-g"
2305echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2306echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2307if test "${ac_cv_prog_cxx_g+set}" = set; then
2308  echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310  cat >conftest.$ac_ext <<_ACEOF
2311/* confdefs.h.  */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h.  */
2316
2317int
2318main ()
2319{
2320
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325rm -f conftest.$ac_objext
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327  (eval $ac_compile) 2>conftest.er1
2328  ac_status=$?
2329  grep -v '^ *+' conftest.er1 >conftest.err
2330  rm -f conftest.er1
2331  cat conftest.err >&5
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); } &&
2334	 { ac_try='test -z "$ac_cxx_werror_flag"
2335			 || test ! -s conftest.err'
2336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337  (eval $ac_try) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; } &&
2341	 { ac_try='test -s conftest.$ac_objext'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; }; then
2347  ac_cv_prog_cxx_g=yes
2348else
2349  echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352ac_cv_prog_cxx_g=no
2353fi
2354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2357echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2358if test "$ac_test_CXXFLAGS" = set; then
2359  CXXFLAGS=$ac_save_CXXFLAGS
2360elif test $ac_cv_prog_cxx_g = yes; then
2361  if test "$GXX" = yes; then
2362    CXXFLAGS="-g -O2"
2363  else
2364    CXXFLAGS="-g"
2365  fi
2366else
2367  if test "$GXX" = yes; then
2368    CXXFLAGS="-O2"
2369  else
2370    CXXFLAGS=
2371  fi
2372fi
2373for ac_declaration in \
2374   '' \
2375   'extern "C" void std::exit (int) throw (); using std::exit;' \
2376   'extern "C" void std::exit (int); using std::exit;' \
2377   'extern "C" void exit (int) throw ();' \
2378   'extern "C" void exit (int);' \
2379   'void exit (int);'
2380do
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387$ac_declaration
2388#include <stdlib.h>
2389int
2390main ()
2391{
2392exit (42);
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406	 { ac_try='test -z "$ac_cxx_werror_flag"
2407			 || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413	 { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  :
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424continue
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433$ac_declaration
2434int
2435main ()
2436{
2437exit (42);
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>conftest.er1
2445  ac_status=$?
2446  grep -v '^ *+' conftest.er1 >conftest.err
2447  rm -f conftest.er1
2448  cat conftest.err >&5
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451	 { ac_try='test -z "$ac_cxx_werror_flag"
2452			 || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458	 { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  break
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469fi
2470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471done
2472rm -f conftest*
2473if test -n "$ac_declaration"; then
2474  echo '#ifdef __cplusplus' >>confdefs.h
2475  echo $ac_declaration      >>confdefs.h
2476  echo '#endif'             >>confdefs.h
2477fi
2478
2479ac_ext=cc
2480ac_cpp='$CXXCPP $CPPFLAGS'
2481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2484DEPDIR="${am__leading_dot}deps"
2485
2486          ac_config_commands="$ac_config_commands depfiles"
2487
2488
2489am_make=${MAKE-make}
2490cat > confinc << 'END'
2491am__doit:
2492	@echo done
2493.PHONY: am__doit
2494END
2495# If we don't find an include directive, just comment out the code.
2496echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2497echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2498am__include="#"
2499am__quote=
2500_am_result=none
2501# First try GNU make style include.
2502echo "include confinc" > confmf
2503# We grep out `Entering directory' and `Leaving directory'
2504# messages which can occur if `w' ends up in MAKEFLAGS.
2505# In particular we don't look at `^make:' because GNU make might
2506# be invoked under some other name (usually "gmake"), in which
2507# case it prints its new name instead of `make'.
2508if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2509   am__include=include
2510   am__quote=
2511   _am_result=GNU
2512fi
2513# Now try BSD make style include.
2514if test "$am__include" = "#"; then
2515   echo '.include "confinc"' > confmf
2516   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2517      am__include=.include
2518      am__quote="\""
2519      _am_result=BSD
2520   fi
2521fi
2522
2523
2524echo "$as_me:$LINENO: result: $_am_result" >&5
2525echo "${ECHO_T}$_am_result" >&6
2526rm -f confinc confmf
2527
2528# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2529if test "${enable_dependency_tracking+set}" = set; then
2530  enableval="$enable_dependency_tracking"
2531
2532fi;
2533if test "x$enable_dependency_tracking" != xno; then
2534  am_depcomp="$ac_aux_dir/depcomp"
2535  AMDEPBACKSLASH='\'
2536fi
2537
2538
2539if test "x$enable_dependency_tracking" != xno; then
2540  AMDEP_TRUE=
2541  AMDEP_FALSE='#'
2542else
2543  AMDEP_TRUE='#'
2544  AMDEP_FALSE=
2545fi
2546
2547
2548
2549
2550depcc="$CXX"  am_compiler_list=
2551
2552echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2553echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2554if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2555  echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2558  # We make a subdir and do the tests there.  Otherwise we can end up
2559  # making bogus files that we don't know about and never remove.  For
2560  # instance it was reported that on HP-UX the gcc test will end up
2561  # making a dummy file named `D' -- because `-MD' means `put the output
2562  # in D'.
2563  mkdir conftest.dir
2564  # Copy depcomp to subdir because otherwise we won't find it if we're
2565  # using a relative directory.
2566  cp "$am_depcomp" conftest.dir
2567  cd conftest.dir
2568  # We will build objects and dependencies in a subdirectory because
2569  # it helps to detect inapplicable dependency modes.  For instance
2570  # both Tru64's cc and ICC support -MD to output dependencies as a
2571  # side effect of compilation, but ICC will put the dependencies in
2572  # the current directory while Tru64 will put them in the object
2573  # directory.
2574  mkdir sub
2575
2576  am_cv_CXX_dependencies_compiler_type=none
2577  if test "$am_compiler_list" = ""; then
2578     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2579  fi
2580  for depmode in $am_compiler_list; do
2581    # Setup a source with many dependencies, because some compilers
2582    # like to wrap large dependency lists on column 80 (with \), and
2583    # we should not choose a depcomp mode which is confused by this.
2584    #
2585    # We need to recreate these files for each test, as the compiler may
2586    # overwrite some of them when testing with obscure command lines.
2587    # This happens at least with the AIX C compiler.
2588    : > sub/conftest.c
2589    for i in 1 2 3 4 5 6; do
2590      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2591      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2592      # Solaris 8's {/usr,}/bin/sh.
2593      touch sub/conftst$i.h
2594    done
2595    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2596
2597    case $depmode in
2598    nosideeffect)
2599      # after this tag, mechanisms are not by side-effect, so they'll
2600      # only be used when explicitly requested
2601      if test "x$enable_dependency_tracking" = xyes; then
2602	continue
2603      else
2604	break
2605      fi
2606      ;;
2607    none) break ;;
2608    esac
2609    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2610    # mode.  It turns out that the SunPro C++ compiler does not properly
2611    # handle `-M -o', and we need to detect this.
2612    if depmode=$depmode \
2613       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2614       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2615       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2616         >/dev/null 2>conftest.err &&
2617       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2618       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2619       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2620      # icc doesn't choke on unknown options, it will just issue warnings
2621      # or remarks (even with -Werror).  So we grep stderr for any message
2622      # that says an option was ignored or not supported.
2623      # When given -MP, icc 7.0 and 7.1 complain thusly:
2624      #   icc: Command line warning: ignoring option '-M'; no argument required
2625      # The diagnosis changed in icc 8.0:
2626      #   icc: Command line remark: option '-MP' not supported
2627      if (grep 'ignoring option' conftest.err ||
2628          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2629        am_cv_CXX_dependencies_compiler_type=$depmode
2630        break
2631      fi
2632    fi
2633  done
2634
2635  cd ..
2636  rm -rf conftest.dir
2637else
2638  am_cv_CXX_dependencies_compiler_type=none
2639fi
2640
2641fi
2642echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2643echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2644CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2645
2646
2647
2648if
2649  test "x$enable_dependency_tracking" != xno \
2650  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2651  am__fastdepCXX_TRUE=
2652  am__fastdepCXX_FALSE='#'
2653else
2654  am__fastdepCXX_TRUE='#'
2655  am__fastdepCXX_FALSE=
2656fi
2657
2658
2659
2660echo "$as_me:$LINENO: checking for Windows and DOS and OS/2 style pathnames" >&5
2661echo $ECHO_N "checking for Windows and DOS and OS/2 style pathnames... $ECHO_C" >&6
2662if test "${acx_cv_pathname_style_dos+set}" = set; then
2663  echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665
2666
2667acx_cv_pathname_style_dos="no"
2668case ${host_os} in
2669  *djgpp | *mingw32* | *windows32* | *emx*) acx_cv_pathname_style_dos=yes ;;
2670esac
2671
2672fi
2673
2674echo "$as_me:$LINENO: result: $acx_cv_pathname_style_dos" >&5
2675echo "${ECHO_T}$acx_cv_pathname_style_dos" >&6
2676if test "$acx_cv_pathname_style_dos" = yes; then
2677
2678cat >>confdefs.h <<\_ACEOF
2679#define HAVE_PATHNAME_STYLE_DOS
2680_ACEOF
2681
2682
2683cat >>confdefs.h <<\_ACEOF
2684#define PATH_SEPARATOR ';'
2685_ACEOF
2686
2687else
2688
2689cat >>confdefs.h <<\_ACEOF
2690#define PATH_SEPARATOR ':'
2691_ACEOF
2692
2693fi
2694
2695
2696if test "$acx_cv_pathname_style_dos" = yes; then
2697
2698cat >>confdefs.h <<\_ACEOF
2699#define WIN32_FILE_SYSTEM
2700_ACEOF
2701
2702else
2703
2704cat >>confdefs.h <<\_ACEOF
2705#define UNIX_FILE_SYSTEM
2706_ACEOF
2707
2708fi
2709
2710
2711
2712# Check whether --enable-jikes-namespace or --disable-jikes-namespace was given.
2713if test "${enable_jikes_namespace+set}" = set; then
2714  enableval="$enable_jikes_namespace"
2715  ok=$enableval
2716else
2717  ok=no
2718fi;
2719
2720if test "$ok" = yes; then
2721
2722cat >>confdefs.h <<\_ACEOF
2723#define HAVE_JIKES_NAMESPACE 1
2724_ACEOF
2725
2726fi
2727
2728
2729
2730
2731ac_ext=cc
2732ac_cpp='$CXXCPP $CPPFLAGS'
2733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2736echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2737echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2738if test -z "$CXXCPP"; then
2739  if test "${ac_cv_prog_CXXCPP+set}" = set; then
2740  echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742      # Double quotes because CXXCPP needs to be expanded
2743    for CXXCPP in "$CXX -E" "/lib/cpp"
2744    do
2745      ac_preproc_ok=false
2746for ac_cxx_preproc_warn_flag in '' yes
2747do
2748  # Use a header file that comes with gcc, so configuring glibc
2749  # with a fresh cross-compiler works.
2750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2751  # <limits.h> exists even on freestanding compilers.
2752  # On the NeXT, cc -E runs the code through the compiler's parser,
2753  # not just through cpp. "Syntax error" is here to catch this case.
2754  cat >conftest.$ac_ext <<_ACEOF
2755/* confdefs.h.  */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h.  */
2760#ifdef __STDC__
2761# include <limits.h>
2762#else
2763# include <assert.h>
2764#endif
2765		     Syntax error
2766_ACEOF
2767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2768  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2769  ac_status=$?
2770  grep -v '^ *+' conftest.er1 >conftest.err
2771  rm -f conftest.er1
2772  cat conftest.err >&5
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); } >/dev/null; then
2775  if test -s conftest.err; then
2776    ac_cpp_err=$ac_cxx_preproc_warn_flag
2777    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2778  else
2779    ac_cpp_err=
2780  fi
2781else
2782  ac_cpp_err=yes
2783fi
2784if test -z "$ac_cpp_err"; then
2785  :
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790  # Broken: fails on valid input.
2791continue
2792fi
2793rm -f conftest.err conftest.$ac_ext
2794
2795  # OK, works on sane cases.  Now check whether non-existent headers
2796  # can be detected and how.
2797  cat >conftest.$ac_ext <<_ACEOF
2798/* confdefs.h.  */
2799_ACEOF
2800cat confdefs.h >>conftest.$ac_ext
2801cat >>conftest.$ac_ext <<_ACEOF
2802/* end confdefs.h.  */
2803#include <ac_nonexistent.h>
2804_ACEOF
2805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2806  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2807  ac_status=$?
2808  grep -v '^ *+' conftest.er1 >conftest.err
2809  rm -f conftest.er1
2810  cat conftest.err >&5
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); } >/dev/null; then
2813  if test -s conftest.err; then
2814    ac_cpp_err=$ac_cxx_preproc_warn_flag
2815    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2816  else
2817    ac_cpp_err=
2818  fi
2819else
2820  ac_cpp_err=yes
2821fi
2822if test -z "$ac_cpp_err"; then
2823  # Broken: success on invalid input.
2824continue
2825else
2826  echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829  # Passes both tests.
2830ac_preproc_ok=:
2831break
2832fi
2833rm -f conftest.err conftest.$ac_ext
2834
2835done
2836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2837rm -f conftest.err conftest.$ac_ext
2838if $ac_preproc_ok; then
2839  break
2840fi
2841
2842    done
2843    ac_cv_prog_CXXCPP=$CXXCPP
2844
2845fi
2846  CXXCPP=$ac_cv_prog_CXXCPP
2847else
2848  ac_cv_prog_CXXCPP=$CXXCPP
2849fi
2850echo "$as_me:$LINENO: result: $CXXCPP" >&5
2851echo "${ECHO_T}$CXXCPP" >&6
2852ac_preproc_ok=false
2853for ac_cxx_preproc_warn_flag in '' yes
2854do
2855  # Use a header file that comes with gcc, so configuring glibc
2856  # with a fresh cross-compiler works.
2857  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858  # <limits.h> exists even on freestanding compilers.
2859  # On the NeXT, cc -E runs the code through the compiler's parser,
2860  # not just through cpp. "Syntax error" is here to catch this case.
2861  cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h.  */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h.  */
2867#ifdef __STDC__
2868# include <limits.h>
2869#else
2870# include <assert.h>
2871#endif
2872		     Syntax error
2873_ACEOF
2874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876  ac_status=$?
2877  grep -v '^ *+' conftest.er1 >conftest.err
2878  rm -f conftest.er1
2879  cat conftest.err >&5
2880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881  (exit $ac_status); } >/dev/null; then
2882  if test -s conftest.err; then
2883    ac_cpp_err=$ac_cxx_preproc_warn_flag
2884    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2885  else
2886    ac_cpp_err=
2887  fi
2888else
2889  ac_cpp_err=yes
2890fi
2891if test -z "$ac_cpp_err"; then
2892  :
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897  # Broken: fails on valid input.
2898continue
2899fi
2900rm -f conftest.err conftest.$ac_ext
2901
2902  # OK, works on sane cases.  Now check whether non-existent headers
2903  # can be detected and how.
2904  cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h.  */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h.  */
2910#include <ac_nonexistent.h>
2911_ACEOF
2912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914  ac_status=$?
2915  grep -v '^ *+' conftest.er1 >conftest.err
2916  rm -f conftest.er1
2917  cat conftest.err >&5
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); } >/dev/null; then
2920  if test -s conftest.err; then
2921    ac_cpp_err=$ac_cxx_preproc_warn_flag
2922    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2923  else
2924    ac_cpp_err=
2925  fi
2926else
2927  ac_cpp_err=yes
2928fi
2929if test -z "$ac_cpp_err"; then
2930  # Broken: success on invalid input.
2931continue
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936  # Passes both tests.
2937ac_preproc_ok=:
2938break
2939fi
2940rm -f conftest.err conftest.$ac_ext
2941
2942done
2943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944rm -f conftest.err conftest.$ac_ext
2945if $ac_preproc_ok; then
2946  :
2947else
2948  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2949See \`config.log' for more details." >&5
2950echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2951See \`config.log' for more details." >&2;}
2952   { (exit 1); exit 1; }; }
2953fi
2954
2955ac_ext=cc
2956ac_cpp='$CXXCPP $CPPFLAGS'
2957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2960
2961
2962echo "$as_me:$LINENO: checking for egrep" >&5
2963echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2964if test "${ac_cv_prog_egrep+set}" = set; then
2965  echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2968    then ac_cv_prog_egrep='grep -E'
2969    else ac_cv_prog_egrep='egrep'
2970    fi
2971fi
2972echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2973echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2974 EGREP=$ac_cv_prog_egrep
2975
2976
2977echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2978echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2979if test "${ac_cv_header_stdc+set}" = set; then
2980  echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982  cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h.  */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h.  */
2988#include <stdlib.h>
2989#include <stdarg.h>
2990#include <string.h>
2991#include <float.h>
2992
2993int
2994main ()
2995{
2996
2997  ;
2998  return 0;
2999}
3000_ACEOF
3001rm -f conftest.$ac_objext
3002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003  (eval $ac_compile) 2>conftest.er1
3004  ac_status=$?
3005  grep -v '^ *+' conftest.er1 >conftest.err
3006  rm -f conftest.er1
3007  cat conftest.err >&5
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); } &&
3010	 { ac_try='test -z "$ac_cxx_werror_flag"
3011			 || test ! -s conftest.err'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; } &&
3017	 { ac_try='test -s conftest.$ac_objext'
3018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019  (eval $ac_try) 2>&5
3020  ac_status=$?
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); }; }; then
3023  ac_cv_header_stdc=yes
3024else
3025  echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028ac_cv_header_stdc=no
3029fi
3030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031
3032if test $ac_cv_header_stdc = yes; then
3033  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3034  cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h.  */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h.  */
3040#include <string.h>
3041
3042_ACEOF
3043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3044  $EGREP "memchr" >/dev/null 2>&1; then
3045  :
3046else
3047  ac_cv_header_stdc=no
3048fi
3049rm -f conftest*
3050
3051fi
3052
3053if test $ac_cv_header_stdc = yes; then
3054  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3055  cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061#include <stdlib.h>
3062
3063_ACEOF
3064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065  $EGREP "free" >/dev/null 2>&1; then
3066  :
3067else
3068  ac_cv_header_stdc=no
3069fi
3070rm -f conftest*
3071
3072fi
3073
3074if test $ac_cv_header_stdc = yes; then
3075  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3076  if test "$cross_compiling" = yes; then
3077  :
3078else
3079  cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h.  */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h.  */
3085#include <ctype.h>
3086#if ((' ' & 0x0FF) == 0x020)
3087# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3088# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3089#else
3090# define ISLOWER(c) \
3091		   (('a' <= (c) && (c) <= 'i') \
3092		     || ('j' <= (c) && (c) <= 'r') \
3093		     || ('s' <= (c) && (c) <= 'z'))
3094# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3095#endif
3096
3097#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3098int
3099main ()
3100{
3101  int i;
3102  for (i = 0; i < 256; i++)
3103    if (XOR (islower (i), ISLOWER (i))
3104	|| toupper (i) != TOUPPER (i))
3105      exit(2);
3106  exit (0);
3107}
3108_ACEOF
3109rm -f conftest$ac_exeext
3110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3111  (eval $ac_link) 2>&5
3112  ac_status=$?
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; }; then
3120  :
3121else
3122  echo "$as_me: program exited with status $ac_status" >&5
3123echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126( exit $ac_status )
3127ac_cv_header_stdc=no
3128fi
3129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3130fi
3131fi
3132fi
3133echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3134echo "${ECHO_T}$ac_cv_header_stdc" >&6
3135if test $ac_cv_header_stdc = yes; then
3136
3137cat >>confdefs.h <<\_ACEOF
3138#define STDC_HEADERS 1
3139_ACEOF
3140
3141fi
3142
3143
3144# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3155		  inttypes.h stdint.h unistd.h
3156do
3157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3158echo "$as_me:$LINENO: checking for $ac_header" >&5
3159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3160if eval "test \"\${$as_ac_Header+set}\" = set"; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163  cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169$ac_includes_default
3170
3171#include <$ac_header>
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175  (eval $ac_compile) 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } &&
3182	 { ac_try='test -z "$ac_cxx_werror_flag"
3183			 || test ! -s conftest.err'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; } &&
3189	 { ac_try='test -s conftest.$ac_objext'
3190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191  (eval $ac_try) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }; }; then
3195  eval "$as_ac_Header=yes"
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200eval "$as_ac_Header=no"
3201fi
3202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3206if test `eval echo '${'$as_ac_Header'}'` = yes; then
3207  cat >>confdefs.h <<_ACEOF
3208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3209_ACEOF
3210
3211fi
3212
3213done
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223for ac_header in stdio.h assert.h errno.h limits.h ctype.h time.h float.h
3224do
3225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3226if eval "test \"\${$as_ac_Header+set}\" = set"; then
3227  echo "$as_me:$LINENO: checking for $ac_header" >&5
3228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3229if eval "test \"\${$as_ac_Header+set}\" = set"; then
3230  echo $ECHO_N "(cached) $ECHO_C" >&6
3231fi
3232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3234else
3235  # Is the header compilable?
3236echo "$as_me:$LINENO: checking $ac_header usability" >&5
3237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3238cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h.  */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h.  */
3244$ac_includes_default
3245#include <$ac_header>
3246_ACEOF
3247rm -f conftest.$ac_objext
3248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249  (eval $ac_compile) 2>conftest.er1
3250  ac_status=$?
3251  grep -v '^ *+' conftest.er1 >conftest.err
3252  rm -f conftest.er1
3253  cat conftest.err >&5
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); } &&
3256	 { ac_try='test -z "$ac_cxx_werror_flag"
3257			 || test ! -s conftest.err'
3258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259  (eval $ac_try) 2>&5
3260  ac_status=$?
3261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262  (exit $ac_status); }; } &&
3263	 { ac_try='test -s conftest.$ac_objext'
3264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265  (eval $ac_try) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }; }; then
3269  ac_header_compiler=yes
3270else
3271  echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274ac_header_compiler=no
3275fi
3276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3278echo "${ECHO_T}$ac_header_compiler" >&6
3279
3280# Is the header present?
3281echo "$as_me:$LINENO: checking $ac_header presence" >&5
3282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3283cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289#include <$ac_header>
3290_ACEOF
3291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } >/dev/null; then
3299  if test -s conftest.err; then
3300    ac_cpp_err=$ac_cxx_preproc_warn_flag
3301    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3302  else
3303    ac_cpp_err=
3304  fi
3305else
3306  ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309  ac_header_preproc=yes
3310else
3311  echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314  ac_header_preproc=no
3315fi
3316rm -f conftest.err conftest.$ac_ext
3317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3318echo "${ECHO_T}$ac_header_preproc" >&6
3319
3320# So?  What about this header?
3321case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3322  yes:no: )
3323    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3325    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3327    ac_header_preproc=yes
3328    ;;
3329  no:yes:* )
3330    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3332    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3333echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3334    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3336    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3337echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3340    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3342    (
3343      cat <<\_ASBOX
3344## -------------------------------- ##
3345## Report this to the jikes lists.  ##
3346## -------------------------------- ##
3347_ASBOX
3348    ) |
3349      sed "s/^/$as_me: WARNING:     /" >&2
3350    ;;
3351esac
3352echo "$as_me:$LINENO: checking for $ac_header" >&5
3353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3354if eval "test \"\${$as_ac_Header+set}\" = set"; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  eval "$as_ac_Header=\$ac_header_preproc"
3358fi
3359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3361
3362fi
3363if test `eval echo '${'$as_ac_Header'}'` = yes; then
3364  cat >>confdefs.h <<_ACEOF
3365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3366_ACEOF
3367
3368fi
3369
3370done
3371
3372
3373
3374
3375
3376
3377
3378for ac_header in windows.h direct.h dirent.h sys/cygwin.h locale.h
3379do
3380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3381if eval "test \"\${$as_ac_Header+set}\" = set"; then
3382  echo "$as_me:$LINENO: checking for $ac_header" >&5
3383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3384if eval "test \"\${$as_ac_Header+set}\" = set"; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386fi
3387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3389else
3390  # Is the header compilable?
3391echo "$as_me:$LINENO: checking $ac_header usability" >&5
3392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3393cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399$ac_includes_default
3400#include <$ac_header>
3401_ACEOF
3402rm -f conftest.$ac_objext
3403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404  (eval $ac_compile) 2>conftest.er1
3405  ac_status=$?
3406  grep -v '^ *+' conftest.er1 >conftest.err
3407  rm -f conftest.er1
3408  cat conftest.err >&5
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); } &&
3411	 { ac_try='test -z "$ac_cxx_werror_flag"
3412			 || test ! -s conftest.err'
3413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414  (eval $ac_try) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); }; } &&
3418	 { ac_try='test -s conftest.$ac_objext'
3419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420  (eval $ac_try) 2>&5
3421  ac_status=$?
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); }; }; then
3424  ac_header_compiler=yes
3425else
3426  echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429ac_header_compiler=no
3430fi
3431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3433echo "${ECHO_T}$ac_header_compiler" >&6
3434
3435# Is the header present?
3436echo "$as_me:$LINENO: checking $ac_header presence" >&5
3437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3438cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444#include <$ac_header>
3445_ACEOF
3446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3447  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3448  ac_status=$?
3449  grep -v '^ *+' conftest.er1 >conftest.err
3450  rm -f conftest.er1
3451  cat conftest.err >&5
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); } >/dev/null; then
3454  if test -s conftest.err; then
3455    ac_cpp_err=$ac_cxx_preproc_warn_flag
3456    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3457  else
3458    ac_cpp_err=
3459  fi
3460else
3461  ac_cpp_err=yes
3462fi
3463if test -z "$ac_cpp_err"; then
3464  ac_header_preproc=yes
3465else
3466  echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469  ac_header_preproc=no
3470fi
3471rm -f conftest.err conftest.$ac_ext
3472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3473echo "${ECHO_T}$ac_header_preproc" >&6
3474
3475# So?  What about this header?
3476case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3477  yes:no: )
3478    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3480    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3482    ac_header_preproc=yes
3483    ;;
3484  no:yes:* )
3485    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3487    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3488echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3489    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3491    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3492echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3493    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3495    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3497    (
3498      cat <<\_ASBOX
3499## -------------------------------- ##
3500## Report this to the jikes lists.  ##
3501## -------------------------------- ##
3502_ASBOX
3503    ) |
3504      sed "s/^/$as_me: WARNING:     /" >&2
3505    ;;
3506esac
3507echo "$as_me:$LINENO: checking for $ac_header" >&5
3508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3509if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510  echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512  eval "$as_ac_Header=\$ac_header_preproc"
3513fi
3514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3516
3517fi
3518if test `eval echo '${'$as_ac_Header'}'` = yes; then
3519  cat >>confdefs.h <<_ACEOF
3520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3521_ACEOF
3522
3523fi
3524
3525done
3526
3527
3528
3529
3530for ac_header in math.h
3531do
3532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3533if eval "test \"\${$as_ac_Header+set}\" = set"; then
3534  echo "$as_me:$LINENO: checking for $ac_header" >&5
3535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3536if eval "test \"\${$as_ac_Header+set}\" = set"; then
3537  echo $ECHO_N "(cached) $ECHO_C" >&6
3538fi
3539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3541else
3542  # Is the header compilable?
3543echo "$as_me:$LINENO: checking $ac_header usability" >&5
3544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3545cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h.  */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h.  */
3551$ac_includes_default
3552#include <$ac_header>
3553_ACEOF
3554rm -f conftest.$ac_objext
3555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556  (eval $ac_compile) 2>conftest.er1
3557  ac_status=$?
3558  grep -v '^ *+' conftest.er1 >conftest.err
3559  rm -f conftest.er1
3560  cat conftest.err >&5
3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); } &&
3563	 { ac_try='test -z "$ac_cxx_werror_flag"
3564			 || test ! -s conftest.err'
3565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566  (eval $ac_try) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; } &&
3570	 { ac_try='test -s conftest.$ac_objext'
3571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572  (eval $ac_try) 2>&5
3573  ac_status=$?
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); }; }; then
3576  ac_header_compiler=yes
3577else
3578  echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581ac_header_compiler=no
3582fi
3583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3585echo "${ECHO_T}$ac_header_compiler" >&6
3586
3587# Is the header present?
3588echo "$as_me:$LINENO: checking $ac_header presence" >&5
3589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3590cat >conftest.$ac_ext <<_ACEOF
3591/* confdefs.h.  */
3592_ACEOF
3593cat confdefs.h >>conftest.$ac_ext
3594cat >>conftest.$ac_ext <<_ACEOF
3595/* end confdefs.h.  */
3596#include <$ac_header>
3597_ACEOF
3598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3599  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } >/dev/null; then
3606  if test -s conftest.err; then
3607    ac_cpp_err=$ac_cxx_preproc_warn_flag
3608    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3609  else
3610    ac_cpp_err=
3611  fi
3612else
3613  ac_cpp_err=yes
3614fi
3615if test -z "$ac_cpp_err"; then
3616  ac_header_preproc=yes
3617else
3618  echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621  ac_header_preproc=no
3622fi
3623rm -f conftest.err conftest.$ac_ext
3624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3625echo "${ECHO_T}$ac_header_preproc" >&6
3626
3627# So?  What about this header?
3628case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3629  yes:no: )
3630    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3634    ac_header_preproc=yes
3635    ;;
3636  no:yes:* )
3637    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3639    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3640echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3641    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3643    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3644echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3647    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3649    (
3650      cat <<\_ASBOX
3651## -------------------------------- ##
3652## Report this to the jikes lists.  ##
3653## -------------------------------- ##
3654_ASBOX
3655    ) |
3656      sed "s/^/$as_me: WARNING:     /" >&2
3657    ;;
3658esac
3659echo "$as_me:$LINENO: checking for $ac_header" >&5
3660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3661if eval "test \"\${$as_ac_Header+set}\" = set"; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  eval "$as_ac_Header=\$ac_header_preproc"
3665fi
3666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3668
3669fi
3670if test `eval echo '${'$as_ac_Header'}'` = yes; then
3671  cat >>confdefs.h <<_ACEOF
3672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3673_ACEOF
3674
3675fi
3676
3677done
3678
3679echo "$as_me:$LINENO: checking for library containing cos" >&5
3680echo $ECHO_N "checking for library containing cos... $ECHO_C" >&6
3681if test "${ac_cv_search_cos+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  ac_func_search_save_LIBS=$LIBS
3685ac_cv_search_cos=no
3686cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h.  */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h.  */
3692
3693/* Override any gcc2 internal prototype to avoid an error.  */
3694#ifdef __cplusplus
3695extern "C"
3696#endif
3697/* We use char because int might match the return type of a gcc2
3698   builtin and then its argument prototype would still apply.  */
3699char cos ();
3700int
3701main ()
3702{
3703cos ();
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710  (eval $ac_link) 2>conftest.er1
3711  ac_status=$?
3712  grep -v '^ *+' conftest.er1 >conftest.err
3713  rm -f conftest.er1
3714  cat conftest.err >&5
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); } &&
3717	 { ac_try='test -z "$ac_cxx_werror_flag"
3718			 || test ! -s conftest.err'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; } &&
3724	 { ac_try='test -s conftest$ac_exeext'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; }; then
3730  ac_cv_search_cos="none required"
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735fi
3736rm -f conftest.err conftest.$ac_objext \
3737      conftest$ac_exeext conftest.$ac_ext
3738if test "$ac_cv_search_cos" = no; then
3739  for ac_lib in m; do
3740    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3741    cat >conftest.$ac_ext <<_ACEOF
3742/* confdefs.h.  */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h.  */
3747
3748/* Override any gcc2 internal prototype to avoid an error.  */
3749#ifdef __cplusplus
3750extern "C"
3751#endif
3752/* We use char because int might match the return type of a gcc2
3753   builtin and then its argument prototype would still apply.  */
3754char cos ();
3755int
3756main ()
3757{
3758cos ();
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765  (eval $ac_link) 2>conftest.er1
3766  ac_status=$?
3767  grep -v '^ *+' conftest.er1 >conftest.err
3768  rm -f conftest.er1
3769  cat conftest.err >&5
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); } &&
3772	 { ac_try='test -z "$ac_cxx_werror_flag"
3773			 || test ! -s conftest.err'
3774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775  (eval $ac_try) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); }; } &&
3779	 { ac_try='test -s conftest$ac_exeext'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; }; then
3785  ac_cv_search_cos="-l$ac_lib"
3786break
3787else
3788  echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793      conftest$ac_exeext conftest.$ac_ext
3794  done
3795fi
3796LIBS=$ac_func_search_save_LIBS
3797fi
3798echo "$as_me:$LINENO: result: $ac_cv_search_cos" >&5
3799echo "${ECHO_T}$ac_cv_search_cos" >&6
3800if test "$ac_cv_search_cos" != no; then
3801  test "$ac_cv_search_cos" = "none required" || LIBS="$ac_cv_search_cos $LIBS"
3802
3803fi
3804
3805
3806
3807
3808echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
3809echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
3810if test "${ac_cv_cxx_namespaces+set}" = set; then
3811  echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
3813  ac_ext=cc
3814ac_cpp='$CXXCPP $CPPFLAGS'
3815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818
3819 cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825namespace Outer { namespace Inner { int i = 0; }}
3826int
3827main ()
3828{
3829using namespace Outer::Inner; return i;
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834rm -f conftest.$ac_objext
3835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836  (eval $ac_compile) 2>conftest.er1
3837  ac_status=$?
3838  grep -v '^ *+' conftest.er1 >conftest.err
3839  rm -f conftest.er1
3840  cat conftest.err >&5
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); } &&
3843	 { ac_try='test -z "$ac_cxx_werror_flag"
3844			 || test ! -s conftest.err'
3845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846  (eval $ac_try) 2>&5
3847  ac_status=$?
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); }; } &&
3850	 { ac_try='test -s conftest.$ac_objext'
3851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852  (eval $ac_try) 2>&5
3853  ac_status=$?
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); }; }; then
3856  ac_cv_cxx_namespaces=yes
3857else
3858  echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861ac_cv_cxx_namespaces=no
3862fi
3863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_ext=cc
3865ac_cpp='$CXXCPP $CPPFLAGS'
3866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3869
3870
3871fi
3872echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
3873echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
3874if test "$ac_cv_cxx_namespaces" = yes; then
3875
3876cat >>confdefs.h <<\_ACEOF
3877#define HAVE_NAMESPACES 1
3878_ACEOF
3879
3880fi
3881
3882echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
3883echo $ECHO_N "checking whether the compiler supports ISO C++ standard library... $ECHO_C" >&6
3884if test "${ac_cv_cxx_have_std+set}" = set; then
3885  echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
3887
3888 ac_ext=cc
3889ac_cpp='$CXXCPP $CPPFLAGS'
3890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3893
3894 cat >conftest.$ac_ext <<_ACEOF
3895/* confdefs.h.  */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h.  */
3900#include <iostream>
3901#include <map>
3902#include <iomanip>
3903#include <cmath>
3904#ifdef HAVE_NAMESPACES
3905using namespace std;
3906#endif
3907
3908_ACEOF
3909rm -f conftest.$ac_objext
3910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911  (eval $ac_compile) 2>conftest.er1
3912  ac_status=$?
3913  grep -v '^ *+' conftest.er1 >conftest.err
3914  rm -f conftest.er1
3915  cat conftest.err >&5
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); } &&
3918	 { ac_try='test -z "$ac_cxx_werror_flag"
3919			 || test ! -s conftest.err'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; } &&
3925	 { ac_try='test -s conftest.$ac_objext'
3926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927  (eval $ac_try) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); }; }; then
3931  ac_cv_cxx_have_std=yes
3932else
3933  echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936ac_cv_cxx_have_std=no
3937fi
3938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_ext=cc
3940ac_cpp='$CXXCPP $CPPFLAGS'
3941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944
3945
3946fi
3947echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std" >&5
3948echo "${ECHO_T}$ac_cv_cxx_have_std" >&6
3949if test "$ac_cv_cxx_have_std" = yes; then
3950
3951cat >>confdefs.h <<\_ACEOF
3952#define HAVE_STD
3953_ACEOF
3954
3955fi
3956
3957
3958echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
3959echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6
3960if test "${ac_cv_cxx_bool+set}" = set; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963  ac_ext=cc
3964ac_cpp='$CXXCPP $CPPFLAGS'
3965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3968
3969  cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h.  */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h.  */
3975
3976int f(int  x){return x;}
3977int f(char x){return x;}
3978int f(bool x){return x;}
3979
3980int
3981main ()
3982{
3983bool b = true; return f(b);
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988rm -f conftest.$ac_objext
3989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990  (eval $ac_compile) 2>conftest.er1
3991  ac_status=$?
3992  grep -v '^ *+' conftest.er1 >conftest.err
3993  rm -f conftest.er1
3994  cat conftest.err >&5
3995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996  (exit $ac_status); } &&
3997	 { ac_try='test -z "$ac_cxx_werror_flag"
3998			 || test ! -s conftest.err'
3999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000  (eval $ac_try) 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; } &&
4004	 { ac_try='test -s conftest.$ac_objext'
4005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006  (eval $ac_try) 2>&5
4007  ac_status=$?
4008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); }; }; then
4010  ac_cv_cxx_bool=yes
4011else
4012  echo "$as_me: failed program was:" >&5
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015ac_cv_cxx_bool=no
4016fi
4017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018  ac_ext=cc
4019ac_cpp='$CXXCPP $CPPFLAGS'
4020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4023
4024fi
4025echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5
4026echo "${ECHO_T}$ac_cv_cxx_bool" >&6
4027if test "$ac_cv_cxx_bool" = yes; then
4028
4029cat >>confdefs.h <<\_ACEOF
4030#define HAVE_BOOL
4031_ACEOF
4032
4033fi
4034
4035
4036
4037
4038echo "$as_me:$LINENO: checking for VC++ style set_new_handler" >&5
4039echo $ECHO_N "checking for VC++ style set_new_handler... $ECHO_C" >&6
4040if test "${ac_cv_vcpp_set_new_handler+set}" = set; then
4041  echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043   ac_ext=cc
4044ac_cpp='$CXXCPP $CPPFLAGS'
4045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4048
4049set_new_handler_includes="
4050#ifdef HAVE_STD
4051# include <new>
4052# ifdef HAVE_NAMESPACES
4053    using namespace std;
4054# endif
4055#else
4056# include <new.h>
4057#endif"
4058  cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h.  */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h.  */
4064$set_new_handler_includes
4065int OutOfMemory(size_t) { return 0; }
4066
4067int
4068main ()
4069{
4070 _set_new_handler(OutOfMemory);
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075rm -f conftest.$ac_objext conftest$ac_exeext
4076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4077  (eval $ac_link) 2>conftest.er1
4078  ac_status=$?
4079  grep -v '^ *+' conftest.er1 >conftest.err
4080  rm -f conftest.er1
4081  cat conftest.err >&5
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); } &&
4084	 { ac_try='test -z "$ac_cxx_werror_flag"
4085			 || test ! -s conftest.err'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; } &&
4091	 { ac_try='test -s conftest$ac_exeext'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; }; then
4097  ac_cv_vcpp_set_new_handler=yes
4098else
4099  echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
4101
4102ac_cv_vcpp_set_new_handler=no
4103fi
4104rm -f conftest.err conftest.$ac_objext \
4105      conftest$ac_exeext conftest.$ac_ext
4106  ac_ext=cc
4107ac_cpp='$CXXCPP $CPPFLAGS'
4108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111
4112
4113fi
4114echo "$as_me:$LINENO: result: $ac_cv_vcpp_set_new_handler" >&5
4115echo "${ECHO_T}$ac_cv_vcpp_set_new_handler" >&6
4116
4117if test "$ac_cv_vcpp_set_new_handler" = yes; then
4118
4119cat >>confdefs.h <<\_ACEOF
4120#define HAVE_VCPP_SET_NEW_HANDLER
4121_ACEOF
4122
4123else
4124  echo "$as_me:$LINENO: checking for standard set_new_handler" >&5
4125echo $ECHO_N "checking for standard set_new_handler... $ECHO_C" >&6
4126if test "${ac_cv_standard_set_new_handler+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h.  */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h.  */
4135$set_new_handler_includes
4136void OutOfMemory() { return; }
4137
4138int
4139main ()
4140{
4141 set_new_handler(OutOfMemory);
4142  ;
4143  return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext conftest$ac_exeext
4147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148  (eval $ac_link) 2>conftest.er1
4149  ac_status=$?
4150  grep -v '^ *+' conftest.er1 >conftest.err
4151  rm -f conftest.er1
4152  cat conftest.err >&5
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); } &&
4155	 { ac_try='test -z "$ac_cxx_werror_flag"
4156			 || test ! -s conftest.err'
4157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158  (eval $ac_try) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); }; } &&
4162	 { ac_try='test -s conftest$ac_exeext'
4163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164  (eval $ac_try) 2>&5
4165  ac_status=$?
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); }; }; then
4168  ac_cv_standard_set_new_handler=yes
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173ac_cv_standard_set_new_handler=no
4174fi
4175rm -f conftest.err conftest.$ac_objext \
4176      conftest$ac_exeext conftest.$ac_ext
4177fi
4178echo "$as_me:$LINENO: result: $ac_cv_standard_set_new_handler" >&5
4179echo "${ECHO_T}$ac_cv_standard_set_new_handler" >&6
4180 if test "$ac_cv_standard_set_new_handler" != yes; then
4181  { { echo "$as_me:$LINENO: error: Could not find standard set_new_handler function" >&5
4182echo "$as_me: error: Could not find standard set_new_handler function" >&2;}
4183   { (exit 1); exit 1; }; }
4184fi
4185
4186
4187fi
4188
4189
4190echo "$as_me:$LINENO: checking for compiler error on discard of const qualifier" >&5
4191echo $ECHO_N "checking for compiler error on discard of const qualifier... $ECHO_C" >&6
4192if test "${ac_cv_error_discard_const+set}" = set; then
4193  echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195  cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h.  */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4200/* end confdefs.h.  */
4201
4202char * foo(char * arg) { return arg; }
4203const char * const_foo(const char * arg) { return foo(arg); }
4204
4205_ACEOF
4206rm -f conftest.$ac_objext
4207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208  (eval $ac_compile) 2>conftest.er1
4209  ac_status=$?
4210  grep -v '^ *+' conftest.er1 >conftest.err
4211  rm -f conftest.er1
4212  cat conftest.err >&5
4213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214  (exit $ac_status); } &&
4215	 { ac_try='test -z "$ac_cxx_werror_flag"
4216			 || test ! -s conftest.err'
4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218  (eval $ac_try) 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); }; } &&
4222	 { ac_try='test -s conftest.$ac_objext'
4223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224  (eval $ac_try) 2>&5
4225  ac_status=$?
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); }; }; then
4228  ac_cv_error_discard_const=no
4229else
4230  echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233ac_cv_error_discard_const=yes
4234fi
4235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236
4237fi
4238echo "$as_me:$LINENO: result: $ac_cv_error_discard_const" >&5
4239echo "${ECHO_T}$ac_cv_error_discard_const" >&6
4240if test "$ac_cv_error_discard_const" = yes; then
4241
4242cat >>confdefs.h <<\_ACEOF
4243#define HAVE_ERROR_DISCARD_CONST
4244_ACEOF
4245
4246fi
4247
4248
4249
4250
4251
4252for ac_header in wchar.h string.h strings.h memory.h
4253do
4254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4255if eval "test \"\${$as_ac_Header+set}\" = set"; then
4256  echo "$as_me:$LINENO: checking for $ac_header" >&5
4257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4258if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259  echo $ECHO_N "(cached) $ECHO_C" >&6
4260fi
4261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4263else
4264  # Is the header compilable?
4265echo "$as_me:$LINENO: checking $ac_header usability" >&5
4266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4267cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h.  */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h.  */
4273$ac_includes_default
4274#include <$ac_header>
4275_ACEOF
4276rm -f conftest.$ac_objext
4277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4278  (eval $ac_compile) 2>conftest.er1
4279  ac_status=$?
4280  grep -v '^ *+' conftest.er1 >conftest.err
4281  rm -f conftest.er1
4282  cat conftest.err >&5
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); } &&
4285	 { ac_try='test -z "$ac_cxx_werror_flag"
4286			 || test ! -s conftest.err'
4287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288  (eval $ac_try) 2>&5
4289  ac_status=$?
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); }; } &&
4292	 { ac_try='test -s conftest.$ac_objext'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; }; then
4298  ac_header_compiler=yes
4299else
4300  echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303ac_header_compiler=no
4304fi
4305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4307echo "${ECHO_T}$ac_header_compiler" >&6
4308
4309# Is the header present?
4310echo "$as_me:$LINENO: checking $ac_header presence" >&5
4311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4312cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h.  */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h.  */
4318#include <$ac_header>
4319_ACEOF
4320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322  ac_status=$?
4323  grep -v '^ *+' conftest.er1 >conftest.err
4324  rm -f conftest.er1
4325  cat conftest.err >&5
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); } >/dev/null; then
4328  if test -s conftest.err; then
4329    ac_cpp_err=$ac_cxx_preproc_warn_flag
4330    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4331  else
4332    ac_cpp_err=
4333  fi
4334else
4335  ac_cpp_err=yes
4336fi
4337if test -z "$ac_cpp_err"; then
4338  ac_header_preproc=yes
4339else
4340  echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343  ac_header_preproc=no
4344fi
4345rm -f conftest.err conftest.$ac_ext
4346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4347echo "${ECHO_T}$ac_header_preproc" >&6
4348
4349# So?  What about this header?
4350case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4351  yes:no: )
4352    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4356    ac_header_preproc=yes
4357    ;;
4358  no:yes:* )
4359    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4361    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4362echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4363    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4365    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4366echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4369    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4371    (
4372      cat <<\_ASBOX
4373## -------------------------------- ##
4374## Report this to the jikes lists.  ##
4375## -------------------------------- ##
4376_ASBOX
4377    ) |
4378      sed "s/^/$as_me: WARNING:     /" >&2
4379    ;;
4380esac
4381echo "$as_me:$LINENO: checking for $ac_header" >&5
4382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  eval "$as_ac_Header=\$ac_header_preproc"
4387fi
4388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4390
4391fi
4392if test `eval echo '${'$as_ac_Header'}'` = yes; then
4393  cat >>confdefs.h <<_ACEOF
4394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395_ACEOF
4396
4397fi
4398
4399done
4400
4401
4402
4403
4404
4405
4406
4407
4408for ac_func in wcslen wcscpy wcsncpy wcscat wcscmp wcsncmp
4409do
4410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4411echo "$as_me:$LINENO: checking for $ac_func" >&5
4412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4413if eval "test \"\${$as_ac_var+set}\" = set"; then
4414  echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416  cat >conftest.$ac_ext <<_ACEOF
4417/* confdefs.h.  */
4418_ACEOF
4419cat confdefs.h >>conftest.$ac_ext
4420cat >>conftest.$ac_ext <<_ACEOF
4421/* end confdefs.h.  */
4422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4423   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4424#define $ac_func innocuous_$ac_func
4425
4426/* System header to define __stub macros and hopefully few prototypes,
4427    which can conflict with char $ac_func (); below.
4428    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429    <limits.h> exists even on freestanding compilers.  */
4430
4431#ifdef __STDC__
4432# include <limits.h>
4433#else
4434# include <assert.h>
4435#endif
4436
4437#undef $ac_func
4438
4439/* Override any gcc2 internal prototype to avoid an error.  */
4440#ifdef __cplusplus
4441extern "C"
4442{
4443#endif
4444/* We use char because int might match the return type of a gcc2
4445   builtin and then its argument prototype would still apply.  */
4446char $ac_func ();
4447/* The GNU C library defines this for functions which it implements
4448    to always fail with ENOSYS.  Some functions are actually named
4449    something starting with __ and the normal name is an alias.  */
4450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4451choke me
4452#else
4453char (*f) () = $ac_func;
4454#endif
4455#ifdef __cplusplus
4456}
4457#endif
4458
4459int
4460main ()
4461{
4462return f != $ac_func;
4463  ;
4464  return 0;
4465}
4466_ACEOF
4467rm -f conftest.$ac_objext conftest$ac_exeext
4468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469  (eval $ac_link) 2>conftest.er1
4470  ac_status=$?
4471  grep -v '^ *+' conftest.er1 >conftest.err
4472  rm -f conftest.er1
4473  cat conftest.err >&5
4474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475  (exit $ac_status); } &&
4476	 { ac_try='test -z "$ac_cxx_werror_flag"
4477			 || test ! -s conftest.err'
4478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479  (eval $ac_try) 2>&5
4480  ac_status=$?
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); }; } &&
4483	 { ac_try='test -s conftest$ac_exeext'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; }; then
4489  eval "$as_ac_var=yes"
4490else
4491  echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494eval "$as_ac_var=no"
4495fi
4496rm -f conftest.err conftest.$ac_objext \
4497      conftest$ac_exeext conftest.$ac_ext
4498fi
4499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4500echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4501if test `eval echo '${'$as_ac_var'}'` = yes; then
4502  cat >>confdefs.h <<_ACEOF
4503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4504_ACEOF
4505
4506fi
4507done
4508
4509
4510
4511
4512wcs_funcs_includes="
4513#ifdef HAVE_STRING_H
4514# if !STDC_HEADERS && HAVE_MEMORY_H
4515#  include <memory.h>
4516# endif
4517# include <string.h>
4518#else
4519# ifdef HAVE_STRINGS_H
4520#  include <strings.h>
4521# endif
4522#endif
4523#ifdef HAVE_WCHAR_H
4524# include <wchar.h>
4525#endif
4526"
4527
4528echo "$as_me:$LINENO: checking for wint_t" >&5
4529echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4530if test "${ac_cv_type_wint_t+set}" = set; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539$wcs_funcs_includes
4540
4541int
4542main ()
4543{
4544if ((wint_t *) 0)
4545  return 0;
4546if (sizeof (wint_t))
4547  return 0;
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext
4553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554  (eval $ac_compile) 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } &&
4561	 { ac_try='test -z "$ac_cxx_werror_flag"
4562			 || test ! -s conftest.err'
4563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564  (eval $ac_try) 2>&5
4565  ac_status=$?
4566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567  (exit $ac_status); }; } &&
4568	 { ac_try='test -s conftest.$ac_objext'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; }; then
4574  ac_cv_type_wint_t=yes
4575else
4576  echo "$as_me: failed program was:" >&5
4577sed 's/^/| /' conftest.$ac_ext >&5
4578
4579ac_cv_type_wint_t=no
4580fi
4581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582fi
4583echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
4584echo "${ECHO_T}$ac_cv_type_wint_t" >&6
4585if test $ac_cv_type_wint_t = yes; then
4586  ac_cv_type_wint_t=yes
4587else
4588  ac_cv_type_wint_t=no
4589fi
4590
4591if test "$ac_cv_type_wint_t" = yes; then
4592
4593cat >>confdefs.h <<\_ACEOF
4594#define HAVE_WINT_T 1
4595_ACEOF
4596
4597fi
4598
4599
4600echo "$as_me:$LINENO: checking call wcslen" >&5
4601echo $ECHO_N "checking call wcslen... $ECHO_C" >&6
4602if test "${ac_cv_call_wcslen+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611$wcs_funcs_includes
4612int
4613main ()
4614{
4615wcslen(NULL)
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620rm -f conftest.$ac_objext
4621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622  (eval $ac_compile) 2>conftest.er1
4623  ac_status=$?
4624  grep -v '^ *+' conftest.er1 >conftest.err
4625  rm -f conftest.er1
4626  cat conftest.err >&5
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); } &&
4629	 { ac_try='test -z "$ac_cxx_werror_flag"
4630			 || test ! -s conftest.err'
4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632  (eval $ac_try) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; } &&
4636	 { ac_try='test -s conftest.$ac_objext'
4637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638  (eval $ac_try) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }; }; then
4642  ac_cv_call_wcslen=yes
4643else
4644  echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647ac_cv_call_wcslen=no
4648fi
4649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4650
4651fi
4652echo "$as_me:$LINENO: result: $ac_cv_call_wcslen" >&5
4653echo "${ECHO_T}$ac_cv_call_wcslen" >&6
4654
4655if test "$ac_cv_call_wcslen" = yes; then
4656   echo "$as_me:$LINENO: checking for error calling wcslen with const argument" >&5
4657echo $ECHO_N "checking for error calling wcslen with const argument... $ECHO_C" >&6
4658if test "${ac_cv_error_call_wcslen_const+set}" = set; then
4659  echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661  cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h.  */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h.  */
4667$wcs_funcs_includes
4668int
4669main ()
4670{
4671
4672const wchar_t * s = NULL;
4673wcslen(s);
4674
4675  ;
4676  return 0;
4677}
4678_ACEOF
4679rm -f conftest.$ac_objext
4680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681  (eval $ac_compile) 2>conftest.er1
4682  ac_status=$?
4683  grep -v '^ *+' conftest.er1 >conftest.err
4684  rm -f conftest.er1
4685  cat conftest.err >&5
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); } &&
4688	 { ac_try='test -z "$ac_cxx_werror_flag"
4689			 || test ! -s conftest.err'
4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691  (eval $ac_try) 2>&5
4692  ac_status=$?
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); }; } &&
4695	 { ac_try='test -s conftest.$ac_objext'
4696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697  (eval $ac_try) 2>&5
4698  ac_status=$?
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); }; }; then
4701  ac_cv_error_call_wcslen_const=no
4702else
4703  echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706ac_cv_error_call_wcslen_const=yes
4707fi
4708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709
4710fi
4711echo "$as_me:$LINENO: result: $ac_cv_error_call_wcslen_const" >&5
4712echo "${ECHO_T}$ac_cv_error_call_wcslen_const" >&6
4713 if test "$ac_cv_error_call_wcslen_const" = yes; then
4714
4715
4716cat >>confdefs.h <<\_ACEOF
4717#define HAVE_ERROR_CALL_WCSLEN_CONST
4718_ACEOF
4719
4720
4721    echo "$as_me:$LINENO: checking fix for calling wcslen with non const argument" >&5
4722echo $ECHO_N "checking fix for calling wcslen with non const argument... $ECHO_C" >&6
4723if test "${ac_cv_call_wcslen_non_const+set}" = set; then
4724  echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726  cat >conftest.$ac_ext <<_ACEOF
4727/* confdefs.h.  */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h.  */
4732$wcs_funcs_includes
4733int
4734main ()
4735{
4736
4737  const wchar_t * s = NULL;
4738  wcslen(
4739  #ifdef HAVE_ERROR_CALL_WCSLEN_CONST
4740           (wchar_t *)
4741  #endif
4742         s);
4743
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748rm -f conftest.$ac_objext
4749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750  (eval $ac_compile) 2>conftest.er1
4751  ac_status=$?
4752  grep -v '^ *+' conftest.er1 >conftest.err
4753  rm -f conftest.er1
4754  cat conftest.err >&5
4755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756  (exit $ac_status); } &&
4757	 { ac_try='test -z "$ac_cxx_werror_flag"
4758			 || test ! -s conftest.err'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; } &&
4764	 { ac_try='test -s conftest.$ac_objext'
4765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766  (eval $ac_try) 2>&5
4767  ac_status=$?
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); }; }; then
4770  ac_cv_call_wcslen_non_const=yes
4771else
4772  echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775{ { echo "$as_me:$LINENO: error: Could not compile with wcslen const cast fix" >&5
4776echo "$as_me: error: Could not compile with wcslen const cast fix" >&2;}
4777   { (exit 1); exit 1; }; }
4778
4779fi
4780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781fi
4782echo "$as_me:$LINENO: result: $ac_cv_call_wcslen_non_const" >&5
4783echo "${ECHO_T}$ac_cv_call_wcslen_non_const" >&6
4784fi
4785
4786
4787fi
4788
4789
4790echo "$as_me:$LINENO: checking for presence of ostream << const unsigned char *" >&5
4791echo $ECHO_N "checking for presence of ostream << const unsigned char *... $ECHO_C" >&6
4792if test "${ac_cv_cxx_ostream_const_unsigned_char_ptr+set}" = set; then
4793  echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795  cat >conftest.$ac_ext <<_ACEOF
4796/* confdefs.h.  */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h.  */
4801
4802#ifdef HAVE_STD
4803# include <iostream>
4804using namespace std;
4805#else
4806# include <iostream.h>
4807#endif
4808void foo(const unsigned char *arg) { cerr << arg; }
4809
4810_ACEOF
4811rm -f conftest.$ac_objext
4812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813  (eval $ac_compile) 2>conftest.er1
4814  ac_status=$?
4815  grep -v '^ *+' conftest.er1 >conftest.err
4816  rm -f conftest.er1
4817  cat conftest.err >&5
4818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819  (exit $ac_status); } &&
4820	 { ac_try='test -z "$ac_cxx_werror_flag"
4821			 || test ! -s conftest.err'
4822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823  (eval $ac_try) 2>&5
4824  ac_status=$?
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); }; } &&
4827	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4833  ac_cv_cxx_ostream_const_unsigned_char_ptr=yes
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838ac_cv_cxx_ostream_const_unsigned_char_ptr=no
4839fi
4840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841
4842fi
4843echo "$as_me:$LINENO: result: $ac_cv_cxx_ostream_const_unsigned_char_ptr" >&5
4844echo "${ECHO_T}$ac_cv_cxx_ostream_const_unsigned_char_ptr" >&6
4845if test "$ac_cv_cxx_ostream_const_unsigned_char_ptr" = yes; then
4846
4847cat >>confdefs.h <<\_ACEOF
4848#define HAVE_OSTREAM_CONST_UNSIGNED_CHAR_PTR
4849_ACEOF
4850
4851fi
4852
4853
4854cat >confcache <<\_ACEOF
4855# This file is a shell script that caches the results of configure
4856# tests run on this system so they can be shared between configure
4857# scripts and configure runs, see configure's option --config-cache.
4858# It is not useful on other systems.  If it contains results you don't
4859# want to keep, you may remove or edit it.
4860#
4861# config.status only pays attention to the cache file if you give it
4862# the --recheck option to rerun configure.
4863#
4864# `ac_cv_env_foo' variables (set or unset) will be overridden when
4865# loading this file, other *unset* `ac_cv_foo' will be assigned the
4866# following values.
4867
4868_ACEOF
4869
4870# The following way of writing the cache mishandles newlines in values,
4871# but we know of no workaround that is simple, portable, and efficient.
4872# So, don't put newlines in cache variables' values.
4873# Ultrix sh set writes to stderr and can't be redirected directly,
4874# and sets the high bit in the cache file unless we assign to the vars.
4875{
4876  (set) 2>&1 |
4877    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4878    *ac_space=\ *)
4879      # `set' does not quote correctly, so add quotes (double-quote
4880      # substitution turns \\\\ into \\, and sed turns \\ into \).
4881      sed -n \
4882	"s/'/'\\\\''/g;
4883	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4884      ;;
4885    *)
4886      # `set' quotes correctly as required by POSIX, so do not add quotes.
4887      sed -n \
4888	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4889      ;;
4890    esac;
4891} |
4892  sed '
4893     t clear
4894     : clear
4895     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4896     t end
4897     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4898     : end' >>confcache
4899if diff $cache_file confcache >/dev/null 2>&1; then :; else
4900  if test -w $cache_file; then
4901    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4902    cat confcache >$cache_file
4903  else
4904    echo "not updating unwritable cache $cache_file"
4905  fi
4906fi
4907rm -f confcache
4908
4909
4910for ac_header in iconv.h
4911do
4912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4913if eval "test \"\${$as_ac_Header+set}\" = set"; then
4914  echo "$as_me:$LINENO: checking for $ac_header" >&5
4915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4916if eval "test \"\${$as_ac_Header+set}\" = set"; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918fi
4919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921else
4922  # Is the header compilable?
4923echo "$as_me:$LINENO: checking $ac_header usability" >&5
4924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4925cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931$ac_includes_default
4932#include <$ac_header>
4933_ACEOF
4934rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936  (eval $ac_compile) 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } &&
4943	 { ac_try='test -z "$ac_cxx_werror_flag"
4944			 || test ! -s conftest.err'
4945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); }; } &&
4950	 { ac_try='test -s conftest.$ac_objext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  ac_header_compiler=yes
4957else
4958  echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961ac_header_compiler=no
4962fi
4963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4965echo "${ECHO_T}$ac_header_compiler" >&6
4966
4967# Is the header present?
4968echo "$as_me:$LINENO: checking $ac_header presence" >&5
4969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4970cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h.  */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h.  */
4976#include <$ac_header>
4977_ACEOF
4978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4979  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } >/dev/null; then
4986  if test -s conftest.err; then
4987    ac_cpp_err=$ac_cxx_preproc_warn_flag
4988    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4989  else
4990    ac_cpp_err=
4991  fi
4992else
4993  ac_cpp_err=yes
4994fi
4995if test -z "$ac_cpp_err"; then
4996  ac_header_preproc=yes
4997else
4998  echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001  ac_header_preproc=no
5002fi
5003rm -f conftest.err conftest.$ac_ext
5004echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5005echo "${ECHO_T}$ac_header_preproc" >&6
5006
5007# So?  What about this header?
5008case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5009  yes:no: )
5010    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5012    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5013echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5014    ac_header_preproc=yes
5015    ;;
5016  no:yes:* )
5017    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5019    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5020echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5021    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5022echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5023    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5024echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5025    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5027    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5028echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5029    (
5030      cat <<\_ASBOX
5031## -------------------------------- ##
5032## Report this to the jikes lists.  ##
5033## -------------------------------- ##
5034_ASBOX
5035    ) |
5036      sed "s/^/$as_me: WARNING:     /" >&2
5037    ;;
5038esac
5039echo "$as_me:$LINENO: checking for $ac_header" >&5
5040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5041if eval "test \"\${$as_ac_Header+set}\" = set"; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  eval "$as_ac_Header=\$ac_header_preproc"
5045fi
5046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5048
5049fi
5050if test `eval echo '${'$as_ac_Header'}'` = yes; then
5051  cat >>confdefs.h <<_ACEOF
5052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5053_ACEOF
5054
5055fi
5056
5057done
5058
5059
5060if test "$ac_cv_header_iconv_h" = yes -a "x$with_iconv" != "xno" ; then
5061  echo "$as_me:$LINENO: checking for library containing iconv" >&5
5062echo $ECHO_N "checking for library containing iconv... $ECHO_C" >&6
5063if test "${ac_cv_search_iconv+set}" = set; then
5064  echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066  ac_func_search_save_LIBS=$LIBS
5067ac_cv_search_iconv=no
5068cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074
5075/* Override any gcc2 internal prototype to avoid an error.  */
5076#ifdef __cplusplus
5077extern "C"
5078#endif
5079/* We use char because int might match the return type of a gcc2
5080   builtin and then its argument prototype would still apply.  */
5081char iconv ();
5082int
5083main ()
5084{
5085iconv ();
5086  ;
5087  return 0;
5088}
5089_ACEOF
5090rm -f conftest.$ac_objext conftest$ac_exeext
5091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092  (eval $ac_link) 2>conftest.er1
5093  ac_status=$?
5094  grep -v '^ *+' conftest.er1 >conftest.err
5095  rm -f conftest.er1
5096  cat conftest.err >&5
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); } &&
5099	 { ac_try='test -z "$ac_cxx_werror_flag"
5100			 || test ! -s conftest.err'
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); }; } &&
5106	 { ac_try='test -s conftest$ac_exeext'
5107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108  (eval $ac_try) 2>&5
5109  ac_status=$?
5110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111  (exit $ac_status); }; }; then
5112  ac_cv_search_iconv="none required"
5113else
5114  echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117fi
5118rm -f conftest.err conftest.$ac_objext \
5119      conftest$ac_exeext conftest.$ac_ext
5120if test "$ac_cv_search_iconv" = no; then
5121  for ac_lib in iconv; do
5122    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5123    cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h.  */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h.  */
5129
5130/* Override any gcc2 internal prototype to avoid an error.  */
5131#ifdef __cplusplus
5132extern "C"
5133#endif
5134/* We use char because int might match the return type of a gcc2
5135   builtin and then its argument prototype would still apply.  */
5136char iconv ();
5137int
5138main ()
5139{
5140iconv ();
5141  ;
5142  return 0;
5143}
5144_ACEOF
5145rm -f conftest.$ac_objext conftest$ac_exeext
5146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5147  (eval $ac_link) 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } &&
5154	 { ac_try='test -z "$ac_cxx_werror_flag"
5155			 || test ! -s conftest.err'
5156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157  (eval $ac_try) 2>&5
5158  ac_status=$?
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); }; } &&
5161	 { ac_try='test -s conftest$ac_exeext'
5162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163  (eval $ac_try) 2>&5
5164  ac_status=$?
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); }; }; then
5167  ac_cv_search_iconv="-l$ac_lib"
5168break
5169else
5170  echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173fi
5174rm -f conftest.err conftest.$ac_objext \
5175      conftest$ac_exeext conftest.$ac_ext
5176  done
5177fi
5178LIBS=$ac_func_search_save_LIBS
5179fi
5180echo "$as_me:$LINENO: result: $ac_cv_search_iconv" >&5
5181echo "${ECHO_T}$ac_cv_search_iconv" >&6
5182if test "$ac_cv_search_iconv" != no; then
5183  test "$ac_cv_search_iconv" = "none required" || LIBS="$ac_cv_search_iconv $LIBS"
5184
5185fi
5186
5187
5188echo "$as_me:$LINENO: checking for library containing libiconv_open" >&5
5189echo $ECHO_N "checking for library containing libiconv_open... $ECHO_C" >&6
5190if test "${ac_cv_search_libiconv_open+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193  ac_func_search_save_LIBS=$LIBS
5194ac_cv_search_libiconv_open=no
5195cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h.  */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h.  */
5201
5202/* Override any gcc2 internal prototype to avoid an error.  */
5203#ifdef __cplusplus
5204extern "C"
5205#endif
5206/* We use char because int might match the return type of a gcc2
5207   builtin and then its argument prototype would still apply.  */
5208char libiconv_open ();
5209int
5210main ()
5211{
5212libiconv_open ();
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217rm -f conftest.$ac_objext conftest$ac_exeext
5218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5219  (eval $ac_link) 2>conftest.er1
5220  ac_status=$?
5221  grep -v '^ *+' conftest.er1 >conftest.err
5222  rm -f conftest.er1
5223  cat conftest.err >&5
5224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225  (exit $ac_status); } &&
5226	 { ac_try='test -z "$ac_cxx_werror_flag"
5227			 || test ! -s conftest.err'
5228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229  (eval $ac_try) 2>&5
5230  ac_status=$?
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); }; } &&
5233	 { ac_try='test -s conftest$ac_exeext'
5234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235  (eval $ac_try) 2>&5
5236  ac_status=$?
5237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); }; }; then
5239  ac_cv_search_libiconv_open="none required"
5240else
5241  echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
5244fi
5245rm -f conftest.err conftest.$ac_objext \
5246      conftest$ac_exeext conftest.$ac_ext
5247if test "$ac_cv_search_libiconv_open" = no; then
5248  for ac_lib in iconv; do
5249    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5250    cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h.  */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h.  */
5256
5257/* Override any gcc2 internal prototype to avoid an error.  */
5258#ifdef __cplusplus
5259extern "C"
5260#endif
5261/* We use char because int might match the return type of a gcc2
5262   builtin and then its argument prototype would still apply.  */
5263char libiconv_open ();
5264int
5265main ()
5266{
5267libiconv_open ();
5268  ;
5269  return 0;
5270}
5271_ACEOF
5272rm -f conftest.$ac_objext conftest$ac_exeext
5273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5274  (eval $ac_link) 2>conftest.er1
5275  ac_status=$?
5276  grep -v '^ *+' conftest.er1 >conftest.err
5277  rm -f conftest.er1
5278  cat conftest.err >&5
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); } &&
5281	 { ac_try='test -z "$ac_cxx_werror_flag"
5282			 || test ! -s conftest.err'
5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284  (eval $ac_try) 2>&5
5285  ac_status=$?
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); }; } &&
5288	 { ac_try='test -s conftest$ac_exeext'
5289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290  (eval $ac_try) 2>&5
5291  ac_status=$?
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); }; }; then
5294  ac_cv_search_libiconv_open="-l$ac_lib"
5295break
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300fi
5301rm -f conftest.err conftest.$ac_objext \
5302      conftest$ac_exeext conftest.$ac_ext
5303  done
5304fi
5305LIBS=$ac_func_search_save_LIBS
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_search_libiconv_open" >&5
5308echo "${ECHO_T}$ac_cv_search_libiconv_open" >&6
5309if test "$ac_cv_search_libiconv_open" != no; then
5310  test "$ac_cv_search_libiconv_open" = "none required" || LIBS="$ac_cv_search_libiconv_open $LIBS"
5311
5312fi
5313
5314
5315iconv_includes="
5316#ifdef HAVE_STRING_H
5317# if !STDC_HEADERS && HAVE_MEMORY_H
5318#  include <memory.h>
5319# endif
5320# include <string.h>
5321#else
5322# ifdef HAVE_STRINGS_H
5323#  include <strings.h>
5324# endif
5325#endif
5326#ifdef HAVE_WCHAR_H
5327# include <wchar.h>
5328#endif
5329#ifdef HAVE_ICONV_H
5330# include <iconv.h>
5331#endif"
5332
5333echo "$as_me:$LINENO: checking simple call to iconv" >&5
5334echo $ECHO_N "checking simple call to iconv... $ECHO_C" >&6
5335if test "${ac_cv_call_iconv+set}" = set; then
5336  echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338
5339cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345$iconv_includes
5346int
5347main ()
5348{
5349iconv(0, NULL, NULL, NULL, NULL)
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356  (eval $ac_compile) 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } &&
5363	 { ac_try='test -z "$ac_cxx_werror_flag"
5364			 || test ! -s conftest.err'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; } &&
5370	 { ac_try='test -s conftest.$ac_objext'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; }; then
5376  ac_cv_call_iconv=yes
5377else
5378  echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_cv_call_iconv=no
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385fi
5386echo "$as_me:$LINENO: result: $ac_cv_call_iconv" >&5
5387echo "${ECHO_T}$ac_cv_call_iconv" >&6
5388
5389echo "$as_me:$LINENO: checking for error calling iconv with const 2nd argument" >&5
5390echo $ECHO_N "checking for error calling iconv with const 2nd argument... $ECHO_C" >&6
5391if test "${ac_cv_error_call_iconv_const+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h.  */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h.  */
5400$iconv_includes
5401int
5402main ()
5403{
5404
5405const char ** s = NULL;
5406iconv(0, s, NULL, NULL, NULL);
5407
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412rm -f conftest.$ac_objext
5413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414  (eval $ac_compile) 2>conftest.er1
5415  ac_status=$?
5416  grep -v '^ *+' conftest.er1 >conftest.err
5417  rm -f conftest.er1
5418  cat conftest.err >&5
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); } &&
5421	 { ac_try='test -z "$ac_cxx_werror_flag"
5422			 || test ! -s conftest.err'
5423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424  (eval $ac_try) 2>&5
5425  ac_status=$?
5426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427  (exit $ac_status); }; } &&
5428	 { ac_try='test -s conftest.$ac_objext'
5429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430  (eval $ac_try) 2>&5
5431  ac_status=$?
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); }; }; then
5434  ac_cv_error_call_iconv_const=no
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439ac_cv_error_call_iconv_const=yes
5440fi
5441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442
5443fi
5444echo "$as_me:$LINENO: result: $ac_cv_error_call_iconv_const" >&5
5445echo "${ECHO_T}$ac_cv_error_call_iconv_const" >&6
5446
5447if test "$ac_cv_error_call_iconv_const" = yes; then
5448
5449cat >>confdefs.h <<\_ACEOF
5450#define HAVE_ERROR_CALL_ICONV_CONST
5451_ACEOF
5452
5453
5454    echo "$as_me:$LINENO: checking fix for calling iconv with non const argument" >&5
5455echo $ECHO_N "checking fix for calling iconv with non const argument... $ECHO_C" >&6
5456if test "${ac_cv_call_iconv_non_const+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459  cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h.  */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h.  */
5465$iconv_includes
5466int
5467main ()
5468{
5469
5470  const wchar_t * s = NULL;
5471  iconv( 0,
5472  #ifdef HAVE_ERROR_CALL_ICONV_CONST
5473           (char **)
5474  #endif
5475         s, NULL, NULL, NULL);
5476
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481rm -f conftest.$ac_objext
5482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483  (eval $ac_compile) 2>conftest.er1
5484  ac_status=$?
5485  grep -v '^ *+' conftest.er1 >conftest.err
5486  rm -f conftest.er1
5487  cat conftest.err >&5
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); } &&
5490	 { ac_try='test -z "$ac_cxx_werror_flag"
5491			 || test ! -s conftest.err'
5492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493  (eval $ac_try) 2>&5
5494  ac_status=$?
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); }; } &&
5497	 { ac_try='test -s conftest.$ac_objext'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; }; then
5503  ac_cv_call_iconv_non_const=yes
5504else
5505  echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508{ { echo "$as_me:$LINENO: error: Could not compile with iconv const cast fix" >&5
5509echo "$as_me: error: Could not compile with iconv const cast fix" >&2;}
5510   { (exit 1); exit 1; }; }
5511
5512fi
5513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514fi
5515echo "$as_me:$LINENO: result: $ac_cv_call_iconv_non_const" >&5
5516echo "${ECHO_T}$ac_cv_call_iconv_non_const" >&6
5517fi
5518
5519
5520echo "$as_me:$LINENO: checking for wchar_t" >&5
5521echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
5522if test "${ac_cv_type_wchar_t+set}" = set; then
5523  echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
5525  cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h.  */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h.  */
5531$ac_includes_default
5532int
5533main ()
5534{
5535if ((wchar_t *) 0)
5536  return 0;
5537if (sizeof (wchar_t))
5538  return 0;
5539  ;
5540  return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext
5544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545  (eval $ac_compile) 2>conftest.er1
5546  ac_status=$?
5547  grep -v '^ *+' conftest.er1 >conftest.err
5548  rm -f conftest.er1
5549  cat conftest.err >&5
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); } &&
5552	 { ac_try='test -z "$ac_cxx_werror_flag"
5553			 || test ! -s conftest.err'
5554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555  (eval $ac_try) 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); }; } &&
5559	 { ac_try='test -s conftest.$ac_objext'
5560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561  (eval $ac_try) 2>&5
5562  ac_status=$?
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }; }; then
5565  ac_cv_type_wchar_t=yes
5566else
5567  echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570ac_cv_type_wchar_t=no
5571fi
5572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
5575echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
5576
5577echo "$as_me:$LINENO: checking size of wchar_t" >&5
5578echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
5579if test "${ac_cv_sizeof_wchar_t+set}" = set; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  if test "$ac_cv_type_wchar_t" = yes; then
5583  # The cast to unsigned long works around a bug in the HP C Compiler
5584  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5585  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5586  # This bug is HP SR number 8606223364.
5587  if test "$cross_compiling" = yes; then
5588  # Depending upon the size, compute the lo and hi bounds.
5589cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h.  */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h.  */
5595$ac_includes_default
5596int
5597main ()
5598{
5599static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
5600test_array [0] = 0
5601
5602  ;
5603  return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608  (eval $ac_compile) 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } &&
5615	 { ac_try='test -z "$ac_cxx_werror_flag"
5616			 || test ! -s conftest.err'
5617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618  (eval $ac_try) 2>&5
5619  ac_status=$?
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); }; } &&
5622	 { ac_try='test -s conftest.$ac_objext'
5623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624  (eval $ac_try) 2>&5
5625  ac_status=$?
5626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); }; }; then
5628  ac_lo=0 ac_mid=0
5629  while :; do
5630    cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636$ac_includes_default
5637int
5638main ()
5639{
5640static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
5641test_array [0] = 0
5642
5643  ;
5644  return 0;
5645}
5646_ACEOF
5647rm -f conftest.$ac_objext
5648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649  (eval $ac_compile) 2>conftest.er1
5650  ac_status=$?
5651  grep -v '^ *+' conftest.er1 >conftest.err
5652  rm -f conftest.er1
5653  cat conftest.err >&5
5654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655  (exit $ac_status); } &&
5656	 { ac_try='test -z "$ac_cxx_werror_flag"
5657			 || test ! -s conftest.err'
5658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659  (eval $ac_try) 2>&5
5660  ac_status=$?
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); }; } &&
5663	 { ac_try='test -s conftest.$ac_objext'
5664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665  (eval $ac_try) 2>&5
5666  ac_status=$?
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); }; }; then
5669  ac_hi=$ac_mid; break
5670else
5671  echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
5674ac_lo=`expr $ac_mid + 1`
5675		    if test $ac_lo -le $ac_mid; then
5676		      ac_lo= ac_hi=
5677		      break
5678		    fi
5679		    ac_mid=`expr 2 '*' $ac_mid + 1`
5680fi
5681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682  done
5683else
5684  echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687cat >conftest.$ac_ext <<_ACEOF
5688/* confdefs.h.  */
5689_ACEOF
5690cat confdefs.h >>conftest.$ac_ext
5691cat >>conftest.$ac_ext <<_ACEOF
5692/* end confdefs.h.  */
5693$ac_includes_default
5694int
5695main ()
5696{
5697static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
5698test_array [0] = 0
5699
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704rm -f conftest.$ac_objext
5705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706  (eval $ac_compile) 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } &&
5713	 { ac_try='test -z "$ac_cxx_werror_flag"
5714			 || test ! -s conftest.err'
5715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716  (eval $ac_try) 2>&5
5717  ac_status=$?
5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719  (exit $ac_status); }; } &&
5720	 { ac_try='test -s conftest.$ac_objext'
5721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722  (eval $ac_try) 2>&5
5723  ac_status=$?
5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725  (exit $ac_status); }; }; then
5726  ac_hi=-1 ac_mid=-1
5727  while :; do
5728    cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h.  */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h.  */
5734$ac_includes_default
5735int
5736main ()
5737{
5738static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
5739test_array [0] = 0
5740
5741  ;
5742  return 0;
5743}
5744_ACEOF
5745rm -f conftest.$ac_objext
5746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747  (eval $ac_compile) 2>conftest.er1
5748  ac_status=$?
5749  grep -v '^ *+' conftest.er1 >conftest.err
5750  rm -f conftest.er1
5751  cat conftest.err >&5
5752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753  (exit $ac_status); } &&
5754	 { ac_try='test -z "$ac_cxx_werror_flag"
5755			 || test ! -s conftest.err'
5756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757  (eval $ac_try) 2>&5
5758  ac_status=$?
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); }; } &&
5761	 { ac_try='test -s conftest.$ac_objext'
5762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763  (eval $ac_try) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }; }; then
5767  ac_lo=$ac_mid; break
5768else
5769  echo "$as_me: failed program was:" >&5
5770sed 's/^/| /' conftest.$ac_ext >&5
5771
5772ac_hi=`expr '(' $ac_mid ')' - 1`
5773		       if test $ac_mid -le $ac_hi; then
5774			 ac_lo= ac_hi=
5775			 break
5776		       fi
5777		       ac_mid=`expr 2 '*' $ac_mid`
5778fi
5779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5780  done
5781else
5782  echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785ac_lo= ac_hi=
5786fi
5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790# Binary search between lo and hi bounds.
5791while test "x$ac_lo" != "x$ac_hi"; do
5792  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5793  cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h.  */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h.  */
5799$ac_includes_default
5800int
5801main ()
5802{
5803static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
5804test_array [0] = 0
5805
5806  ;
5807  return 0;
5808}
5809_ACEOF
5810rm -f conftest.$ac_objext
5811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812  (eval $ac_compile) 2>conftest.er1
5813  ac_status=$?
5814  grep -v '^ *+' conftest.er1 >conftest.err
5815  rm -f conftest.er1
5816  cat conftest.err >&5
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); } &&
5819	 { ac_try='test -z "$ac_cxx_werror_flag"
5820			 || test ! -s conftest.err'
5821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822  (eval $ac_try) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }; } &&
5826	 { ac_try='test -s conftest.$ac_objext'
5827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828  (eval $ac_try) 2>&5
5829  ac_status=$?
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); }; }; then
5832  ac_hi=$ac_mid
5833else
5834  echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837ac_lo=`expr '(' $ac_mid ')' + 1`
5838fi
5839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840done
5841case $ac_lo in
5842?*) ac_cv_sizeof_wchar_t=$ac_lo;;
5843'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
5844See \`config.log' for more details." >&5
5845echo "$as_me: error: cannot compute sizeof (wchar_t), 77
5846See \`config.log' for more details." >&2;}
5847   { (exit 1); exit 1; }; } ;;
5848esac
5849else
5850  if test "$cross_compiling" = yes; then
5851  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5852See \`config.log' for more details." >&5
5853echo "$as_me: error: cannot run test program while cross compiling
5854See \`config.log' for more details." >&2;}
5855   { (exit 1); exit 1; }; }
5856else
5857  cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h.  */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h.  */
5863$ac_includes_default
5864long longval () { return (long) (sizeof (wchar_t)); }
5865unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
5866#include <stdio.h>
5867#include <stdlib.h>
5868int
5869main ()
5870{
5871
5872  FILE *f = fopen ("conftest.val", "w");
5873  if (! f)
5874    exit (1);
5875  if (((long) (sizeof (wchar_t))) < 0)
5876    {
5877      long i = longval ();
5878      if (i != ((long) (sizeof (wchar_t))))
5879	exit (1);
5880      fprintf (f, "%ld\n", i);
5881    }
5882  else
5883    {
5884      unsigned long i = ulongval ();
5885      if (i != ((long) (sizeof (wchar_t))))
5886	exit (1);
5887      fprintf (f, "%lu\n", i);
5888    }
5889  exit (ferror (f) || fclose (f) != 0);
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895rm -f conftest$ac_exeext
5896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897  (eval $ac_link) 2>&5
5898  ac_status=$?
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902  (eval $ac_try) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; }; then
5906  ac_cv_sizeof_wchar_t=`cat conftest.val`
5907else
5908  echo "$as_me: program exited with status $ac_status" >&5
5909echo "$as_me: failed program was:" >&5
5910sed 's/^/| /' conftest.$ac_ext >&5
5911
5912( exit $ac_status )
5913{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
5914See \`config.log' for more details." >&5
5915echo "$as_me: error: cannot compute sizeof (wchar_t), 77
5916See \`config.log' for more details." >&2;}
5917   { (exit 1); exit 1; }; }
5918fi
5919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5920fi
5921fi
5922rm -f conftest.val
5923else
5924  ac_cv_sizeof_wchar_t=0
5925fi
5926fi
5927echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
5928echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
5929cat >>confdefs.h <<_ACEOF
5930#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5931_ACEOF
5932
5933
5934if test $ac_cv_sizeof_wchar_t -lt 2; then
5935  { { echo "$as_me:$LINENO: error: wchar_t must be at least two bytes wide" >&5
5936echo "$as_me: error: wchar_t must be at least two bytes wide" >&2;}
5937   { (exit 1); exit 1; }; }
5938fi
5939
5940
5941
5942
5943if test $ac_cv_sizeof_wchar_t -eq 4; then
5944  list="ucs4 utf32 ucs-4 utf-32 UCS-4"
5945else
5946  list="ucs2 utf16 ucs-2 utf-16 UCS-2"
5947fi
5948
5949
5950if test -z "$ac_cv_jikes_iconv_encoding"; then
5951  for enc in $list ; do
5952
5953  checkmsg="$enc as an encoding"
5954  if test "" = yes; then
5955  byte_swap=1
5956         checkmsg="$checkmsg with byteswapping"
5957else
5958  byte_swap=0
5959fi
5960
5961  echo "$as_me:$LINENO: checking $checkmsg" >&5
5962echo $ECHO_N "checking $checkmsg... $ECHO_C" >&6
5963  if test "$cross_compiling" = yes; then
5964  echo "$as_me:$LINENO: result: cross-compiling, you must supply correct answer in cache" >&5
5965echo "${ECHO_T}cross-compiling, you must supply correct answer in cache" >&6
5966else
5967  cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h.  */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h.  */
5973
5974#ifdef HAVE_STRING_H
5975# if !STDC_HEADERS && HAVE_MEMORY_H
5976#  include <memory.h>
5977# endif
5978# include <string.h>
5979#else
5980# ifdef HAVE_STRINGS_H
5981#  include <strings.h>
5982# endif
5983#endif
5984#ifdef HAVE_WCHAR_H
5985# include <wchar.h>
5986#endif
5987#ifdef HAVE_ICONV_H
5988# include <iconv.h>
5989#endif
5990
5991int
5992main ()
5993{
5994const char * src = "abc\0";
5995  size_t dstspace = 4*sizeof(wchar_t);
5996  size_t srcspace = strlen(src);
5997  char * dst = new char[dstspace];
5998  char * dst_ptr = dst;
5999  iconv_t d = iconv_open( "$enc" , "ISO-8859-1");
6000  if (d == (iconv_t) -1) {
6001    d = iconv_open( "$enc" , "ISO8859-1");
6002    if (d == (iconv_t) -1) {
6003      return 1;
6004    }
6005  }
6006  size_t r = iconv( d,
6007#ifdef HAVE_ERROR_CALL_ICONV_CONST
6008	 (char **)
6009#endif
6010	 &src, &srcspace, &dst_ptr, &dstspace);
6011  if (r == (size_t) -1)
6012    return 2;
6013  wchar_t * test = (wchar_t *) dst;
6014#if $byte_swap
6015  char tmp;
6016  for (int lcv=0; lcv<3; lcv++) {
6017    char *targ = (char *)&test[lcv];
6018# if SIZEOF_WCHAR_T == 2
6019    tmp = targ[0];
6020    targ[0]=targ[1];
6021    targ[1]=tmp;
6022# elif SIZEOF_WCHAR_T == 4
6023    tmp = targ[0];
6024    targ[0]=targ[3];
6025    targ[3]=tmp;
6026    tmp=targ[1];
6027    targ[1]=targ[2];
6028    targ[2]=tmp;
6029# else
6030    return 3;
6031# endif //sizeof(wchar_t)
6032  }
6033#endif //byte_swap
6034  if (test[0] == 'a' && test[1] == 'b' && test[2] == 'c')
6035    return 0;
6036  else
6037    return 4;
6038
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043rm -f conftest$ac_exeext
6044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045  (eval $ac_link) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050  (eval $ac_try) 2>&5
6051  ac_status=$?
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); }; }; then
6054  ac_cv_jikes_iconv_encoding=$enc
6055   echo "$as_me:$LINENO: result: $enc" >&5
6056echo "${ECHO_T}$enc" >&6
6057else
6058  echo "$as_me: program exited with status $ac_status" >&5
6059echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062( exit $ac_status )
6063echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6
6065fi
6066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6067fi
6068
6069    if test "$ac_cv_jikes_iconv_encoding" = "$enc" ; then
6070
6071cat >>confdefs.h <<_ACEOF
6072#define JIKES_ICONV_ENCODING "$enc"
6073_ACEOF
6074
6075      break
6076    fi
6077  done
6078else
6079
6080cat >>confdefs.h <<_ACEOF
6081#define JIKES_ICONV_ENCODING "$enc"
6082_ACEOF
6083
6084fi
6085
6086if test -z "$ac_cv_jikes_iconv_encoding"; then
6087  for enc in $list ; do
6088
6089  checkmsg="$enc as an encoding"
6090  if test "yes" = yes; then
6091  byte_swap=1
6092         checkmsg="$checkmsg with byteswapping"
6093else
6094  byte_swap=0
6095fi
6096
6097  echo "$as_me:$LINENO: checking $checkmsg" >&5
6098echo $ECHO_N "checking $checkmsg... $ECHO_C" >&6
6099  if test "$cross_compiling" = yes; then
6100  echo "$as_me:$LINENO: result: cross-compiling, you must supply correct answer in cache" >&5
6101echo "${ECHO_T}cross-compiling, you must supply correct answer in cache" >&6
6102else
6103  cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h.  */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h.  */
6109
6110#ifdef HAVE_STRING_H
6111# if !STDC_HEADERS && HAVE_MEMORY_H
6112#  include <memory.h>
6113# endif
6114# include <string.h>
6115#else
6116# ifdef HAVE_STRINGS_H
6117#  include <strings.h>
6118# endif
6119#endif
6120#ifdef HAVE_WCHAR_H
6121# include <wchar.h>
6122#endif
6123#ifdef HAVE_ICONV_H
6124# include <iconv.h>
6125#endif
6126
6127int
6128main ()
6129{
6130const char * src = "abc\0";
6131  size_t dstspace = 4*sizeof(wchar_t);
6132  size_t srcspace = strlen(src);
6133  char * dst = new char[dstspace];
6134  char * dst_ptr = dst;
6135  iconv_t d = iconv_open( "$enc" , "ISO-8859-1");
6136  if (d == (iconv_t) -1) {
6137    d = iconv_open( "$enc" , "ISO8859-1");
6138    if (d == (iconv_t) -1) {
6139      return 1;
6140    }
6141  }
6142  size_t r = iconv( d,
6143#ifdef HAVE_ERROR_CALL_ICONV_CONST
6144	 (char **)
6145#endif
6146	 &src, &srcspace, &dst_ptr, &dstspace);
6147  if (r == (size_t) -1)
6148    return 2;
6149  wchar_t * test = (wchar_t *) dst;
6150#if $byte_swap
6151  char tmp;
6152  for (int lcv=0; lcv<3; lcv++) {
6153    char *targ = (char *)&test[lcv];
6154# if SIZEOF_WCHAR_T == 2
6155    tmp = targ[0];
6156    targ[0]=targ[1];
6157    targ[1]=tmp;
6158# elif SIZEOF_WCHAR_T == 4
6159    tmp = targ[0];
6160    targ[0]=targ[3];
6161    targ[3]=tmp;
6162    tmp=targ[1];
6163    targ[1]=targ[2];
6164    targ[2]=tmp;
6165# else
6166    return 3;
6167# endif //sizeof(wchar_t)
6168  }
6169#endif //byte_swap
6170  if (test[0] == 'a' && test[1] == 'b' && test[2] == 'c')
6171    return 0;
6172  else
6173    return 4;
6174
6175  ;
6176  return 0;
6177}
6178_ACEOF
6179rm -f conftest$ac_exeext
6180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181  (eval $ac_link) 2>&5
6182  ac_status=$?
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186  (eval $ac_try) 2>&5
6187  ac_status=$?
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); }; }; then
6190  ac_cv_jikes_iconv_encoding=$enc
6191   echo "$as_me:$LINENO: result: $enc" >&5
6192echo "${ECHO_T}$enc" >&6
6193else
6194  echo "$as_me: program exited with status $ac_status" >&5
6195echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198( exit $ac_status )
6199echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
6201fi
6202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6203fi
6204
6205    if test "$ac_cv_jikes_iconv_encoding" = "$enc" ; then
6206
6207cat >>confdefs.h <<_ACEOF
6208#define JIKES_ICONV_ENCODING "$enc"
6209_ACEOF
6210
6211
6212cat >>confdefs.h <<\_ACEOF
6213#define JIKES_ICONV_NEEDS_BYTE_SWAP 1
6214_ACEOF
6215
6216      break
6217    fi
6218  done
6219fi
6220
6221if test -z "$ac_cv_jikes_iconv_encoding"; then
6222  { echo "$as_me:$LINENO: WARNING: Configure was unable to locate a functional iconv encoding,
6223                even with byte swapping." >&5
6224echo "$as_me: WARNING: Configure was unable to locate a functional iconv encoding,
6225                even with byte swapping." >&2;}
6226fi
6227
6228
6229fi
6230
6231
6232
6233echo "$as_me:$LINENO: checking for u_getVersion in -licu-uc" >&5
6234echo $ECHO_N "checking for u_getVersion in -licu-uc... $ECHO_C" >&6
6235if test "${ac_cv_lib_icu_uc_u_getVersion+set}" = set; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238  ac_check_lib_save_LIBS=$LIBS
6239LIBS="-licu-uc  $LIBS"
6240cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h.  */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h.  */
6246
6247/* Override any gcc2 internal prototype to avoid an error.  */
6248#ifdef __cplusplus
6249extern "C"
6250#endif
6251/* We use char because int might match the return type of a gcc2
6252   builtin and then its argument prototype would still apply.  */
6253char u_getVersion ();
6254int
6255main ()
6256{
6257u_getVersion ();
6258  ;
6259  return 0;
6260}
6261_ACEOF
6262rm -f conftest.$ac_objext conftest$ac_exeext
6263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264  (eval $ac_link) 2>conftest.er1
6265  ac_status=$?
6266  grep -v '^ *+' conftest.er1 >conftest.err
6267  rm -f conftest.er1
6268  cat conftest.err >&5
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); } &&
6271	 { ac_try='test -z "$ac_cxx_werror_flag"
6272			 || test ! -s conftest.err'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; } &&
6278	 { ac_try='test -s conftest$ac_exeext'
6279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280  (eval $ac_try) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; }; then
6284  ac_cv_lib_icu_uc_u_getVersion=yes
6285else
6286  echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289ac_cv_lib_icu_uc_u_getVersion=no
6290fi
6291rm -f conftest.err conftest.$ac_objext \
6292      conftest$ac_exeext conftest.$ac_ext
6293LIBS=$ac_check_lib_save_LIBS
6294fi
6295echo "$as_me:$LINENO: result: $ac_cv_lib_icu_uc_u_getVersion" >&5
6296echo "${ECHO_T}$ac_cv_lib_icu_uc_u_getVersion" >&6
6297if test $ac_cv_lib_icu_uc_u_getVersion = yes; then
6298  cat >>confdefs.h <<_ACEOF
6299#define HAVE_LIBICU_UC 1
6300_ACEOF
6301
6302  LIBS="-licu-uc $LIBS"
6303
6304fi
6305
6306
6307if test -n "$ac_cv_jikes_iconv_encoding" || \
6308       test "$ac_cv_lib_icu_uc_u_getVersion" = "yes"; then
6309
6310cat >>confdefs.h <<\_ACEOF
6311#define HAVE_ENCODING 1
6312_ACEOF
6313
6314fi
6315
6316
6317
6318for ac_func in cygwin_win32_to_posix_path_list
6319do
6320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321echo "$as_me:$LINENO: checking for $ac_func" >&5
6322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6323if eval "test \"\${$as_ac_var+set}\" = set"; then
6324  echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326  cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h.  */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h.  */
6332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6334#define $ac_func innocuous_$ac_func
6335
6336/* System header to define __stub macros and hopefully few prototypes,
6337    which can conflict with char $ac_func (); below.
6338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339    <limits.h> exists even on freestanding compilers.  */
6340
6341#ifdef __STDC__
6342# include <limits.h>
6343#else
6344# include <assert.h>
6345#endif
6346
6347#undef $ac_func
6348
6349/* Override any gcc2 internal prototype to avoid an error.  */
6350#ifdef __cplusplus
6351extern "C"
6352{
6353#endif
6354/* We use char because int might match the return type of a gcc2
6355   builtin and then its argument prototype would still apply.  */
6356char $ac_func ();
6357/* The GNU C library defines this for functions which it implements
6358    to always fail with ENOSYS.  Some functions are actually named
6359    something starting with __ and the normal name is an alias.  */
6360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6361choke me
6362#else
6363char (*f) () = $ac_func;
6364#endif
6365#ifdef __cplusplus
6366}
6367#endif
6368
6369int
6370main ()
6371{
6372return f != $ac_func;
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext conftest$ac_exeext
6378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379  (eval $ac_link) 2>conftest.er1
6380  ac_status=$?
6381  grep -v '^ *+' conftest.er1 >conftest.err
6382  rm -f conftest.er1
6383  cat conftest.err >&5
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); } &&
6386	 { ac_try='test -z "$ac_cxx_werror_flag"
6387			 || test ! -s conftest.err'
6388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389  (eval $ac_try) 2>&5
6390  ac_status=$?
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); }; } &&
6393	 { ac_try='test -s conftest$ac_exeext'
6394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395  (eval $ac_try) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); }; }; then
6399  eval "$as_ac_var=yes"
6400else
6401  echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404eval "$as_ac_var=no"
6405fi
6406rm -f conftest.err conftest.$ac_objext \
6407      conftest$ac_exeext conftest.$ac_ext
6408fi
6409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6410echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6411if test `eval echo '${'$as_ac_var'}'` = yes; then
6412  cat >>confdefs.h <<_ACEOF
6413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6414_ACEOF
6415
6416fi
6417done
6418
6419
6420if test -n "$ac_tool_prefix"; then
6421  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}strip; ac_word=$2
6423echo "$as_me:$LINENO: checking for $ac_word" >&5
6424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6425if test "${ac_cv_prog_STRIP+set}" = set; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427else
6428  if test -n "$STRIP"; then
6429  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436  for ac_exec_ext in '' $ac_executable_extensions; do
6437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443done
6444
6445fi
6446fi
6447STRIP=$ac_cv_prog_STRIP
6448if test -n "$STRIP"; then
6449  echo "$as_me:$LINENO: result: $STRIP" >&5
6450echo "${ECHO_T}$STRIP" >&6
6451else
6452  echo "$as_me:$LINENO: result: no" >&5
6453echo "${ECHO_T}no" >&6
6454fi
6455
6456fi
6457if test -z "$ac_cv_prog_STRIP"; then
6458  ac_ct_STRIP=$STRIP
6459  # Extract the first word of "strip", so it can be a program name with args.
6460set dummy strip; ac_word=$2
6461echo "$as_me:$LINENO: checking for $ac_word" >&5
6462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6463if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  if test -n "$ac_ct_STRIP"; then
6467  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472  IFS=$as_save_IFS
6473  test -z "$as_dir" && as_dir=.
6474  for ac_exec_ext in '' $ac_executable_extensions; do
6475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476    ac_cv_prog_ac_ct_STRIP="strip"
6477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478    break 2
6479  fi
6480done
6481done
6482
6483  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6484fi
6485fi
6486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6487if test -n "$ac_ct_STRIP"; then
6488  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6489echo "${ECHO_T}$ac_ct_STRIP" >&6
6490else
6491  echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6
6493fi
6494
6495  STRIP=$ac_ct_STRIP
6496else
6497  STRIP="$ac_cv_prog_STRIP"
6498fi
6499
6500
6501echo "$as_me:$LINENO: checking whether the compiler supports member constants" >&5
6502echo $ECHO_N "checking whether the compiler supports member constants... $ECHO_C" >&6
6503if test "${ac_cv_cxx_member_constants+set}" = set; then
6504  echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506  ac_ext=cc
6507ac_cpp='$CXXCPP $CPPFLAGS'
6508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6511
6512 cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518class C {public: static const int i = 0;}; const int C::i;
6519int
6520main ()
6521{
6522return C::i;
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527rm -f conftest.$ac_objext
6528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6529  (eval $ac_compile) 2>conftest.er1
6530  ac_status=$?
6531  grep -v '^ *+' conftest.er1 >conftest.err
6532  rm -f conftest.er1
6533  cat conftest.err >&5
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); } &&
6536	 { ac_try='test -z "$ac_cxx_werror_flag"
6537			 || test ! -s conftest.err'
6538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539  (eval $ac_try) 2>&5
6540  ac_status=$?
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); }; } &&
6543	 { ac_try='test -s conftest.$ac_objext'
6544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545  (eval $ac_try) 2>&5
6546  ac_status=$?
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); }; }; then
6549  ac_cv_cxx_member_constants=yes
6550else
6551  echo "$as_me: failed program was:" >&5
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
6554ac_cv_cxx_member_constants=no
6555fi
6556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6557 ac_ext=cc
6558ac_cpp='$CXXCPP $CPPFLAGS'
6559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6562
6563
6564fi
6565echo "$as_me:$LINENO: result: $ac_cv_cxx_member_constants" >&5
6566echo "${ECHO_T}$ac_cv_cxx_member_constants" >&6
6567if test "$ac_cv_cxx_member_constants" = yes; then
6568
6569cat >>confdefs.h <<\_ACEOF
6570#define HAVE_MEMBER_CONSTANTS
6571_ACEOF
6572
6573fi
6574
6575
6576echo "$as_me:$LINENO: checking whether the compiler supports the explicit keyword" >&5
6577echo $ECHO_N "checking whether the compiler supports the explicit keyword... $ECHO_C" >&6
6578if test "${ac_cv_cxx_explicit+set}" = set; then
6579  echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581  ac_ext=cc
6582ac_cpp='$CXXCPP $CPPFLAGS'
6583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6586
6587 cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h.  */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h.  */
6593class A{public:explicit A(double){}};
6594int
6595main ()
6596{
6597double c = 5.0;A x(c);return 0;
6598  ;
6599  return 0;
6600}
6601_ACEOF
6602rm -f conftest.$ac_objext
6603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604  (eval $ac_compile) 2>conftest.er1
6605  ac_status=$?
6606  grep -v '^ *+' conftest.er1 >conftest.err
6607  rm -f conftest.er1
6608  cat conftest.err >&5
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); } &&
6611	 { ac_try='test -z "$ac_cxx_werror_flag"
6612			 || test ! -s conftest.err'
6613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614  (eval $ac_try) 2>&5
6615  ac_status=$?
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); }; } &&
6618	 { ac_try='test -s conftest.$ac_objext'
6619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620  (eval $ac_try) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; }; then
6624  ac_cv_cxx_explicit=yes
6625else
6626  echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629ac_cv_cxx_explicit=no
6630fi
6631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6632 ac_ext=cc
6633ac_cpp='$CXXCPP $CPPFLAGS'
6634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6637
6638
6639fi
6640echo "$as_me:$LINENO: result: $ac_cv_cxx_explicit" >&5
6641echo "${ECHO_T}$ac_cv_cxx_explicit" >&6
6642if test "$ac_cv_cxx_explicit" = yes; then
6643
6644cat >>confdefs.h <<\_ACEOF
6645#define HAVE_EXPLICIT
6646_ACEOF
6647
6648fi
6649
6650
6651echo "$as_me:$LINENO: checking whether the compiler supports Run-Time Type Identification" >&5
6652echo $ECHO_N "checking whether the compiler supports Run-Time Type Identification... $ECHO_C" >&6
6653if test "${ac_cv_cxx_rtti+set}" = set; then
6654  echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656  ac_ext=cc
6657ac_cpp='$CXXCPP $CPPFLAGS'
6658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6661
6662 cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h.  */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h.  */
6668#include <typeinfo>
6669class Base { public :
6670             Base () {}
6671             virtual int f () { return 0; }
6672           };
6673class Derived : public Base { public :
6674                              Derived () {}
6675                              virtual int f () { return 1; }
6676                            };
6677
6678int
6679main ()
6680{
6681Derived d;
6682Base *ptr = &d;
6683return typeid (*ptr) == typeid (Derived);
6684
6685  ;
6686  return 0;
6687}
6688_ACEOF
6689rm -f conftest.$ac_objext
6690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691  (eval $ac_compile) 2>conftest.er1
6692  ac_status=$?
6693  grep -v '^ *+' conftest.er1 >conftest.err
6694  rm -f conftest.er1
6695  cat conftest.err >&5
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } &&
6698	 { ac_try='test -z "$ac_cxx_werror_flag"
6699			 || test ! -s conftest.err'
6700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701  (eval $ac_try) 2>&5
6702  ac_status=$?
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); }; } &&
6705	 { ac_try='test -s conftest.$ac_objext'
6706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707  (eval $ac_try) 2>&5
6708  ac_status=$?
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); }; }; then
6711  ac_cv_cxx_rtti=yes
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716ac_cv_cxx_rtti=no
6717fi
6718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 ac_ext=cc
6720ac_cpp='$CXXCPP $CPPFLAGS'
6721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6724
6725
6726fi
6727echo "$as_me:$LINENO: result: $ac_cv_cxx_rtti" >&5
6728echo "${ECHO_T}$ac_cv_cxx_rtti" >&6
6729if test "$ac_cv_cxx_rtti" = yes; then
6730
6731cat >>confdefs.h <<\_ACEOF
6732#define HAVE_RTTI
6733_ACEOF
6734
6735fi
6736
6737
6738echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
6739echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
6740if test "${ac_cv_cxx_const_cast+set}" = set; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  ac_ext=cc
6744ac_cpp='$CXXCPP $CPPFLAGS'
6745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6748
6749 cat >conftest.$ac_ext <<_ACEOF
6750/* confdefs.h.  */
6751_ACEOF
6752cat confdefs.h >>conftest.$ac_ext
6753cat >>conftest.$ac_ext <<_ACEOF
6754/* end confdefs.h.  */
6755
6756int
6757main ()
6758{
6759int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764rm -f conftest.$ac_objext
6765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766  (eval $ac_compile) 2>conftest.er1
6767  ac_status=$?
6768  grep -v '^ *+' conftest.er1 >conftest.err
6769  rm -f conftest.er1
6770  cat conftest.err >&5
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); } &&
6773	 { ac_try='test -z "$ac_cxx_werror_flag"
6774			 || test ! -s conftest.err'
6775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776  (eval $ac_try) 2>&5
6777  ac_status=$?
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); }; } &&
6780	 { ac_try='test -s conftest.$ac_objext'
6781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782  (eval $ac_try) 2>&5
6783  ac_status=$?
6784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785  (exit $ac_status); }; }; then
6786  ac_cv_cxx_const_cast=yes
6787else
6788  echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791ac_cv_cxx_const_cast=no
6792fi
6793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6794 ac_ext=cc
6795ac_cpp='$CXXCPP $CPPFLAGS'
6796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6799
6800
6801fi
6802echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
6803echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
6804if test "$ac_cv_cxx_const_cast" = yes; then
6805
6806cat >>confdefs.h <<\_ACEOF
6807#define HAVE_CONST_CAST
6808_ACEOF
6809
6810fi
6811
6812echo "$as_me:$LINENO: checking whether the compiler supports dynamic_cast<>" >&5
6813echo $ECHO_N "checking whether the compiler supports dynamic_cast<>... $ECHO_C" >&6
6814if test "${ac_cv_cxx_dynamic_cast+set}" = set; then
6815  echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817  ac_ext=cc
6818ac_cpp='$CXXCPP $CPPFLAGS'
6819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822
6823 cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h.  */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h.  */
6829#include <typeinfo>
6830class Base { public : Base () {} virtual void f () = 0;};
6831class Derived : public Base { public : Derived () {} virtual void f () {} };
6832int
6833main ()
6834{
6835Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1;
6836  ;
6837  return 0;
6838}
6839_ACEOF
6840rm -f conftest.$ac_objext
6841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842  (eval $ac_compile) 2>conftest.er1
6843  ac_status=$?
6844  grep -v '^ *+' conftest.er1 >conftest.err
6845  rm -f conftest.er1
6846  cat conftest.err >&5
6847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848  (exit $ac_status); } &&
6849	 { ac_try='test -z "$ac_cxx_werror_flag"
6850			 || test ! -s conftest.err'
6851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852  (eval $ac_try) 2>&5
6853  ac_status=$?
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); }; } &&
6856	 { ac_try='test -s conftest.$ac_objext'
6857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858  (eval $ac_try) 2>&5
6859  ac_status=$?
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); }; }; then
6862  ac_cv_cxx_dynamic_cast=yes
6863else
6864  echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
6866
6867ac_cv_cxx_dynamic_cast=no
6868fi
6869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870 ac_ext=cc
6871ac_cpp='$CXXCPP $CPPFLAGS'
6872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6875
6876
6877fi
6878echo "$as_me:$LINENO: result: $ac_cv_cxx_dynamic_cast" >&5
6879echo "${ECHO_T}$ac_cv_cxx_dynamic_cast" >&6
6880if test "$ac_cv_cxx_dynamic_cast" = yes; then
6881
6882cat >>confdefs.h <<\_ACEOF
6883#define HAVE_DYNAMIC_CAST
6884_ACEOF
6885
6886fi
6887
6888echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
6889echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
6890if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893  ac_ext=cc
6894ac_cpp='$CXXCPP $CPPFLAGS'
6895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6898
6899 cat >conftest.$ac_ext <<_ACEOF
6900/* confdefs.h.  */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h.  */
6905#include <typeinfo>
6906class Base { public : Base () {} virtual void f () = 0;};
6907class Derived : public Base { public : Derived () {} virtual void f () {} };
6908class Unrelated { public : Unrelated () {} };
6909int g (Unrelated&) { return 0; }
6910int
6911main ()
6912{
6913
6914Derived d;Base& b=d;
6915Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
6916  ;
6917  return 0;
6918}
6919_ACEOF
6920rm -f conftest.$ac_objext
6921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922  (eval $ac_compile) 2>conftest.er1
6923  ac_status=$?
6924  grep -v '^ *+' conftest.er1 >conftest.err
6925  rm -f conftest.er1
6926  cat conftest.err >&5
6927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928  (exit $ac_status); } &&
6929	 { ac_try='test -z "$ac_cxx_werror_flag"
6930			 || test ! -s conftest.err'
6931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932  (eval $ac_try) 2>&5
6933  ac_status=$?
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }; } &&
6936	 { ac_try='test -s conftest.$ac_objext'
6937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938  (eval $ac_try) 2>&5
6939  ac_status=$?
6940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941  (exit $ac_status); }; }; then
6942  ac_cv_cxx_reinterpret_cast=yes
6943else
6944  echo "$as_me: failed program was:" >&5
6945sed 's/^/| /' conftest.$ac_ext >&5
6946
6947ac_cv_cxx_reinterpret_cast=no
6948fi
6949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950 ac_ext=cc
6951ac_cpp='$CXXCPP $CPPFLAGS'
6952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6955
6956
6957fi
6958echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
6959echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
6960if test "$ac_cv_cxx_reinterpret_cast" = yes; then
6961
6962cat >>confdefs.h <<\_ACEOF
6963#define HAVE_REINTERPRET_CAST
6964_ACEOF
6965
6966fi
6967
6968echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
6969echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
6970if test "${ac_cv_cxx_static_cast+set}" = set; then
6971  echo $ECHO_N "(cached) $ECHO_C" >&6
6972else
6973  ac_ext=cc
6974ac_cpp='$CXXCPP $CPPFLAGS'
6975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6978
6979 cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h.  */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h.  */
6985#include <typeinfo>
6986class Base { public : Base () {} virtual void f () = 0; };
6987class Derived : public Base { public : Derived () {} virtual void f () {} };
6988int g (Derived&) { return 0; }
6989int
6990main ()
6991{
6992
6993Derived d; Base& b = d;
6994Derived& s = static_cast<Derived&> (b); return g (s);
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999rm -f conftest.$ac_objext
7000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001  (eval $ac_compile) 2>conftest.er1
7002  ac_status=$?
7003  grep -v '^ *+' conftest.er1 >conftest.err
7004  rm -f conftest.er1
7005  cat conftest.err >&5
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); } &&
7008	 { ac_try='test -z "$ac_cxx_werror_flag"
7009			 || test ! -s conftest.err'
7010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011  (eval $ac_try) 2>&5
7012  ac_status=$?
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); }; } &&
7015	 { ac_try='test -s conftest.$ac_objext'
7016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017  (eval $ac_try) 2>&5
7018  ac_status=$?
7019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020  (exit $ac_status); }; }; then
7021  ac_cv_cxx_static_cast=yes
7022else
7023  echo "$as_me: failed program was:" >&5
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026ac_cv_cxx_static_cast=no
7027fi
7028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 ac_ext=cc
7030ac_cpp='$CXXCPP $CPPFLAGS'
7031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7034
7035
7036fi
7037echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
7038echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
7039if test "$ac_cv_cxx_static_cast" = yes; then
7040
7041cat >>confdefs.h <<\_ACEOF
7042#define HAVE_STATIC_CAST
7043_ACEOF
7044
7045fi
7046
7047
7048
7049# Check whether --enable-fp-emulation or --disable-fp-emulation was given.
7050if test "${enable_fp_emulation+set}" = set; then
7051  enableval="$enable_fp_emulation"
7052  ok=$enableval
7053else
7054  ok=yes
7055fi;
7056
7057echo "$as_me:$LINENO: checking for floating point support" >&5
7058echo $ECHO_N "checking for floating point support... $ECHO_C" >&6
7059
7060if test "$ok" = yes; then
7061  # Do nothing, floating point emulation used when HAVE_IEEE754 is not defined
7062  echo "$as_me:$LINENO: result: emulated" >&5
7063echo "${ECHO_T}emulated" >&6
7064else
7065
7066cat >>confdefs.h <<\_ACEOF
7067#define HAVE_IEEE754 1
7068_ACEOF
7069
7070  echo "$as_me:$LINENO: result: native" >&5
7071echo "${ECHO_T}native" >&6
7072fi
7073
7074
7075
7076
7077echo "$as_me:$LINENO: checking for int8_t" >&5
7078echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
7079if test "${ac_cv_type_int8_t+set}" = set; then
7080  echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082  cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h.  */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h.  */
7088$ac_includes_default
7089int
7090main ()
7091{
7092if ((int8_t *) 0)
7093  return 0;
7094if (sizeof (int8_t))
7095  return 0;
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100rm -f conftest.$ac_objext
7101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102  (eval $ac_compile) 2>conftest.er1
7103  ac_status=$?
7104  grep -v '^ *+' conftest.er1 >conftest.err
7105  rm -f conftest.er1
7106  cat conftest.err >&5
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } &&
7109	 { ac_try='test -z "$ac_cxx_werror_flag"
7110			 || test ! -s conftest.err'
7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112  (eval $ac_try) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }; } &&
7116	 { ac_try='test -s conftest.$ac_objext'
7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118  (eval $ac_try) 2>&5
7119  ac_status=$?
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); }; }; then
7122  ac_cv_type_int8_t=yes
7123else
7124  echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127ac_cv_type_int8_t=no
7128fi
7129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130fi
7131echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
7132echo "${ECHO_T}$ac_cv_type_int8_t" >&6
7133if test $ac_cv_type_int8_t = yes; then
7134  :
7135else
7136
7137  { echo "$as_me:$LINENO: trying to find a suitable 1-byte replacement for int8_t" >&5
7138echo "$as_me: trying to find a suitable 1-byte replacement for int8_t" >&6;}
7139  int8_t=no
7140  find_int8_t ()
7141  {
7142
7143
7144  echo "$as_me:$LINENO: checking for signed char" >&5
7145echo $ECHO_N "checking for signed char... $ECHO_C" >&6
7146if test "${ac_cv_type_signed_char+set}" = set; then
7147  echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149  cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h.  */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h.  */
7155$ac_includes_default
7156int
7157main ()
7158{
7159if ((signed char *) 0)
7160  return 0;
7161if (sizeof (signed char))
7162  return 0;
7163  ;
7164  return 0;
7165}
7166_ACEOF
7167rm -f conftest.$ac_objext
7168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169  (eval $ac_compile) 2>conftest.er1
7170  ac_status=$?
7171  grep -v '^ *+' conftest.er1 >conftest.err
7172  rm -f conftest.er1
7173  cat conftest.err >&5
7174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175  (exit $ac_status); } &&
7176	 { ac_try='test -z "$ac_cxx_werror_flag"
7177			 || test ! -s conftest.err'
7178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179  (eval $ac_try) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); }; } &&
7183	 { ac_try='test -s conftest.$ac_objext'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; }; then
7189  ac_cv_type_signed_char=yes
7190else
7191  echo "$as_me: failed program was:" >&5
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
7194ac_cv_type_signed_char=no
7195fi
7196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi
7198echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
7199echo "${ECHO_T}$ac_cv_type_signed_char" >&6
7200
7201echo "$as_me:$LINENO: checking size of signed char" >&5
7202echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
7203if test "${ac_cv_sizeof_signed_char+set}" = set; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  if test "$ac_cv_type_signed_char" = yes; then
7207  # The cast to unsigned long works around a bug in the HP C Compiler
7208  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7209  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7210  # This bug is HP SR number 8606223364.
7211  if test "$cross_compiling" = yes; then
7212  # Depending upon the size, compute the lo and hi bounds.
7213cat >conftest.$ac_ext <<_ACEOF
7214/* confdefs.h.  */
7215_ACEOF
7216cat confdefs.h >>conftest.$ac_ext
7217cat >>conftest.$ac_ext <<_ACEOF
7218/* end confdefs.h.  */
7219$ac_includes_default
7220int
7221main ()
7222{
7223static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
7224test_array [0] = 0
7225
7226  ;
7227  return 0;
7228}
7229_ACEOF
7230rm -f conftest.$ac_objext
7231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232  (eval $ac_compile) 2>conftest.er1
7233  ac_status=$?
7234  grep -v '^ *+' conftest.er1 >conftest.err
7235  rm -f conftest.er1
7236  cat conftest.err >&5
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); } &&
7239	 { ac_try='test -z "$ac_cxx_werror_flag"
7240			 || test ! -s conftest.err'
7241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242  (eval $ac_try) 2>&5
7243  ac_status=$?
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); }; } &&
7246	 { ac_try='test -s conftest.$ac_objext'
7247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248  (eval $ac_try) 2>&5
7249  ac_status=$?
7250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251  (exit $ac_status); }; }; then
7252  ac_lo=0 ac_mid=0
7253  while :; do
7254    cat >conftest.$ac_ext <<_ACEOF
7255/* confdefs.h.  */
7256_ACEOF
7257cat confdefs.h >>conftest.$ac_ext
7258cat >>conftest.$ac_ext <<_ACEOF
7259/* end confdefs.h.  */
7260$ac_includes_default
7261int
7262main ()
7263{
7264static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
7265test_array [0] = 0
7266
7267  ;
7268  return 0;
7269}
7270_ACEOF
7271rm -f conftest.$ac_objext
7272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273  (eval $ac_compile) 2>conftest.er1
7274  ac_status=$?
7275  grep -v '^ *+' conftest.er1 >conftest.err
7276  rm -f conftest.er1
7277  cat conftest.err >&5
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); } &&
7280	 { ac_try='test -z "$ac_cxx_werror_flag"
7281			 || test ! -s conftest.err'
7282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283  (eval $ac_try) 2>&5
7284  ac_status=$?
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); }; } &&
7287	 { ac_try='test -s conftest.$ac_objext'
7288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289  (eval $ac_try) 2>&5
7290  ac_status=$?
7291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292  (exit $ac_status); }; }; then
7293  ac_hi=$ac_mid; break
7294else
7295  echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298ac_lo=`expr $ac_mid + 1`
7299		    if test $ac_lo -le $ac_mid; then
7300		      ac_lo= ac_hi=
7301		      break
7302		    fi
7303		    ac_mid=`expr 2 '*' $ac_mid + 1`
7304fi
7305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306  done
7307else
7308  echo "$as_me: failed program was:" >&5
7309sed 's/^/| /' conftest.$ac_ext >&5
7310
7311cat >conftest.$ac_ext <<_ACEOF
7312/* confdefs.h.  */
7313_ACEOF
7314cat confdefs.h >>conftest.$ac_ext
7315cat >>conftest.$ac_ext <<_ACEOF
7316/* end confdefs.h.  */
7317$ac_includes_default
7318int
7319main ()
7320{
7321static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
7322test_array [0] = 0
7323
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext
7329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330  (eval $ac_compile) 2>conftest.er1
7331  ac_status=$?
7332  grep -v '^ *+' conftest.er1 >conftest.err
7333  rm -f conftest.er1
7334  cat conftest.err >&5
7335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336  (exit $ac_status); } &&
7337	 { ac_try='test -z "$ac_cxx_werror_flag"
7338			 || test ! -s conftest.err'
7339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340  (eval $ac_try) 2>&5
7341  ac_status=$?
7342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343  (exit $ac_status); }; } &&
7344	 { ac_try='test -s conftest.$ac_objext'
7345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346  (eval $ac_try) 2>&5
7347  ac_status=$?
7348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); }; }; then
7350  ac_hi=-1 ac_mid=-1
7351  while :; do
7352    cat >conftest.$ac_ext <<_ACEOF
7353/* confdefs.h.  */
7354_ACEOF
7355cat confdefs.h >>conftest.$ac_ext
7356cat >>conftest.$ac_ext <<_ACEOF
7357/* end confdefs.h.  */
7358$ac_includes_default
7359int
7360main ()
7361{
7362static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
7363test_array [0] = 0
7364
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369rm -f conftest.$ac_objext
7370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371  (eval $ac_compile) 2>conftest.er1
7372  ac_status=$?
7373  grep -v '^ *+' conftest.er1 >conftest.err
7374  rm -f conftest.er1
7375  cat conftest.err >&5
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); } &&
7378	 { ac_try='test -z "$ac_cxx_werror_flag"
7379			 || test ! -s conftest.err'
7380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381  (eval $ac_try) 2>&5
7382  ac_status=$?
7383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384  (exit $ac_status); }; } &&
7385	 { ac_try='test -s conftest.$ac_objext'
7386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387  (eval $ac_try) 2>&5
7388  ac_status=$?
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); }; }; then
7391  ac_lo=$ac_mid; break
7392else
7393  echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396ac_hi=`expr '(' $ac_mid ')' - 1`
7397		       if test $ac_mid -le $ac_hi; then
7398			 ac_lo= ac_hi=
7399			 break
7400		       fi
7401		       ac_mid=`expr 2 '*' $ac_mid`
7402fi
7403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404  done
7405else
7406  echo "$as_me: failed program was:" >&5
7407sed 's/^/| /' conftest.$ac_ext >&5
7408
7409ac_lo= ac_hi=
7410fi
7411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7412fi
7413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7414# Binary search between lo and hi bounds.
7415while test "x$ac_lo" != "x$ac_hi"; do
7416  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7417  cat >conftest.$ac_ext <<_ACEOF
7418/* confdefs.h.  */
7419_ACEOF
7420cat confdefs.h >>conftest.$ac_ext
7421cat >>conftest.$ac_ext <<_ACEOF
7422/* end confdefs.h.  */
7423$ac_includes_default
7424int
7425main ()
7426{
7427static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
7428test_array [0] = 0
7429
7430  ;
7431  return 0;
7432}
7433_ACEOF
7434rm -f conftest.$ac_objext
7435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436  (eval $ac_compile) 2>conftest.er1
7437  ac_status=$?
7438  grep -v '^ *+' conftest.er1 >conftest.err
7439  rm -f conftest.er1
7440  cat conftest.err >&5
7441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442  (exit $ac_status); } &&
7443	 { ac_try='test -z "$ac_cxx_werror_flag"
7444			 || test ! -s conftest.err'
7445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446  (eval $ac_try) 2>&5
7447  ac_status=$?
7448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449  (exit $ac_status); }; } &&
7450	 { ac_try='test -s conftest.$ac_objext'
7451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452  (eval $ac_try) 2>&5
7453  ac_status=$?
7454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455  (exit $ac_status); }; }; then
7456  ac_hi=$ac_mid
7457else
7458  echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
7461ac_lo=`expr '(' $ac_mid ')' + 1`
7462fi
7463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7464done
7465case $ac_lo in
7466?*) ac_cv_sizeof_signed_char=$ac_lo;;
7467'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
7468See \`config.log' for more details." >&5
7469echo "$as_me: error: cannot compute sizeof (signed char), 77
7470See \`config.log' for more details." >&2;}
7471   { (exit 1); exit 1; }; } ;;
7472esac
7473else
7474  if test "$cross_compiling" = yes; then
7475  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7476See \`config.log' for more details." >&5
7477echo "$as_me: error: cannot run test program while cross compiling
7478See \`config.log' for more details." >&2;}
7479   { (exit 1); exit 1; }; }
7480else
7481  cat >conftest.$ac_ext <<_ACEOF
7482/* confdefs.h.  */
7483_ACEOF
7484cat confdefs.h >>conftest.$ac_ext
7485cat >>conftest.$ac_ext <<_ACEOF
7486/* end confdefs.h.  */
7487$ac_includes_default
7488long longval () { return (long) (sizeof (signed char)); }
7489unsigned long ulongval () { return (long) (sizeof (signed char)); }
7490#include <stdio.h>
7491#include <stdlib.h>
7492int
7493main ()
7494{
7495
7496  FILE *f = fopen ("conftest.val", "w");
7497  if (! f)
7498    exit (1);
7499  if (((long) (sizeof (signed char))) < 0)
7500    {
7501      long i = longval ();
7502      if (i != ((long) (sizeof (signed char))))
7503	exit (1);
7504      fprintf (f, "%ld\n", i);
7505    }
7506  else
7507    {
7508      unsigned long i = ulongval ();
7509      if (i != ((long) (sizeof (signed char))))
7510	exit (1);
7511      fprintf (f, "%lu\n", i);
7512    }
7513  exit (ferror (f) || fclose (f) != 0);
7514
7515  ;
7516  return 0;
7517}
7518_ACEOF
7519rm -f conftest$ac_exeext
7520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521  (eval $ac_link) 2>&5
7522  ac_status=$?
7523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526  (eval $ac_try) 2>&5
7527  ac_status=$?
7528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529  (exit $ac_status); }; }; then
7530  ac_cv_sizeof_signed_char=`cat conftest.val`
7531else
7532  echo "$as_me: program exited with status $ac_status" >&5
7533echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
7536( exit $ac_status )
7537{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
7538See \`config.log' for more details." >&5
7539echo "$as_me: error: cannot compute sizeof (signed char), 77
7540See \`config.log' for more details." >&2;}
7541   { (exit 1); exit 1; }; }
7542fi
7543rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7544fi
7545fi
7546rm -f conftest.val
7547else
7548  ac_cv_sizeof_signed_char=0
7549fi
7550fi
7551echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
7552echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
7553cat >>confdefs.h <<_ACEOF
7554#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
7555_ACEOF
7556
7557
7558  if test "$ac_cv_sizeof_signed_char" -eq 1; then
7559    int8_t="signed char"
7560    return
7561  fi
7562
7563
7564  echo "$as_me:$LINENO: checking for __int8" >&5
7565echo $ECHO_N "checking for __int8... $ECHO_C" >&6
7566if test "${ac_cv_type___int8+set}" = set; then
7567  echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569  cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h.  */
7571_ACEOF
7572cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h.  */
7575$ac_includes_default
7576int
7577main ()
7578{
7579if ((__int8 *) 0)
7580  return 0;
7581if (sizeof (__int8))
7582  return 0;
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext
7588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7589  (eval $ac_compile) 2>conftest.er1
7590  ac_status=$?
7591  grep -v '^ *+' conftest.er1 >conftest.err
7592  rm -f conftest.er1
7593  cat conftest.err >&5
7594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595  (exit $ac_status); } &&
7596	 { ac_try='test -z "$ac_cxx_werror_flag"
7597			 || test ! -s conftest.err'
7598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599  (eval $ac_try) 2>&5
7600  ac_status=$?
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); }; } &&
7603	 { ac_try='test -s conftest.$ac_objext'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; }; then
7609  ac_cv_type___int8=yes
7610else
7611  echo "$as_me: failed program was:" >&5
7612sed 's/^/| /' conftest.$ac_ext >&5
7613
7614ac_cv_type___int8=no
7615fi
7616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7617fi
7618echo "$as_me:$LINENO: result: $ac_cv_type___int8" >&5
7619echo "${ECHO_T}$ac_cv_type___int8" >&6
7620
7621echo "$as_me:$LINENO: checking size of __int8" >&5
7622echo $ECHO_N "checking size of __int8... $ECHO_C" >&6
7623if test "${ac_cv_sizeof___int8+set}" = set; then
7624  echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626  if test "$ac_cv_type___int8" = yes; then
7627  # The cast to unsigned long works around a bug in the HP C Compiler
7628  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7629  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7630  # This bug is HP SR number 8606223364.
7631  if test "$cross_compiling" = yes; then
7632  # Depending upon the size, compute the lo and hi bounds.
7633cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h.  */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h.  */
7639$ac_includes_default
7640int
7641main ()
7642{
7643static int test_array [1 - 2 * !(((long) (sizeof (__int8))) >= 0)];
7644test_array [0] = 0
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652  (eval $ac_compile) 2>conftest.er1
7653  ac_status=$?
7654  grep -v '^ *+' conftest.er1 >conftest.err
7655  rm -f conftest.er1
7656  cat conftest.err >&5
7657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658  (exit $ac_status); } &&
7659	 { ac_try='test -z "$ac_cxx_werror_flag"
7660			 || test ! -s conftest.err'
7661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662  (eval $ac_try) 2>&5
7663  ac_status=$?
7664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665  (exit $ac_status); }; } &&
7666	 { ac_try='test -s conftest.$ac_objext'
7667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668  (eval $ac_try) 2>&5
7669  ac_status=$?
7670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671  (exit $ac_status); }; }; then
7672  ac_lo=0 ac_mid=0
7673  while :; do
7674    cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h.  */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h.  */
7680$ac_includes_default
7681int
7682main ()
7683{
7684static int test_array [1 - 2 * !(((long) (sizeof (__int8))) <= $ac_mid)];
7685test_array [0] = 0
7686
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
7692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693  (eval $ac_compile) 2>conftest.er1
7694  ac_status=$?
7695  grep -v '^ *+' conftest.er1 >conftest.err
7696  rm -f conftest.er1
7697  cat conftest.err >&5
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); } &&
7700	 { ac_try='test -z "$ac_cxx_werror_flag"
7701			 || test ! -s conftest.err'
7702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703  (eval $ac_try) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; } &&
7707	 { ac_try='test -s conftest.$ac_objext'
7708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709  (eval $ac_try) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); }; }; then
7713  ac_hi=$ac_mid; break
7714else
7715  echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718ac_lo=`expr $ac_mid + 1`
7719		    if test $ac_lo -le $ac_mid; then
7720		      ac_lo= ac_hi=
7721		      break
7722		    fi
7723		    ac_mid=`expr 2 '*' $ac_mid + 1`
7724fi
7725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726  done
7727else
7728  echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h.  */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h.  */
7737$ac_includes_default
7738int
7739main ()
7740{
7741static int test_array [1 - 2 * !(((long) (sizeof (__int8))) < 0)];
7742test_array [0] = 0
7743
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext
7749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750  (eval $ac_compile) 2>conftest.er1
7751  ac_status=$?
7752  grep -v '^ *+' conftest.er1 >conftest.err
7753  rm -f conftest.er1
7754  cat conftest.err >&5
7755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756  (exit $ac_status); } &&
7757	 { ac_try='test -z "$ac_cxx_werror_flag"
7758			 || test ! -s conftest.err'
7759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760  (eval $ac_try) 2>&5
7761  ac_status=$?
7762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763  (exit $ac_status); }; } &&
7764	 { ac_try='test -s conftest.$ac_objext'
7765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766  (eval $ac_try) 2>&5
7767  ac_status=$?
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); }; }; then
7770  ac_hi=-1 ac_mid=-1
7771  while :; do
7772    cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h.  */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h.  */
7778$ac_includes_default
7779int
7780main ()
7781{
7782static int test_array [1 - 2 * !(((long) (sizeof (__int8))) >= $ac_mid)];
7783test_array [0] = 0
7784
7785  ;
7786  return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext
7790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791  (eval $ac_compile) 2>conftest.er1
7792  ac_status=$?
7793  grep -v '^ *+' conftest.er1 >conftest.err
7794  rm -f conftest.er1
7795  cat conftest.err >&5
7796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797  (exit $ac_status); } &&
7798	 { ac_try='test -z "$ac_cxx_werror_flag"
7799			 || test ! -s conftest.err'
7800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801  (eval $ac_try) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); }; } &&
7805	 { ac_try='test -s conftest.$ac_objext'
7806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807  (eval $ac_try) 2>&5
7808  ac_status=$?
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); }; }; then
7811  ac_lo=$ac_mid; break
7812else
7813  echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816ac_hi=`expr '(' $ac_mid ')' - 1`
7817		       if test $ac_mid -le $ac_hi; then
7818			 ac_lo= ac_hi=
7819			 break
7820		       fi
7821		       ac_mid=`expr 2 '*' $ac_mid`
7822fi
7823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7824  done
7825else
7826  echo "$as_me: failed program was:" >&5
7827sed 's/^/| /' conftest.$ac_ext >&5
7828
7829ac_lo= ac_hi=
7830fi
7831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834# Binary search between lo and hi bounds.
7835while test "x$ac_lo" != "x$ac_hi"; do
7836  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7837  cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h.  */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
7842/* end confdefs.h.  */
7843$ac_includes_default
7844int
7845main ()
7846{
7847static int test_array [1 - 2 * !(((long) (sizeof (__int8))) <= $ac_mid)];
7848test_array [0] = 0
7849
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext
7855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856  (eval $ac_compile) 2>conftest.er1
7857  ac_status=$?
7858  grep -v '^ *+' conftest.er1 >conftest.err
7859  rm -f conftest.er1
7860  cat conftest.err >&5
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); } &&
7863	 { ac_try='test -z "$ac_cxx_werror_flag"
7864			 || test ! -s conftest.err'
7865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866  (eval $ac_try) 2>&5
7867  ac_status=$?
7868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869  (exit $ac_status); }; } &&
7870	 { ac_try='test -s conftest.$ac_objext'
7871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872  (eval $ac_try) 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); }; }; then
7876  ac_hi=$ac_mid
7877else
7878  echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881ac_lo=`expr '(' $ac_mid ')' + 1`
7882fi
7883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7884done
7885case $ac_lo in
7886?*) ac_cv_sizeof___int8=$ac_lo;;
7887'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int8), 77
7888See \`config.log' for more details." >&5
7889echo "$as_me: error: cannot compute sizeof (__int8), 77
7890See \`config.log' for more details." >&2;}
7891   { (exit 1); exit 1; }; } ;;
7892esac
7893else
7894  if test "$cross_compiling" = yes; then
7895  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7896See \`config.log' for more details." >&5
7897echo "$as_me: error: cannot run test program while cross compiling
7898See \`config.log' for more details." >&2;}
7899   { (exit 1); exit 1; }; }
7900else
7901  cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h.  */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h.  */
7907$ac_includes_default
7908long longval () { return (long) (sizeof (__int8)); }
7909unsigned long ulongval () { return (long) (sizeof (__int8)); }
7910#include <stdio.h>
7911#include <stdlib.h>
7912int
7913main ()
7914{
7915
7916  FILE *f = fopen ("conftest.val", "w");
7917  if (! f)
7918    exit (1);
7919  if (((long) (sizeof (__int8))) < 0)
7920    {
7921      long i = longval ();
7922      if (i != ((long) (sizeof (__int8))))
7923	exit (1);
7924      fprintf (f, "%ld\n", i);
7925    }
7926  else
7927    {
7928      unsigned long i = ulongval ();
7929      if (i != ((long) (sizeof (__int8))))
7930	exit (1);
7931      fprintf (f, "%lu\n", i);
7932    }
7933  exit (ferror (f) || fclose (f) != 0);
7934
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939rm -f conftest$ac_exeext
7940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941  (eval $ac_link) 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; }; then
7950  ac_cv_sizeof___int8=`cat conftest.val`
7951else
7952  echo "$as_me: program exited with status $ac_status" >&5
7953echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956( exit $ac_status )
7957{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int8), 77
7958See \`config.log' for more details." >&5
7959echo "$as_me: error: cannot compute sizeof (__int8), 77
7960See \`config.log' for more details." >&2;}
7961   { (exit 1); exit 1; }; }
7962fi
7963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7964fi
7965fi
7966rm -f conftest.val
7967else
7968  ac_cv_sizeof___int8=0
7969fi
7970fi
7971echo "$as_me:$LINENO: result: $ac_cv_sizeof___int8" >&5
7972echo "${ECHO_T}$ac_cv_sizeof___int8" >&6
7973cat >>confdefs.h <<_ACEOF
7974#define SIZEOF___INT8 $ac_cv_sizeof___int8
7975_ACEOF
7976
7977
7978  if test "$ac_cv_sizeof___int8" -eq 1; then
7979    int8_t="__int8"
7980    return
7981  fi
7982
7983
7984  echo "$as_me:$LINENO: checking for char" >&5
7985echo $ECHO_N "checking for char... $ECHO_C" >&6
7986if test "${ac_cv_type_char+set}" = set; then
7987  echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989  cat >conftest.$ac_ext <<_ACEOF
7990/* confdefs.h.  */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h.  */
7995$ac_includes_default
7996int
7997main ()
7998{
7999if ((char *) 0)
8000  return 0;
8001if (sizeof (char))
8002  return 0;
8003  ;
8004  return 0;
8005}
8006_ACEOF
8007rm -f conftest.$ac_objext
8008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009  (eval $ac_compile) 2>conftest.er1
8010  ac_status=$?
8011  grep -v '^ *+' conftest.er1 >conftest.err
8012  rm -f conftest.er1
8013  cat conftest.err >&5
8014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015  (exit $ac_status); } &&
8016	 { ac_try='test -z "$ac_cxx_werror_flag"
8017			 || test ! -s conftest.err'
8018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019  (eval $ac_try) 2>&5
8020  ac_status=$?
8021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022  (exit $ac_status); }; } &&
8023	 { ac_try='test -s conftest.$ac_objext'
8024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025  (eval $ac_try) 2>&5
8026  ac_status=$?
8027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028  (exit $ac_status); }; }; then
8029  ac_cv_type_char=yes
8030else
8031  echo "$as_me: failed program was:" >&5
8032sed 's/^/| /' conftest.$ac_ext >&5
8033
8034ac_cv_type_char=no
8035fi
8036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8037fi
8038echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8039echo "${ECHO_T}$ac_cv_type_char" >&6
8040
8041echo "$as_me:$LINENO: checking size of char" >&5
8042echo $ECHO_N "checking size of char... $ECHO_C" >&6
8043if test "${ac_cv_sizeof_char+set}" = set; then
8044  echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046  if test "$ac_cv_type_char" = yes; then
8047  # The cast to unsigned long works around a bug in the HP C Compiler
8048  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8049  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8050  # This bug is HP SR number 8606223364.
8051  if test "$cross_compiling" = yes; then
8052  # Depending upon the size, compute the lo and hi bounds.
8053cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h.  */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h.  */
8059$ac_includes_default
8060int
8061main ()
8062{
8063static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8064test_array [0] = 0
8065
8066  ;
8067  return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext
8071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072  (eval $ac_compile) 2>conftest.er1
8073  ac_status=$?
8074  grep -v '^ *+' conftest.er1 >conftest.err
8075  rm -f conftest.er1
8076  cat conftest.err >&5
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); } &&
8079	 { ac_try='test -z "$ac_cxx_werror_flag"
8080			 || test ! -s conftest.err'
8081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082  (eval $ac_try) 2>&5
8083  ac_status=$?
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); }; } &&
8086	 { ac_try='test -s conftest.$ac_objext'
8087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088  (eval $ac_try) 2>&5
8089  ac_status=$?
8090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091  (exit $ac_status); }; }; then
8092  ac_lo=0 ac_mid=0
8093  while :; do
8094    cat >conftest.$ac_ext <<_ACEOF
8095/* confdefs.h.  */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
8099/* end confdefs.h.  */
8100$ac_includes_default
8101int
8102main ()
8103{
8104static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8105test_array [0] = 0
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext
8112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113  (eval $ac_compile) 2>conftest.er1
8114  ac_status=$?
8115  grep -v '^ *+' conftest.er1 >conftest.err
8116  rm -f conftest.er1
8117  cat conftest.err >&5
8118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119  (exit $ac_status); } &&
8120	 { ac_try='test -z "$ac_cxx_werror_flag"
8121			 || test ! -s conftest.err'
8122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123  (eval $ac_try) 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; } &&
8127	 { ac_try='test -s conftest.$ac_objext'
8128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129  (eval $ac_try) 2>&5
8130  ac_status=$?
8131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132  (exit $ac_status); }; }; then
8133  ac_hi=$ac_mid; break
8134else
8135  echo "$as_me: failed program was:" >&5
8136sed 's/^/| /' conftest.$ac_ext >&5
8137
8138ac_lo=`expr $ac_mid + 1`
8139		    if test $ac_lo -le $ac_mid; then
8140		      ac_lo= ac_hi=
8141		      break
8142		    fi
8143		    ac_mid=`expr 2 '*' $ac_mid + 1`
8144fi
8145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146  done
8147else
8148  echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
8151cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h.  */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h.  */
8157$ac_includes_default
8158int
8159main ()
8160{
8161static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8162test_array [0] = 0
8163
8164  ;
8165  return 0;
8166}
8167_ACEOF
8168rm -f conftest.$ac_objext
8169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170  (eval $ac_compile) 2>conftest.er1
8171  ac_status=$?
8172  grep -v '^ *+' conftest.er1 >conftest.err
8173  rm -f conftest.er1
8174  cat conftest.err >&5
8175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176  (exit $ac_status); } &&
8177	 { ac_try='test -z "$ac_cxx_werror_flag"
8178			 || test ! -s conftest.err'
8179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180  (eval $ac_try) 2>&5
8181  ac_status=$?
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); }; } &&
8184	 { ac_try='test -s conftest.$ac_objext'
8185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186  (eval $ac_try) 2>&5
8187  ac_status=$?
8188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189  (exit $ac_status); }; }; then
8190  ac_hi=-1 ac_mid=-1
8191  while :; do
8192    cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h.  */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h.  */
8198$ac_includes_default
8199int
8200main ()
8201{
8202static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8203test_array [0] = 0
8204
8205  ;
8206  return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext
8210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211  (eval $ac_compile) 2>conftest.er1
8212  ac_status=$?
8213  grep -v '^ *+' conftest.er1 >conftest.err
8214  rm -f conftest.er1
8215  cat conftest.err >&5
8216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217  (exit $ac_status); } &&
8218	 { ac_try='test -z "$ac_cxx_werror_flag"
8219			 || test ! -s conftest.err'
8220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221  (eval $ac_try) 2>&5
8222  ac_status=$?
8223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224  (exit $ac_status); }; } &&
8225	 { ac_try='test -s conftest.$ac_objext'
8226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227  (eval $ac_try) 2>&5
8228  ac_status=$?
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); }; }; then
8231  ac_lo=$ac_mid; break
8232else
8233  echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236ac_hi=`expr '(' $ac_mid ')' - 1`
8237		       if test $ac_mid -le $ac_hi; then
8238			 ac_lo= ac_hi=
8239			 break
8240		       fi
8241		       ac_mid=`expr 2 '*' $ac_mid`
8242fi
8243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8244  done
8245else
8246  echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
8249ac_lo= ac_hi=
8250fi
8251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8252fi
8253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8254# Binary search between lo and hi bounds.
8255while test "x$ac_lo" != "x$ac_hi"; do
8256  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8257  cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h.  */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h.  */
8263$ac_includes_default
8264int
8265main ()
8266{
8267static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8268test_array [0] = 0
8269
8270  ;
8271  return 0;
8272}
8273_ACEOF
8274rm -f conftest.$ac_objext
8275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276  (eval $ac_compile) 2>conftest.er1
8277  ac_status=$?
8278  grep -v '^ *+' conftest.er1 >conftest.err
8279  rm -f conftest.er1
8280  cat conftest.err >&5
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); } &&
8283	 { ac_try='test -z "$ac_cxx_werror_flag"
8284			 || test ! -s conftest.err'
8285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286  (eval $ac_try) 2>&5
8287  ac_status=$?
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); }; } &&
8290	 { ac_try='test -s conftest.$ac_objext'
8291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292  (eval $ac_try) 2>&5
8293  ac_status=$?
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); }; }; then
8296  ac_hi=$ac_mid
8297else
8298  echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
8301ac_lo=`expr '(' $ac_mid ')' + 1`
8302fi
8303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304done
8305case $ac_lo in
8306?*) ac_cv_sizeof_char=$ac_lo;;
8307'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8308See \`config.log' for more details." >&5
8309echo "$as_me: error: cannot compute sizeof (char), 77
8310See \`config.log' for more details." >&2;}
8311   { (exit 1); exit 1; }; } ;;
8312esac
8313else
8314  if test "$cross_compiling" = yes; then
8315  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8316See \`config.log' for more details." >&5
8317echo "$as_me: error: cannot run test program while cross compiling
8318See \`config.log' for more details." >&2;}
8319   { (exit 1); exit 1; }; }
8320else
8321  cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h.  */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h.  */
8327$ac_includes_default
8328long longval () { return (long) (sizeof (char)); }
8329unsigned long ulongval () { return (long) (sizeof (char)); }
8330#include <stdio.h>
8331#include <stdlib.h>
8332int
8333main ()
8334{
8335
8336  FILE *f = fopen ("conftest.val", "w");
8337  if (! f)
8338    exit (1);
8339  if (((long) (sizeof (char))) < 0)
8340    {
8341      long i = longval ();
8342      if (i != ((long) (sizeof (char))))
8343	exit (1);
8344      fprintf (f, "%ld\n", i);
8345    }
8346  else
8347    {
8348      unsigned long i = ulongval ();
8349      if (i != ((long) (sizeof (char))))
8350	exit (1);
8351      fprintf (f, "%lu\n", i);
8352    }
8353  exit (ferror (f) || fclose (f) != 0);
8354
8355  ;
8356  return 0;
8357}
8358_ACEOF
8359rm -f conftest$ac_exeext
8360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361  (eval $ac_link) 2>&5
8362  ac_status=$?
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366  (eval $ac_try) 2>&5
8367  ac_status=$?
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); }; }; then
8370  ac_cv_sizeof_char=`cat conftest.val`
8371else
8372  echo "$as_me: program exited with status $ac_status" >&5
8373echo "$as_me: failed program was:" >&5
8374sed 's/^/| /' conftest.$ac_ext >&5
8375
8376( exit $ac_status )
8377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8378See \`config.log' for more details." >&5
8379echo "$as_me: error: cannot compute sizeof (char), 77
8380See \`config.log' for more details." >&2;}
8381   { (exit 1); exit 1; }; }
8382fi
8383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8384fi
8385fi
8386rm -f conftest.val
8387else
8388  ac_cv_sizeof_char=0
8389fi
8390fi
8391echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8392echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8393cat >>confdefs.h <<_ACEOF
8394#define SIZEOF_CHAR $ac_cv_sizeof_char
8395_ACEOF
8396
8397
8398  if test "$ac_cv_sizeof_char" -eq 1; then
8399    int8_t="char"
8400    return
8401  fi
8402
8403
8404
8405
8406
8407
8408
8409
8410    :
8411  }
8412  find_int8_t
8413
8414cat >>confdefs.h <<_ACEOF
8415#define int8_t $int8_t
8416_ACEOF
8417
8418
8419fi
8420
8421
8422
8423
8424echo "$as_me:$LINENO: checking for uint8_t" >&5
8425echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
8426if test "${ac_cv_type_uint8_t+set}" = set; then
8427  echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429  cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h.  */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h.  */
8435$ac_includes_default
8436int
8437main ()
8438{
8439if ((uint8_t *) 0)
8440  return 0;
8441if (sizeof (uint8_t))
8442  return 0;
8443  ;
8444  return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext
8448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449  (eval $ac_compile) 2>conftest.er1
8450  ac_status=$?
8451  grep -v '^ *+' conftest.er1 >conftest.err
8452  rm -f conftest.er1
8453  cat conftest.err >&5
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); } &&
8456	 { ac_try='test -z "$ac_cxx_werror_flag"
8457			 || test ! -s conftest.err'
8458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459  (eval $ac_try) 2>&5
8460  ac_status=$?
8461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462  (exit $ac_status); }; } &&
8463	 { ac_try='test -s conftest.$ac_objext'
8464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465  (eval $ac_try) 2>&5
8466  ac_status=$?
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); }; }; then
8469  ac_cv_type_uint8_t=yes
8470else
8471  echo "$as_me: failed program was:" >&5
8472sed 's/^/| /' conftest.$ac_ext >&5
8473
8474ac_cv_type_uint8_t=no
8475fi
8476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8477fi
8478echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
8479echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
8480if test $ac_cv_type_uint8_t = yes; then
8481  :
8482else
8483
8484  { echo "$as_me:$LINENO: trying to find a suitable 1-byte replacement for uint8_t" >&5
8485echo "$as_me: trying to find a suitable 1-byte replacement for uint8_t" >&6;}
8486  uint8_t=no
8487  find_uint8_t ()
8488  {
8489
8490
8491  echo "$as_me:$LINENO: checking for unsigned int8_t" >&5
8492echo $ECHO_N "checking for unsigned int8_t... $ECHO_C" >&6
8493if test "${ac_cv_type_unsigned_int8_t+set}" = set; then
8494  echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496  cat >conftest.$ac_ext <<_ACEOF
8497/* confdefs.h.  */
8498_ACEOF
8499cat confdefs.h >>conftest.$ac_ext
8500cat >>conftest.$ac_ext <<_ACEOF
8501/* end confdefs.h.  */
8502$ac_includes_default
8503int
8504main ()
8505{
8506if ((unsigned int8_t *) 0)
8507  return 0;
8508if (sizeof (unsigned int8_t))
8509  return 0;
8510  ;
8511  return 0;
8512}
8513_ACEOF
8514rm -f conftest.$ac_objext
8515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516  (eval $ac_compile) 2>conftest.er1
8517  ac_status=$?
8518  grep -v '^ *+' conftest.er1 >conftest.err
8519  rm -f conftest.er1
8520  cat conftest.err >&5
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); } &&
8523	 { ac_try='test -z "$ac_cxx_werror_flag"
8524			 || test ! -s conftest.err'
8525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526  (eval $ac_try) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); }; } &&
8530	 { ac_try='test -s conftest.$ac_objext'
8531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532  (eval $ac_try) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); }; }; then
8536  ac_cv_type_unsigned_int8_t=yes
8537else
8538  echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541ac_cv_type_unsigned_int8_t=no
8542fi
8543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8544fi
8545echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int8_t" >&5
8546echo "${ECHO_T}$ac_cv_type_unsigned_int8_t" >&6
8547
8548echo "$as_me:$LINENO: checking size of unsigned int8_t" >&5
8549echo $ECHO_N "checking size of unsigned int8_t... $ECHO_C" >&6
8550if test "${ac_cv_sizeof_unsigned_int8_t+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  if test "$ac_cv_type_unsigned_int8_t" = yes; then
8554  # The cast to unsigned long works around a bug in the HP C Compiler
8555  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8556  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8557  # This bug is HP SR number 8606223364.
8558  if test "$cross_compiling" = yes; then
8559  # Depending upon the size, compute the lo and hi bounds.
8560cat >conftest.$ac_ext <<_ACEOF
8561/* confdefs.h.  */
8562_ACEOF
8563cat confdefs.h >>conftest.$ac_ext
8564cat >>conftest.$ac_ext <<_ACEOF
8565/* end confdefs.h.  */
8566$ac_includes_default
8567int
8568main ()
8569{
8570static int test_array [1 - 2 * !(((long) (sizeof (unsigned int8_t))) >= 0)];
8571test_array [0] = 0
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577rm -f conftest.$ac_objext
8578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8579  (eval $ac_compile) 2>conftest.er1
8580  ac_status=$?
8581  grep -v '^ *+' conftest.er1 >conftest.err
8582  rm -f conftest.er1
8583  cat conftest.err >&5
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); } &&
8586	 { ac_try='test -z "$ac_cxx_werror_flag"
8587			 || test ! -s conftest.err'
8588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589  (eval $ac_try) 2>&5
8590  ac_status=$?
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); }; } &&
8593	 { ac_try='test -s conftest.$ac_objext'
8594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595  (eval $ac_try) 2>&5
8596  ac_status=$?
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); }; }; then
8599  ac_lo=0 ac_mid=0
8600  while :; do
8601    cat >conftest.$ac_ext <<_ACEOF
8602/* confdefs.h.  */
8603_ACEOF
8604cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h.  */
8607$ac_includes_default
8608int
8609main ()
8610{
8611static int test_array [1 - 2 * !(((long) (sizeof (unsigned int8_t))) <= $ac_mid)];
8612test_array [0] = 0
8613
8614  ;
8615  return 0;
8616}
8617_ACEOF
8618rm -f conftest.$ac_objext
8619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620  (eval $ac_compile) 2>conftest.er1
8621  ac_status=$?
8622  grep -v '^ *+' conftest.er1 >conftest.err
8623  rm -f conftest.er1
8624  cat conftest.err >&5
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); } &&
8627	 { ac_try='test -z "$ac_cxx_werror_flag"
8628			 || test ! -s conftest.err'
8629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630  (eval $ac_try) 2>&5
8631  ac_status=$?
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); }; } &&
8634	 { ac_try='test -s conftest.$ac_objext'
8635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636  (eval $ac_try) 2>&5
8637  ac_status=$?
8638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639  (exit $ac_status); }; }; then
8640  ac_hi=$ac_mid; break
8641else
8642  echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645ac_lo=`expr $ac_mid + 1`
8646		    if test $ac_lo -le $ac_mid; then
8647		      ac_lo= ac_hi=
8648		      break
8649		    fi
8650		    ac_mid=`expr 2 '*' $ac_mid + 1`
8651fi
8652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8653  done
8654else
8655  echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h.  */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h.  */
8664$ac_includes_default
8665int
8666main ()
8667{
8668static int test_array [1 - 2 * !(((long) (sizeof (unsigned int8_t))) < 0)];
8669test_array [0] = 0
8670
8671  ;
8672  return 0;
8673}
8674_ACEOF
8675rm -f conftest.$ac_objext
8676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677  (eval $ac_compile) 2>conftest.er1
8678  ac_status=$?
8679  grep -v '^ *+' conftest.er1 >conftest.err
8680  rm -f conftest.er1
8681  cat conftest.err >&5
8682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683  (exit $ac_status); } &&
8684	 { ac_try='test -z "$ac_cxx_werror_flag"
8685			 || test ! -s conftest.err'
8686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687  (eval $ac_try) 2>&5
8688  ac_status=$?
8689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690  (exit $ac_status); }; } &&
8691	 { ac_try='test -s conftest.$ac_objext'
8692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693  (eval $ac_try) 2>&5
8694  ac_status=$?
8695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696  (exit $ac_status); }; }; then
8697  ac_hi=-1 ac_mid=-1
8698  while :; do
8699    cat >conftest.$ac_ext <<_ACEOF
8700/* confdefs.h.  */
8701_ACEOF
8702cat confdefs.h >>conftest.$ac_ext
8703cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h.  */
8705$ac_includes_default
8706int
8707main ()
8708{
8709static int test_array [1 - 2 * !(((long) (sizeof (unsigned int8_t))) >= $ac_mid)];
8710test_array [0] = 0
8711
8712  ;
8713  return 0;
8714}
8715_ACEOF
8716rm -f conftest.$ac_objext
8717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718  (eval $ac_compile) 2>conftest.er1
8719  ac_status=$?
8720  grep -v '^ *+' conftest.er1 >conftest.err
8721  rm -f conftest.er1
8722  cat conftest.err >&5
8723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724  (exit $ac_status); } &&
8725	 { ac_try='test -z "$ac_cxx_werror_flag"
8726			 || test ! -s conftest.err'
8727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728  (eval $ac_try) 2>&5
8729  ac_status=$?
8730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731  (exit $ac_status); }; } &&
8732	 { ac_try='test -s conftest.$ac_objext'
8733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734  (eval $ac_try) 2>&5
8735  ac_status=$?
8736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737  (exit $ac_status); }; }; then
8738  ac_lo=$ac_mid; break
8739else
8740  echo "$as_me: failed program was:" >&5
8741sed 's/^/| /' conftest.$ac_ext >&5
8742
8743ac_hi=`expr '(' $ac_mid ')' - 1`
8744		       if test $ac_mid -le $ac_hi; then
8745			 ac_lo= ac_hi=
8746			 break
8747		       fi
8748		       ac_mid=`expr 2 '*' $ac_mid`
8749fi
8750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751  done
8752else
8753  echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756ac_lo= ac_hi=
8757fi
8758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759fi
8760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761# Binary search between lo and hi bounds.
8762while test "x$ac_lo" != "x$ac_hi"; do
8763  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8764  cat >conftest.$ac_ext <<_ACEOF
8765/* confdefs.h.  */
8766_ACEOF
8767cat confdefs.h >>conftest.$ac_ext
8768cat >>conftest.$ac_ext <<_ACEOF
8769/* end confdefs.h.  */
8770$ac_includes_default
8771int
8772main ()
8773{
8774static int test_array [1 - 2 * !(((long) (sizeof (unsigned int8_t))) <= $ac_mid)];
8775test_array [0] = 0
8776
8777  ;
8778  return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext
8782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783  (eval $ac_compile) 2>conftest.er1
8784  ac_status=$?
8785  grep -v '^ *+' conftest.er1 >conftest.err
8786  rm -f conftest.er1
8787  cat conftest.err >&5
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); } &&
8790	 { ac_try='test -z "$ac_cxx_werror_flag"
8791			 || test ! -s conftest.err'
8792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793  (eval $ac_try) 2>&5
8794  ac_status=$?
8795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796  (exit $ac_status); }; } &&
8797	 { ac_try='test -s conftest.$ac_objext'
8798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799  (eval $ac_try) 2>&5
8800  ac_status=$?
8801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802  (exit $ac_status); }; }; then
8803  ac_hi=$ac_mid
8804else
8805  echo "$as_me: failed program was:" >&5
8806sed 's/^/| /' conftest.$ac_ext >&5
8807
8808ac_lo=`expr '(' $ac_mid ')' + 1`
8809fi
8810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811done
8812case $ac_lo in
8813?*) ac_cv_sizeof_unsigned_int8_t=$ac_lo;;
8814'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int8_t), 77
8815See \`config.log' for more details." >&5
8816echo "$as_me: error: cannot compute sizeof (unsigned int8_t), 77
8817See \`config.log' for more details." >&2;}
8818   { (exit 1); exit 1; }; } ;;
8819esac
8820else
8821  if test "$cross_compiling" = yes; then
8822  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8823See \`config.log' for more details." >&5
8824echo "$as_me: error: cannot run test program while cross compiling
8825See \`config.log' for more details." >&2;}
8826   { (exit 1); exit 1; }; }
8827else
8828  cat >conftest.$ac_ext <<_ACEOF
8829/* confdefs.h.  */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h.  */
8834$ac_includes_default
8835long longval () { return (long) (sizeof (unsigned int8_t)); }
8836unsigned long ulongval () { return (long) (sizeof (unsigned int8_t)); }
8837#include <stdio.h>
8838#include <stdlib.h>
8839int
8840main ()
8841{
8842
8843  FILE *f = fopen ("conftest.val", "w");
8844  if (! f)
8845    exit (1);
8846  if (((long) (sizeof (unsigned int8_t))) < 0)
8847    {
8848      long i = longval ();
8849      if (i != ((long) (sizeof (unsigned int8_t))))
8850	exit (1);
8851      fprintf (f, "%ld\n", i);
8852    }
8853  else
8854    {
8855      unsigned long i = ulongval ();
8856      if (i != ((long) (sizeof (unsigned int8_t))))
8857	exit (1);
8858      fprintf (f, "%lu\n", i);
8859    }
8860  exit (ferror (f) || fclose (f) != 0);
8861
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866rm -f conftest$ac_exeext
8867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868  (eval $ac_link) 2>&5
8869  ac_status=$?
8870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873  (eval $ac_try) 2>&5
8874  ac_status=$?
8875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876  (exit $ac_status); }; }; then
8877  ac_cv_sizeof_unsigned_int8_t=`cat conftest.val`
8878else
8879  echo "$as_me: program exited with status $ac_status" >&5
8880echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883( exit $ac_status )
8884{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int8_t), 77
8885See \`config.log' for more details." >&5
8886echo "$as_me: error: cannot compute sizeof (unsigned int8_t), 77
8887See \`config.log' for more details." >&2;}
8888   { (exit 1); exit 1; }; }
8889fi
8890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8891fi
8892fi
8893rm -f conftest.val
8894else
8895  ac_cv_sizeof_unsigned_int8_t=0
8896fi
8897fi
8898echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int8_t" >&5
8899echo "${ECHO_T}$ac_cv_sizeof_unsigned_int8_t" >&6
8900cat >>confdefs.h <<_ACEOF
8901#define SIZEOF_UNSIGNED_INT8_T $ac_cv_sizeof_unsigned_int8_t
8902_ACEOF
8903
8904
8905  if test "$ac_cv_sizeof_unsigned_int8_t" -eq 1; then
8906    uint8_t="unsigned int8_t"
8907    return
8908  fi
8909
8910
8911  echo "$as_me:$LINENO: checking for unsigned char" >&5
8912echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
8913if test "${ac_cv_type_unsigned_char+set}" = set; then
8914  echo $ECHO_N "(cached) $ECHO_C" >&6
8915else
8916  cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h.  */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h.  */
8922$ac_includes_default
8923int
8924main ()
8925{
8926if ((unsigned char *) 0)
8927  return 0;
8928if (sizeof (unsigned char))
8929  return 0;
8930  ;
8931  return 0;
8932}
8933_ACEOF
8934rm -f conftest.$ac_objext
8935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8936  (eval $ac_compile) 2>conftest.er1
8937  ac_status=$?
8938  grep -v '^ *+' conftest.er1 >conftest.err
8939  rm -f conftest.er1
8940  cat conftest.err >&5
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); } &&
8943	 { ac_try='test -z "$ac_cxx_werror_flag"
8944			 || test ! -s conftest.err'
8945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946  (eval $ac_try) 2>&5
8947  ac_status=$?
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); }; } &&
8950	 { ac_try='test -s conftest.$ac_objext'
8951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952  (eval $ac_try) 2>&5
8953  ac_status=$?
8954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955  (exit $ac_status); }; }; then
8956  ac_cv_type_unsigned_char=yes
8957else
8958  echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
8960
8961ac_cv_type_unsigned_char=no
8962fi
8963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964fi
8965echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
8966echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
8967
8968echo "$as_me:$LINENO: checking size of unsigned char" >&5
8969echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
8970if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
8971  echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973  if test "$ac_cv_type_unsigned_char" = yes; then
8974  # The cast to unsigned long works around a bug in the HP C Compiler
8975  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8976  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8977  # This bug is HP SR number 8606223364.
8978  if test "$cross_compiling" = yes; then
8979  # Depending upon the size, compute the lo and hi bounds.
8980cat >conftest.$ac_ext <<_ACEOF
8981/* confdefs.h.  */
8982_ACEOF
8983cat confdefs.h >>conftest.$ac_ext
8984cat >>conftest.$ac_ext <<_ACEOF
8985/* end confdefs.h.  */
8986$ac_includes_default
8987int
8988main ()
8989{
8990static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
8991test_array [0] = 0
8992
8993  ;
8994  return 0;
8995}
8996_ACEOF
8997rm -f conftest.$ac_objext
8998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999  (eval $ac_compile) 2>conftest.er1
9000  ac_status=$?
9001  grep -v '^ *+' conftest.er1 >conftest.err
9002  rm -f conftest.er1
9003  cat conftest.err >&5
9004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005  (exit $ac_status); } &&
9006	 { ac_try='test -z "$ac_cxx_werror_flag"
9007			 || test ! -s conftest.err'
9008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009  (eval $ac_try) 2>&5
9010  ac_status=$?
9011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012  (exit $ac_status); }; } &&
9013	 { ac_try='test -s conftest.$ac_objext'
9014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015  (eval $ac_try) 2>&5
9016  ac_status=$?
9017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018  (exit $ac_status); }; }; then
9019  ac_lo=0 ac_mid=0
9020  while :; do
9021    cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h.  */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h.  */
9027$ac_includes_default
9028int
9029main ()
9030{
9031static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
9032test_array [0] = 0
9033
9034  ;
9035  return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext
9039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9040  (eval $ac_compile) 2>conftest.er1
9041  ac_status=$?
9042  grep -v '^ *+' conftest.er1 >conftest.err
9043  rm -f conftest.er1
9044  cat conftest.err >&5
9045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046  (exit $ac_status); } &&
9047	 { ac_try='test -z "$ac_cxx_werror_flag"
9048			 || test ! -s conftest.err'
9049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050  (eval $ac_try) 2>&5
9051  ac_status=$?
9052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053  (exit $ac_status); }; } &&
9054	 { ac_try='test -s conftest.$ac_objext'
9055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056  (eval $ac_try) 2>&5
9057  ac_status=$?
9058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059  (exit $ac_status); }; }; then
9060  ac_hi=$ac_mid; break
9061else
9062  echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065ac_lo=`expr $ac_mid + 1`
9066		    if test $ac_lo -le $ac_mid; then
9067		      ac_lo= ac_hi=
9068		      break
9069		    fi
9070		    ac_mid=`expr 2 '*' $ac_mid + 1`
9071fi
9072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9073  done
9074else
9075  echo "$as_me: failed program was:" >&5
9076sed 's/^/| /' conftest.$ac_ext >&5
9077
9078cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h.  */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h.  */
9084$ac_includes_default
9085int
9086main ()
9087{
9088static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
9089test_array [0] = 0
9090
9091  ;
9092  return 0;
9093}
9094_ACEOF
9095rm -f conftest.$ac_objext
9096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9097  (eval $ac_compile) 2>conftest.er1
9098  ac_status=$?
9099  grep -v '^ *+' conftest.er1 >conftest.err
9100  rm -f conftest.er1
9101  cat conftest.err >&5
9102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103  (exit $ac_status); } &&
9104	 { ac_try='test -z "$ac_cxx_werror_flag"
9105			 || test ! -s conftest.err'
9106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107  (eval $ac_try) 2>&5
9108  ac_status=$?
9109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110  (exit $ac_status); }; } &&
9111	 { ac_try='test -s conftest.$ac_objext'
9112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113  (eval $ac_try) 2>&5
9114  ac_status=$?
9115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116  (exit $ac_status); }; }; then
9117  ac_hi=-1 ac_mid=-1
9118  while :; do
9119    cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h.  */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h.  */
9125$ac_includes_default
9126int
9127main ()
9128{
9129static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
9130test_array [0] = 0
9131
9132  ;
9133  return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
9137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138  (eval $ac_compile) 2>conftest.er1
9139  ac_status=$?
9140  grep -v '^ *+' conftest.er1 >conftest.err
9141  rm -f conftest.er1
9142  cat conftest.err >&5
9143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144  (exit $ac_status); } &&
9145	 { ac_try='test -z "$ac_cxx_werror_flag"
9146			 || test ! -s conftest.err'
9147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148  (eval $ac_try) 2>&5
9149  ac_status=$?
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); }; } &&
9152	 { ac_try='test -s conftest.$ac_objext'
9153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154  (eval $ac_try) 2>&5
9155  ac_status=$?
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }; }; then
9158  ac_lo=$ac_mid; break
9159else
9160  echo "$as_me: failed program was:" >&5
9161sed 's/^/| /' conftest.$ac_ext >&5
9162
9163ac_hi=`expr '(' $ac_mid ')' - 1`
9164		       if test $ac_mid -le $ac_hi; then
9165			 ac_lo= ac_hi=
9166			 break
9167		       fi
9168		       ac_mid=`expr 2 '*' $ac_mid`
9169fi
9170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9171  done
9172else
9173  echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
9176ac_lo= ac_hi=
9177fi
9178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9179fi
9180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9181# Binary search between lo and hi bounds.
9182while test "x$ac_lo" != "x$ac_hi"; do
9183  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9184  cat >conftest.$ac_ext <<_ACEOF
9185/* confdefs.h.  */
9186_ACEOF
9187cat confdefs.h >>conftest.$ac_ext
9188cat >>conftest.$ac_ext <<_ACEOF
9189/* end confdefs.h.  */
9190$ac_includes_default
9191int
9192main ()
9193{
9194static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
9195test_array [0] = 0
9196
9197  ;
9198  return 0;
9199}
9200_ACEOF
9201rm -f conftest.$ac_objext
9202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203  (eval $ac_compile) 2>conftest.er1
9204  ac_status=$?
9205  grep -v '^ *+' conftest.er1 >conftest.err
9206  rm -f conftest.er1
9207  cat conftest.err >&5
9208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209  (exit $ac_status); } &&
9210	 { ac_try='test -z "$ac_cxx_werror_flag"
9211			 || test ! -s conftest.err'
9212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213  (eval $ac_try) 2>&5
9214  ac_status=$?
9215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216  (exit $ac_status); }; } &&
9217	 { ac_try='test -s conftest.$ac_objext'
9218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219  (eval $ac_try) 2>&5
9220  ac_status=$?
9221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222  (exit $ac_status); }; }; then
9223  ac_hi=$ac_mid
9224else
9225  echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228ac_lo=`expr '(' $ac_mid ')' + 1`
9229fi
9230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231done
9232case $ac_lo in
9233?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
9234'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
9235See \`config.log' for more details." >&5
9236echo "$as_me: error: cannot compute sizeof (unsigned char), 77
9237See \`config.log' for more details." >&2;}
9238   { (exit 1); exit 1; }; } ;;
9239esac
9240else
9241  if test "$cross_compiling" = yes; then
9242  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9243See \`config.log' for more details." >&5
9244echo "$as_me: error: cannot run test program while cross compiling
9245See \`config.log' for more details." >&2;}
9246   { (exit 1); exit 1; }; }
9247else
9248  cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h.  */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h.  */
9254$ac_includes_default
9255long longval () { return (long) (sizeof (unsigned char)); }
9256unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
9257#include <stdio.h>
9258#include <stdlib.h>
9259int
9260main ()
9261{
9262
9263  FILE *f = fopen ("conftest.val", "w");
9264  if (! f)
9265    exit (1);
9266  if (((long) (sizeof (unsigned char))) < 0)
9267    {
9268      long i = longval ();
9269      if (i != ((long) (sizeof (unsigned char))))
9270	exit (1);
9271      fprintf (f, "%ld\n", i);
9272    }
9273  else
9274    {
9275      unsigned long i = ulongval ();
9276      if (i != ((long) (sizeof (unsigned char))))
9277	exit (1);
9278      fprintf (f, "%lu\n", i);
9279    }
9280  exit (ferror (f) || fclose (f) != 0);
9281
9282  ;
9283  return 0;
9284}
9285_ACEOF
9286rm -f conftest$ac_exeext
9287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288  (eval $ac_link) 2>&5
9289  ac_status=$?
9290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293  (eval $ac_try) 2>&5
9294  ac_status=$?
9295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296  (exit $ac_status); }; }; then
9297  ac_cv_sizeof_unsigned_char=`cat conftest.val`
9298else
9299  echo "$as_me: program exited with status $ac_status" >&5
9300echo "$as_me: failed program was:" >&5
9301sed 's/^/| /' conftest.$ac_ext >&5
9302
9303( exit $ac_status )
9304{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
9305See \`config.log' for more details." >&5
9306echo "$as_me: error: cannot compute sizeof (unsigned char), 77
9307See \`config.log' for more details." >&2;}
9308   { (exit 1); exit 1; }; }
9309fi
9310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9311fi
9312fi
9313rm -f conftest.val
9314else
9315  ac_cv_sizeof_unsigned_char=0
9316fi
9317fi
9318echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
9319echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
9320cat >>confdefs.h <<_ACEOF
9321#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
9322_ACEOF
9323
9324
9325  if test "$ac_cv_sizeof_unsigned_char" -eq 1; then
9326    uint8_t="unsigned char"
9327    return
9328  fi
9329
9330
9331  echo "$as_me:$LINENO: checking for unsigned __int8" >&5
9332echo $ECHO_N "checking for unsigned __int8... $ECHO_C" >&6
9333if test "${ac_cv_type_unsigned___int8+set}" = set; then
9334  echo $ECHO_N "(cached) $ECHO_C" >&6
9335else
9336  cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h.  */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h.  */
9342$ac_includes_default
9343int
9344main ()
9345{
9346if ((unsigned __int8 *) 0)
9347  return 0;
9348if (sizeof (unsigned __int8))
9349  return 0;
9350  ;
9351  return 0;
9352}
9353_ACEOF
9354rm -f conftest.$ac_objext
9355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9356  (eval $ac_compile) 2>conftest.er1
9357  ac_status=$?
9358  grep -v '^ *+' conftest.er1 >conftest.err
9359  rm -f conftest.er1
9360  cat conftest.err >&5
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); } &&
9363	 { ac_try='test -z "$ac_cxx_werror_flag"
9364			 || test ! -s conftest.err'
9365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366  (eval $ac_try) 2>&5
9367  ac_status=$?
9368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369  (exit $ac_status); }; } &&
9370	 { ac_try='test -s conftest.$ac_objext'
9371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372  (eval $ac_try) 2>&5
9373  ac_status=$?
9374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375  (exit $ac_status); }; }; then
9376  ac_cv_type_unsigned___int8=yes
9377else
9378  echo "$as_me: failed program was:" >&5
9379sed 's/^/| /' conftest.$ac_ext >&5
9380
9381ac_cv_type_unsigned___int8=no
9382fi
9383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9384fi
9385echo "$as_me:$LINENO: result: $ac_cv_type_unsigned___int8" >&5
9386echo "${ECHO_T}$ac_cv_type_unsigned___int8" >&6
9387
9388echo "$as_me:$LINENO: checking size of unsigned __int8" >&5
9389echo $ECHO_N "checking size of unsigned __int8... $ECHO_C" >&6
9390if test "${ac_cv_sizeof_unsigned___int8+set}" = set; then
9391  echo $ECHO_N "(cached) $ECHO_C" >&6
9392else
9393  if test "$ac_cv_type_unsigned___int8" = yes; then
9394  # The cast to unsigned long works around a bug in the HP C Compiler
9395  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9396  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9397  # This bug is HP SR number 8606223364.
9398  if test "$cross_compiling" = yes; then
9399  # Depending upon the size, compute the lo and hi bounds.
9400cat >conftest.$ac_ext <<_ACEOF
9401/* confdefs.h.  */
9402_ACEOF
9403cat confdefs.h >>conftest.$ac_ext
9404cat >>conftest.$ac_ext <<_ACEOF
9405/* end confdefs.h.  */
9406$ac_includes_default
9407int
9408main ()
9409{
9410static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int8))) >= 0)];
9411test_array [0] = 0
9412
9413  ;
9414  return 0;
9415}
9416_ACEOF
9417rm -f conftest.$ac_objext
9418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9419  (eval $ac_compile) 2>conftest.er1
9420  ac_status=$?
9421  grep -v '^ *+' conftest.er1 >conftest.err
9422  rm -f conftest.er1
9423  cat conftest.err >&5
9424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425  (exit $ac_status); } &&
9426	 { ac_try='test -z "$ac_cxx_werror_flag"
9427			 || test ! -s conftest.err'
9428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429  (eval $ac_try) 2>&5
9430  ac_status=$?
9431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432  (exit $ac_status); }; } &&
9433	 { ac_try='test -s conftest.$ac_objext'
9434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435  (eval $ac_try) 2>&5
9436  ac_status=$?
9437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438  (exit $ac_status); }; }; then
9439  ac_lo=0 ac_mid=0
9440  while :; do
9441    cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h.  */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h.  */
9447$ac_includes_default
9448int
9449main ()
9450{
9451static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int8))) <= $ac_mid)];
9452test_array [0] = 0
9453
9454  ;
9455  return 0;
9456}
9457_ACEOF
9458rm -f conftest.$ac_objext
9459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9460  (eval $ac_compile) 2>conftest.er1
9461  ac_status=$?
9462  grep -v '^ *+' conftest.er1 >conftest.err
9463  rm -f conftest.er1
9464  cat conftest.err >&5
9465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466  (exit $ac_status); } &&
9467	 { ac_try='test -z "$ac_cxx_werror_flag"
9468			 || test ! -s conftest.err'
9469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470  (eval $ac_try) 2>&5
9471  ac_status=$?
9472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473  (exit $ac_status); }; } &&
9474	 { ac_try='test -s conftest.$ac_objext'
9475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476  (eval $ac_try) 2>&5
9477  ac_status=$?
9478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479  (exit $ac_status); }; }; then
9480  ac_hi=$ac_mid; break
9481else
9482  echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485ac_lo=`expr $ac_mid + 1`
9486		    if test $ac_lo -le $ac_mid; then
9487		      ac_lo= ac_hi=
9488		      break
9489		    fi
9490		    ac_mid=`expr 2 '*' $ac_mid + 1`
9491fi
9492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9493  done
9494else
9495  echo "$as_me: failed program was:" >&5
9496sed 's/^/| /' conftest.$ac_ext >&5
9497
9498cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h.  */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h.  */
9504$ac_includes_default
9505int
9506main ()
9507{
9508static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int8))) < 0)];
9509test_array [0] = 0
9510
9511  ;
9512  return 0;
9513}
9514_ACEOF
9515rm -f conftest.$ac_objext
9516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517  (eval $ac_compile) 2>conftest.er1
9518  ac_status=$?
9519  grep -v '^ *+' conftest.er1 >conftest.err
9520  rm -f conftest.er1
9521  cat conftest.err >&5
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); } &&
9524	 { ac_try='test -z "$ac_cxx_werror_flag"
9525			 || test ! -s conftest.err'
9526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527  (eval $ac_try) 2>&5
9528  ac_status=$?
9529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530  (exit $ac_status); }; } &&
9531	 { ac_try='test -s conftest.$ac_objext'
9532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533  (eval $ac_try) 2>&5
9534  ac_status=$?
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); }; }; then
9537  ac_hi=-1 ac_mid=-1
9538  while :; do
9539    cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h.  */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h.  */
9545$ac_includes_default
9546int
9547main ()
9548{
9549static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int8))) >= $ac_mid)];
9550test_array [0] = 0
9551
9552  ;
9553  return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext
9557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558  (eval $ac_compile) 2>conftest.er1
9559  ac_status=$?
9560  grep -v '^ *+' conftest.er1 >conftest.err
9561  rm -f conftest.er1
9562  cat conftest.err >&5
9563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564  (exit $ac_status); } &&
9565	 { ac_try='test -z "$ac_cxx_werror_flag"
9566			 || test ! -s conftest.err'
9567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568  (eval $ac_try) 2>&5
9569  ac_status=$?
9570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571  (exit $ac_status); }; } &&
9572	 { ac_try='test -s conftest.$ac_objext'
9573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574  (eval $ac_try) 2>&5
9575  ac_status=$?
9576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577  (exit $ac_status); }; }; then
9578  ac_lo=$ac_mid; break
9579else
9580  echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583ac_hi=`expr '(' $ac_mid ')' - 1`
9584		       if test $ac_mid -le $ac_hi; then
9585			 ac_lo= ac_hi=
9586			 break
9587		       fi
9588		       ac_mid=`expr 2 '*' $ac_mid`
9589fi
9590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9591  done
9592else
9593  echo "$as_me: failed program was:" >&5
9594sed 's/^/| /' conftest.$ac_ext >&5
9595
9596ac_lo= ac_hi=
9597fi
9598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9599fi
9600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9601# Binary search between lo and hi bounds.
9602while test "x$ac_lo" != "x$ac_hi"; do
9603  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9604  cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h.  */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h.  */
9610$ac_includes_default
9611int
9612main ()
9613{
9614static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int8))) <= $ac_mid)];
9615test_array [0] = 0
9616
9617  ;
9618  return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext
9622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623  (eval $ac_compile) 2>conftest.er1
9624  ac_status=$?
9625  grep -v '^ *+' conftest.er1 >conftest.err
9626  rm -f conftest.er1
9627  cat conftest.err >&5
9628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629  (exit $ac_status); } &&
9630	 { ac_try='test -z "$ac_cxx_werror_flag"
9631			 || test ! -s conftest.err'
9632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633  (eval $ac_try) 2>&5
9634  ac_status=$?
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); }; } &&
9637	 { ac_try='test -s conftest.$ac_objext'
9638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639  (eval $ac_try) 2>&5
9640  ac_status=$?
9641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642  (exit $ac_status); }; }; then
9643  ac_hi=$ac_mid
9644else
9645  echo "$as_me: failed program was:" >&5
9646sed 's/^/| /' conftest.$ac_ext >&5
9647
9648ac_lo=`expr '(' $ac_mid ')' + 1`
9649fi
9650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9651done
9652case $ac_lo in
9653?*) ac_cv_sizeof_unsigned___int8=$ac_lo;;
9654'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int8), 77
9655See \`config.log' for more details." >&5
9656echo "$as_me: error: cannot compute sizeof (unsigned __int8), 77
9657See \`config.log' for more details." >&2;}
9658   { (exit 1); exit 1; }; } ;;
9659esac
9660else
9661  if test "$cross_compiling" = yes; then
9662  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9663See \`config.log' for more details." >&5
9664echo "$as_me: error: cannot run test program while cross compiling
9665See \`config.log' for more details." >&2;}
9666   { (exit 1); exit 1; }; }
9667else
9668  cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h.  */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h.  */
9674$ac_includes_default
9675long longval () { return (long) (sizeof (unsigned __int8)); }
9676unsigned long ulongval () { return (long) (sizeof (unsigned __int8)); }
9677#include <stdio.h>
9678#include <stdlib.h>
9679int
9680main ()
9681{
9682
9683  FILE *f = fopen ("conftest.val", "w");
9684  if (! f)
9685    exit (1);
9686  if (((long) (sizeof (unsigned __int8))) < 0)
9687    {
9688      long i = longval ();
9689      if (i != ((long) (sizeof (unsigned __int8))))
9690	exit (1);
9691      fprintf (f, "%ld\n", i);
9692    }
9693  else
9694    {
9695      unsigned long i = ulongval ();
9696      if (i != ((long) (sizeof (unsigned __int8))))
9697	exit (1);
9698      fprintf (f, "%lu\n", i);
9699    }
9700  exit (ferror (f) || fclose (f) != 0);
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706rm -f conftest$ac_exeext
9707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708  (eval $ac_link) 2>&5
9709  ac_status=$?
9710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713  (eval $ac_try) 2>&5
9714  ac_status=$?
9715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716  (exit $ac_status); }; }; then
9717  ac_cv_sizeof_unsigned___int8=`cat conftest.val`
9718else
9719  echo "$as_me: program exited with status $ac_status" >&5
9720echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
9723( exit $ac_status )
9724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int8), 77
9725See \`config.log' for more details." >&5
9726echo "$as_me: error: cannot compute sizeof (unsigned __int8), 77
9727See \`config.log' for more details." >&2;}
9728   { (exit 1); exit 1; }; }
9729fi
9730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9731fi
9732fi
9733rm -f conftest.val
9734else
9735  ac_cv_sizeof_unsigned___int8=0
9736fi
9737fi
9738echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned___int8" >&5
9739echo "${ECHO_T}$ac_cv_sizeof_unsigned___int8" >&6
9740cat >>confdefs.h <<_ACEOF
9741#define SIZEOF_UNSIGNED___INT8 $ac_cv_sizeof_unsigned___int8
9742_ACEOF
9743
9744
9745  if test "$ac_cv_sizeof_unsigned___int8" -eq 1; then
9746    uint8_t="unsigned __int8"
9747    return
9748  fi
9749
9750
9751  echo "$as_me:$LINENO: checking for char" >&5
9752echo $ECHO_N "checking for char... $ECHO_C" >&6
9753if test "${ac_cv_type_char+set}" = set; then
9754  echo $ECHO_N "(cached) $ECHO_C" >&6
9755else
9756  cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h.  */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h.  */
9762$ac_includes_default
9763int
9764main ()
9765{
9766if ((char *) 0)
9767  return 0;
9768if (sizeof (char))
9769  return 0;
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774rm -f conftest.$ac_objext
9775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9776  (eval $ac_compile) 2>conftest.er1
9777  ac_status=$?
9778  grep -v '^ *+' conftest.er1 >conftest.err
9779  rm -f conftest.er1
9780  cat conftest.err >&5
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); } &&
9783	 { ac_try='test -z "$ac_cxx_werror_flag"
9784			 || test ! -s conftest.err'
9785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786  (eval $ac_try) 2>&5
9787  ac_status=$?
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); }; } &&
9790	 { ac_try='test -s conftest.$ac_objext'
9791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792  (eval $ac_try) 2>&5
9793  ac_status=$?
9794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795  (exit $ac_status); }; }; then
9796  ac_cv_type_char=yes
9797else
9798  echo "$as_me: failed program was:" >&5
9799sed 's/^/| /' conftest.$ac_ext >&5
9800
9801ac_cv_type_char=no
9802fi
9803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9804fi
9805echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9806echo "${ECHO_T}$ac_cv_type_char" >&6
9807
9808echo "$as_me:$LINENO: checking size of char" >&5
9809echo $ECHO_N "checking size of char... $ECHO_C" >&6
9810if test "${ac_cv_sizeof_char+set}" = set; then
9811  echo $ECHO_N "(cached) $ECHO_C" >&6
9812else
9813  if test "$ac_cv_type_char" = yes; then
9814  # The cast to unsigned long works around a bug in the HP C Compiler
9815  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9816  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9817  # This bug is HP SR number 8606223364.
9818  if test "$cross_compiling" = yes; then
9819  # Depending upon the size, compute the lo and hi bounds.
9820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h.  */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h.  */
9826$ac_includes_default
9827int
9828main ()
9829{
9830static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
9831test_array [0] = 0
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext
9838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839  (eval $ac_compile) 2>conftest.er1
9840  ac_status=$?
9841  grep -v '^ *+' conftest.er1 >conftest.err
9842  rm -f conftest.er1
9843  cat conftest.err >&5
9844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845  (exit $ac_status); } &&
9846	 { ac_try='test -z "$ac_cxx_werror_flag"
9847			 || test ! -s conftest.err'
9848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849  (eval $ac_try) 2>&5
9850  ac_status=$?
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); }; } &&
9853	 { ac_try='test -s conftest.$ac_objext'
9854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855  (eval $ac_try) 2>&5
9856  ac_status=$?
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); }; }; then
9859  ac_lo=0 ac_mid=0
9860  while :; do
9861    cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h.  */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h.  */
9867$ac_includes_default
9868int
9869main ()
9870{
9871static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
9872test_array [0] = 0
9873
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext
9879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880  (eval $ac_compile) 2>conftest.er1
9881  ac_status=$?
9882  grep -v '^ *+' conftest.er1 >conftest.err
9883  rm -f conftest.er1
9884  cat conftest.err >&5
9885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886  (exit $ac_status); } &&
9887	 { ac_try='test -z "$ac_cxx_werror_flag"
9888			 || test ! -s conftest.err'
9889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890  (eval $ac_try) 2>&5
9891  ac_status=$?
9892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893  (exit $ac_status); }; } &&
9894	 { ac_try='test -s conftest.$ac_objext'
9895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896  (eval $ac_try) 2>&5
9897  ac_status=$?
9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899  (exit $ac_status); }; }; then
9900  ac_hi=$ac_mid; break
9901else
9902  echo "$as_me: failed program was:" >&5
9903sed 's/^/| /' conftest.$ac_ext >&5
9904
9905ac_lo=`expr $ac_mid + 1`
9906		    if test $ac_lo -le $ac_mid; then
9907		      ac_lo= ac_hi=
9908		      break
9909		    fi
9910		    ac_mid=`expr 2 '*' $ac_mid + 1`
9911fi
9912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9913  done
9914else
9915  echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918cat >conftest.$ac_ext <<_ACEOF
9919/* confdefs.h.  */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h.  */
9924$ac_includes_default
9925int
9926main ()
9927{
9928static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
9929test_array [0] = 0
9930
9931  ;
9932  return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937  (eval $ac_compile) 2>conftest.er1
9938  ac_status=$?
9939  grep -v '^ *+' conftest.er1 >conftest.err
9940  rm -f conftest.er1
9941  cat conftest.err >&5
9942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943  (exit $ac_status); } &&
9944	 { ac_try='test -z "$ac_cxx_werror_flag"
9945			 || test ! -s conftest.err'
9946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947  (eval $ac_try) 2>&5
9948  ac_status=$?
9949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950  (exit $ac_status); }; } &&
9951	 { ac_try='test -s conftest.$ac_objext'
9952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953  (eval $ac_try) 2>&5
9954  ac_status=$?
9955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956  (exit $ac_status); }; }; then
9957  ac_hi=-1 ac_mid=-1
9958  while :; do
9959    cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h.  */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h.  */
9965$ac_includes_default
9966int
9967main ()
9968{
9969static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
9970test_array [0] = 0
9971
9972  ;
9973  return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext
9977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9978  (eval $ac_compile) 2>conftest.er1
9979  ac_status=$?
9980  grep -v '^ *+' conftest.er1 >conftest.err
9981  rm -f conftest.er1
9982  cat conftest.err >&5
9983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984  (exit $ac_status); } &&
9985	 { ac_try='test -z "$ac_cxx_werror_flag"
9986			 || test ! -s conftest.err'
9987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988  (eval $ac_try) 2>&5
9989  ac_status=$?
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); }; } &&
9992	 { ac_try='test -s conftest.$ac_objext'
9993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994  (eval $ac_try) 2>&5
9995  ac_status=$?
9996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); }; }; then
9998  ac_lo=$ac_mid; break
9999else
10000  echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
10003ac_hi=`expr '(' $ac_mid ')' - 1`
10004		       if test $ac_mid -le $ac_hi; then
10005			 ac_lo= ac_hi=
10006			 break
10007		       fi
10008		       ac_mid=`expr 2 '*' $ac_mid`
10009fi
10010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10011  done
10012else
10013  echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016ac_lo= ac_hi=
10017fi
10018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10019fi
10020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10021# Binary search between lo and hi bounds.
10022while test "x$ac_lo" != "x$ac_hi"; do
10023  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10024  cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h.  */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h.  */
10030$ac_includes_default
10031int
10032main ()
10033{
10034static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10035test_array [0] = 0
10036
10037  ;
10038  return 0;
10039}
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043  (eval $ac_compile) 2>conftest.er1
10044  ac_status=$?
10045  grep -v '^ *+' conftest.er1 >conftest.err
10046  rm -f conftest.er1
10047  cat conftest.err >&5
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); } &&
10050	 { ac_try='test -z "$ac_cxx_werror_flag"
10051			 || test ! -s conftest.err'
10052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053  (eval $ac_try) 2>&5
10054  ac_status=$?
10055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056  (exit $ac_status); }; } &&
10057	 { ac_try='test -s conftest.$ac_objext'
10058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059  (eval $ac_try) 2>&5
10060  ac_status=$?
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); }; }; then
10063  ac_hi=$ac_mid
10064else
10065  echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_lo=`expr '(' $ac_mid ')' + 1`
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071done
10072case $ac_lo in
10073?*) ac_cv_sizeof_char=$ac_lo;;
10074'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10075See \`config.log' for more details." >&5
10076echo "$as_me: error: cannot compute sizeof (char), 77
10077See \`config.log' for more details." >&2;}
10078   { (exit 1); exit 1; }; } ;;
10079esac
10080else
10081  if test "$cross_compiling" = yes; then
10082  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10083See \`config.log' for more details." >&5
10084echo "$as_me: error: cannot run test program while cross compiling
10085See \`config.log' for more details." >&2;}
10086   { (exit 1); exit 1; }; }
10087else
10088  cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h.  */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h.  */
10094$ac_includes_default
10095long longval () { return (long) (sizeof (char)); }
10096unsigned long ulongval () { return (long) (sizeof (char)); }
10097#include <stdio.h>
10098#include <stdlib.h>
10099int
10100main ()
10101{
10102
10103  FILE *f = fopen ("conftest.val", "w");
10104  if (! f)
10105    exit (1);
10106  if (((long) (sizeof (char))) < 0)
10107    {
10108      long i = longval ();
10109      if (i != ((long) (sizeof (char))))
10110	exit (1);
10111      fprintf (f, "%ld\n", i);
10112    }
10113  else
10114    {
10115      unsigned long i = ulongval ();
10116      if (i != ((long) (sizeof (char))))
10117	exit (1);
10118      fprintf (f, "%lu\n", i);
10119    }
10120  exit (ferror (f) || fclose (f) != 0);
10121
10122  ;
10123  return 0;
10124}
10125_ACEOF
10126rm -f conftest$ac_exeext
10127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128  (eval $ac_link) 2>&5
10129  ac_status=$?
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133  (eval $ac_try) 2>&5
10134  ac_status=$?
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); }; }; then
10137  ac_cv_sizeof_char=`cat conftest.val`
10138else
10139  echo "$as_me: program exited with status $ac_status" >&5
10140echo "$as_me: failed program was:" >&5
10141sed 's/^/| /' conftest.$ac_ext >&5
10142
10143( exit $ac_status )
10144{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10145See \`config.log' for more details." >&5
10146echo "$as_me: error: cannot compute sizeof (char), 77
10147See \`config.log' for more details." >&2;}
10148   { (exit 1); exit 1; }; }
10149fi
10150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10151fi
10152fi
10153rm -f conftest.val
10154else
10155  ac_cv_sizeof_char=0
10156fi
10157fi
10158echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10159echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10160cat >>confdefs.h <<_ACEOF
10161#define SIZEOF_CHAR $ac_cv_sizeof_char
10162_ACEOF
10163
10164
10165  if test "$ac_cv_sizeof_char" -eq 1; then
10166    uint8_t="char"
10167    return
10168  fi
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179    :
10180  }
10181  find_uint8_t
10182
10183cat >>confdefs.h <<_ACEOF
10184#define uint8_t $uint8_t
10185_ACEOF
10186
10187
10188fi
10189
10190
10191
10192
10193echo "$as_me:$LINENO: checking for int16_t" >&5
10194echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10195if test "${ac_cv_type_int16_t+set}" = set; then
10196  echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198  cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204$ac_includes_default
10205int
10206main ()
10207{
10208if ((int16_t *) 0)
10209  return 0;
10210if (sizeof (int16_t))
10211  return 0;
10212  ;
10213  return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext
10217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218  (eval $ac_compile) 2>conftest.er1
10219  ac_status=$?
10220  grep -v '^ *+' conftest.er1 >conftest.err
10221  rm -f conftest.er1
10222  cat conftest.err >&5
10223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224  (exit $ac_status); } &&
10225	 { ac_try='test -z "$ac_cxx_werror_flag"
10226			 || test ! -s conftest.err'
10227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228  (eval $ac_try) 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; } &&
10232	 { ac_try='test -s conftest.$ac_objext'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; }; then
10238  ac_cv_type_int16_t=yes
10239else
10240  echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243ac_cv_type_int16_t=no
10244fi
10245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10246fi
10247echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10248echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10249if test $ac_cv_type_int16_t = yes; then
10250  :
10251else
10252
10253  { echo "$as_me:$LINENO: trying to find a suitable 2-byte replacement for int16_t" >&5
10254echo "$as_me: trying to find a suitable 2-byte replacement for int16_t" >&6;}
10255  int16_t=no
10256  find_int16_t ()
10257  {
10258
10259
10260  echo "$as_me:$LINENO: checking for signed short" >&5
10261echo $ECHO_N "checking for signed short... $ECHO_C" >&6
10262if test "${ac_cv_type_signed_short+set}" = set; then
10263  echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265  cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h.  */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h.  */
10271$ac_includes_default
10272int
10273main ()
10274{
10275if ((signed short *) 0)
10276  return 0;
10277if (sizeof (signed short))
10278  return 0;
10279  ;
10280  return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext
10284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10285  (eval $ac_compile) 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } &&
10292	 { ac_try='test -z "$ac_cxx_werror_flag"
10293			 || test ! -s conftest.err'
10294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295  (eval $ac_try) 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); }; } &&
10299	 { ac_try='test -s conftest.$ac_objext'
10300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301  (eval $ac_try) 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); }; }; then
10305  ac_cv_type_signed_short=yes
10306else
10307  echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310ac_cv_type_signed_short=no
10311fi
10312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10313fi
10314echo "$as_me:$LINENO: result: $ac_cv_type_signed_short" >&5
10315echo "${ECHO_T}$ac_cv_type_signed_short" >&6
10316
10317echo "$as_me:$LINENO: checking size of signed short" >&5
10318echo $ECHO_N "checking size of signed short... $ECHO_C" >&6
10319if test "${ac_cv_sizeof_signed_short+set}" = set; then
10320  echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322  if test "$ac_cv_type_signed_short" = yes; then
10323  # The cast to unsigned long works around a bug in the HP C Compiler
10324  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10325  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10326  # This bug is HP SR number 8606223364.
10327  if test "$cross_compiling" = yes; then
10328  # Depending upon the size, compute the lo and hi bounds.
10329cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h.  */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
10334/* end confdefs.h.  */
10335$ac_includes_default
10336int
10337main ()
10338{
10339static int test_array [1 - 2 * !(((long) (sizeof (signed short))) >= 0)];
10340test_array [0] = 0
10341
10342  ;
10343  return 0;
10344}
10345_ACEOF
10346rm -f conftest.$ac_objext
10347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348  (eval $ac_compile) 2>conftest.er1
10349  ac_status=$?
10350  grep -v '^ *+' conftest.er1 >conftest.err
10351  rm -f conftest.er1
10352  cat conftest.err >&5
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); } &&
10355	 { ac_try='test -z "$ac_cxx_werror_flag"
10356			 || test ! -s conftest.err'
10357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358  (eval $ac_try) 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); }; } &&
10362	 { ac_try='test -s conftest.$ac_objext'
10363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364  (eval $ac_try) 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); }; }; then
10368  ac_lo=0 ac_mid=0
10369  while :; do
10370    cat >conftest.$ac_ext <<_ACEOF
10371/* confdefs.h.  */
10372_ACEOF
10373cat confdefs.h >>conftest.$ac_ext
10374cat >>conftest.$ac_ext <<_ACEOF
10375/* end confdefs.h.  */
10376$ac_includes_default
10377int
10378main ()
10379{
10380static int test_array [1 - 2 * !(((long) (sizeof (signed short))) <= $ac_mid)];
10381test_array [0] = 0
10382
10383  ;
10384  return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext
10388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389  (eval $ac_compile) 2>conftest.er1
10390  ac_status=$?
10391  grep -v '^ *+' conftest.er1 >conftest.err
10392  rm -f conftest.er1
10393  cat conftest.err >&5
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); } &&
10396	 { ac_try='test -z "$ac_cxx_werror_flag"
10397			 || test ! -s conftest.err'
10398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399  (eval $ac_try) 2>&5
10400  ac_status=$?
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); }; } &&
10403	 { ac_try='test -s conftest.$ac_objext'
10404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405  (eval $ac_try) 2>&5
10406  ac_status=$?
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); }; }; then
10409  ac_hi=$ac_mid; break
10410else
10411  echo "$as_me: failed program was:" >&5
10412sed 's/^/| /' conftest.$ac_ext >&5
10413
10414ac_lo=`expr $ac_mid + 1`
10415		    if test $ac_lo -le $ac_mid; then
10416		      ac_lo= ac_hi=
10417		      break
10418		    fi
10419		    ac_mid=`expr 2 '*' $ac_mid + 1`
10420fi
10421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422  done
10423else
10424  echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h.  */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h.  */
10433$ac_includes_default
10434int
10435main ()
10436{
10437static int test_array [1 - 2 * !(((long) (sizeof (signed short))) < 0)];
10438test_array [0] = 0
10439
10440  ;
10441  return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext
10445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446  (eval $ac_compile) 2>conftest.er1
10447  ac_status=$?
10448  grep -v '^ *+' conftest.er1 >conftest.err
10449  rm -f conftest.er1
10450  cat conftest.err >&5
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); } &&
10453	 { ac_try='test -z "$ac_cxx_werror_flag"
10454			 || test ! -s conftest.err'
10455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456  (eval $ac_try) 2>&5
10457  ac_status=$?
10458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); }; } &&
10460	 { ac_try='test -s conftest.$ac_objext'
10461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462  (eval $ac_try) 2>&5
10463  ac_status=$?
10464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); }; }; then
10466  ac_hi=-1 ac_mid=-1
10467  while :; do
10468    cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h.  */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h.  */
10474$ac_includes_default
10475int
10476main ()
10477{
10478static int test_array [1 - 2 * !(((long) (sizeof (signed short))) >= $ac_mid)];
10479test_array [0] = 0
10480
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485rm -f conftest.$ac_objext
10486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487  (eval $ac_compile) 2>conftest.er1
10488  ac_status=$?
10489  grep -v '^ *+' conftest.er1 >conftest.err
10490  rm -f conftest.er1
10491  cat conftest.err >&5
10492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493  (exit $ac_status); } &&
10494	 { ac_try='test -z "$ac_cxx_werror_flag"
10495			 || test ! -s conftest.err'
10496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497  (eval $ac_try) 2>&5
10498  ac_status=$?
10499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500  (exit $ac_status); }; } &&
10501	 { ac_try='test -s conftest.$ac_objext'
10502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503  (eval $ac_try) 2>&5
10504  ac_status=$?
10505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506  (exit $ac_status); }; }; then
10507  ac_lo=$ac_mid; break
10508else
10509  echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
10512ac_hi=`expr '(' $ac_mid ')' - 1`
10513		       if test $ac_mid -le $ac_hi; then
10514			 ac_lo= ac_hi=
10515			 break
10516		       fi
10517		       ac_mid=`expr 2 '*' $ac_mid`
10518fi
10519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520  done
10521else
10522  echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
10524
10525ac_lo= ac_hi=
10526fi
10527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10528fi
10529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530# Binary search between lo and hi bounds.
10531while test "x$ac_lo" != "x$ac_hi"; do
10532  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10533  cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h.  */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h.  */
10539$ac_includes_default
10540int
10541main ()
10542{
10543static int test_array [1 - 2 * !(((long) (sizeof (signed short))) <= $ac_mid)];
10544test_array [0] = 0
10545
10546  ;
10547  return 0;
10548}
10549_ACEOF
10550rm -f conftest.$ac_objext
10551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552  (eval $ac_compile) 2>conftest.er1
10553  ac_status=$?
10554  grep -v '^ *+' conftest.er1 >conftest.err
10555  rm -f conftest.er1
10556  cat conftest.err >&5
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } &&
10559	 { ac_try='test -z "$ac_cxx_werror_flag"
10560			 || test ! -s conftest.err'
10561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562  (eval $ac_try) 2>&5
10563  ac_status=$?
10564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565  (exit $ac_status); }; } &&
10566	 { ac_try='test -s conftest.$ac_objext'
10567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568  (eval $ac_try) 2>&5
10569  ac_status=$?
10570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571  (exit $ac_status); }; }; then
10572  ac_hi=$ac_mid
10573else
10574  echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577ac_lo=`expr '(' $ac_mid ')' + 1`
10578fi
10579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10580done
10581case $ac_lo in
10582?*) ac_cv_sizeof_signed_short=$ac_lo;;
10583'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short), 77
10584See \`config.log' for more details." >&5
10585echo "$as_me: error: cannot compute sizeof (signed short), 77
10586See \`config.log' for more details." >&2;}
10587   { (exit 1); exit 1; }; } ;;
10588esac
10589else
10590  if test "$cross_compiling" = yes; then
10591  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10592See \`config.log' for more details." >&5
10593echo "$as_me: error: cannot run test program while cross compiling
10594See \`config.log' for more details." >&2;}
10595   { (exit 1); exit 1; }; }
10596else
10597  cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h.  */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h.  */
10603$ac_includes_default
10604long longval () { return (long) (sizeof (signed short)); }
10605unsigned long ulongval () { return (long) (sizeof (signed short)); }
10606#include <stdio.h>
10607#include <stdlib.h>
10608int
10609main ()
10610{
10611
10612  FILE *f = fopen ("conftest.val", "w");
10613  if (! f)
10614    exit (1);
10615  if (((long) (sizeof (signed short))) < 0)
10616    {
10617      long i = longval ();
10618      if (i != ((long) (sizeof (signed short))))
10619	exit (1);
10620      fprintf (f, "%ld\n", i);
10621    }
10622  else
10623    {
10624      unsigned long i = ulongval ();
10625      if (i != ((long) (sizeof (signed short))))
10626	exit (1);
10627      fprintf (f, "%lu\n", i);
10628    }
10629  exit (ferror (f) || fclose (f) != 0);
10630
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635rm -f conftest$ac_exeext
10636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637  (eval $ac_link) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642  (eval $ac_try) 2>&5
10643  ac_status=$?
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); }; }; then
10646  ac_cv_sizeof_signed_short=`cat conftest.val`
10647else
10648  echo "$as_me: program exited with status $ac_status" >&5
10649echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652( exit $ac_status )
10653{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short), 77
10654See \`config.log' for more details." >&5
10655echo "$as_me: error: cannot compute sizeof (signed short), 77
10656See \`config.log' for more details." >&2;}
10657   { (exit 1); exit 1; }; }
10658fi
10659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10660fi
10661fi
10662rm -f conftest.val
10663else
10664  ac_cv_sizeof_signed_short=0
10665fi
10666fi
10667echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
10668echo "${ECHO_T}$ac_cv_sizeof_signed_short" >&6
10669cat >>confdefs.h <<_ACEOF
10670#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
10671_ACEOF
10672
10673
10674  if test "$ac_cv_sizeof_signed_short" -eq 2; then
10675    int16_t="signed short"
10676    return
10677  fi
10678
10679
10680  echo "$as_me:$LINENO: checking for signed int" >&5
10681echo $ECHO_N "checking for signed int... $ECHO_C" >&6
10682if test "${ac_cv_type_signed_int+set}" = set; then
10683  echo $ECHO_N "(cached) $ECHO_C" >&6
10684else
10685  cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h.  */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h.  */
10691$ac_includes_default
10692int
10693main ()
10694{
10695if ((signed int *) 0)
10696  return 0;
10697if (sizeof (signed int))
10698  return 0;
10699  ;
10700  return 0;
10701}
10702_ACEOF
10703rm -f conftest.$ac_objext
10704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705  (eval $ac_compile) 2>conftest.er1
10706  ac_status=$?
10707  grep -v '^ *+' conftest.er1 >conftest.err
10708  rm -f conftest.er1
10709  cat conftest.err >&5
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); } &&
10712	 { ac_try='test -z "$ac_cxx_werror_flag"
10713			 || test ! -s conftest.err'
10714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715  (eval $ac_try) 2>&5
10716  ac_status=$?
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); }; } &&
10719	 { ac_try='test -s conftest.$ac_objext'
10720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721  (eval $ac_try) 2>&5
10722  ac_status=$?
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); }; }; then
10725  ac_cv_type_signed_int=yes
10726else
10727  echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
10730ac_cv_type_signed_int=no
10731fi
10732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733fi
10734echo "$as_me:$LINENO: result: $ac_cv_type_signed_int" >&5
10735echo "${ECHO_T}$ac_cv_type_signed_int" >&6
10736
10737echo "$as_me:$LINENO: checking size of signed int" >&5
10738echo $ECHO_N "checking size of signed int... $ECHO_C" >&6
10739if test "${ac_cv_sizeof_signed_int+set}" = set; then
10740  echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742  if test "$ac_cv_type_signed_int" = yes; then
10743  # The cast to unsigned long works around a bug in the HP C Compiler
10744  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10745  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10746  # This bug is HP SR number 8606223364.
10747  if test "$cross_compiling" = yes; then
10748  # Depending upon the size, compute the lo and hi bounds.
10749cat >conftest.$ac_ext <<_ACEOF
10750/* confdefs.h.  */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h.  */
10755$ac_includes_default
10756int
10757main ()
10758{
10759static int test_array [1 - 2 * !(((long) (sizeof (signed int))) >= 0)];
10760test_array [0] = 0
10761
10762  ;
10763  return 0;
10764}
10765_ACEOF
10766rm -f conftest.$ac_objext
10767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768  (eval $ac_compile) 2>conftest.er1
10769  ac_status=$?
10770  grep -v '^ *+' conftest.er1 >conftest.err
10771  rm -f conftest.er1
10772  cat conftest.err >&5
10773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774  (exit $ac_status); } &&
10775	 { ac_try='test -z "$ac_cxx_werror_flag"
10776			 || test ! -s conftest.err'
10777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778  (eval $ac_try) 2>&5
10779  ac_status=$?
10780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781  (exit $ac_status); }; } &&
10782	 { ac_try='test -s conftest.$ac_objext'
10783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784  (eval $ac_try) 2>&5
10785  ac_status=$?
10786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787  (exit $ac_status); }; }; then
10788  ac_lo=0 ac_mid=0
10789  while :; do
10790    cat >conftest.$ac_ext <<_ACEOF
10791/* confdefs.h.  */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h.  */
10796$ac_includes_default
10797int
10798main ()
10799{
10800static int test_array [1 - 2 * !(((long) (sizeof (signed int))) <= $ac_mid)];
10801test_array [0] = 0
10802
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807rm -f conftest.$ac_objext
10808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809  (eval $ac_compile) 2>conftest.er1
10810  ac_status=$?
10811  grep -v '^ *+' conftest.er1 >conftest.err
10812  rm -f conftest.er1
10813  cat conftest.err >&5
10814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815  (exit $ac_status); } &&
10816	 { ac_try='test -z "$ac_cxx_werror_flag"
10817			 || test ! -s conftest.err'
10818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819  (eval $ac_try) 2>&5
10820  ac_status=$?
10821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822  (exit $ac_status); }; } &&
10823	 { ac_try='test -s conftest.$ac_objext'
10824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825  (eval $ac_try) 2>&5
10826  ac_status=$?
10827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828  (exit $ac_status); }; }; then
10829  ac_hi=$ac_mid; break
10830else
10831  echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834ac_lo=`expr $ac_mid + 1`
10835		    if test $ac_lo -le $ac_mid; then
10836		      ac_lo= ac_hi=
10837		      break
10838		    fi
10839		    ac_mid=`expr 2 '*' $ac_mid + 1`
10840fi
10841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842  done
10843else
10844  echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847cat >conftest.$ac_ext <<_ACEOF
10848/* confdefs.h.  */
10849_ACEOF
10850cat confdefs.h >>conftest.$ac_ext
10851cat >>conftest.$ac_ext <<_ACEOF
10852/* end confdefs.h.  */
10853$ac_includes_default
10854int
10855main ()
10856{
10857static int test_array [1 - 2 * !(((long) (sizeof (signed int))) < 0)];
10858test_array [0] = 0
10859
10860  ;
10861  return 0;
10862}
10863_ACEOF
10864rm -f conftest.$ac_objext
10865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866  (eval $ac_compile) 2>conftest.er1
10867  ac_status=$?
10868  grep -v '^ *+' conftest.er1 >conftest.err
10869  rm -f conftest.er1
10870  cat conftest.err >&5
10871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872  (exit $ac_status); } &&
10873	 { ac_try='test -z "$ac_cxx_werror_flag"
10874			 || test ! -s conftest.err'
10875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876  (eval $ac_try) 2>&5
10877  ac_status=$?
10878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879  (exit $ac_status); }; } &&
10880	 { ac_try='test -s conftest.$ac_objext'
10881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882  (eval $ac_try) 2>&5
10883  ac_status=$?
10884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885  (exit $ac_status); }; }; then
10886  ac_hi=-1 ac_mid=-1
10887  while :; do
10888    cat >conftest.$ac_ext <<_ACEOF
10889/* confdefs.h.  */
10890_ACEOF
10891cat confdefs.h >>conftest.$ac_ext
10892cat >>conftest.$ac_ext <<_ACEOF
10893/* end confdefs.h.  */
10894$ac_includes_default
10895int
10896main ()
10897{
10898static int test_array [1 - 2 * !(((long) (sizeof (signed int))) >= $ac_mid)];
10899test_array [0] = 0
10900
10901  ;
10902  return 0;
10903}
10904_ACEOF
10905rm -f conftest.$ac_objext
10906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907  (eval $ac_compile) 2>conftest.er1
10908  ac_status=$?
10909  grep -v '^ *+' conftest.er1 >conftest.err
10910  rm -f conftest.er1
10911  cat conftest.err >&5
10912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913  (exit $ac_status); } &&
10914	 { ac_try='test -z "$ac_cxx_werror_flag"
10915			 || test ! -s conftest.err'
10916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917  (eval $ac_try) 2>&5
10918  ac_status=$?
10919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920  (exit $ac_status); }; } &&
10921	 { ac_try='test -s conftest.$ac_objext'
10922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923  (eval $ac_try) 2>&5
10924  ac_status=$?
10925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926  (exit $ac_status); }; }; then
10927  ac_lo=$ac_mid; break
10928else
10929  echo "$as_me: failed program was:" >&5
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
10932ac_hi=`expr '(' $ac_mid ')' - 1`
10933		       if test $ac_mid -le $ac_hi; then
10934			 ac_lo= ac_hi=
10935			 break
10936		       fi
10937		       ac_mid=`expr 2 '*' $ac_mid`
10938fi
10939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10940  done
10941else
10942  echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945ac_lo= ac_hi=
10946fi
10947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10948fi
10949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10950# Binary search between lo and hi bounds.
10951while test "x$ac_lo" != "x$ac_hi"; do
10952  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10953  cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h.  */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h.  */
10959$ac_includes_default
10960int
10961main ()
10962{
10963static int test_array [1 - 2 * !(((long) (sizeof (signed int))) <= $ac_mid)];
10964test_array [0] = 0
10965
10966  ;
10967  return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext
10971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10972  (eval $ac_compile) 2>conftest.er1
10973  ac_status=$?
10974  grep -v '^ *+' conftest.er1 >conftest.err
10975  rm -f conftest.er1
10976  cat conftest.err >&5
10977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978  (exit $ac_status); } &&
10979	 { ac_try='test -z "$ac_cxx_werror_flag"
10980			 || test ! -s conftest.err'
10981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982  (eval $ac_try) 2>&5
10983  ac_status=$?
10984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985  (exit $ac_status); }; } &&
10986	 { ac_try='test -s conftest.$ac_objext'
10987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988  (eval $ac_try) 2>&5
10989  ac_status=$?
10990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991  (exit $ac_status); }; }; then
10992  ac_hi=$ac_mid
10993else
10994  echo "$as_me: failed program was:" >&5
10995sed 's/^/| /' conftest.$ac_ext >&5
10996
10997ac_lo=`expr '(' $ac_mid ')' + 1`
10998fi
10999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000done
11001case $ac_lo in
11002?*) ac_cv_sizeof_signed_int=$ac_lo;;
11003'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed int), 77
11004See \`config.log' for more details." >&5
11005echo "$as_me: error: cannot compute sizeof (signed int), 77
11006See \`config.log' for more details." >&2;}
11007   { (exit 1); exit 1; }; } ;;
11008esac
11009else
11010  if test "$cross_compiling" = yes; then
11011  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11012See \`config.log' for more details." >&5
11013echo "$as_me: error: cannot run test program while cross compiling
11014See \`config.log' for more details." >&2;}
11015   { (exit 1); exit 1; }; }
11016else
11017  cat >conftest.$ac_ext <<_ACEOF
11018/* confdefs.h.  */
11019_ACEOF
11020cat confdefs.h >>conftest.$ac_ext
11021cat >>conftest.$ac_ext <<_ACEOF
11022/* end confdefs.h.  */
11023$ac_includes_default
11024long longval () { return (long) (sizeof (signed int)); }
11025unsigned long ulongval () { return (long) (sizeof (signed int)); }
11026#include <stdio.h>
11027#include <stdlib.h>
11028int
11029main ()
11030{
11031
11032  FILE *f = fopen ("conftest.val", "w");
11033  if (! f)
11034    exit (1);
11035  if (((long) (sizeof (signed int))) < 0)
11036    {
11037      long i = longval ();
11038      if (i != ((long) (sizeof (signed int))))
11039	exit (1);
11040      fprintf (f, "%ld\n", i);
11041    }
11042  else
11043    {
11044      unsigned long i = ulongval ();
11045      if (i != ((long) (sizeof (signed int))))
11046	exit (1);
11047      fprintf (f, "%lu\n", i);
11048    }
11049  exit (ferror (f) || fclose (f) != 0);
11050
11051  ;
11052  return 0;
11053}
11054_ACEOF
11055rm -f conftest$ac_exeext
11056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057  (eval $ac_link) 2>&5
11058  ac_status=$?
11059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062  (eval $ac_try) 2>&5
11063  ac_status=$?
11064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065  (exit $ac_status); }; }; then
11066  ac_cv_sizeof_signed_int=`cat conftest.val`
11067else
11068  echo "$as_me: program exited with status $ac_status" >&5
11069echo "$as_me: failed program was:" >&5
11070sed 's/^/| /' conftest.$ac_ext >&5
11071
11072( exit $ac_status )
11073{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed int), 77
11074See \`config.log' for more details." >&5
11075echo "$as_me: error: cannot compute sizeof (signed int), 77
11076See \`config.log' for more details." >&2;}
11077   { (exit 1); exit 1; }; }
11078fi
11079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11080fi
11081fi
11082rm -f conftest.val
11083else
11084  ac_cv_sizeof_signed_int=0
11085fi
11086fi
11087echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
11088echo "${ECHO_T}$ac_cv_sizeof_signed_int" >&6
11089cat >>confdefs.h <<_ACEOF
11090#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
11091_ACEOF
11092
11093
11094  if test "$ac_cv_sizeof_signed_int" -eq 2; then
11095    int16_t="signed int"
11096    return
11097  fi
11098
11099
11100  echo "$as_me:$LINENO: checking for __int16" >&5
11101echo $ECHO_N "checking for __int16... $ECHO_C" >&6
11102if test "${ac_cv_type___int16+set}" = set; then
11103  echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105  cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h.  */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h.  */
11111$ac_includes_default
11112int
11113main ()
11114{
11115if ((__int16 *) 0)
11116  return 0;
11117if (sizeof (__int16))
11118  return 0;
11119  ;
11120  return 0;
11121}
11122_ACEOF
11123rm -f conftest.$ac_objext
11124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125  (eval $ac_compile) 2>conftest.er1
11126  ac_status=$?
11127  grep -v '^ *+' conftest.er1 >conftest.err
11128  rm -f conftest.er1
11129  cat conftest.err >&5
11130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131  (exit $ac_status); } &&
11132	 { ac_try='test -z "$ac_cxx_werror_flag"
11133			 || test ! -s conftest.err'
11134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135  (eval $ac_try) 2>&5
11136  ac_status=$?
11137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138  (exit $ac_status); }; } &&
11139	 { ac_try='test -s conftest.$ac_objext'
11140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141  (eval $ac_try) 2>&5
11142  ac_status=$?
11143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144  (exit $ac_status); }; }; then
11145  ac_cv_type___int16=yes
11146else
11147  echo "$as_me: failed program was:" >&5
11148sed 's/^/| /' conftest.$ac_ext >&5
11149
11150ac_cv_type___int16=no
11151fi
11152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153fi
11154echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5
11155echo "${ECHO_T}$ac_cv_type___int16" >&6
11156
11157echo "$as_me:$LINENO: checking size of __int16" >&5
11158echo $ECHO_N "checking size of __int16... $ECHO_C" >&6
11159if test "${ac_cv_sizeof___int16+set}" = set; then
11160  echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162  if test "$ac_cv_type___int16" = yes; then
11163  # The cast to unsigned long works around a bug in the HP C Compiler
11164  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11165  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11166  # This bug is HP SR number 8606223364.
11167  if test "$cross_compiling" = yes; then
11168  # Depending upon the size, compute the lo and hi bounds.
11169cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h.  */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h.  */
11175$ac_includes_default
11176int
11177main ()
11178{
11179static int test_array [1 - 2 * !(((long) (sizeof (__int16))) >= 0)];
11180test_array [0] = 0
11181
11182  ;
11183  return 0;
11184}
11185_ACEOF
11186rm -f conftest.$ac_objext
11187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188  (eval $ac_compile) 2>conftest.er1
11189  ac_status=$?
11190  grep -v '^ *+' conftest.er1 >conftest.err
11191  rm -f conftest.er1
11192  cat conftest.err >&5
11193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194  (exit $ac_status); } &&
11195	 { ac_try='test -z "$ac_cxx_werror_flag"
11196			 || test ! -s conftest.err'
11197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198  (eval $ac_try) 2>&5
11199  ac_status=$?
11200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201  (exit $ac_status); }; } &&
11202	 { ac_try='test -s conftest.$ac_objext'
11203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204  (eval $ac_try) 2>&5
11205  ac_status=$?
11206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207  (exit $ac_status); }; }; then
11208  ac_lo=0 ac_mid=0
11209  while :; do
11210    cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h.  */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h.  */
11216$ac_includes_default
11217int
11218main ()
11219{
11220static int test_array [1 - 2 * !(((long) (sizeof (__int16))) <= $ac_mid)];
11221test_array [0] = 0
11222
11223  ;
11224  return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext
11228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229  (eval $ac_compile) 2>conftest.er1
11230  ac_status=$?
11231  grep -v '^ *+' conftest.er1 >conftest.err
11232  rm -f conftest.er1
11233  cat conftest.err >&5
11234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235  (exit $ac_status); } &&
11236	 { ac_try='test -z "$ac_cxx_werror_flag"
11237			 || test ! -s conftest.err'
11238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239  (eval $ac_try) 2>&5
11240  ac_status=$?
11241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242  (exit $ac_status); }; } &&
11243	 { ac_try='test -s conftest.$ac_objext'
11244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245  (eval $ac_try) 2>&5
11246  ac_status=$?
11247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248  (exit $ac_status); }; }; then
11249  ac_hi=$ac_mid; break
11250else
11251  echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254ac_lo=`expr $ac_mid + 1`
11255		    if test $ac_lo -le $ac_mid; then
11256		      ac_lo= ac_hi=
11257		      break
11258		    fi
11259		    ac_mid=`expr 2 '*' $ac_mid + 1`
11260fi
11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262  done
11263else
11264  echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
11266
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h.  */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h.  */
11273$ac_includes_default
11274int
11275main ()
11276{
11277static int test_array [1 - 2 * !(((long) (sizeof (__int16))) < 0)];
11278test_array [0] = 0
11279
11280  ;
11281  return 0;
11282}
11283_ACEOF
11284rm -f conftest.$ac_objext
11285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286  (eval $ac_compile) 2>conftest.er1
11287  ac_status=$?
11288  grep -v '^ *+' conftest.er1 >conftest.err
11289  rm -f conftest.er1
11290  cat conftest.err >&5
11291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292  (exit $ac_status); } &&
11293	 { ac_try='test -z "$ac_cxx_werror_flag"
11294			 || test ! -s conftest.err'
11295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296  (eval $ac_try) 2>&5
11297  ac_status=$?
11298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299  (exit $ac_status); }; } &&
11300	 { ac_try='test -s conftest.$ac_objext'
11301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302  (eval $ac_try) 2>&5
11303  ac_status=$?
11304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305  (exit $ac_status); }; }; then
11306  ac_hi=-1 ac_mid=-1
11307  while :; do
11308    cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h.  */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h.  */
11314$ac_includes_default
11315int
11316main ()
11317{
11318static int test_array [1 - 2 * !(((long) (sizeof (__int16))) >= $ac_mid)];
11319test_array [0] = 0
11320
11321  ;
11322  return 0;
11323}
11324_ACEOF
11325rm -f conftest.$ac_objext
11326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327  (eval $ac_compile) 2>conftest.er1
11328  ac_status=$?
11329  grep -v '^ *+' conftest.er1 >conftest.err
11330  rm -f conftest.er1
11331  cat conftest.err >&5
11332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333  (exit $ac_status); } &&
11334	 { ac_try='test -z "$ac_cxx_werror_flag"
11335			 || test ! -s conftest.err'
11336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337  (eval $ac_try) 2>&5
11338  ac_status=$?
11339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340  (exit $ac_status); }; } &&
11341	 { ac_try='test -s conftest.$ac_objext'
11342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343  (eval $ac_try) 2>&5
11344  ac_status=$?
11345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346  (exit $ac_status); }; }; then
11347  ac_lo=$ac_mid; break
11348else
11349  echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352ac_hi=`expr '(' $ac_mid ')' - 1`
11353		       if test $ac_mid -le $ac_hi; then
11354			 ac_lo= ac_hi=
11355			 break
11356		       fi
11357		       ac_mid=`expr 2 '*' $ac_mid`
11358fi
11359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360  done
11361else
11362  echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365ac_lo= ac_hi=
11366fi
11367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11368fi
11369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11370# Binary search between lo and hi bounds.
11371while test "x$ac_lo" != "x$ac_hi"; do
11372  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11373  cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h.  */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h.  */
11379$ac_includes_default
11380int
11381main ()
11382{
11383static int test_array [1 - 2 * !(((long) (sizeof (__int16))) <= $ac_mid)];
11384test_array [0] = 0
11385
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
11391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392  (eval $ac_compile) 2>conftest.er1
11393  ac_status=$?
11394  grep -v '^ *+' conftest.er1 >conftest.err
11395  rm -f conftest.er1
11396  cat conftest.err >&5
11397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398  (exit $ac_status); } &&
11399	 { ac_try='test -z "$ac_cxx_werror_flag"
11400			 || test ! -s conftest.err'
11401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402  (eval $ac_try) 2>&5
11403  ac_status=$?
11404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405  (exit $ac_status); }; } &&
11406	 { ac_try='test -s conftest.$ac_objext'
11407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408  (eval $ac_try) 2>&5
11409  ac_status=$?
11410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411  (exit $ac_status); }; }; then
11412  ac_hi=$ac_mid
11413else
11414  echo "$as_me: failed program was:" >&5
11415sed 's/^/| /' conftest.$ac_ext >&5
11416
11417ac_lo=`expr '(' $ac_mid ')' + 1`
11418fi
11419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11420done
11421case $ac_lo in
11422?*) ac_cv_sizeof___int16=$ac_lo;;
11423'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int16), 77
11424See \`config.log' for more details." >&5
11425echo "$as_me: error: cannot compute sizeof (__int16), 77
11426See \`config.log' for more details." >&2;}
11427   { (exit 1); exit 1; }; } ;;
11428esac
11429else
11430  if test "$cross_compiling" = yes; then
11431  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11432See \`config.log' for more details." >&5
11433echo "$as_me: error: cannot run test program while cross compiling
11434See \`config.log' for more details." >&2;}
11435   { (exit 1); exit 1; }; }
11436else
11437  cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h.  */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h.  */
11443$ac_includes_default
11444long longval () { return (long) (sizeof (__int16)); }
11445unsigned long ulongval () { return (long) (sizeof (__int16)); }
11446#include <stdio.h>
11447#include <stdlib.h>
11448int
11449main ()
11450{
11451
11452  FILE *f = fopen ("conftest.val", "w");
11453  if (! f)
11454    exit (1);
11455  if (((long) (sizeof (__int16))) < 0)
11456    {
11457      long i = longval ();
11458      if (i != ((long) (sizeof (__int16))))
11459	exit (1);
11460      fprintf (f, "%ld\n", i);
11461    }
11462  else
11463    {
11464      unsigned long i = ulongval ();
11465      if (i != ((long) (sizeof (__int16))))
11466	exit (1);
11467      fprintf (f, "%lu\n", i);
11468    }
11469  exit (ferror (f) || fclose (f) != 0);
11470
11471  ;
11472  return 0;
11473}
11474_ACEOF
11475rm -f conftest$ac_exeext
11476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477  (eval $ac_link) 2>&5
11478  ac_status=$?
11479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482  (eval $ac_try) 2>&5
11483  ac_status=$?
11484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); }; }; then
11486  ac_cv_sizeof___int16=`cat conftest.val`
11487else
11488  echo "$as_me: program exited with status $ac_status" >&5
11489echo "$as_me: failed program was:" >&5
11490sed 's/^/| /' conftest.$ac_ext >&5
11491
11492( exit $ac_status )
11493{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int16), 77
11494See \`config.log' for more details." >&5
11495echo "$as_me: error: cannot compute sizeof (__int16), 77
11496See \`config.log' for more details." >&2;}
11497   { (exit 1); exit 1; }; }
11498fi
11499rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11500fi
11501fi
11502rm -f conftest.val
11503else
11504  ac_cv_sizeof___int16=0
11505fi
11506fi
11507echo "$as_me:$LINENO: result: $ac_cv_sizeof___int16" >&5
11508echo "${ECHO_T}$ac_cv_sizeof___int16" >&6
11509cat >>confdefs.h <<_ACEOF
11510#define SIZEOF___INT16 $ac_cv_sizeof___int16
11511_ACEOF
11512
11513
11514  if test "$ac_cv_sizeof___int16" -eq 2; then
11515    int16_t="__int16"
11516    return
11517  fi
11518
11519
11520  echo "$as_me:$LINENO: checking for short" >&5
11521echo $ECHO_N "checking for short... $ECHO_C" >&6
11522if test "${ac_cv_type_short+set}" = set; then
11523  echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
11525  cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h.  */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h.  */
11531$ac_includes_default
11532int
11533main ()
11534{
11535if ((short *) 0)
11536  return 0;
11537if (sizeof (short))
11538  return 0;
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext
11544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545  (eval $ac_compile) 2>conftest.er1
11546  ac_status=$?
11547  grep -v '^ *+' conftest.er1 >conftest.err
11548  rm -f conftest.er1
11549  cat conftest.err >&5
11550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551  (exit $ac_status); } &&
11552	 { ac_try='test -z "$ac_cxx_werror_flag"
11553			 || test ! -s conftest.err'
11554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555  (eval $ac_try) 2>&5
11556  ac_status=$?
11557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558  (exit $ac_status); }; } &&
11559	 { ac_try='test -s conftest.$ac_objext'
11560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561  (eval $ac_try) 2>&5
11562  ac_status=$?
11563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564  (exit $ac_status); }; }; then
11565  ac_cv_type_short=yes
11566else
11567  echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
11570ac_cv_type_short=no
11571fi
11572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11573fi
11574echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11575echo "${ECHO_T}$ac_cv_type_short" >&6
11576
11577echo "$as_me:$LINENO: checking size of short" >&5
11578echo $ECHO_N "checking size of short... $ECHO_C" >&6
11579if test "${ac_cv_sizeof_short+set}" = set; then
11580  echo $ECHO_N "(cached) $ECHO_C" >&6
11581else
11582  if test "$ac_cv_type_short" = yes; then
11583  # The cast to unsigned long works around a bug in the HP C Compiler
11584  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11585  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11586  # This bug is HP SR number 8606223364.
11587  if test "$cross_compiling" = yes; then
11588  # Depending upon the size, compute the lo and hi bounds.
11589cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h.  */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h.  */
11595$ac_includes_default
11596int
11597main ()
11598{
11599static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11600test_array [0] = 0
11601
11602  ;
11603  return 0;
11604}
11605_ACEOF
11606rm -f conftest.$ac_objext
11607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11608  (eval $ac_compile) 2>conftest.er1
11609  ac_status=$?
11610  grep -v '^ *+' conftest.er1 >conftest.err
11611  rm -f conftest.er1
11612  cat conftest.err >&5
11613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614  (exit $ac_status); } &&
11615	 { ac_try='test -z "$ac_cxx_werror_flag"
11616			 || test ! -s conftest.err'
11617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618  (eval $ac_try) 2>&5
11619  ac_status=$?
11620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621  (exit $ac_status); }; } &&
11622	 { ac_try='test -s conftest.$ac_objext'
11623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624  (eval $ac_try) 2>&5
11625  ac_status=$?
11626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627  (exit $ac_status); }; }; then
11628  ac_lo=0 ac_mid=0
11629  while :; do
11630    cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h.  */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h.  */
11636$ac_includes_default
11637int
11638main ()
11639{
11640static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11641test_array [0] = 0
11642
11643  ;
11644  return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext
11648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649  (eval $ac_compile) 2>conftest.er1
11650  ac_status=$?
11651  grep -v '^ *+' conftest.er1 >conftest.err
11652  rm -f conftest.er1
11653  cat conftest.err >&5
11654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655  (exit $ac_status); } &&
11656	 { ac_try='test -z "$ac_cxx_werror_flag"
11657			 || test ! -s conftest.err'
11658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659  (eval $ac_try) 2>&5
11660  ac_status=$?
11661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662  (exit $ac_status); }; } &&
11663	 { ac_try='test -s conftest.$ac_objext'
11664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665  (eval $ac_try) 2>&5
11666  ac_status=$?
11667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); }; }; then
11669  ac_hi=$ac_mid; break
11670else
11671  echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674ac_lo=`expr $ac_mid + 1`
11675		    if test $ac_lo -le $ac_mid; then
11676		      ac_lo= ac_hi=
11677		      break
11678		    fi
11679		    ac_mid=`expr 2 '*' $ac_mid + 1`
11680fi
11681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11682  done
11683else
11684  echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h.  */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h.  */
11693$ac_includes_default
11694int
11695main ()
11696{
11697static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11698test_array [0] = 0
11699
11700  ;
11701  return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext
11705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706  (eval $ac_compile) 2>conftest.er1
11707  ac_status=$?
11708  grep -v '^ *+' conftest.er1 >conftest.err
11709  rm -f conftest.er1
11710  cat conftest.err >&5
11711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712  (exit $ac_status); } &&
11713	 { ac_try='test -z "$ac_cxx_werror_flag"
11714			 || test ! -s conftest.err'
11715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716  (eval $ac_try) 2>&5
11717  ac_status=$?
11718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719  (exit $ac_status); }; } &&
11720	 { ac_try='test -s conftest.$ac_objext'
11721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722  (eval $ac_try) 2>&5
11723  ac_status=$?
11724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725  (exit $ac_status); }; }; then
11726  ac_hi=-1 ac_mid=-1
11727  while :; do
11728    cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h.  */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h.  */
11734$ac_includes_default
11735int
11736main ()
11737{
11738static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11739test_array [0] = 0
11740
11741  ;
11742  return 0;
11743}
11744_ACEOF
11745rm -f conftest.$ac_objext
11746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11747  (eval $ac_compile) 2>conftest.er1
11748  ac_status=$?
11749  grep -v '^ *+' conftest.er1 >conftest.err
11750  rm -f conftest.er1
11751  cat conftest.err >&5
11752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753  (exit $ac_status); } &&
11754	 { ac_try='test -z "$ac_cxx_werror_flag"
11755			 || test ! -s conftest.err'
11756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757  (eval $ac_try) 2>&5
11758  ac_status=$?
11759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760  (exit $ac_status); }; } &&
11761	 { ac_try='test -s conftest.$ac_objext'
11762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763  (eval $ac_try) 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); }; }; then
11767  ac_lo=$ac_mid; break
11768else
11769  echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
11772ac_hi=`expr '(' $ac_mid ')' - 1`
11773		       if test $ac_mid -le $ac_hi; then
11774			 ac_lo= ac_hi=
11775			 break
11776		       fi
11777		       ac_mid=`expr 2 '*' $ac_mid`
11778fi
11779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780  done
11781else
11782  echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785ac_lo= ac_hi=
11786fi
11787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11788fi
11789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11790# Binary search between lo and hi bounds.
11791while test "x$ac_lo" != "x$ac_hi"; do
11792  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11793  cat >conftest.$ac_ext <<_ACEOF
11794/* confdefs.h.  */
11795_ACEOF
11796cat confdefs.h >>conftest.$ac_ext
11797cat >>conftest.$ac_ext <<_ACEOF
11798/* end confdefs.h.  */
11799$ac_includes_default
11800int
11801main ()
11802{
11803static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11804test_array [0] = 0
11805
11806  ;
11807  return 0;
11808}
11809_ACEOF
11810rm -f conftest.$ac_objext
11811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812  (eval $ac_compile) 2>conftest.er1
11813  ac_status=$?
11814  grep -v '^ *+' conftest.er1 >conftest.err
11815  rm -f conftest.er1
11816  cat conftest.err >&5
11817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818  (exit $ac_status); } &&
11819	 { ac_try='test -z "$ac_cxx_werror_flag"
11820			 || test ! -s conftest.err'
11821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822  (eval $ac_try) 2>&5
11823  ac_status=$?
11824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825  (exit $ac_status); }; } &&
11826	 { ac_try='test -s conftest.$ac_objext'
11827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828  (eval $ac_try) 2>&5
11829  ac_status=$?
11830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831  (exit $ac_status); }; }; then
11832  ac_hi=$ac_mid
11833else
11834  echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837ac_lo=`expr '(' $ac_mid ')' + 1`
11838fi
11839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840done
11841case $ac_lo in
11842?*) ac_cv_sizeof_short=$ac_lo;;
11843'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11844See \`config.log' for more details." >&5
11845echo "$as_me: error: cannot compute sizeof (short), 77
11846See \`config.log' for more details." >&2;}
11847   { (exit 1); exit 1; }; } ;;
11848esac
11849else
11850  if test "$cross_compiling" = yes; then
11851  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11852See \`config.log' for more details." >&5
11853echo "$as_me: error: cannot run test program while cross compiling
11854See \`config.log' for more details." >&2;}
11855   { (exit 1); exit 1; }; }
11856else
11857  cat >conftest.$ac_ext <<_ACEOF
11858/* confdefs.h.  */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h.  */
11863$ac_includes_default
11864long longval () { return (long) (sizeof (short)); }
11865unsigned long ulongval () { return (long) (sizeof (short)); }
11866#include <stdio.h>
11867#include <stdlib.h>
11868int
11869main ()
11870{
11871
11872  FILE *f = fopen ("conftest.val", "w");
11873  if (! f)
11874    exit (1);
11875  if (((long) (sizeof (short))) < 0)
11876    {
11877      long i = longval ();
11878      if (i != ((long) (sizeof (short))))
11879	exit (1);
11880      fprintf (f, "%ld\n", i);
11881    }
11882  else
11883    {
11884      unsigned long i = ulongval ();
11885      if (i != ((long) (sizeof (short))))
11886	exit (1);
11887      fprintf (f, "%lu\n", i);
11888    }
11889  exit (ferror (f) || fclose (f) != 0);
11890
11891  ;
11892  return 0;
11893}
11894_ACEOF
11895rm -f conftest$ac_exeext
11896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897  (eval $ac_link) 2>&5
11898  ac_status=$?
11899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902  (eval $ac_try) 2>&5
11903  ac_status=$?
11904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905  (exit $ac_status); }; }; then
11906  ac_cv_sizeof_short=`cat conftest.val`
11907else
11908  echo "$as_me: program exited with status $ac_status" >&5
11909echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912( exit $ac_status )
11913{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11914See \`config.log' for more details." >&5
11915echo "$as_me: error: cannot compute sizeof (short), 77
11916See \`config.log' for more details." >&2;}
11917   { (exit 1); exit 1; }; }
11918fi
11919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11920fi
11921fi
11922rm -f conftest.val
11923else
11924  ac_cv_sizeof_short=0
11925fi
11926fi
11927echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11928echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11929cat >>confdefs.h <<_ACEOF
11930#define SIZEOF_SHORT $ac_cv_sizeof_short
11931_ACEOF
11932
11933
11934  if test "$ac_cv_sizeof_short" -eq 2; then
11935    int16_t="short"
11936    return
11937  fi
11938
11939
11940  echo "$as_me:$LINENO: checking for int" >&5
11941echo $ECHO_N "checking for int... $ECHO_C" >&6
11942if test "${ac_cv_type_int+set}" = set; then
11943  echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945  cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h.  */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h.  */
11951$ac_includes_default
11952int
11953main ()
11954{
11955if ((int *) 0)
11956  return 0;
11957if (sizeof (int))
11958  return 0;
11959  ;
11960  return 0;
11961}
11962_ACEOF
11963rm -f conftest.$ac_objext
11964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965  (eval $ac_compile) 2>conftest.er1
11966  ac_status=$?
11967  grep -v '^ *+' conftest.er1 >conftest.err
11968  rm -f conftest.er1
11969  cat conftest.err >&5
11970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971  (exit $ac_status); } &&
11972	 { ac_try='test -z "$ac_cxx_werror_flag"
11973			 || test ! -s conftest.err'
11974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975  (eval $ac_try) 2>&5
11976  ac_status=$?
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); }; } &&
11979	 { ac_try='test -s conftest.$ac_objext'
11980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981  (eval $ac_try) 2>&5
11982  ac_status=$?
11983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984  (exit $ac_status); }; }; then
11985  ac_cv_type_int=yes
11986else
11987  echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_cv_type_int=no
11991fi
11992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993fi
11994echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11995echo "${ECHO_T}$ac_cv_type_int" >&6
11996
11997echo "$as_me:$LINENO: checking size of int" >&5
11998echo $ECHO_N "checking size of int... $ECHO_C" >&6
11999if test "${ac_cv_sizeof_int+set}" = set; then
12000  echo $ECHO_N "(cached) $ECHO_C" >&6
12001else
12002  if test "$ac_cv_type_int" = yes; then
12003  # The cast to unsigned long works around a bug in the HP C Compiler
12004  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12005  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12006  # This bug is HP SR number 8606223364.
12007  if test "$cross_compiling" = yes; then
12008  # Depending upon the size, compute the lo and hi bounds.
12009cat >conftest.$ac_ext <<_ACEOF
12010/* confdefs.h.  */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h.  */
12015$ac_includes_default
12016int
12017main ()
12018{
12019static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12020test_array [0] = 0
12021
12022  ;
12023  return 0;
12024}
12025_ACEOF
12026rm -f conftest.$ac_objext
12027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028  (eval $ac_compile) 2>conftest.er1
12029  ac_status=$?
12030  grep -v '^ *+' conftest.er1 >conftest.err
12031  rm -f conftest.er1
12032  cat conftest.err >&5
12033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034  (exit $ac_status); } &&
12035	 { ac_try='test -z "$ac_cxx_werror_flag"
12036			 || test ! -s conftest.err'
12037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038  (eval $ac_try) 2>&5
12039  ac_status=$?
12040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041  (exit $ac_status); }; } &&
12042	 { ac_try='test -s conftest.$ac_objext'
12043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044  (eval $ac_try) 2>&5
12045  ac_status=$?
12046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047  (exit $ac_status); }; }; then
12048  ac_lo=0 ac_mid=0
12049  while :; do
12050    cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h.  */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h.  */
12056$ac_includes_default
12057int
12058main ()
12059{
12060static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12061test_array [0] = 0
12062
12063  ;
12064  return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069  (eval $ac_compile) 2>conftest.er1
12070  ac_status=$?
12071  grep -v '^ *+' conftest.er1 >conftest.err
12072  rm -f conftest.er1
12073  cat conftest.err >&5
12074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075  (exit $ac_status); } &&
12076	 { ac_try='test -z "$ac_cxx_werror_flag"
12077			 || test ! -s conftest.err'
12078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079  (eval $ac_try) 2>&5
12080  ac_status=$?
12081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082  (exit $ac_status); }; } &&
12083	 { ac_try='test -s conftest.$ac_objext'
12084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085  (eval $ac_try) 2>&5
12086  ac_status=$?
12087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088  (exit $ac_status); }; }; then
12089  ac_hi=$ac_mid; break
12090else
12091  echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
12094ac_lo=`expr $ac_mid + 1`
12095		    if test $ac_lo -le $ac_mid; then
12096		      ac_lo= ac_hi=
12097		      break
12098		    fi
12099		    ac_mid=`expr 2 '*' $ac_mid + 1`
12100fi
12101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12102  done
12103else
12104  echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h.  */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h.  */
12113$ac_includes_default
12114int
12115main ()
12116{
12117static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12118test_array [0] = 0
12119
12120  ;
12121  return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126  (eval $ac_compile) 2>conftest.er1
12127  ac_status=$?
12128  grep -v '^ *+' conftest.er1 >conftest.err
12129  rm -f conftest.er1
12130  cat conftest.err >&5
12131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132  (exit $ac_status); } &&
12133	 { ac_try='test -z "$ac_cxx_werror_flag"
12134			 || test ! -s conftest.err'
12135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136  (eval $ac_try) 2>&5
12137  ac_status=$?
12138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139  (exit $ac_status); }; } &&
12140	 { ac_try='test -s conftest.$ac_objext'
12141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142  (eval $ac_try) 2>&5
12143  ac_status=$?
12144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145  (exit $ac_status); }; }; then
12146  ac_hi=-1 ac_mid=-1
12147  while :; do
12148    cat >conftest.$ac_ext <<_ACEOF
12149/* confdefs.h.  */
12150_ACEOF
12151cat confdefs.h >>conftest.$ac_ext
12152cat >>conftest.$ac_ext <<_ACEOF
12153/* end confdefs.h.  */
12154$ac_includes_default
12155int
12156main ()
12157{
12158static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12159test_array [0] = 0
12160
12161  ;
12162  return 0;
12163}
12164_ACEOF
12165rm -f conftest.$ac_objext
12166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12167  (eval $ac_compile) 2>conftest.er1
12168  ac_status=$?
12169  grep -v '^ *+' conftest.er1 >conftest.err
12170  rm -f conftest.er1
12171  cat conftest.err >&5
12172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173  (exit $ac_status); } &&
12174	 { ac_try='test -z "$ac_cxx_werror_flag"
12175			 || test ! -s conftest.err'
12176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177  (eval $ac_try) 2>&5
12178  ac_status=$?
12179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180  (exit $ac_status); }; } &&
12181	 { ac_try='test -s conftest.$ac_objext'
12182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183  (eval $ac_try) 2>&5
12184  ac_status=$?
12185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186  (exit $ac_status); }; }; then
12187  ac_lo=$ac_mid; break
12188else
12189  echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
12191
12192ac_hi=`expr '(' $ac_mid ')' - 1`
12193		       if test $ac_mid -le $ac_hi; then
12194			 ac_lo= ac_hi=
12195			 break
12196		       fi
12197		       ac_mid=`expr 2 '*' $ac_mid`
12198fi
12199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12200  done
12201else
12202  echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205ac_lo= ac_hi=
12206fi
12207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12208fi
12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12210# Binary search between lo and hi bounds.
12211while test "x$ac_lo" != "x$ac_hi"; do
12212  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12213  cat >conftest.$ac_ext <<_ACEOF
12214/* confdefs.h.  */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
12218/* end confdefs.h.  */
12219$ac_includes_default
12220int
12221main ()
12222{
12223static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12224test_array [0] = 0
12225
12226  ;
12227  return 0;
12228}
12229_ACEOF
12230rm -f conftest.$ac_objext
12231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232  (eval $ac_compile) 2>conftest.er1
12233  ac_status=$?
12234  grep -v '^ *+' conftest.er1 >conftest.err
12235  rm -f conftest.er1
12236  cat conftest.err >&5
12237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238  (exit $ac_status); } &&
12239	 { ac_try='test -z "$ac_cxx_werror_flag"
12240			 || test ! -s conftest.err'
12241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242  (eval $ac_try) 2>&5
12243  ac_status=$?
12244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245  (exit $ac_status); }; } &&
12246	 { ac_try='test -s conftest.$ac_objext'
12247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248  (eval $ac_try) 2>&5
12249  ac_status=$?
12250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251  (exit $ac_status); }; }; then
12252  ac_hi=$ac_mid
12253else
12254  echo "$as_me: failed program was:" >&5
12255sed 's/^/| /' conftest.$ac_ext >&5
12256
12257ac_lo=`expr '(' $ac_mid ')' + 1`
12258fi
12259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12260done
12261case $ac_lo in
12262?*) ac_cv_sizeof_int=$ac_lo;;
12263'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12264See \`config.log' for more details." >&5
12265echo "$as_me: error: cannot compute sizeof (int), 77
12266See \`config.log' for more details." >&2;}
12267   { (exit 1); exit 1; }; } ;;
12268esac
12269else
12270  if test "$cross_compiling" = yes; then
12271  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12272See \`config.log' for more details." >&5
12273echo "$as_me: error: cannot run test program while cross compiling
12274See \`config.log' for more details." >&2;}
12275   { (exit 1); exit 1; }; }
12276else
12277  cat >conftest.$ac_ext <<_ACEOF
12278/* confdefs.h.  */
12279_ACEOF
12280cat confdefs.h >>conftest.$ac_ext
12281cat >>conftest.$ac_ext <<_ACEOF
12282/* end confdefs.h.  */
12283$ac_includes_default
12284long longval () { return (long) (sizeof (int)); }
12285unsigned long ulongval () { return (long) (sizeof (int)); }
12286#include <stdio.h>
12287#include <stdlib.h>
12288int
12289main ()
12290{
12291
12292  FILE *f = fopen ("conftest.val", "w");
12293  if (! f)
12294    exit (1);
12295  if (((long) (sizeof (int))) < 0)
12296    {
12297      long i = longval ();
12298      if (i != ((long) (sizeof (int))))
12299	exit (1);
12300      fprintf (f, "%ld\n", i);
12301    }
12302  else
12303    {
12304      unsigned long i = ulongval ();
12305      if (i != ((long) (sizeof (int))))
12306	exit (1);
12307      fprintf (f, "%lu\n", i);
12308    }
12309  exit (ferror (f) || fclose (f) != 0);
12310
12311  ;
12312  return 0;
12313}
12314_ACEOF
12315rm -f conftest$ac_exeext
12316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317  (eval $ac_link) 2>&5
12318  ac_status=$?
12319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322  (eval $ac_try) 2>&5
12323  ac_status=$?
12324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325  (exit $ac_status); }; }; then
12326  ac_cv_sizeof_int=`cat conftest.val`
12327else
12328  echo "$as_me: program exited with status $ac_status" >&5
12329echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332( exit $ac_status )
12333{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12334See \`config.log' for more details." >&5
12335echo "$as_me: error: cannot compute sizeof (int), 77
12336See \`config.log' for more details." >&2;}
12337   { (exit 1); exit 1; }; }
12338fi
12339rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12340fi
12341fi
12342rm -f conftest.val
12343else
12344  ac_cv_sizeof_int=0
12345fi
12346fi
12347echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12348echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12349cat >>confdefs.h <<_ACEOF
12350#define SIZEOF_INT $ac_cv_sizeof_int
12351_ACEOF
12352
12353
12354  if test "$ac_cv_sizeof_int" -eq 2; then
12355    int16_t="int"
12356    return
12357  fi
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370    :
12371  }
12372  find_int16_t
12373
12374cat >>confdefs.h <<_ACEOF
12375#define int16_t $int16_t
12376_ACEOF
12377
12378
12379fi
12380
12381
12382
12383
12384echo "$as_me:$LINENO: checking for uint16_t" >&5
12385echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
12386if test "${ac_cv_type_uint16_t+set}" = set; then
12387  echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389  cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h.  */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h.  */
12395$ac_includes_default
12396int
12397main ()
12398{
12399if ((uint16_t *) 0)
12400  return 0;
12401if (sizeof (uint16_t))
12402  return 0;
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407rm -f conftest.$ac_objext
12408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409  (eval $ac_compile) 2>conftest.er1
12410  ac_status=$?
12411  grep -v '^ *+' conftest.er1 >conftest.err
12412  rm -f conftest.er1
12413  cat conftest.err >&5
12414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415  (exit $ac_status); } &&
12416	 { ac_try='test -z "$ac_cxx_werror_flag"
12417			 || test ! -s conftest.err'
12418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419  (eval $ac_try) 2>&5
12420  ac_status=$?
12421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422  (exit $ac_status); }; } &&
12423	 { ac_try='test -s conftest.$ac_objext'
12424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425  (eval $ac_try) 2>&5
12426  ac_status=$?
12427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428  (exit $ac_status); }; }; then
12429  ac_cv_type_uint16_t=yes
12430else
12431  echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434ac_cv_type_uint16_t=no
12435fi
12436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12437fi
12438echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
12439echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
12440if test $ac_cv_type_uint16_t = yes; then
12441  :
12442else
12443
12444  { echo "$as_me:$LINENO: trying to find a suitable 2-byte replacement for uint16_t" >&5
12445echo "$as_me: trying to find a suitable 2-byte replacement for uint16_t" >&6;}
12446  uint16_t=no
12447  find_uint16_t ()
12448  {
12449
12450
12451  echo "$as_me:$LINENO: checking for unsigned int16_t" >&5
12452echo $ECHO_N "checking for unsigned int16_t... $ECHO_C" >&6
12453if test "${ac_cv_type_unsigned_int16_t+set}" = set; then
12454  echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456  cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h.  */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h.  */
12462$ac_includes_default
12463int
12464main ()
12465{
12466if ((unsigned int16_t *) 0)
12467  return 0;
12468if (sizeof (unsigned int16_t))
12469  return 0;
12470  ;
12471  return 0;
12472}
12473_ACEOF
12474rm -f conftest.$ac_objext
12475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476  (eval $ac_compile) 2>conftest.er1
12477  ac_status=$?
12478  grep -v '^ *+' conftest.er1 >conftest.err
12479  rm -f conftest.er1
12480  cat conftest.err >&5
12481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482  (exit $ac_status); } &&
12483	 { ac_try='test -z "$ac_cxx_werror_flag"
12484			 || test ! -s conftest.err'
12485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486  (eval $ac_try) 2>&5
12487  ac_status=$?
12488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489  (exit $ac_status); }; } &&
12490	 { ac_try='test -s conftest.$ac_objext'
12491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492  (eval $ac_try) 2>&5
12493  ac_status=$?
12494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495  (exit $ac_status); }; }; then
12496  ac_cv_type_unsigned_int16_t=yes
12497else
12498  echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501ac_cv_type_unsigned_int16_t=no
12502fi
12503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int16_t" >&5
12506echo "${ECHO_T}$ac_cv_type_unsigned_int16_t" >&6
12507
12508echo "$as_me:$LINENO: checking size of unsigned int16_t" >&5
12509echo $ECHO_N "checking size of unsigned int16_t... $ECHO_C" >&6
12510if test "${ac_cv_sizeof_unsigned_int16_t+set}" = set; then
12511  echo $ECHO_N "(cached) $ECHO_C" >&6
12512else
12513  if test "$ac_cv_type_unsigned_int16_t" = yes; then
12514  # The cast to unsigned long works around a bug in the HP C Compiler
12515  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12516  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12517  # This bug is HP SR number 8606223364.
12518  if test "$cross_compiling" = yes; then
12519  # Depending upon the size, compute the lo and hi bounds.
12520cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h.  */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h.  */
12526$ac_includes_default
12527int
12528main ()
12529{
12530static int test_array [1 - 2 * !(((long) (sizeof (unsigned int16_t))) >= 0)];
12531test_array [0] = 0
12532
12533  ;
12534  return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539  (eval $ac_compile) 2>conftest.er1
12540  ac_status=$?
12541  grep -v '^ *+' conftest.er1 >conftest.err
12542  rm -f conftest.er1
12543  cat conftest.err >&5
12544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545  (exit $ac_status); } &&
12546	 { ac_try='test -z "$ac_cxx_werror_flag"
12547			 || test ! -s conftest.err'
12548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549  (eval $ac_try) 2>&5
12550  ac_status=$?
12551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552  (exit $ac_status); }; } &&
12553	 { ac_try='test -s conftest.$ac_objext'
12554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555  (eval $ac_try) 2>&5
12556  ac_status=$?
12557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558  (exit $ac_status); }; }; then
12559  ac_lo=0 ac_mid=0
12560  while :; do
12561    cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h.  */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h.  */
12567$ac_includes_default
12568int
12569main ()
12570{
12571static int test_array [1 - 2 * !(((long) (sizeof (unsigned int16_t))) <= $ac_mid)];
12572test_array [0] = 0
12573
12574  ;
12575  return 0;
12576}
12577_ACEOF
12578rm -f conftest.$ac_objext
12579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580  (eval $ac_compile) 2>conftest.er1
12581  ac_status=$?
12582  grep -v '^ *+' conftest.er1 >conftest.err
12583  rm -f conftest.er1
12584  cat conftest.err >&5
12585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586  (exit $ac_status); } &&
12587	 { ac_try='test -z "$ac_cxx_werror_flag"
12588			 || test ! -s conftest.err'
12589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590  (eval $ac_try) 2>&5
12591  ac_status=$?
12592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593  (exit $ac_status); }; } &&
12594	 { ac_try='test -s conftest.$ac_objext'
12595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596  (eval $ac_try) 2>&5
12597  ac_status=$?
12598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599  (exit $ac_status); }; }; then
12600  ac_hi=$ac_mid; break
12601else
12602  echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
12604
12605ac_lo=`expr $ac_mid + 1`
12606		    if test $ac_lo -le $ac_mid; then
12607		      ac_lo= ac_hi=
12608		      break
12609		    fi
12610		    ac_mid=`expr 2 '*' $ac_mid + 1`
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613  done
12614else
12615  echo "$as_me: failed program was:" >&5
12616sed 's/^/| /' conftest.$ac_ext >&5
12617
12618cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h.  */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h.  */
12624$ac_includes_default
12625int
12626main ()
12627{
12628static int test_array [1 - 2 * !(((long) (sizeof (unsigned int16_t))) < 0)];
12629test_array [0] = 0
12630
12631  ;
12632  return 0;
12633}
12634_ACEOF
12635rm -f conftest.$ac_objext
12636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637  (eval $ac_compile) 2>conftest.er1
12638  ac_status=$?
12639  grep -v '^ *+' conftest.er1 >conftest.err
12640  rm -f conftest.er1
12641  cat conftest.err >&5
12642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643  (exit $ac_status); } &&
12644	 { ac_try='test -z "$ac_cxx_werror_flag"
12645			 || test ! -s conftest.err'
12646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647  (eval $ac_try) 2>&5
12648  ac_status=$?
12649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650  (exit $ac_status); }; } &&
12651	 { ac_try='test -s conftest.$ac_objext'
12652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653  (eval $ac_try) 2>&5
12654  ac_status=$?
12655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656  (exit $ac_status); }; }; then
12657  ac_hi=-1 ac_mid=-1
12658  while :; do
12659    cat >conftest.$ac_ext <<_ACEOF
12660/* confdefs.h.  */
12661_ACEOF
12662cat confdefs.h >>conftest.$ac_ext
12663cat >>conftest.$ac_ext <<_ACEOF
12664/* end confdefs.h.  */
12665$ac_includes_default
12666int
12667main ()
12668{
12669static int test_array [1 - 2 * !(((long) (sizeof (unsigned int16_t))) >= $ac_mid)];
12670test_array [0] = 0
12671
12672  ;
12673  return 0;
12674}
12675_ACEOF
12676rm -f conftest.$ac_objext
12677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12678  (eval $ac_compile) 2>conftest.er1
12679  ac_status=$?
12680  grep -v '^ *+' conftest.er1 >conftest.err
12681  rm -f conftest.er1
12682  cat conftest.err >&5
12683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684  (exit $ac_status); } &&
12685	 { ac_try='test -z "$ac_cxx_werror_flag"
12686			 || test ! -s conftest.err'
12687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688  (eval $ac_try) 2>&5
12689  ac_status=$?
12690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691  (exit $ac_status); }; } &&
12692	 { ac_try='test -s conftest.$ac_objext'
12693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694  (eval $ac_try) 2>&5
12695  ac_status=$?
12696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697  (exit $ac_status); }; }; then
12698  ac_lo=$ac_mid; break
12699else
12700  echo "$as_me: failed program was:" >&5
12701sed 's/^/| /' conftest.$ac_ext >&5
12702
12703ac_hi=`expr '(' $ac_mid ')' - 1`
12704		       if test $ac_mid -le $ac_hi; then
12705			 ac_lo= ac_hi=
12706			 break
12707		       fi
12708		       ac_mid=`expr 2 '*' $ac_mid`
12709fi
12710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711  done
12712else
12713  echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716ac_lo= ac_hi=
12717fi
12718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12719fi
12720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721# Binary search between lo and hi bounds.
12722while test "x$ac_lo" != "x$ac_hi"; do
12723  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12724  cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h.  */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h.  */
12730$ac_includes_default
12731int
12732main ()
12733{
12734static int test_array [1 - 2 * !(((long) (sizeof (unsigned int16_t))) <= $ac_mid)];
12735test_array [0] = 0
12736
12737  ;
12738  return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext
12742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12743  (eval $ac_compile) 2>conftest.er1
12744  ac_status=$?
12745  grep -v '^ *+' conftest.er1 >conftest.err
12746  rm -f conftest.er1
12747  cat conftest.err >&5
12748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749  (exit $ac_status); } &&
12750	 { ac_try='test -z "$ac_cxx_werror_flag"
12751			 || test ! -s conftest.err'
12752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753  (eval $ac_try) 2>&5
12754  ac_status=$?
12755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756  (exit $ac_status); }; } &&
12757	 { ac_try='test -s conftest.$ac_objext'
12758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759  (eval $ac_try) 2>&5
12760  ac_status=$?
12761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762  (exit $ac_status); }; }; then
12763  ac_hi=$ac_mid
12764else
12765  echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768ac_lo=`expr '(' $ac_mid ')' + 1`
12769fi
12770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771done
12772case $ac_lo in
12773?*) ac_cv_sizeof_unsigned_int16_t=$ac_lo;;
12774'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int16_t), 77
12775See \`config.log' for more details." >&5
12776echo "$as_me: error: cannot compute sizeof (unsigned int16_t), 77
12777See \`config.log' for more details." >&2;}
12778   { (exit 1); exit 1; }; } ;;
12779esac
12780else
12781  if test "$cross_compiling" = yes; then
12782  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12783See \`config.log' for more details." >&5
12784echo "$as_me: error: cannot run test program while cross compiling
12785See \`config.log' for more details." >&2;}
12786   { (exit 1); exit 1; }; }
12787else
12788  cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h.  */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h.  */
12794$ac_includes_default
12795long longval () { return (long) (sizeof (unsigned int16_t)); }
12796unsigned long ulongval () { return (long) (sizeof (unsigned int16_t)); }
12797#include <stdio.h>
12798#include <stdlib.h>
12799int
12800main ()
12801{
12802
12803  FILE *f = fopen ("conftest.val", "w");
12804  if (! f)
12805    exit (1);
12806  if (((long) (sizeof (unsigned int16_t))) < 0)
12807    {
12808      long i = longval ();
12809      if (i != ((long) (sizeof (unsigned int16_t))))
12810	exit (1);
12811      fprintf (f, "%ld\n", i);
12812    }
12813  else
12814    {
12815      unsigned long i = ulongval ();
12816      if (i != ((long) (sizeof (unsigned int16_t))))
12817	exit (1);
12818      fprintf (f, "%lu\n", i);
12819    }
12820  exit (ferror (f) || fclose (f) != 0);
12821
12822  ;
12823  return 0;
12824}
12825_ACEOF
12826rm -f conftest$ac_exeext
12827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828  (eval $ac_link) 2>&5
12829  ac_status=$?
12830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833  (eval $ac_try) 2>&5
12834  ac_status=$?
12835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836  (exit $ac_status); }; }; then
12837  ac_cv_sizeof_unsigned_int16_t=`cat conftest.val`
12838else
12839  echo "$as_me: program exited with status $ac_status" >&5
12840echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843( exit $ac_status )
12844{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int16_t), 77
12845See \`config.log' for more details." >&5
12846echo "$as_me: error: cannot compute sizeof (unsigned int16_t), 77
12847See \`config.log' for more details." >&2;}
12848   { (exit 1); exit 1; }; }
12849fi
12850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12851fi
12852fi
12853rm -f conftest.val
12854else
12855  ac_cv_sizeof_unsigned_int16_t=0
12856fi
12857fi
12858echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int16_t" >&5
12859echo "${ECHO_T}$ac_cv_sizeof_unsigned_int16_t" >&6
12860cat >>confdefs.h <<_ACEOF
12861#define SIZEOF_UNSIGNED_INT16_T $ac_cv_sizeof_unsigned_int16_t
12862_ACEOF
12863
12864
12865  if test "$ac_cv_sizeof_unsigned_int16_t" -eq 2; then
12866    uint16_t="unsigned int16_t"
12867    return
12868  fi
12869
12870
12871  echo "$as_me:$LINENO: checking for unsigned short" >&5
12872echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
12873if test "${ac_cv_type_unsigned_short+set}" = set; then
12874  echo $ECHO_N "(cached) $ECHO_C" >&6
12875else
12876  cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h.  */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h.  */
12882$ac_includes_default
12883int
12884main ()
12885{
12886if ((unsigned short *) 0)
12887  return 0;
12888if (sizeof (unsigned short))
12889  return 0;
12890  ;
12891  return 0;
12892}
12893_ACEOF
12894rm -f conftest.$ac_objext
12895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896  (eval $ac_compile) 2>conftest.er1
12897  ac_status=$?
12898  grep -v '^ *+' conftest.er1 >conftest.err
12899  rm -f conftest.er1
12900  cat conftest.err >&5
12901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902  (exit $ac_status); } &&
12903	 { ac_try='test -z "$ac_cxx_werror_flag"
12904			 || test ! -s conftest.err'
12905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906  (eval $ac_try) 2>&5
12907  ac_status=$?
12908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909  (exit $ac_status); }; } &&
12910	 { ac_try='test -s conftest.$ac_objext'
12911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912  (eval $ac_try) 2>&5
12913  ac_status=$?
12914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915  (exit $ac_status); }; }; then
12916  ac_cv_type_unsigned_short=yes
12917else
12918  echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921ac_cv_type_unsigned_short=no
12922fi
12923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924fi
12925echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
12926echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
12927
12928echo "$as_me:$LINENO: checking size of unsigned short" >&5
12929echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
12930if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
12931  echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933  if test "$ac_cv_type_unsigned_short" = yes; then
12934  # The cast to unsigned long works around a bug in the HP C Compiler
12935  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12936  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12937  # This bug is HP SR number 8606223364.
12938  if test "$cross_compiling" = yes; then
12939  # Depending upon the size, compute the lo and hi bounds.
12940cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h.  */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h.  */
12946$ac_includes_default
12947int
12948main ()
12949{
12950static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
12951test_array [0] = 0
12952
12953  ;
12954  return 0;
12955}
12956_ACEOF
12957rm -f conftest.$ac_objext
12958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959  (eval $ac_compile) 2>conftest.er1
12960  ac_status=$?
12961  grep -v '^ *+' conftest.er1 >conftest.err
12962  rm -f conftest.er1
12963  cat conftest.err >&5
12964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965  (exit $ac_status); } &&
12966	 { ac_try='test -z "$ac_cxx_werror_flag"
12967			 || test ! -s conftest.err'
12968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969  (eval $ac_try) 2>&5
12970  ac_status=$?
12971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972  (exit $ac_status); }; } &&
12973	 { ac_try='test -s conftest.$ac_objext'
12974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975  (eval $ac_try) 2>&5
12976  ac_status=$?
12977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978  (exit $ac_status); }; }; then
12979  ac_lo=0 ac_mid=0
12980  while :; do
12981    cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h.  */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h.  */
12987$ac_includes_default
12988int
12989main ()
12990{
12991static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
12992test_array [0] = 0
12993
12994  ;
12995  return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext
12999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000  (eval $ac_compile) 2>conftest.er1
13001  ac_status=$?
13002  grep -v '^ *+' conftest.er1 >conftest.err
13003  rm -f conftest.er1
13004  cat conftest.err >&5
13005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006  (exit $ac_status); } &&
13007	 { ac_try='test -z "$ac_cxx_werror_flag"
13008			 || test ! -s conftest.err'
13009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010  (eval $ac_try) 2>&5
13011  ac_status=$?
13012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013  (exit $ac_status); }; } &&
13014	 { ac_try='test -s conftest.$ac_objext'
13015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016  (eval $ac_try) 2>&5
13017  ac_status=$?
13018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019  (exit $ac_status); }; }; then
13020  ac_hi=$ac_mid; break
13021else
13022  echo "$as_me: failed program was:" >&5
13023sed 's/^/| /' conftest.$ac_ext >&5
13024
13025ac_lo=`expr $ac_mid + 1`
13026		    if test $ac_lo -le $ac_mid; then
13027		      ac_lo= ac_hi=
13028		      break
13029		    fi
13030		    ac_mid=`expr 2 '*' $ac_mid + 1`
13031fi
13032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13033  done
13034else
13035  echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h.  */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h.  */
13044$ac_includes_default
13045int
13046main ()
13047{
13048static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
13049test_array [0] = 0
13050
13051  ;
13052  return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext
13056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057  (eval $ac_compile) 2>conftest.er1
13058  ac_status=$?
13059  grep -v '^ *+' conftest.er1 >conftest.err
13060  rm -f conftest.er1
13061  cat conftest.err >&5
13062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063  (exit $ac_status); } &&
13064	 { ac_try='test -z "$ac_cxx_werror_flag"
13065			 || test ! -s conftest.err'
13066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067  (eval $ac_try) 2>&5
13068  ac_status=$?
13069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070  (exit $ac_status); }; } &&
13071	 { ac_try='test -s conftest.$ac_objext'
13072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073  (eval $ac_try) 2>&5
13074  ac_status=$?
13075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076  (exit $ac_status); }; }; then
13077  ac_hi=-1 ac_mid=-1
13078  while :; do
13079    cat >conftest.$ac_ext <<_ACEOF
13080/* confdefs.h.  */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h.  */
13085$ac_includes_default
13086int
13087main ()
13088{
13089static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
13090test_array [0] = 0
13091
13092  ;
13093  return 0;
13094}
13095_ACEOF
13096rm -f conftest.$ac_objext
13097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098  (eval $ac_compile) 2>conftest.er1
13099  ac_status=$?
13100  grep -v '^ *+' conftest.er1 >conftest.err
13101  rm -f conftest.er1
13102  cat conftest.err >&5
13103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104  (exit $ac_status); } &&
13105	 { ac_try='test -z "$ac_cxx_werror_flag"
13106			 || test ! -s conftest.err'
13107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108  (eval $ac_try) 2>&5
13109  ac_status=$?
13110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111  (exit $ac_status); }; } &&
13112	 { ac_try='test -s conftest.$ac_objext'
13113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114  (eval $ac_try) 2>&5
13115  ac_status=$?
13116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117  (exit $ac_status); }; }; then
13118  ac_lo=$ac_mid; break
13119else
13120  echo "$as_me: failed program was:" >&5
13121sed 's/^/| /' conftest.$ac_ext >&5
13122
13123ac_hi=`expr '(' $ac_mid ')' - 1`
13124		       if test $ac_mid -le $ac_hi; then
13125			 ac_lo= ac_hi=
13126			 break
13127		       fi
13128		       ac_mid=`expr 2 '*' $ac_mid`
13129fi
13130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131  done
13132else
13133  echo "$as_me: failed program was:" >&5
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
13136ac_lo= ac_hi=
13137fi
13138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13139fi
13140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13141# Binary search between lo and hi bounds.
13142while test "x$ac_lo" != "x$ac_hi"; do
13143  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13144  cat >conftest.$ac_ext <<_ACEOF
13145/* confdefs.h.  */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h.  */
13150$ac_includes_default
13151int
13152main ()
13153{
13154static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
13155test_array [0] = 0
13156
13157  ;
13158  return 0;
13159}
13160_ACEOF
13161rm -f conftest.$ac_objext
13162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163  (eval $ac_compile) 2>conftest.er1
13164  ac_status=$?
13165  grep -v '^ *+' conftest.er1 >conftest.err
13166  rm -f conftest.er1
13167  cat conftest.err >&5
13168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169  (exit $ac_status); } &&
13170	 { ac_try='test -z "$ac_cxx_werror_flag"
13171			 || test ! -s conftest.err'
13172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173  (eval $ac_try) 2>&5
13174  ac_status=$?
13175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176  (exit $ac_status); }; } &&
13177	 { ac_try='test -s conftest.$ac_objext'
13178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179  (eval $ac_try) 2>&5
13180  ac_status=$?
13181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182  (exit $ac_status); }; }; then
13183  ac_hi=$ac_mid
13184else
13185  echo "$as_me: failed program was:" >&5
13186sed 's/^/| /' conftest.$ac_ext >&5
13187
13188ac_lo=`expr '(' $ac_mid ')' + 1`
13189fi
13190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13191done
13192case $ac_lo in
13193?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
13194'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
13195See \`config.log' for more details." >&5
13196echo "$as_me: error: cannot compute sizeof (unsigned short), 77
13197See \`config.log' for more details." >&2;}
13198   { (exit 1); exit 1; }; } ;;
13199esac
13200else
13201  if test "$cross_compiling" = yes; then
13202  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13203See \`config.log' for more details." >&5
13204echo "$as_me: error: cannot run test program while cross compiling
13205See \`config.log' for more details." >&2;}
13206   { (exit 1); exit 1; }; }
13207else
13208  cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h.  */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h.  */
13214$ac_includes_default
13215long longval () { return (long) (sizeof (unsigned short)); }
13216unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
13217#include <stdio.h>
13218#include <stdlib.h>
13219int
13220main ()
13221{
13222
13223  FILE *f = fopen ("conftest.val", "w");
13224  if (! f)
13225    exit (1);
13226  if (((long) (sizeof (unsigned short))) < 0)
13227    {
13228      long i = longval ();
13229      if (i != ((long) (sizeof (unsigned short))))
13230	exit (1);
13231      fprintf (f, "%ld\n", i);
13232    }
13233  else
13234    {
13235      unsigned long i = ulongval ();
13236      if (i != ((long) (sizeof (unsigned short))))
13237	exit (1);
13238      fprintf (f, "%lu\n", i);
13239    }
13240  exit (ferror (f) || fclose (f) != 0);
13241
13242  ;
13243  return 0;
13244}
13245_ACEOF
13246rm -f conftest$ac_exeext
13247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13248  (eval $ac_link) 2>&5
13249  ac_status=$?
13250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253  (eval $ac_try) 2>&5
13254  ac_status=$?
13255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256  (exit $ac_status); }; }; then
13257  ac_cv_sizeof_unsigned_short=`cat conftest.val`
13258else
13259  echo "$as_me: program exited with status $ac_status" >&5
13260echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
13263( exit $ac_status )
13264{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
13265See \`config.log' for more details." >&5
13266echo "$as_me: error: cannot compute sizeof (unsigned short), 77
13267See \`config.log' for more details." >&2;}
13268   { (exit 1); exit 1; }; }
13269fi
13270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13271fi
13272fi
13273rm -f conftest.val
13274else
13275  ac_cv_sizeof_unsigned_short=0
13276fi
13277fi
13278echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
13279echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
13280cat >>confdefs.h <<_ACEOF
13281#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13282_ACEOF
13283
13284
13285  if test "$ac_cv_sizeof_unsigned_short" -eq 2; then
13286    uint16_t="unsigned short"
13287    return
13288  fi
13289
13290
13291  echo "$as_me:$LINENO: checking for unsigned" >&5
13292echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
13293if test "${ac_cv_type_unsigned+set}" = set; then
13294  echo $ECHO_N "(cached) $ECHO_C" >&6
13295else
13296  cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h.  */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h.  */
13302$ac_includes_default
13303int
13304main ()
13305{
13306if ((unsigned *) 0)
13307  return 0;
13308if (sizeof (unsigned))
13309  return 0;
13310  ;
13311  return 0;
13312}
13313_ACEOF
13314rm -f conftest.$ac_objext
13315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316  (eval $ac_compile) 2>conftest.er1
13317  ac_status=$?
13318  grep -v '^ *+' conftest.er1 >conftest.err
13319  rm -f conftest.er1
13320  cat conftest.err >&5
13321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322  (exit $ac_status); } &&
13323	 { ac_try='test -z "$ac_cxx_werror_flag"
13324			 || test ! -s conftest.err'
13325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326  (eval $ac_try) 2>&5
13327  ac_status=$?
13328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329  (exit $ac_status); }; } &&
13330	 { ac_try='test -s conftest.$ac_objext'
13331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332  (eval $ac_try) 2>&5
13333  ac_status=$?
13334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335  (exit $ac_status); }; }; then
13336  ac_cv_type_unsigned=yes
13337else
13338  echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341ac_cv_type_unsigned=no
13342fi
13343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13344fi
13345echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
13346echo "${ECHO_T}$ac_cv_type_unsigned" >&6
13347
13348echo "$as_me:$LINENO: checking size of unsigned" >&5
13349echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
13350if test "${ac_cv_sizeof_unsigned+set}" = set; then
13351  echo $ECHO_N "(cached) $ECHO_C" >&6
13352else
13353  if test "$ac_cv_type_unsigned" = yes; then
13354  # The cast to unsigned long works around a bug in the HP C Compiler
13355  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13356  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13357  # This bug is HP SR number 8606223364.
13358  if test "$cross_compiling" = yes; then
13359  # Depending upon the size, compute the lo and hi bounds.
13360cat >conftest.$ac_ext <<_ACEOF
13361/* confdefs.h.  */
13362_ACEOF
13363cat confdefs.h >>conftest.$ac_ext
13364cat >>conftest.$ac_ext <<_ACEOF
13365/* end confdefs.h.  */
13366$ac_includes_default
13367int
13368main ()
13369{
13370static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
13371test_array [0] = 0
13372
13373  ;
13374  return 0;
13375}
13376_ACEOF
13377rm -f conftest.$ac_objext
13378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379  (eval $ac_compile) 2>conftest.er1
13380  ac_status=$?
13381  grep -v '^ *+' conftest.er1 >conftest.err
13382  rm -f conftest.er1
13383  cat conftest.err >&5
13384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385  (exit $ac_status); } &&
13386	 { ac_try='test -z "$ac_cxx_werror_flag"
13387			 || test ! -s conftest.err'
13388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389  (eval $ac_try) 2>&5
13390  ac_status=$?
13391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392  (exit $ac_status); }; } &&
13393	 { ac_try='test -s conftest.$ac_objext'
13394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395  (eval $ac_try) 2>&5
13396  ac_status=$?
13397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398  (exit $ac_status); }; }; then
13399  ac_lo=0 ac_mid=0
13400  while :; do
13401    cat >conftest.$ac_ext <<_ACEOF
13402/* confdefs.h.  */
13403_ACEOF
13404cat confdefs.h >>conftest.$ac_ext
13405cat >>conftest.$ac_ext <<_ACEOF
13406/* end confdefs.h.  */
13407$ac_includes_default
13408int
13409main ()
13410{
13411static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
13412test_array [0] = 0
13413
13414  ;
13415  return 0;
13416}
13417_ACEOF
13418rm -f conftest.$ac_objext
13419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420  (eval $ac_compile) 2>conftest.er1
13421  ac_status=$?
13422  grep -v '^ *+' conftest.er1 >conftest.err
13423  rm -f conftest.er1
13424  cat conftest.err >&5
13425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426  (exit $ac_status); } &&
13427	 { ac_try='test -z "$ac_cxx_werror_flag"
13428			 || test ! -s conftest.err'
13429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430  (eval $ac_try) 2>&5
13431  ac_status=$?
13432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433  (exit $ac_status); }; } &&
13434	 { ac_try='test -s conftest.$ac_objext'
13435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436  (eval $ac_try) 2>&5
13437  ac_status=$?
13438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439  (exit $ac_status); }; }; then
13440  ac_hi=$ac_mid; break
13441else
13442  echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445ac_lo=`expr $ac_mid + 1`
13446		    if test $ac_lo -le $ac_mid; then
13447		      ac_lo= ac_hi=
13448		      break
13449		    fi
13450		    ac_mid=`expr 2 '*' $ac_mid + 1`
13451fi
13452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453  done
13454else
13455  echo "$as_me: failed program was:" >&5
13456sed 's/^/| /' conftest.$ac_ext >&5
13457
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h.  */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h.  */
13464$ac_includes_default
13465int
13466main ()
13467{
13468static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
13469test_array [0] = 0
13470
13471  ;
13472  return 0;
13473}
13474_ACEOF
13475rm -f conftest.$ac_objext
13476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477  (eval $ac_compile) 2>conftest.er1
13478  ac_status=$?
13479  grep -v '^ *+' conftest.er1 >conftest.err
13480  rm -f conftest.er1
13481  cat conftest.err >&5
13482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483  (exit $ac_status); } &&
13484	 { ac_try='test -z "$ac_cxx_werror_flag"
13485			 || test ! -s conftest.err'
13486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487  (eval $ac_try) 2>&5
13488  ac_status=$?
13489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490  (exit $ac_status); }; } &&
13491	 { ac_try='test -s conftest.$ac_objext'
13492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493  (eval $ac_try) 2>&5
13494  ac_status=$?
13495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496  (exit $ac_status); }; }; then
13497  ac_hi=-1 ac_mid=-1
13498  while :; do
13499    cat >conftest.$ac_ext <<_ACEOF
13500/* confdefs.h.  */
13501_ACEOF
13502cat confdefs.h >>conftest.$ac_ext
13503cat >>conftest.$ac_ext <<_ACEOF
13504/* end confdefs.h.  */
13505$ac_includes_default
13506int
13507main ()
13508{
13509static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
13510test_array [0] = 0
13511
13512  ;
13513  return 0;
13514}
13515_ACEOF
13516rm -f conftest.$ac_objext
13517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518  (eval $ac_compile) 2>conftest.er1
13519  ac_status=$?
13520  grep -v '^ *+' conftest.er1 >conftest.err
13521  rm -f conftest.er1
13522  cat conftest.err >&5
13523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524  (exit $ac_status); } &&
13525	 { ac_try='test -z "$ac_cxx_werror_flag"
13526			 || test ! -s conftest.err'
13527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528  (eval $ac_try) 2>&5
13529  ac_status=$?
13530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531  (exit $ac_status); }; } &&
13532	 { ac_try='test -s conftest.$ac_objext'
13533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534  (eval $ac_try) 2>&5
13535  ac_status=$?
13536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537  (exit $ac_status); }; }; then
13538  ac_lo=$ac_mid; break
13539else
13540  echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
13542
13543ac_hi=`expr '(' $ac_mid ')' - 1`
13544		       if test $ac_mid -le $ac_hi; then
13545			 ac_lo= ac_hi=
13546			 break
13547		       fi
13548		       ac_mid=`expr 2 '*' $ac_mid`
13549fi
13550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13551  done
13552else
13553  echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
13556ac_lo= ac_hi=
13557fi
13558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13559fi
13560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13561# Binary search between lo and hi bounds.
13562while test "x$ac_lo" != "x$ac_hi"; do
13563  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13564  cat >conftest.$ac_ext <<_ACEOF
13565/* confdefs.h.  */
13566_ACEOF
13567cat confdefs.h >>conftest.$ac_ext
13568cat >>conftest.$ac_ext <<_ACEOF
13569/* end confdefs.h.  */
13570$ac_includes_default
13571int
13572main ()
13573{
13574static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
13575test_array [0] = 0
13576
13577  ;
13578  return 0;
13579}
13580_ACEOF
13581rm -f conftest.$ac_objext
13582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583  (eval $ac_compile) 2>conftest.er1
13584  ac_status=$?
13585  grep -v '^ *+' conftest.er1 >conftest.err
13586  rm -f conftest.er1
13587  cat conftest.err >&5
13588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589  (exit $ac_status); } &&
13590	 { ac_try='test -z "$ac_cxx_werror_flag"
13591			 || test ! -s conftest.err'
13592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593  (eval $ac_try) 2>&5
13594  ac_status=$?
13595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596  (exit $ac_status); }; } &&
13597	 { ac_try='test -s conftest.$ac_objext'
13598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599  (eval $ac_try) 2>&5
13600  ac_status=$?
13601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602  (exit $ac_status); }; }; then
13603  ac_hi=$ac_mid
13604else
13605  echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
13608ac_lo=`expr '(' $ac_mid ')' + 1`
13609fi
13610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13611done
13612case $ac_lo in
13613?*) ac_cv_sizeof_unsigned=$ac_lo;;
13614'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
13615See \`config.log' for more details." >&5
13616echo "$as_me: error: cannot compute sizeof (unsigned), 77
13617See \`config.log' for more details." >&2;}
13618   { (exit 1); exit 1; }; } ;;
13619esac
13620else
13621  if test "$cross_compiling" = yes; then
13622  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13623See \`config.log' for more details." >&5
13624echo "$as_me: error: cannot run test program while cross compiling
13625See \`config.log' for more details." >&2;}
13626   { (exit 1); exit 1; }; }
13627else
13628  cat >conftest.$ac_ext <<_ACEOF
13629/* confdefs.h.  */
13630_ACEOF
13631cat confdefs.h >>conftest.$ac_ext
13632cat >>conftest.$ac_ext <<_ACEOF
13633/* end confdefs.h.  */
13634$ac_includes_default
13635long longval () { return (long) (sizeof (unsigned)); }
13636unsigned long ulongval () { return (long) (sizeof (unsigned)); }
13637#include <stdio.h>
13638#include <stdlib.h>
13639int
13640main ()
13641{
13642
13643  FILE *f = fopen ("conftest.val", "w");
13644  if (! f)
13645    exit (1);
13646  if (((long) (sizeof (unsigned))) < 0)
13647    {
13648      long i = longval ();
13649      if (i != ((long) (sizeof (unsigned))))
13650	exit (1);
13651      fprintf (f, "%ld\n", i);
13652    }
13653  else
13654    {
13655      unsigned long i = ulongval ();
13656      if (i != ((long) (sizeof (unsigned))))
13657	exit (1);
13658      fprintf (f, "%lu\n", i);
13659    }
13660  exit (ferror (f) || fclose (f) != 0);
13661
13662  ;
13663  return 0;
13664}
13665_ACEOF
13666rm -f conftest$ac_exeext
13667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668  (eval $ac_link) 2>&5
13669  ac_status=$?
13670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673  (eval $ac_try) 2>&5
13674  ac_status=$?
13675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676  (exit $ac_status); }; }; then
13677  ac_cv_sizeof_unsigned=`cat conftest.val`
13678else
13679  echo "$as_me: program exited with status $ac_status" >&5
13680echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683( exit $ac_status )
13684{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
13685See \`config.log' for more details." >&5
13686echo "$as_me: error: cannot compute sizeof (unsigned), 77
13687See \`config.log' for more details." >&2;}
13688   { (exit 1); exit 1; }; }
13689fi
13690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13691fi
13692fi
13693rm -f conftest.val
13694else
13695  ac_cv_sizeof_unsigned=0
13696fi
13697fi
13698echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
13699echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
13700cat >>confdefs.h <<_ACEOF
13701#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
13702_ACEOF
13703
13704
13705  if test "$ac_cv_sizeof_unsigned" -eq 2; then
13706    uint16_t="unsigned"
13707    return
13708  fi
13709
13710
13711  echo "$as_me:$LINENO: checking for unsigned __int16" >&5
13712echo $ECHO_N "checking for unsigned __int16... $ECHO_C" >&6
13713if test "${ac_cv_type_unsigned___int16+set}" = set; then
13714  echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716  cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h.  */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h.  */
13722$ac_includes_default
13723int
13724main ()
13725{
13726if ((unsigned __int16 *) 0)
13727  return 0;
13728if (sizeof (unsigned __int16))
13729  return 0;
13730  ;
13731  return 0;
13732}
13733_ACEOF
13734rm -f conftest.$ac_objext
13735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736  (eval $ac_compile) 2>conftest.er1
13737  ac_status=$?
13738  grep -v '^ *+' conftest.er1 >conftest.err
13739  rm -f conftest.er1
13740  cat conftest.err >&5
13741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742  (exit $ac_status); } &&
13743	 { ac_try='test -z "$ac_cxx_werror_flag"
13744			 || test ! -s conftest.err'
13745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746  (eval $ac_try) 2>&5
13747  ac_status=$?
13748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749  (exit $ac_status); }; } &&
13750	 { ac_try='test -s conftest.$ac_objext'
13751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752  (eval $ac_try) 2>&5
13753  ac_status=$?
13754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755  (exit $ac_status); }; }; then
13756  ac_cv_type_unsigned___int16=yes
13757else
13758  echo "$as_me: failed program was:" >&5
13759sed 's/^/| /' conftest.$ac_ext >&5
13760
13761ac_cv_type_unsigned___int16=no
13762fi
13763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13764fi
13765echo "$as_me:$LINENO: result: $ac_cv_type_unsigned___int16" >&5
13766echo "${ECHO_T}$ac_cv_type_unsigned___int16" >&6
13767
13768echo "$as_me:$LINENO: checking size of unsigned __int16" >&5
13769echo $ECHO_N "checking size of unsigned __int16... $ECHO_C" >&6
13770if test "${ac_cv_sizeof_unsigned___int16+set}" = set; then
13771  echo $ECHO_N "(cached) $ECHO_C" >&6
13772else
13773  if test "$ac_cv_type_unsigned___int16" = yes; then
13774  # The cast to unsigned long works around a bug in the HP C Compiler
13775  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13776  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13777  # This bug is HP SR number 8606223364.
13778  if test "$cross_compiling" = yes; then
13779  # Depending upon the size, compute the lo and hi bounds.
13780cat >conftest.$ac_ext <<_ACEOF
13781/* confdefs.h.  */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h.  */
13786$ac_includes_default
13787int
13788main ()
13789{
13790static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int16))) >= 0)];
13791test_array [0] = 0
13792
13793  ;
13794  return 0;
13795}
13796_ACEOF
13797rm -f conftest.$ac_objext
13798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799  (eval $ac_compile) 2>conftest.er1
13800  ac_status=$?
13801  grep -v '^ *+' conftest.er1 >conftest.err
13802  rm -f conftest.er1
13803  cat conftest.err >&5
13804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805  (exit $ac_status); } &&
13806	 { ac_try='test -z "$ac_cxx_werror_flag"
13807			 || test ! -s conftest.err'
13808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809  (eval $ac_try) 2>&5
13810  ac_status=$?
13811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812  (exit $ac_status); }; } &&
13813	 { ac_try='test -s conftest.$ac_objext'
13814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815  (eval $ac_try) 2>&5
13816  ac_status=$?
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); }; }; then
13819  ac_lo=0 ac_mid=0
13820  while :; do
13821    cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h.  */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h.  */
13827$ac_includes_default
13828int
13829main ()
13830{
13831static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int16))) <= $ac_mid)];
13832test_array [0] = 0
13833
13834  ;
13835  return 0;
13836}
13837_ACEOF
13838rm -f conftest.$ac_objext
13839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13840  (eval $ac_compile) 2>conftest.er1
13841  ac_status=$?
13842  grep -v '^ *+' conftest.er1 >conftest.err
13843  rm -f conftest.er1
13844  cat conftest.err >&5
13845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846  (exit $ac_status); } &&
13847	 { ac_try='test -z "$ac_cxx_werror_flag"
13848			 || test ! -s conftest.err'
13849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850  (eval $ac_try) 2>&5
13851  ac_status=$?
13852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853  (exit $ac_status); }; } &&
13854	 { ac_try='test -s conftest.$ac_objext'
13855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856  (eval $ac_try) 2>&5
13857  ac_status=$?
13858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859  (exit $ac_status); }; }; then
13860  ac_hi=$ac_mid; break
13861else
13862  echo "$as_me: failed program was:" >&5
13863sed 's/^/| /' conftest.$ac_ext >&5
13864
13865ac_lo=`expr $ac_mid + 1`
13866		    if test $ac_lo -le $ac_mid; then
13867		      ac_lo= ac_hi=
13868		      break
13869		    fi
13870		    ac_mid=`expr 2 '*' $ac_mid + 1`
13871fi
13872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13873  done
13874else
13875  echo "$as_me: failed program was:" >&5
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
13878cat >conftest.$ac_ext <<_ACEOF
13879/* confdefs.h.  */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h.  */
13884$ac_includes_default
13885int
13886main ()
13887{
13888static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int16))) < 0)];
13889test_array [0] = 0
13890
13891  ;
13892  return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext
13896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897  (eval $ac_compile) 2>conftest.er1
13898  ac_status=$?
13899  grep -v '^ *+' conftest.er1 >conftest.err
13900  rm -f conftest.er1
13901  cat conftest.err >&5
13902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903  (exit $ac_status); } &&
13904	 { ac_try='test -z "$ac_cxx_werror_flag"
13905			 || test ! -s conftest.err'
13906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907  (eval $ac_try) 2>&5
13908  ac_status=$?
13909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910  (exit $ac_status); }; } &&
13911	 { ac_try='test -s conftest.$ac_objext'
13912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913  (eval $ac_try) 2>&5
13914  ac_status=$?
13915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916  (exit $ac_status); }; }; then
13917  ac_hi=-1 ac_mid=-1
13918  while :; do
13919    cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h.  */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h.  */
13925$ac_includes_default
13926int
13927main ()
13928{
13929static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int16))) >= $ac_mid)];
13930test_array [0] = 0
13931
13932  ;
13933  return 0;
13934}
13935_ACEOF
13936rm -f conftest.$ac_objext
13937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938  (eval $ac_compile) 2>conftest.er1
13939  ac_status=$?
13940  grep -v '^ *+' conftest.er1 >conftest.err
13941  rm -f conftest.er1
13942  cat conftest.err >&5
13943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944  (exit $ac_status); } &&
13945	 { ac_try='test -z "$ac_cxx_werror_flag"
13946			 || test ! -s conftest.err'
13947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948  (eval $ac_try) 2>&5
13949  ac_status=$?
13950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951  (exit $ac_status); }; } &&
13952	 { ac_try='test -s conftest.$ac_objext'
13953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954  (eval $ac_try) 2>&5
13955  ac_status=$?
13956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); }; }; then
13958  ac_lo=$ac_mid; break
13959else
13960  echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963ac_hi=`expr '(' $ac_mid ')' - 1`
13964		       if test $ac_mid -le $ac_hi; then
13965			 ac_lo= ac_hi=
13966			 break
13967		       fi
13968		       ac_mid=`expr 2 '*' $ac_mid`
13969fi
13970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13971  done
13972else
13973  echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
13976ac_lo= ac_hi=
13977fi
13978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13979fi
13980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13981# Binary search between lo and hi bounds.
13982while test "x$ac_lo" != "x$ac_hi"; do
13983  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13984  cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h.  */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h.  */
13990$ac_includes_default
13991int
13992main ()
13993{
13994static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int16))) <= $ac_mid)];
13995test_array [0] = 0
13996
13997  ;
13998  return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext
14002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14003  (eval $ac_compile) 2>conftest.er1
14004  ac_status=$?
14005  grep -v '^ *+' conftest.er1 >conftest.err
14006  rm -f conftest.er1
14007  cat conftest.err >&5
14008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009  (exit $ac_status); } &&
14010	 { ac_try='test -z "$ac_cxx_werror_flag"
14011			 || test ! -s conftest.err'
14012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013  (eval $ac_try) 2>&5
14014  ac_status=$?
14015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016  (exit $ac_status); }; } &&
14017	 { ac_try='test -s conftest.$ac_objext'
14018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019  (eval $ac_try) 2>&5
14020  ac_status=$?
14021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022  (exit $ac_status); }; }; then
14023  ac_hi=$ac_mid
14024else
14025  echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
14028ac_lo=`expr '(' $ac_mid ')' + 1`
14029fi
14030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14031done
14032case $ac_lo in
14033?*) ac_cv_sizeof_unsigned___int16=$ac_lo;;
14034'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int16), 77
14035See \`config.log' for more details." >&5
14036echo "$as_me: error: cannot compute sizeof (unsigned __int16), 77
14037See \`config.log' for more details." >&2;}
14038   { (exit 1); exit 1; }; } ;;
14039esac
14040else
14041  if test "$cross_compiling" = yes; then
14042  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14043See \`config.log' for more details." >&5
14044echo "$as_me: error: cannot run test program while cross compiling
14045See \`config.log' for more details." >&2;}
14046   { (exit 1); exit 1; }; }
14047else
14048  cat >conftest.$ac_ext <<_ACEOF
14049/* confdefs.h.  */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h.  */
14054$ac_includes_default
14055long longval () { return (long) (sizeof (unsigned __int16)); }
14056unsigned long ulongval () { return (long) (sizeof (unsigned __int16)); }
14057#include <stdio.h>
14058#include <stdlib.h>
14059int
14060main ()
14061{
14062
14063  FILE *f = fopen ("conftest.val", "w");
14064  if (! f)
14065    exit (1);
14066  if (((long) (sizeof (unsigned __int16))) < 0)
14067    {
14068      long i = longval ();
14069      if (i != ((long) (sizeof (unsigned __int16))))
14070	exit (1);
14071      fprintf (f, "%ld\n", i);
14072    }
14073  else
14074    {
14075      unsigned long i = ulongval ();
14076      if (i != ((long) (sizeof (unsigned __int16))))
14077	exit (1);
14078      fprintf (f, "%lu\n", i);
14079    }
14080  exit (ferror (f) || fclose (f) != 0);
14081
14082  ;
14083  return 0;
14084}
14085_ACEOF
14086rm -f conftest$ac_exeext
14087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088  (eval $ac_link) 2>&5
14089  ac_status=$?
14090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093  (eval $ac_try) 2>&5
14094  ac_status=$?
14095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096  (exit $ac_status); }; }; then
14097  ac_cv_sizeof_unsigned___int16=`cat conftest.val`
14098else
14099  echo "$as_me: program exited with status $ac_status" >&5
14100echo "$as_me: failed program was:" >&5
14101sed 's/^/| /' conftest.$ac_ext >&5
14102
14103( exit $ac_status )
14104{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int16), 77
14105See \`config.log' for more details." >&5
14106echo "$as_me: error: cannot compute sizeof (unsigned __int16), 77
14107See \`config.log' for more details." >&2;}
14108   { (exit 1); exit 1; }; }
14109fi
14110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14111fi
14112fi
14113rm -f conftest.val
14114else
14115  ac_cv_sizeof_unsigned___int16=0
14116fi
14117fi
14118echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned___int16" >&5
14119echo "${ECHO_T}$ac_cv_sizeof_unsigned___int16" >&6
14120cat >>confdefs.h <<_ACEOF
14121#define SIZEOF_UNSIGNED___INT16 $ac_cv_sizeof_unsigned___int16
14122_ACEOF
14123
14124
14125  if test "$ac_cv_sizeof_unsigned___int16" -eq 2; then
14126    uint16_t="unsigned __int16"
14127    return
14128  fi
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139    :
14140  }
14141  find_uint16_t
14142
14143cat >>confdefs.h <<_ACEOF
14144#define uint16_t $uint16_t
14145_ACEOF
14146
14147
14148fi
14149
14150
14151
14152
14153echo "$as_me:$LINENO: checking for int32_t" >&5
14154echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
14155if test "${ac_cv_type_int32_t+set}" = set; then
14156  echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158  cat >conftest.$ac_ext <<_ACEOF
14159/* confdefs.h.  */
14160_ACEOF
14161cat confdefs.h >>conftest.$ac_ext
14162cat >>conftest.$ac_ext <<_ACEOF
14163/* end confdefs.h.  */
14164$ac_includes_default
14165int
14166main ()
14167{
14168if ((int32_t *) 0)
14169  return 0;
14170if (sizeof (int32_t))
14171  return 0;
14172  ;
14173  return 0;
14174}
14175_ACEOF
14176rm -f conftest.$ac_objext
14177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178  (eval $ac_compile) 2>conftest.er1
14179  ac_status=$?
14180  grep -v '^ *+' conftest.er1 >conftest.err
14181  rm -f conftest.er1
14182  cat conftest.err >&5
14183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184  (exit $ac_status); } &&
14185	 { ac_try='test -z "$ac_cxx_werror_flag"
14186			 || test ! -s conftest.err'
14187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188  (eval $ac_try) 2>&5
14189  ac_status=$?
14190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191  (exit $ac_status); }; } &&
14192	 { ac_try='test -s conftest.$ac_objext'
14193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194  (eval $ac_try) 2>&5
14195  ac_status=$?
14196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197  (exit $ac_status); }; }; then
14198  ac_cv_type_int32_t=yes
14199else
14200  echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203ac_cv_type_int32_t=no
14204fi
14205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14206fi
14207echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
14208echo "${ECHO_T}$ac_cv_type_int32_t" >&6
14209if test $ac_cv_type_int32_t = yes; then
14210  :
14211else
14212
14213  { echo "$as_me:$LINENO: trying to find a suitable 4-byte replacement for int32_t" >&5
14214echo "$as_me: trying to find a suitable 4-byte replacement for int32_t" >&6;}
14215  int32_t=no
14216  find_int32_t ()
14217  {
14218
14219
14220  echo "$as_me:$LINENO: checking for signed" >&5
14221echo $ECHO_N "checking for signed... $ECHO_C" >&6
14222if test "${ac_cv_type_signed+set}" = set; then
14223  echo $ECHO_N "(cached) $ECHO_C" >&6
14224else
14225  cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h.  */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h.  */
14231$ac_includes_default
14232int
14233main ()
14234{
14235if ((signed *) 0)
14236  return 0;
14237if (sizeof (signed))
14238  return 0;
14239  ;
14240  return 0;
14241}
14242_ACEOF
14243rm -f conftest.$ac_objext
14244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245  (eval $ac_compile) 2>conftest.er1
14246  ac_status=$?
14247  grep -v '^ *+' conftest.er1 >conftest.err
14248  rm -f conftest.er1
14249  cat conftest.err >&5
14250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251  (exit $ac_status); } &&
14252	 { ac_try='test -z "$ac_cxx_werror_flag"
14253			 || test ! -s conftest.err'
14254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255  (eval $ac_try) 2>&5
14256  ac_status=$?
14257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258  (exit $ac_status); }; } &&
14259	 { ac_try='test -s conftest.$ac_objext'
14260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261  (eval $ac_try) 2>&5
14262  ac_status=$?
14263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264  (exit $ac_status); }; }; then
14265  ac_cv_type_signed=yes
14266else
14267  echo "$as_me: failed program was:" >&5
14268sed 's/^/| /' conftest.$ac_ext >&5
14269
14270ac_cv_type_signed=no
14271fi
14272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273fi
14274echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
14275echo "${ECHO_T}$ac_cv_type_signed" >&6
14276
14277echo "$as_me:$LINENO: checking size of signed" >&5
14278echo $ECHO_N "checking size of signed... $ECHO_C" >&6
14279if test "${ac_cv_sizeof_signed+set}" = set; then
14280  echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282  if test "$ac_cv_type_signed" = yes; then
14283  # The cast to unsigned long works around a bug in the HP C Compiler
14284  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14285  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14286  # This bug is HP SR number 8606223364.
14287  if test "$cross_compiling" = yes; then
14288  # Depending upon the size, compute the lo and hi bounds.
14289cat >conftest.$ac_ext <<_ACEOF
14290/* confdefs.h.  */
14291_ACEOF
14292cat confdefs.h >>conftest.$ac_ext
14293cat >>conftest.$ac_ext <<_ACEOF
14294/* end confdefs.h.  */
14295$ac_includes_default
14296int
14297main ()
14298{
14299static int test_array [1 - 2 * !(((long) (sizeof (signed))) >= 0)];
14300test_array [0] = 0
14301
14302  ;
14303  return 0;
14304}
14305_ACEOF
14306rm -f conftest.$ac_objext
14307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308  (eval $ac_compile) 2>conftest.er1
14309  ac_status=$?
14310  grep -v '^ *+' conftest.er1 >conftest.err
14311  rm -f conftest.er1
14312  cat conftest.err >&5
14313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314  (exit $ac_status); } &&
14315	 { ac_try='test -z "$ac_cxx_werror_flag"
14316			 || test ! -s conftest.err'
14317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318  (eval $ac_try) 2>&5
14319  ac_status=$?
14320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321  (exit $ac_status); }; } &&
14322	 { ac_try='test -s conftest.$ac_objext'
14323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324  (eval $ac_try) 2>&5
14325  ac_status=$?
14326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327  (exit $ac_status); }; }; then
14328  ac_lo=0 ac_mid=0
14329  while :; do
14330    cat >conftest.$ac_ext <<_ACEOF
14331/* confdefs.h.  */
14332_ACEOF
14333cat confdefs.h >>conftest.$ac_ext
14334cat >>conftest.$ac_ext <<_ACEOF
14335/* end confdefs.h.  */
14336$ac_includes_default
14337int
14338main ()
14339{
14340static int test_array [1 - 2 * !(((long) (sizeof (signed))) <= $ac_mid)];
14341test_array [0] = 0
14342
14343  ;
14344  return 0;
14345}
14346_ACEOF
14347rm -f conftest.$ac_objext
14348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349  (eval $ac_compile) 2>conftest.er1
14350  ac_status=$?
14351  grep -v '^ *+' conftest.er1 >conftest.err
14352  rm -f conftest.er1
14353  cat conftest.err >&5
14354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355  (exit $ac_status); } &&
14356	 { ac_try='test -z "$ac_cxx_werror_flag"
14357			 || test ! -s conftest.err'
14358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359  (eval $ac_try) 2>&5
14360  ac_status=$?
14361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362  (exit $ac_status); }; } &&
14363	 { ac_try='test -s conftest.$ac_objext'
14364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365  (eval $ac_try) 2>&5
14366  ac_status=$?
14367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368  (exit $ac_status); }; }; then
14369  ac_hi=$ac_mid; break
14370else
14371  echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374ac_lo=`expr $ac_mid + 1`
14375		    if test $ac_lo -le $ac_mid; then
14376		      ac_lo= ac_hi=
14377		      break
14378		    fi
14379		    ac_mid=`expr 2 '*' $ac_mid + 1`
14380fi
14381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14382  done
14383else
14384  echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h.  */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h.  */
14393$ac_includes_default
14394int
14395main ()
14396{
14397static int test_array [1 - 2 * !(((long) (sizeof (signed))) < 0)];
14398test_array [0] = 0
14399
14400  ;
14401  return 0;
14402}
14403_ACEOF
14404rm -f conftest.$ac_objext
14405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406  (eval $ac_compile) 2>conftest.er1
14407  ac_status=$?
14408  grep -v '^ *+' conftest.er1 >conftest.err
14409  rm -f conftest.er1
14410  cat conftest.err >&5
14411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412  (exit $ac_status); } &&
14413	 { ac_try='test -z "$ac_cxx_werror_flag"
14414			 || test ! -s conftest.err'
14415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416  (eval $ac_try) 2>&5
14417  ac_status=$?
14418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419  (exit $ac_status); }; } &&
14420	 { ac_try='test -s conftest.$ac_objext'
14421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422  (eval $ac_try) 2>&5
14423  ac_status=$?
14424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425  (exit $ac_status); }; }; then
14426  ac_hi=-1 ac_mid=-1
14427  while :; do
14428    cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h.  */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h.  */
14434$ac_includes_default
14435int
14436main ()
14437{
14438static int test_array [1 - 2 * !(((long) (sizeof (signed))) >= $ac_mid)];
14439test_array [0] = 0
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447  (eval $ac_compile) 2>conftest.er1
14448  ac_status=$?
14449  grep -v '^ *+' conftest.er1 >conftest.err
14450  rm -f conftest.er1
14451  cat conftest.err >&5
14452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453  (exit $ac_status); } &&
14454	 { ac_try='test -z "$ac_cxx_werror_flag"
14455			 || test ! -s conftest.err'
14456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457  (eval $ac_try) 2>&5
14458  ac_status=$?
14459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460  (exit $ac_status); }; } &&
14461	 { ac_try='test -s conftest.$ac_objext'
14462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463  (eval $ac_try) 2>&5
14464  ac_status=$?
14465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466  (exit $ac_status); }; }; then
14467  ac_lo=$ac_mid; break
14468else
14469  echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472ac_hi=`expr '(' $ac_mid ')' - 1`
14473		       if test $ac_mid -le $ac_hi; then
14474			 ac_lo= ac_hi=
14475			 break
14476		       fi
14477		       ac_mid=`expr 2 '*' $ac_mid`
14478fi
14479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14480  done
14481else
14482  echo "$as_me: failed program was:" >&5
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
14485ac_lo= ac_hi=
14486fi
14487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14488fi
14489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490# Binary search between lo and hi bounds.
14491while test "x$ac_lo" != "x$ac_hi"; do
14492  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14493  cat >conftest.$ac_ext <<_ACEOF
14494/* confdefs.h.  */
14495_ACEOF
14496cat confdefs.h >>conftest.$ac_ext
14497cat >>conftest.$ac_ext <<_ACEOF
14498/* end confdefs.h.  */
14499$ac_includes_default
14500int
14501main ()
14502{
14503static int test_array [1 - 2 * !(((long) (sizeof (signed))) <= $ac_mid)];
14504test_array [0] = 0
14505
14506  ;
14507  return 0;
14508}
14509_ACEOF
14510rm -f conftest.$ac_objext
14511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512  (eval $ac_compile) 2>conftest.er1
14513  ac_status=$?
14514  grep -v '^ *+' conftest.er1 >conftest.err
14515  rm -f conftest.er1
14516  cat conftest.err >&5
14517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518  (exit $ac_status); } &&
14519	 { ac_try='test -z "$ac_cxx_werror_flag"
14520			 || test ! -s conftest.err'
14521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522  (eval $ac_try) 2>&5
14523  ac_status=$?
14524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525  (exit $ac_status); }; } &&
14526	 { ac_try='test -s conftest.$ac_objext'
14527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528  (eval $ac_try) 2>&5
14529  ac_status=$?
14530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531  (exit $ac_status); }; }; then
14532  ac_hi=$ac_mid
14533else
14534  echo "$as_me: failed program was:" >&5
14535sed 's/^/| /' conftest.$ac_ext >&5
14536
14537ac_lo=`expr '(' $ac_mid ')' + 1`
14538fi
14539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14540done
14541case $ac_lo in
14542?*) ac_cv_sizeof_signed=$ac_lo;;
14543'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed), 77
14544See \`config.log' for more details." >&5
14545echo "$as_me: error: cannot compute sizeof (signed), 77
14546See \`config.log' for more details." >&2;}
14547   { (exit 1); exit 1; }; } ;;
14548esac
14549else
14550  if test "$cross_compiling" = yes; then
14551  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14552See \`config.log' for more details." >&5
14553echo "$as_me: error: cannot run test program while cross compiling
14554See \`config.log' for more details." >&2;}
14555   { (exit 1); exit 1; }; }
14556else
14557  cat >conftest.$ac_ext <<_ACEOF
14558/* confdefs.h.  */
14559_ACEOF
14560cat confdefs.h >>conftest.$ac_ext
14561cat >>conftest.$ac_ext <<_ACEOF
14562/* end confdefs.h.  */
14563$ac_includes_default
14564long longval () { return (long) (sizeof (signed)); }
14565unsigned long ulongval () { return (long) (sizeof (signed)); }
14566#include <stdio.h>
14567#include <stdlib.h>
14568int
14569main ()
14570{
14571
14572  FILE *f = fopen ("conftest.val", "w");
14573  if (! f)
14574    exit (1);
14575  if (((long) (sizeof (signed))) < 0)
14576    {
14577      long i = longval ();
14578      if (i != ((long) (sizeof (signed))))
14579	exit (1);
14580      fprintf (f, "%ld\n", i);
14581    }
14582  else
14583    {
14584      unsigned long i = ulongval ();
14585      if (i != ((long) (sizeof (signed))))
14586	exit (1);
14587      fprintf (f, "%lu\n", i);
14588    }
14589  exit (ferror (f) || fclose (f) != 0);
14590
14591  ;
14592  return 0;
14593}
14594_ACEOF
14595rm -f conftest$ac_exeext
14596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597  (eval $ac_link) 2>&5
14598  ac_status=$?
14599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602  (eval $ac_try) 2>&5
14603  ac_status=$?
14604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605  (exit $ac_status); }; }; then
14606  ac_cv_sizeof_signed=`cat conftest.val`
14607else
14608  echo "$as_me: program exited with status $ac_status" >&5
14609echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612( exit $ac_status )
14613{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed), 77
14614See \`config.log' for more details." >&5
14615echo "$as_me: error: cannot compute sizeof (signed), 77
14616See \`config.log' for more details." >&2;}
14617   { (exit 1); exit 1; }; }
14618fi
14619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14620fi
14621fi
14622rm -f conftest.val
14623else
14624  ac_cv_sizeof_signed=0
14625fi
14626fi
14627echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
14628echo "${ECHO_T}$ac_cv_sizeof_signed" >&6
14629cat >>confdefs.h <<_ACEOF
14630#define SIZEOF_SIGNED $ac_cv_sizeof_signed
14631_ACEOF
14632
14633
14634  if test "$ac_cv_sizeof_signed" -eq 4; then
14635    int32_t="signed"
14636    return
14637  fi
14638
14639
14640  echo "$as_me:$LINENO: checking for signed long" >&5
14641echo $ECHO_N "checking for signed long... $ECHO_C" >&6
14642if test "${ac_cv_type_signed_long+set}" = set; then
14643  echo $ECHO_N "(cached) $ECHO_C" >&6
14644else
14645  cat >conftest.$ac_ext <<_ACEOF
14646/* confdefs.h.  */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h.  */
14651$ac_includes_default
14652int
14653main ()
14654{
14655if ((signed long *) 0)
14656  return 0;
14657if (sizeof (signed long))
14658  return 0;
14659  ;
14660  return 0;
14661}
14662_ACEOF
14663rm -f conftest.$ac_objext
14664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665  (eval $ac_compile) 2>conftest.er1
14666  ac_status=$?
14667  grep -v '^ *+' conftest.er1 >conftest.err
14668  rm -f conftest.er1
14669  cat conftest.err >&5
14670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671  (exit $ac_status); } &&
14672	 { ac_try='test -z "$ac_cxx_werror_flag"
14673			 || test ! -s conftest.err'
14674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675  (eval $ac_try) 2>&5
14676  ac_status=$?
14677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678  (exit $ac_status); }; } &&
14679	 { ac_try='test -s conftest.$ac_objext'
14680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681  (eval $ac_try) 2>&5
14682  ac_status=$?
14683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684  (exit $ac_status); }; }; then
14685  ac_cv_type_signed_long=yes
14686else
14687  echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
14690ac_cv_type_signed_long=no
14691fi
14692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693fi
14694echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
14695echo "${ECHO_T}$ac_cv_type_signed_long" >&6
14696
14697echo "$as_me:$LINENO: checking size of signed long" >&5
14698echo $ECHO_N "checking size of signed long... $ECHO_C" >&6
14699if test "${ac_cv_sizeof_signed_long+set}" = set; then
14700  echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702  if test "$ac_cv_type_signed_long" = yes; then
14703  # The cast to unsigned long works around a bug in the HP C Compiler
14704  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14705  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14706  # This bug is HP SR number 8606223364.
14707  if test "$cross_compiling" = yes; then
14708  # Depending upon the size, compute the lo and hi bounds.
14709cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h.  */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h.  */
14715$ac_includes_default
14716int
14717main ()
14718{
14719static int test_array [1 - 2 * !(((long) (sizeof (signed long))) >= 0)];
14720test_array [0] = 0
14721
14722  ;
14723  return 0;
14724}
14725_ACEOF
14726rm -f conftest.$ac_objext
14727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728  (eval $ac_compile) 2>conftest.er1
14729  ac_status=$?
14730  grep -v '^ *+' conftest.er1 >conftest.err
14731  rm -f conftest.er1
14732  cat conftest.err >&5
14733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734  (exit $ac_status); } &&
14735	 { ac_try='test -z "$ac_cxx_werror_flag"
14736			 || test ! -s conftest.err'
14737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738  (eval $ac_try) 2>&5
14739  ac_status=$?
14740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741  (exit $ac_status); }; } &&
14742	 { ac_try='test -s conftest.$ac_objext'
14743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744  (eval $ac_try) 2>&5
14745  ac_status=$?
14746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747  (exit $ac_status); }; }; then
14748  ac_lo=0 ac_mid=0
14749  while :; do
14750    cat >conftest.$ac_ext <<_ACEOF
14751/* confdefs.h.  */
14752_ACEOF
14753cat confdefs.h >>conftest.$ac_ext
14754cat >>conftest.$ac_ext <<_ACEOF
14755/* end confdefs.h.  */
14756$ac_includes_default
14757int
14758main ()
14759{
14760static int test_array [1 - 2 * !(((long) (sizeof (signed long))) <= $ac_mid)];
14761test_array [0] = 0
14762
14763  ;
14764  return 0;
14765}
14766_ACEOF
14767rm -f conftest.$ac_objext
14768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769  (eval $ac_compile) 2>conftest.er1
14770  ac_status=$?
14771  grep -v '^ *+' conftest.er1 >conftest.err
14772  rm -f conftest.er1
14773  cat conftest.err >&5
14774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775  (exit $ac_status); } &&
14776	 { ac_try='test -z "$ac_cxx_werror_flag"
14777			 || test ! -s conftest.err'
14778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779  (eval $ac_try) 2>&5
14780  ac_status=$?
14781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782  (exit $ac_status); }; } &&
14783	 { ac_try='test -s conftest.$ac_objext'
14784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785  (eval $ac_try) 2>&5
14786  ac_status=$?
14787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788  (exit $ac_status); }; }; then
14789  ac_hi=$ac_mid; break
14790else
14791  echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794ac_lo=`expr $ac_mid + 1`
14795		    if test $ac_lo -le $ac_mid; then
14796		      ac_lo= ac_hi=
14797		      break
14798		    fi
14799		    ac_mid=`expr 2 '*' $ac_mid + 1`
14800fi
14801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14802  done
14803else
14804  echo "$as_me: failed program was:" >&5
14805sed 's/^/| /' conftest.$ac_ext >&5
14806
14807cat >conftest.$ac_ext <<_ACEOF
14808/* confdefs.h.  */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h.  */
14813$ac_includes_default
14814int
14815main ()
14816{
14817static int test_array [1 - 2 * !(((long) (sizeof (signed long))) < 0)];
14818test_array [0] = 0
14819
14820  ;
14821  return 0;
14822}
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826  (eval $ac_compile) 2>conftest.er1
14827  ac_status=$?
14828  grep -v '^ *+' conftest.er1 >conftest.err
14829  rm -f conftest.er1
14830  cat conftest.err >&5
14831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832  (exit $ac_status); } &&
14833	 { ac_try='test -z "$ac_cxx_werror_flag"
14834			 || test ! -s conftest.err'
14835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836  (eval $ac_try) 2>&5
14837  ac_status=$?
14838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839  (exit $ac_status); }; } &&
14840	 { ac_try='test -s conftest.$ac_objext'
14841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842  (eval $ac_try) 2>&5
14843  ac_status=$?
14844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845  (exit $ac_status); }; }; then
14846  ac_hi=-1 ac_mid=-1
14847  while :; do
14848    cat >conftest.$ac_ext <<_ACEOF
14849/* confdefs.h.  */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h.  */
14854$ac_includes_default
14855int
14856main ()
14857{
14858static int test_array [1 - 2 * !(((long) (sizeof (signed long))) >= $ac_mid)];
14859test_array [0] = 0
14860
14861  ;
14862  return 0;
14863}
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867  (eval $ac_compile) 2>conftest.er1
14868  ac_status=$?
14869  grep -v '^ *+' conftest.er1 >conftest.err
14870  rm -f conftest.er1
14871  cat conftest.err >&5
14872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873  (exit $ac_status); } &&
14874	 { ac_try='test -z "$ac_cxx_werror_flag"
14875			 || test ! -s conftest.err'
14876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877  (eval $ac_try) 2>&5
14878  ac_status=$?
14879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880  (exit $ac_status); }; } &&
14881	 { ac_try='test -s conftest.$ac_objext'
14882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883  (eval $ac_try) 2>&5
14884  ac_status=$?
14885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886  (exit $ac_status); }; }; then
14887  ac_lo=$ac_mid; break
14888else
14889  echo "$as_me: failed program was:" >&5
14890sed 's/^/| /' conftest.$ac_ext >&5
14891
14892ac_hi=`expr '(' $ac_mid ')' - 1`
14893		       if test $ac_mid -le $ac_hi; then
14894			 ac_lo= ac_hi=
14895			 break
14896		       fi
14897		       ac_mid=`expr 2 '*' $ac_mid`
14898fi
14899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14900  done
14901else
14902  echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905ac_lo= ac_hi=
14906fi
14907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14908fi
14909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910# Binary search between lo and hi bounds.
14911while test "x$ac_lo" != "x$ac_hi"; do
14912  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14913  cat >conftest.$ac_ext <<_ACEOF
14914/* confdefs.h.  */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h.  */
14919$ac_includes_default
14920int
14921main ()
14922{
14923static int test_array [1 - 2 * !(((long) (sizeof (signed long))) <= $ac_mid)];
14924test_array [0] = 0
14925
14926  ;
14927  return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932  (eval $ac_compile) 2>conftest.er1
14933  ac_status=$?
14934  grep -v '^ *+' conftest.er1 >conftest.err
14935  rm -f conftest.er1
14936  cat conftest.err >&5
14937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938  (exit $ac_status); } &&
14939	 { ac_try='test -z "$ac_cxx_werror_flag"
14940			 || test ! -s conftest.err'
14941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942  (eval $ac_try) 2>&5
14943  ac_status=$?
14944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945  (exit $ac_status); }; } &&
14946	 { ac_try='test -s conftest.$ac_objext'
14947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948  (eval $ac_try) 2>&5
14949  ac_status=$?
14950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951  (exit $ac_status); }; }; then
14952  ac_hi=$ac_mid
14953else
14954  echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957ac_lo=`expr '(' $ac_mid ')' + 1`
14958fi
14959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14960done
14961case $ac_lo in
14962?*) ac_cv_sizeof_signed_long=$ac_lo;;
14963'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long), 77
14964See \`config.log' for more details." >&5
14965echo "$as_me: error: cannot compute sizeof (signed long), 77
14966See \`config.log' for more details." >&2;}
14967   { (exit 1); exit 1; }; } ;;
14968esac
14969else
14970  if test "$cross_compiling" = yes; then
14971  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14972See \`config.log' for more details." >&5
14973echo "$as_me: error: cannot run test program while cross compiling
14974See \`config.log' for more details." >&2;}
14975   { (exit 1); exit 1; }; }
14976else
14977  cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h.  */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h.  */
14983$ac_includes_default
14984long longval () { return (long) (sizeof (signed long)); }
14985unsigned long ulongval () { return (long) (sizeof (signed long)); }
14986#include <stdio.h>
14987#include <stdlib.h>
14988int
14989main ()
14990{
14991
14992  FILE *f = fopen ("conftest.val", "w");
14993  if (! f)
14994    exit (1);
14995  if (((long) (sizeof (signed long))) < 0)
14996    {
14997      long i = longval ();
14998      if (i != ((long) (sizeof (signed long))))
14999	exit (1);
15000      fprintf (f, "%ld\n", i);
15001    }
15002  else
15003    {
15004      unsigned long i = ulongval ();
15005      if (i != ((long) (sizeof (signed long))))
15006	exit (1);
15007      fprintf (f, "%lu\n", i);
15008    }
15009  exit (ferror (f) || fclose (f) != 0);
15010
15011  ;
15012  return 0;
15013}
15014_ACEOF
15015rm -f conftest$ac_exeext
15016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017  (eval $ac_link) 2>&5
15018  ac_status=$?
15019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022  (eval $ac_try) 2>&5
15023  ac_status=$?
15024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025  (exit $ac_status); }; }; then
15026  ac_cv_sizeof_signed_long=`cat conftest.val`
15027else
15028  echo "$as_me: program exited with status $ac_status" >&5
15029echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
15032( exit $ac_status )
15033{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long), 77
15034See \`config.log' for more details." >&5
15035echo "$as_me: error: cannot compute sizeof (signed long), 77
15036See \`config.log' for more details." >&2;}
15037   { (exit 1); exit 1; }; }
15038fi
15039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15040fi
15041fi
15042rm -f conftest.val
15043else
15044  ac_cv_sizeof_signed_long=0
15045fi
15046fi
15047echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
15048echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6
15049cat >>confdefs.h <<_ACEOF
15050#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
15051_ACEOF
15052
15053
15054  if test "$ac_cv_sizeof_signed_long" -eq 4; then
15055    int32_t="signed long"
15056    return
15057  fi
15058
15059
15060  echo "$as_me:$LINENO: checking for __int32" >&5
15061echo $ECHO_N "checking for __int32... $ECHO_C" >&6
15062if test "${ac_cv_type___int32+set}" = set; then
15063  echo $ECHO_N "(cached) $ECHO_C" >&6
15064else
15065  cat >conftest.$ac_ext <<_ACEOF
15066/* confdefs.h.  */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h.  */
15071$ac_includes_default
15072int
15073main ()
15074{
15075if ((__int32 *) 0)
15076  return 0;
15077if (sizeof (__int32))
15078  return 0;
15079  ;
15080  return 0;
15081}
15082_ACEOF
15083rm -f conftest.$ac_objext
15084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085  (eval $ac_compile) 2>conftest.er1
15086  ac_status=$?
15087  grep -v '^ *+' conftest.er1 >conftest.err
15088  rm -f conftest.er1
15089  cat conftest.err >&5
15090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091  (exit $ac_status); } &&
15092	 { ac_try='test -z "$ac_cxx_werror_flag"
15093			 || test ! -s conftest.err'
15094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095  (eval $ac_try) 2>&5
15096  ac_status=$?
15097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098  (exit $ac_status); }; } &&
15099	 { ac_try='test -s conftest.$ac_objext'
15100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101  (eval $ac_try) 2>&5
15102  ac_status=$?
15103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104  (exit $ac_status); }; }; then
15105  ac_cv_type___int32=yes
15106else
15107  echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110ac_cv_type___int32=no
15111fi
15112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113fi
15114echo "$as_me:$LINENO: result: $ac_cv_type___int32" >&5
15115echo "${ECHO_T}$ac_cv_type___int32" >&6
15116
15117echo "$as_me:$LINENO: checking size of __int32" >&5
15118echo $ECHO_N "checking size of __int32... $ECHO_C" >&6
15119if test "${ac_cv_sizeof___int32+set}" = set; then
15120  echo $ECHO_N "(cached) $ECHO_C" >&6
15121else
15122  if test "$ac_cv_type___int32" = yes; then
15123  # The cast to unsigned long works around a bug in the HP C Compiler
15124  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15125  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15126  # This bug is HP SR number 8606223364.
15127  if test "$cross_compiling" = yes; then
15128  # Depending upon the size, compute the lo and hi bounds.
15129cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h.  */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h.  */
15135$ac_includes_default
15136int
15137main ()
15138{
15139static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= 0)];
15140test_array [0] = 0
15141
15142  ;
15143  return 0;
15144}
15145_ACEOF
15146rm -f conftest.$ac_objext
15147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148  (eval $ac_compile) 2>conftest.er1
15149  ac_status=$?
15150  grep -v '^ *+' conftest.er1 >conftest.err
15151  rm -f conftest.er1
15152  cat conftest.err >&5
15153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154  (exit $ac_status); } &&
15155	 { ac_try='test -z "$ac_cxx_werror_flag"
15156			 || test ! -s conftest.err'
15157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158  (eval $ac_try) 2>&5
15159  ac_status=$?
15160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161  (exit $ac_status); }; } &&
15162	 { ac_try='test -s conftest.$ac_objext'
15163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164  (eval $ac_try) 2>&5
15165  ac_status=$?
15166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167  (exit $ac_status); }; }; then
15168  ac_lo=0 ac_mid=0
15169  while :; do
15170    cat >conftest.$ac_ext <<_ACEOF
15171/* confdefs.h.  */
15172_ACEOF
15173cat confdefs.h >>conftest.$ac_ext
15174cat >>conftest.$ac_ext <<_ACEOF
15175/* end confdefs.h.  */
15176$ac_includes_default
15177int
15178main ()
15179{
15180static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
15181test_array [0] = 0
15182
15183  ;
15184  return 0;
15185}
15186_ACEOF
15187rm -f conftest.$ac_objext
15188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15189  (eval $ac_compile) 2>conftest.er1
15190  ac_status=$?
15191  grep -v '^ *+' conftest.er1 >conftest.err
15192  rm -f conftest.er1
15193  cat conftest.err >&5
15194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195  (exit $ac_status); } &&
15196	 { ac_try='test -z "$ac_cxx_werror_flag"
15197			 || test ! -s conftest.err'
15198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199  (eval $ac_try) 2>&5
15200  ac_status=$?
15201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202  (exit $ac_status); }; } &&
15203	 { ac_try='test -s conftest.$ac_objext'
15204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205  (eval $ac_try) 2>&5
15206  ac_status=$?
15207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208  (exit $ac_status); }; }; then
15209  ac_hi=$ac_mid; break
15210else
15211  echo "$as_me: failed program was:" >&5
15212sed 's/^/| /' conftest.$ac_ext >&5
15213
15214ac_lo=`expr $ac_mid + 1`
15215		    if test $ac_lo -le $ac_mid; then
15216		      ac_lo= ac_hi=
15217		      break
15218		    fi
15219		    ac_mid=`expr 2 '*' $ac_mid + 1`
15220fi
15221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15222  done
15223else
15224  echo "$as_me: failed program was:" >&5
15225sed 's/^/| /' conftest.$ac_ext >&5
15226
15227cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h.  */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h.  */
15233$ac_includes_default
15234int
15235main ()
15236{
15237static int test_array [1 - 2 * !(((long) (sizeof (__int32))) < 0)];
15238test_array [0] = 0
15239
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244rm -f conftest.$ac_objext
15245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246  (eval $ac_compile) 2>conftest.er1
15247  ac_status=$?
15248  grep -v '^ *+' conftest.er1 >conftest.err
15249  rm -f conftest.er1
15250  cat conftest.err >&5
15251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252  (exit $ac_status); } &&
15253	 { ac_try='test -z "$ac_cxx_werror_flag"
15254			 || test ! -s conftest.err'
15255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256  (eval $ac_try) 2>&5
15257  ac_status=$?
15258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259  (exit $ac_status); }; } &&
15260	 { ac_try='test -s conftest.$ac_objext'
15261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262  (eval $ac_try) 2>&5
15263  ac_status=$?
15264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265  (exit $ac_status); }; }; then
15266  ac_hi=-1 ac_mid=-1
15267  while :; do
15268    cat >conftest.$ac_ext <<_ACEOF
15269/* confdefs.h.  */
15270_ACEOF
15271cat confdefs.h >>conftest.$ac_ext
15272cat >>conftest.$ac_ext <<_ACEOF
15273/* end confdefs.h.  */
15274$ac_includes_default
15275int
15276main ()
15277{
15278static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= $ac_mid)];
15279test_array [0] = 0
15280
15281  ;
15282  return 0;
15283}
15284_ACEOF
15285rm -f conftest.$ac_objext
15286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287  (eval $ac_compile) 2>conftest.er1
15288  ac_status=$?
15289  grep -v '^ *+' conftest.er1 >conftest.err
15290  rm -f conftest.er1
15291  cat conftest.err >&5
15292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293  (exit $ac_status); } &&
15294	 { ac_try='test -z "$ac_cxx_werror_flag"
15295			 || test ! -s conftest.err'
15296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297  (eval $ac_try) 2>&5
15298  ac_status=$?
15299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300  (exit $ac_status); }; } &&
15301	 { ac_try='test -s conftest.$ac_objext'
15302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303  (eval $ac_try) 2>&5
15304  ac_status=$?
15305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306  (exit $ac_status); }; }; then
15307  ac_lo=$ac_mid; break
15308else
15309  echo "$as_me: failed program was:" >&5
15310sed 's/^/| /' conftest.$ac_ext >&5
15311
15312ac_hi=`expr '(' $ac_mid ')' - 1`
15313		       if test $ac_mid -le $ac_hi; then
15314			 ac_lo= ac_hi=
15315			 break
15316		       fi
15317		       ac_mid=`expr 2 '*' $ac_mid`
15318fi
15319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15320  done
15321else
15322  echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325ac_lo= ac_hi=
15326fi
15327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15328fi
15329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15330# Binary search between lo and hi bounds.
15331while test "x$ac_lo" != "x$ac_hi"; do
15332  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15333  cat >conftest.$ac_ext <<_ACEOF
15334/* confdefs.h.  */
15335_ACEOF
15336cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h.  */
15339$ac_includes_default
15340int
15341main ()
15342{
15343static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
15344test_array [0] = 0
15345
15346  ;
15347  return 0;
15348}
15349_ACEOF
15350rm -f conftest.$ac_objext
15351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352  (eval $ac_compile) 2>conftest.er1
15353  ac_status=$?
15354  grep -v '^ *+' conftest.er1 >conftest.err
15355  rm -f conftest.er1
15356  cat conftest.err >&5
15357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358  (exit $ac_status); } &&
15359	 { ac_try='test -z "$ac_cxx_werror_flag"
15360			 || test ! -s conftest.err'
15361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362  (eval $ac_try) 2>&5
15363  ac_status=$?
15364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365  (exit $ac_status); }; } &&
15366	 { ac_try='test -s conftest.$ac_objext'
15367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368  (eval $ac_try) 2>&5
15369  ac_status=$?
15370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371  (exit $ac_status); }; }; then
15372  ac_hi=$ac_mid
15373else
15374  echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377ac_lo=`expr '(' $ac_mid ')' + 1`
15378fi
15379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15380done
15381case $ac_lo in
15382?*) ac_cv_sizeof___int32=$ac_lo;;
15383'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
15384See \`config.log' for more details." >&5
15385echo "$as_me: error: cannot compute sizeof (__int32), 77
15386See \`config.log' for more details." >&2;}
15387   { (exit 1); exit 1; }; } ;;
15388esac
15389else
15390  if test "$cross_compiling" = yes; then
15391  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15392See \`config.log' for more details." >&5
15393echo "$as_me: error: cannot run test program while cross compiling
15394See \`config.log' for more details." >&2;}
15395   { (exit 1); exit 1; }; }
15396else
15397  cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h.  */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h.  */
15403$ac_includes_default
15404long longval () { return (long) (sizeof (__int32)); }
15405unsigned long ulongval () { return (long) (sizeof (__int32)); }
15406#include <stdio.h>
15407#include <stdlib.h>
15408int
15409main ()
15410{
15411
15412  FILE *f = fopen ("conftest.val", "w");
15413  if (! f)
15414    exit (1);
15415  if (((long) (sizeof (__int32))) < 0)
15416    {
15417      long i = longval ();
15418      if (i != ((long) (sizeof (__int32))))
15419	exit (1);
15420      fprintf (f, "%ld\n", i);
15421    }
15422  else
15423    {
15424      unsigned long i = ulongval ();
15425      if (i != ((long) (sizeof (__int32))))
15426	exit (1);
15427      fprintf (f, "%lu\n", i);
15428    }
15429  exit (ferror (f) || fclose (f) != 0);
15430
15431  ;
15432  return 0;
15433}
15434_ACEOF
15435rm -f conftest$ac_exeext
15436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437  (eval $ac_link) 2>&5
15438  ac_status=$?
15439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442  (eval $ac_try) 2>&5
15443  ac_status=$?
15444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445  (exit $ac_status); }; }; then
15446  ac_cv_sizeof___int32=`cat conftest.val`
15447else
15448  echo "$as_me: program exited with status $ac_status" >&5
15449echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452( exit $ac_status )
15453{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
15454See \`config.log' for more details." >&5
15455echo "$as_me: error: cannot compute sizeof (__int32), 77
15456See \`config.log' for more details." >&2;}
15457   { (exit 1); exit 1; }; }
15458fi
15459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15460fi
15461fi
15462rm -f conftest.val
15463else
15464  ac_cv_sizeof___int32=0
15465fi
15466fi
15467echo "$as_me:$LINENO: result: $ac_cv_sizeof___int32" >&5
15468echo "${ECHO_T}$ac_cv_sizeof___int32" >&6
15469cat >>confdefs.h <<_ACEOF
15470#define SIZEOF___INT32 $ac_cv_sizeof___int32
15471_ACEOF
15472
15473
15474  if test "$ac_cv_sizeof___int32" -eq 4; then
15475    int32_t="__int32"
15476    return
15477  fi
15478
15479
15480  echo "$as_me:$LINENO: checking for int" >&5
15481echo $ECHO_N "checking for int... $ECHO_C" >&6
15482if test "${ac_cv_type_int+set}" = set; then
15483  echo $ECHO_N "(cached) $ECHO_C" >&6
15484else
15485  cat >conftest.$ac_ext <<_ACEOF
15486/* confdefs.h.  */
15487_ACEOF
15488cat confdefs.h >>conftest.$ac_ext
15489cat >>conftest.$ac_ext <<_ACEOF
15490/* end confdefs.h.  */
15491$ac_includes_default
15492int
15493main ()
15494{
15495if ((int *) 0)
15496  return 0;
15497if (sizeof (int))
15498  return 0;
15499  ;
15500  return 0;
15501}
15502_ACEOF
15503rm -f conftest.$ac_objext
15504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505  (eval $ac_compile) 2>conftest.er1
15506  ac_status=$?
15507  grep -v '^ *+' conftest.er1 >conftest.err
15508  rm -f conftest.er1
15509  cat conftest.err >&5
15510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511  (exit $ac_status); } &&
15512	 { ac_try='test -z "$ac_cxx_werror_flag"
15513			 || test ! -s conftest.err'
15514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515  (eval $ac_try) 2>&5
15516  ac_status=$?
15517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518  (exit $ac_status); }; } &&
15519	 { ac_try='test -s conftest.$ac_objext'
15520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521  (eval $ac_try) 2>&5
15522  ac_status=$?
15523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524  (exit $ac_status); }; }; then
15525  ac_cv_type_int=yes
15526else
15527  echo "$as_me: failed program was:" >&5
15528sed 's/^/| /' conftest.$ac_ext >&5
15529
15530ac_cv_type_int=no
15531fi
15532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15533fi
15534echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15535echo "${ECHO_T}$ac_cv_type_int" >&6
15536
15537echo "$as_me:$LINENO: checking size of int" >&5
15538echo $ECHO_N "checking size of int... $ECHO_C" >&6
15539if test "${ac_cv_sizeof_int+set}" = set; then
15540  echo $ECHO_N "(cached) $ECHO_C" >&6
15541else
15542  if test "$ac_cv_type_int" = yes; then
15543  # The cast to unsigned long works around a bug in the HP C Compiler
15544  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15545  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15546  # This bug is HP SR number 8606223364.
15547  if test "$cross_compiling" = yes; then
15548  # Depending upon the size, compute the lo and hi bounds.
15549cat >conftest.$ac_ext <<_ACEOF
15550/* confdefs.h.  */
15551_ACEOF
15552cat confdefs.h >>conftest.$ac_ext
15553cat >>conftest.$ac_ext <<_ACEOF
15554/* end confdefs.h.  */
15555$ac_includes_default
15556int
15557main ()
15558{
15559static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15560test_array [0] = 0
15561
15562  ;
15563  return 0;
15564}
15565_ACEOF
15566rm -f conftest.$ac_objext
15567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568  (eval $ac_compile) 2>conftest.er1
15569  ac_status=$?
15570  grep -v '^ *+' conftest.er1 >conftest.err
15571  rm -f conftest.er1
15572  cat conftest.err >&5
15573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574  (exit $ac_status); } &&
15575	 { ac_try='test -z "$ac_cxx_werror_flag"
15576			 || test ! -s conftest.err'
15577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578  (eval $ac_try) 2>&5
15579  ac_status=$?
15580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581  (exit $ac_status); }; } &&
15582	 { ac_try='test -s conftest.$ac_objext'
15583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584  (eval $ac_try) 2>&5
15585  ac_status=$?
15586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587  (exit $ac_status); }; }; then
15588  ac_lo=0 ac_mid=0
15589  while :; do
15590    cat >conftest.$ac_ext <<_ACEOF
15591/* confdefs.h.  */
15592_ACEOF
15593cat confdefs.h >>conftest.$ac_ext
15594cat >>conftest.$ac_ext <<_ACEOF
15595/* end confdefs.h.  */
15596$ac_includes_default
15597int
15598main ()
15599{
15600static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15601test_array [0] = 0
15602
15603  ;
15604  return 0;
15605}
15606_ACEOF
15607rm -f conftest.$ac_objext
15608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15609  (eval $ac_compile) 2>conftest.er1
15610  ac_status=$?
15611  grep -v '^ *+' conftest.er1 >conftest.err
15612  rm -f conftest.er1
15613  cat conftest.err >&5
15614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615  (exit $ac_status); } &&
15616	 { ac_try='test -z "$ac_cxx_werror_flag"
15617			 || test ! -s conftest.err'
15618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619  (eval $ac_try) 2>&5
15620  ac_status=$?
15621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622  (exit $ac_status); }; } &&
15623	 { ac_try='test -s conftest.$ac_objext'
15624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625  (eval $ac_try) 2>&5
15626  ac_status=$?
15627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628  (exit $ac_status); }; }; then
15629  ac_hi=$ac_mid; break
15630else
15631  echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634ac_lo=`expr $ac_mid + 1`
15635		    if test $ac_lo -le $ac_mid; then
15636		      ac_lo= ac_hi=
15637		      break
15638		    fi
15639		    ac_mid=`expr 2 '*' $ac_mid + 1`
15640fi
15641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15642  done
15643else
15644  echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647cat >conftest.$ac_ext <<_ACEOF
15648/* confdefs.h.  */
15649_ACEOF
15650cat confdefs.h >>conftest.$ac_ext
15651cat >>conftest.$ac_ext <<_ACEOF
15652/* end confdefs.h.  */
15653$ac_includes_default
15654int
15655main ()
15656{
15657static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15658test_array [0] = 0
15659
15660  ;
15661  return 0;
15662}
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666  (eval $ac_compile) 2>conftest.er1
15667  ac_status=$?
15668  grep -v '^ *+' conftest.er1 >conftest.err
15669  rm -f conftest.er1
15670  cat conftest.err >&5
15671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672  (exit $ac_status); } &&
15673	 { ac_try='test -z "$ac_cxx_werror_flag"
15674			 || test ! -s conftest.err'
15675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676  (eval $ac_try) 2>&5
15677  ac_status=$?
15678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679  (exit $ac_status); }; } &&
15680	 { ac_try='test -s conftest.$ac_objext'
15681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682  (eval $ac_try) 2>&5
15683  ac_status=$?
15684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685  (exit $ac_status); }; }; then
15686  ac_hi=-1 ac_mid=-1
15687  while :; do
15688    cat >conftest.$ac_ext <<_ACEOF
15689/* confdefs.h.  */
15690_ACEOF
15691cat confdefs.h >>conftest.$ac_ext
15692cat >>conftest.$ac_ext <<_ACEOF
15693/* end confdefs.h.  */
15694$ac_includes_default
15695int
15696main ()
15697{
15698static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15699test_array [0] = 0
15700
15701  ;
15702  return 0;
15703}
15704_ACEOF
15705rm -f conftest.$ac_objext
15706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15707  (eval $ac_compile) 2>conftest.er1
15708  ac_status=$?
15709  grep -v '^ *+' conftest.er1 >conftest.err
15710  rm -f conftest.er1
15711  cat conftest.err >&5
15712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713  (exit $ac_status); } &&
15714	 { ac_try='test -z "$ac_cxx_werror_flag"
15715			 || test ! -s conftest.err'
15716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717  (eval $ac_try) 2>&5
15718  ac_status=$?
15719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720  (exit $ac_status); }; } &&
15721	 { ac_try='test -s conftest.$ac_objext'
15722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723  (eval $ac_try) 2>&5
15724  ac_status=$?
15725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726  (exit $ac_status); }; }; then
15727  ac_lo=$ac_mid; break
15728else
15729  echo "$as_me: failed program was:" >&5
15730sed 's/^/| /' conftest.$ac_ext >&5
15731
15732ac_hi=`expr '(' $ac_mid ')' - 1`
15733		       if test $ac_mid -le $ac_hi; then
15734			 ac_lo= ac_hi=
15735			 break
15736		       fi
15737		       ac_mid=`expr 2 '*' $ac_mid`
15738fi
15739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15740  done
15741else
15742  echo "$as_me: failed program was:" >&5
15743sed 's/^/| /' conftest.$ac_ext >&5
15744
15745ac_lo= ac_hi=
15746fi
15747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15748fi
15749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15750# Binary search between lo and hi bounds.
15751while test "x$ac_lo" != "x$ac_hi"; do
15752  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15753  cat >conftest.$ac_ext <<_ACEOF
15754/* confdefs.h.  */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h.  */
15759$ac_includes_default
15760int
15761main ()
15762{
15763static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15764test_array [0] = 0
15765
15766  ;
15767  return 0;
15768}
15769_ACEOF
15770rm -f conftest.$ac_objext
15771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772  (eval $ac_compile) 2>conftest.er1
15773  ac_status=$?
15774  grep -v '^ *+' conftest.er1 >conftest.err
15775  rm -f conftest.er1
15776  cat conftest.err >&5
15777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778  (exit $ac_status); } &&
15779	 { ac_try='test -z "$ac_cxx_werror_flag"
15780			 || test ! -s conftest.err'
15781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782  (eval $ac_try) 2>&5
15783  ac_status=$?
15784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785  (exit $ac_status); }; } &&
15786	 { ac_try='test -s conftest.$ac_objext'
15787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788  (eval $ac_try) 2>&5
15789  ac_status=$?
15790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791  (exit $ac_status); }; }; then
15792  ac_hi=$ac_mid
15793else
15794  echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797ac_lo=`expr '(' $ac_mid ')' + 1`
15798fi
15799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15800done
15801case $ac_lo in
15802?*) ac_cv_sizeof_int=$ac_lo;;
15803'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15804See \`config.log' for more details." >&5
15805echo "$as_me: error: cannot compute sizeof (int), 77
15806See \`config.log' for more details." >&2;}
15807   { (exit 1); exit 1; }; } ;;
15808esac
15809else
15810  if test "$cross_compiling" = yes; then
15811  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15812See \`config.log' for more details." >&5
15813echo "$as_me: error: cannot run test program while cross compiling
15814See \`config.log' for more details." >&2;}
15815   { (exit 1); exit 1; }; }
15816else
15817  cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h.  */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h.  */
15823$ac_includes_default
15824long longval () { return (long) (sizeof (int)); }
15825unsigned long ulongval () { return (long) (sizeof (int)); }
15826#include <stdio.h>
15827#include <stdlib.h>
15828int
15829main ()
15830{
15831
15832  FILE *f = fopen ("conftest.val", "w");
15833  if (! f)
15834    exit (1);
15835  if (((long) (sizeof (int))) < 0)
15836    {
15837      long i = longval ();
15838      if (i != ((long) (sizeof (int))))
15839	exit (1);
15840      fprintf (f, "%ld\n", i);
15841    }
15842  else
15843    {
15844      unsigned long i = ulongval ();
15845      if (i != ((long) (sizeof (int))))
15846	exit (1);
15847      fprintf (f, "%lu\n", i);
15848    }
15849  exit (ferror (f) || fclose (f) != 0);
15850
15851  ;
15852  return 0;
15853}
15854_ACEOF
15855rm -f conftest$ac_exeext
15856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857  (eval $ac_link) 2>&5
15858  ac_status=$?
15859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862  (eval $ac_try) 2>&5
15863  ac_status=$?
15864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865  (exit $ac_status); }; }; then
15866  ac_cv_sizeof_int=`cat conftest.val`
15867else
15868  echo "$as_me: program exited with status $ac_status" >&5
15869echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872( exit $ac_status )
15873{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15874See \`config.log' for more details." >&5
15875echo "$as_me: error: cannot compute sizeof (int), 77
15876See \`config.log' for more details." >&2;}
15877   { (exit 1); exit 1; }; }
15878fi
15879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15880fi
15881fi
15882rm -f conftest.val
15883else
15884  ac_cv_sizeof_int=0
15885fi
15886fi
15887echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15888echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15889cat >>confdefs.h <<_ACEOF
15890#define SIZEOF_INT $ac_cv_sizeof_int
15891_ACEOF
15892
15893
15894  if test "$ac_cv_sizeof_int" -eq 4; then
15895    int32_t="int"
15896    return
15897  fi
15898
15899
15900  echo "$as_me:$LINENO: checking for long" >&5
15901echo $ECHO_N "checking for long... $ECHO_C" >&6
15902if test "${ac_cv_type_long+set}" = set; then
15903  echo $ECHO_N "(cached) $ECHO_C" >&6
15904else
15905  cat >conftest.$ac_ext <<_ACEOF
15906/* confdefs.h.  */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h.  */
15911$ac_includes_default
15912int
15913main ()
15914{
15915if ((long *) 0)
15916  return 0;
15917if (sizeof (long))
15918  return 0;
15919  ;
15920  return 0;
15921}
15922_ACEOF
15923rm -f conftest.$ac_objext
15924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925  (eval $ac_compile) 2>conftest.er1
15926  ac_status=$?
15927  grep -v '^ *+' conftest.er1 >conftest.err
15928  rm -f conftest.er1
15929  cat conftest.err >&5
15930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931  (exit $ac_status); } &&
15932	 { ac_try='test -z "$ac_cxx_werror_flag"
15933			 || test ! -s conftest.err'
15934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935  (eval $ac_try) 2>&5
15936  ac_status=$?
15937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938  (exit $ac_status); }; } &&
15939	 { ac_try='test -s conftest.$ac_objext'
15940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941  (eval $ac_try) 2>&5
15942  ac_status=$?
15943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944  (exit $ac_status); }; }; then
15945  ac_cv_type_long=yes
15946else
15947  echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950ac_cv_type_long=no
15951fi
15952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953fi
15954echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15955echo "${ECHO_T}$ac_cv_type_long" >&6
15956
15957echo "$as_me:$LINENO: checking size of long" >&5
15958echo $ECHO_N "checking size of long... $ECHO_C" >&6
15959if test "${ac_cv_sizeof_long+set}" = set; then
15960  echo $ECHO_N "(cached) $ECHO_C" >&6
15961else
15962  if test "$ac_cv_type_long" = yes; then
15963  # The cast to unsigned long works around a bug in the HP C Compiler
15964  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15965  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15966  # This bug is HP SR number 8606223364.
15967  if test "$cross_compiling" = yes; then
15968  # Depending upon the size, compute the lo and hi bounds.
15969cat >conftest.$ac_ext <<_ACEOF
15970/* confdefs.h.  */
15971_ACEOF
15972cat confdefs.h >>conftest.$ac_ext
15973cat >>conftest.$ac_ext <<_ACEOF
15974/* end confdefs.h.  */
15975$ac_includes_default
15976int
15977main ()
15978{
15979static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15980test_array [0] = 0
15981
15982  ;
15983  return 0;
15984}
15985_ACEOF
15986rm -f conftest.$ac_objext
15987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988  (eval $ac_compile) 2>conftest.er1
15989  ac_status=$?
15990  grep -v '^ *+' conftest.er1 >conftest.err
15991  rm -f conftest.er1
15992  cat conftest.err >&5
15993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994  (exit $ac_status); } &&
15995	 { ac_try='test -z "$ac_cxx_werror_flag"
15996			 || test ! -s conftest.err'
15997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998  (eval $ac_try) 2>&5
15999  ac_status=$?
16000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001  (exit $ac_status); }; } &&
16002	 { ac_try='test -s conftest.$ac_objext'
16003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004  (eval $ac_try) 2>&5
16005  ac_status=$?
16006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007  (exit $ac_status); }; }; then
16008  ac_lo=0 ac_mid=0
16009  while :; do
16010    cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h.  */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h.  */
16016$ac_includes_default
16017int
16018main ()
16019{
16020static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16021test_array [0] = 0
16022
16023  ;
16024  return 0;
16025}
16026_ACEOF
16027rm -f conftest.$ac_objext
16028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029  (eval $ac_compile) 2>conftest.er1
16030  ac_status=$?
16031  grep -v '^ *+' conftest.er1 >conftest.err
16032  rm -f conftest.er1
16033  cat conftest.err >&5
16034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035  (exit $ac_status); } &&
16036	 { ac_try='test -z "$ac_cxx_werror_flag"
16037			 || test ! -s conftest.err'
16038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039  (eval $ac_try) 2>&5
16040  ac_status=$?
16041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042  (exit $ac_status); }; } &&
16043	 { ac_try='test -s conftest.$ac_objext'
16044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045  (eval $ac_try) 2>&5
16046  ac_status=$?
16047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048  (exit $ac_status); }; }; then
16049  ac_hi=$ac_mid; break
16050else
16051  echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
16054ac_lo=`expr $ac_mid + 1`
16055		    if test $ac_lo -le $ac_mid; then
16056		      ac_lo= ac_hi=
16057		      break
16058		    fi
16059		    ac_mid=`expr 2 '*' $ac_mid + 1`
16060fi
16061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16062  done
16063else
16064  echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
16067cat >conftest.$ac_ext <<_ACEOF
16068/* confdefs.h.  */
16069_ACEOF
16070cat confdefs.h >>conftest.$ac_ext
16071cat >>conftest.$ac_ext <<_ACEOF
16072/* end confdefs.h.  */
16073$ac_includes_default
16074int
16075main ()
16076{
16077static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16078test_array [0] = 0
16079
16080  ;
16081  return 0;
16082}
16083_ACEOF
16084rm -f conftest.$ac_objext
16085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16086  (eval $ac_compile) 2>conftest.er1
16087  ac_status=$?
16088  grep -v '^ *+' conftest.er1 >conftest.err
16089  rm -f conftest.er1
16090  cat conftest.err >&5
16091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092  (exit $ac_status); } &&
16093	 { ac_try='test -z "$ac_cxx_werror_flag"
16094			 || test ! -s conftest.err'
16095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096  (eval $ac_try) 2>&5
16097  ac_status=$?
16098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099  (exit $ac_status); }; } &&
16100	 { ac_try='test -s conftest.$ac_objext'
16101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102  (eval $ac_try) 2>&5
16103  ac_status=$?
16104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105  (exit $ac_status); }; }; then
16106  ac_hi=-1 ac_mid=-1
16107  while :; do
16108    cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h.  */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h.  */
16114$ac_includes_default
16115int
16116main ()
16117{
16118static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16119test_array [0] = 0
16120
16121  ;
16122  return 0;
16123}
16124_ACEOF
16125rm -f conftest.$ac_objext
16126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16127  (eval $ac_compile) 2>conftest.er1
16128  ac_status=$?
16129  grep -v '^ *+' conftest.er1 >conftest.err
16130  rm -f conftest.er1
16131  cat conftest.err >&5
16132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133  (exit $ac_status); } &&
16134	 { ac_try='test -z "$ac_cxx_werror_flag"
16135			 || test ! -s conftest.err'
16136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137  (eval $ac_try) 2>&5
16138  ac_status=$?
16139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140  (exit $ac_status); }; } &&
16141	 { ac_try='test -s conftest.$ac_objext'
16142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143  (eval $ac_try) 2>&5
16144  ac_status=$?
16145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146  (exit $ac_status); }; }; then
16147  ac_lo=$ac_mid; break
16148else
16149  echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
16152ac_hi=`expr '(' $ac_mid ')' - 1`
16153		       if test $ac_mid -le $ac_hi; then
16154			 ac_lo= ac_hi=
16155			 break
16156		       fi
16157		       ac_mid=`expr 2 '*' $ac_mid`
16158fi
16159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16160  done
16161else
16162  echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165ac_lo= ac_hi=
16166fi
16167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168fi
16169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16170# Binary search between lo and hi bounds.
16171while test "x$ac_lo" != "x$ac_hi"; do
16172  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16173  cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h.  */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h.  */
16179$ac_includes_default
16180int
16181main ()
16182{
16183static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16184test_array [0] = 0
16185
16186  ;
16187  return 0;
16188}
16189_ACEOF
16190rm -f conftest.$ac_objext
16191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16192  (eval $ac_compile) 2>conftest.er1
16193  ac_status=$?
16194  grep -v '^ *+' conftest.er1 >conftest.err
16195  rm -f conftest.er1
16196  cat conftest.err >&5
16197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198  (exit $ac_status); } &&
16199	 { ac_try='test -z "$ac_cxx_werror_flag"
16200			 || test ! -s conftest.err'
16201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202  (eval $ac_try) 2>&5
16203  ac_status=$?
16204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205  (exit $ac_status); }; } &&
16206	 { ac_try='test -s conftest.$ac_objext'
16207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208  (eval $ac_try) 2>&5
16209  ac_status=$?
16210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211  (exit $ac_status); }; }; then
16212  ac_hi=$ac_mid
16213else
16214  echo "$as_me: failed program was:" >&5
16215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217ac_lo=`expr '(' $ac_mid ')' + 1`
16218fi
16219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220done
16221case $ac_lo in
16222?*) ac_cv_sizeof_long=$ac_lo;;
16223'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16224See \`config.log' for more details." >&5
16225echo "$as_me: error: cannot compute sizeof (long), 77
16226See \`config.log' for more details." >&2;}
16227   { (exit 1); exit 1; }; } ;;
16228esac
16229else
16230  if test "$cross_compiling" = yes; then
16231  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16232See \`config.log' for more details." >&5
16233echo "$as_me: error: cannot run test program while cross compiling
16234See \`config.log' for more details." >&2;}
16235   { (exit 1); exit 1; }; }
16236else
16237  cat >conftest.$ac_ext <<_ACEOF
16238/* confdefs.h.  */
16239_ACEOF
16240cat confdefs.h >>conftest.$ac_ext
16241cat >>conftest.$ac_ext <<_ACEOF
16242/* end confdefs.h.  */
16243$ac_includes_default
16244long longval () { return (long) (sizeof (long)); }
16245unsigned long ulongval () { return (long) (sizeof (long)); }
16246#include <stdio.h>
16247#include <stdlib.h>
16248int
16249main ()
16250{
16251
16252  FILE *f = fopen ("conftest.val", "w");
16253  if (! f)
16254    exit (1);
16255  if (((long) (sizeof (long))) < 0)
16256    {
16257      long i = longval ();
16258      if (i != ((long) (sizeof (long))))
16259	exit (1);
16260      fprintf (f, "%ld\n", i);
16261    }
16262  else
16263    {
16264      unsigned long i = ulongval ();
16265      if (i != ((long) (sizeof (long))))
16266	exit (1);
16267      fprintf (f, "%lu\n", i);
16268    }
16269  exit (ferror (f) || fclose (f) != 0);
16270
16271  ;
16272  return 0;
16273}
16274_ACEOF
16275rm -f conftest$ac_exeext
16276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277  (eval $ac_link) 2>&5
16278  ac_status=$?
16279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282  (eval $ac_try) 2>&5
16283  ac_status=$?
16284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285  (exit $ac_status); }; }; then
16286  ac_cv_sizeof_long=`cat conftest.val`
16287else
16288  echo "$as_me: program exited with status $ac_status" >&5
16289echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292( exit $ac_status )
16293{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16294See \`config.log' for more details." >&5
16295echo "$as_me: error: cannot compute sizeof (long), 77
16296See \`config.log' for more details." >&2;}
16297   { (exit 1); exit 1; }; }
16298fi
16299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16300fi
16301fi
16302rm -f conftest.val
16303else
16304  ac_cv_sizeof_long=0
16305fi
16306fi
16307echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16308echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16309cat >>confdefs.h <<_ACEOF
16310#define SIZEOF_LONG $ac_cv_sizeof_long
16311_ACEOF
16312
16313
16314  if test "$ac_cv_sizeof_long" -eq 4; then
16315    int32_t="long"
16316    return
16317  fi
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330    :
16331  }
16332  find_int32_t
16333
16334cat >>confdefs.h <<_ACEOF
16335#define int32_t $int32_t
16336_ACEOF
16337
16338
16339fi
16340
16341
16342
16343
16344echo "$as_me:$LINENO: checking for uint32_t" >&5
16345echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16346if test "${ac_cv_type_uint32_t+set}" = set; then
16347  echo $ECHO_N "(cached) $ECHO_C" >&6
16348else
16349  cat >conftest.$ac_ext <<_ACEOF
16350/* confdefs.h.  */
16351_ACEOF
16352cat confdefs.h >>conftest.$ac_ext
16353cat >>conftest.$ac_ext <<_ACEOF
16354/* end confdefs.h.  */
16355$ac_includes_default
16356int
16357main ()
16358{
16359if ((uint32_t *) 0)
16360  return 0;
16361if (sizeof (uint32_t))
16362  return 0;
16363  ;
16364  return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext
16368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369  (eval $ac_compile) 2>conftest.er1
16370  ac_status=$?
16371  grep -v '^ *+' conftest.er1 >conftest.err
16372  rm -f conftest.er1
16373  cat conftest.err >&5
16374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375  (exit $ac_status); } &&
16376	 { ac_try='test -z "$ac_cxx_werror_flag"
16377			 || test ! -s conftest.err'
16378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379  (eval $ac_try) 2>&5
16380  ac_status=$?
16381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382  (exit $ac_status); }; } &&
16383	 { ac_try='test -s conftest.$ac_objext'
16384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385  (eval $ac_try) 2>&5
16386  ac_status=$?
16387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388  (exit $ac_status); }; }; then
16389  ac_cv_type_uint32_t=yes
16390else
16391  echo "$as_me: failed program was:" >&5
16392sed 's/^/| /' conftest.$ac_ext >&5
16393
16394ac_cv_type_uint32_t=no
16395fi
16396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16397fi
16398echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16399echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16400if test $ac_cv_type_uint32_t = yes; then
16401  :
16402else
16403
16404  { echo "$as_me:$LINENO: trying to find a suitable 4-byte replacement for uint32_t" >&5
16405echo "$as_me: trying to find a suitable 4-byte replacement for uint32_t" >&6;}
16406  uint32_t=no
16407  find_uint32_t ()
16408  {
16409
16410
16411  echo "$as_me:$LINENO: checking for unsigned int32_t" >&5
16412echo $ECHO_N "checking for unsigned int32_t... $ECHO_C" >&6
16413if test "${ac_cv_type_unsigned_int32_t+set}" = set; then
16414  echo $ECHO_N "(cached) $ECHO_C" >&6
16415else
16416  cat >conftest.$ac_ext <<_ACEOF
16417/* confdefs.h.  */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h.  */
16422$ac_includes_default
16423int
16424main ()
16425{
16426if ((unsigned int32_t *) 0)
16427  return 0;
16428if (sizeof (unsigned int32_t))
16429  return 0;
16430  ;
16431  return 0;
16432}
16433_ACEOF
16434rm -f conftest.$ac_objext
16435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16436  (eval $ac_compile) 2>conftest.er1
16437  ac_status=$?
16438  grep -v '^ *+' conftest.er1 >conftest.err
16439  rm -f conftest.er1
16440  cat conftest.err >&5
16441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442  (exit $ac_status); } &&
16443	 { ac_try='test -z "$ac_cxx_werror_flag"
16444			 || test ! -s conftest.err'
16445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446  (eval $ac_try) 2>&5
16447  ac_status=$?
16448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449  (exit $ac_status); }; } &&
16450	 { ac_try='test -s conftest.$ac_objext'
16451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452  (eval $ac_try) 2>&5
16453  ac_status=$?
16454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455  (exit $ac_status); }; }; then
16456  ac_cv_type_unsigned_int32_t=yes
16457else
16458  echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461ac_cv_type_unsigned_int32_t=no
16462fi
16463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16464fi
16465echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int32_t" >&5
16466echo "${ECHO_T}$ac_cv_type_unsigned_int32_t" >&6
16467
16468echo "$as_me:$LINENO: checking size of unsigned int32_t" >&5
16469echo $ECHO_N "checking size of unsigned int32_t... $ECHO_C" >&6
16470if test "${ac_cv_sizeof_unsigned_int32_t+set}" = set; then
16471  echo $ECHO_N "(cached) $ECHO_C" >&6
16472else
16473  if test "$ac_cv_type_unsigned_int32_t" = yes; then
16474  # The cast to unsigned long works around a bug in the HP C Compiler
16475  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16476  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16477  # This bug is HP SR number 8606223364.
16478  if test "$cross_compiling" = yes; then
16479  # Depending upon the size, compute the lo and hi bounds.
16480cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h.  */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h.  */
16486$ac_includes_default
16487int
16488main ()
16489{
16490static int test_array [1 - 2 * !(((long) (sizeof (unsigned int32_t))) >= 0)];
16491test_array [0] = 0
16492
16493  ;
16494  return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16499  (eval $ac_compile) 2>conftest.er1
16500  ac_status=$?
16501  grep -v '^ *+' conftest.er1 >conftest.err
16502  rm -f conftest.er1
16503  cat conftest.err >&5
16504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505  (exit $ac_status); } &&
16506	 { ac_try='test -z "$ac_cxx_werror_flag"
16507			 || test ! -s conftest.err'
16508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509  (eval $ac_try) 2>&5
16510  ac_status=$?
16511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512  (exit $ac_status); }; } &&
16513	 { ac_try='test -s conftest.$ac_objext'
16514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515  (eval $ac_try) 2>&5
16516  ac_status=$?
16517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518  (exit $ac_status); }; }; then
16519  ac_lo=0 ac_mid=0
16520  while :; do
16521    cat >conftest.$ac_ext <<_ACEOF
16522/* confdefs.h.  */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h.  */
16527$ac_includes_default
16528int
16529main ()
16530{
16531static int test_array [1 - 2 * !(((long) (sizeof (unsigned int32_t))) <= $ac_mid)];
16532test_array [0] = 0
16533
16534  ;
16535  return 0;
16536}
16537_ACEOF
16538rm -f conftest.$ac_objext
16539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16540  (eval $ac_compile) 2>conftest.er1
16541  ac_status=$?
16542  grep -v '^ *+' conftest.er1 >conftest.err
16543  rm -f conftest.er1
16544  cat conftest.err >&5
16545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546  (exit $ac_status); } &&
16547	 { ac_try='test -z "$ac_cxx_werror_flag"
16548			 || test ! -s conftest.err'
16549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550  (eval $ac_try) 2>&5
16551  ac_status=$?
16552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553  (exit $ac_status); }; } &&
16554	 { ac_try='test -s conftest.$ac_objext'
16555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556  (eval $ac_try) 2>&5
16557  ac_status=$?
16558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559  (exit $ac_status); }; }; then
16560  ac_hi=$ac_mid; break
16561else
16562  echo "$as_me: failed program was:" >&5
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
16565ac_lo=`expr $ac_mid + 1`
16566		    if test $ac_lo -le $ac_mid; then
16567		      ac_lo= ac_hi=
16568		      break
16569		    fi
16570		    ac_mid=`expr 2 '*' $ac_mid + 1`
16571fi
16572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16573  done
16574else
16575  echo "$as_me: failed program was:" >&5
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
16578cat >conftest.$ac_ext <<_ACEOF
16579/* confdefs.h.  */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h.  */
16584$ac_includes_default
16585int
16586main ()
16587{
16588static int test_array [1 - 2 * !(((long) (sizeof (unsigned int32_t))) < 0)];
16589test_array [0] = 0
16590
16591  ;
16592  return 0;
16593}
16594_ACEOF
16595rm -f conftest.$ac_objext
16596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16597  (eval $ac_compile) 2>conftest.er1
16598  ac_status=$?
16599  grep -v '^ *+' conftest.er1 >conftest.err
16600  rm -f conftest.er1
16601  cat conftest.err >&5
16602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603  (exit $ac_status); } &&
16604	 { ac_try='test -z "$ac_cxx_werror_flag"
16605			 || test ! -s conftest.err'
16606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607  (eval $ac_try) 2>&5
16608  ac_status=$?
16609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610  (exit $ac_status); }; } &&
16611	 { ac_try='test -s conftest.$ac_objext'
16612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613  (eval $ac_try) 2>&5
16614  ac_status=$?
16615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616  (exit $ac_status); }; }; then
16617  ac_hi=-1 ac_mid=-1
16618  while :; do
16619    cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h.  */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h.  */
16625$ac_includes_default
16626int
16627main ()
16628{
16629static int test_array [1 - 2 * !(((long) (sizeof (unsigned int32_t))) >= $ac_mid)];
16630test_array [0] = 0
16631
16632  ;
16633  return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext
16637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638  (eval $ac_compile) 2>conftest.er1
16639  ac_status=$?
16640  grep -v '^ *+' conftest.er1 >conftest.err
16641  rm -f conftest.er1
16642  cat conftest.err >&5
16643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644  (exit $ac_status); } &&
16645	 { ac_try='test -z "$ac_cxx_werror_flag"
16646			 || test ! -s conftest.err'
16647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648  (eval $ac_try) 2>&5
16649  ac_status=$?
16650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651  (exit $ac_status); }; } &&
16652	 { ac_try='test -s conftest.$ac_objext'
16653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654  (eval $ac_try) 2>&5
16655  ac_status=$?
16656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657  (exit $ac_status); }; }; then
16658  ac_lo=$ac_mid; break
16659else
16660  echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663ac_hi=`expr '(' $ac_mid ')' - 1`
16664		       if test $ac_mid -le $ac_hi; then
16665			 ac_lo= ac_hi=
16666			 break
16667		       fi
16668		       ac_mid=`expr 2 '*' $ac_mid`
16669fi
16670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16671  done
16672else
16673  echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
16676ac_lo= ac_hi=
16677fi
16678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16679fi
16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16681# Binary search between lo and hi bounds.
16682while test "x$ac_lo" != "x$ac_hi"; do
16683  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16684  cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h.  */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h.  */
16690$ac_includes_default
16691int
16692main ()
16693{
16694static int test_array [1 - 2 * !(((long) (sizeof (unsigned int32_t))) <= $ac_mid)];
16695test_array [0] = 0
16696
16697  ;
16698  return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext
16702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16703  (eval $ac_compile) 2>conftest.er1
16704  ac_status=$?
16705  grep -v '^ *+' conftest.er1 >conftest.err
16706  rm -f conftest.er1
16707  cat conftest.err >&5
16708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709  (exit $ac_status); } &&
16710	 { ac_try='test -z "$ac_cxx_werror_flag"
16711			 || test ! -s conftest.err'
16712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713  (eval $ac_try) 2>&5
16714  ac_status=$?
16715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716  (exit $ac_status); }; } &&
16717	 { ac_try='test -s conftest.$ac_objext'
16718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719  (eval $ac_try) 2>&5
16720  ac_status=$?
16721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722  (exit $ac_status); }; }; then
16723  ac_hi=$ac_mid
16724else
16725  echo "$as_me: failed program was:" >&5
16726sed 's/^/| /' conftest.$ac_ext >&5
16727
16728ac_lo=`expr '(' $ac_mid ')' + 1`
16729fi
16730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16731done
16732case $ac_lo in
16733?*) ac_cv_sizeof_unsigned_int32_t=$ac_lo;;
16734'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int32_t), 77
16735See \`config.log' for more details." >&5
16736echo "$as_me: error: cannot compute sizeof (unsigned int32_t), 77
16737See \`config.log' for more details." >&2;}
16738   { (exit 1); exit 1; }; } ;;
16739esac
16740else
16741  if test "$cross_compiling" = yes; then
16742  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16743See \`config.log' for more details." >&5
16744echo "$as_me: error: cannot run test program while cross compiling
16745See \`config.log' for more details." >&2;}
16746   { (exit 1); exit 1; }; }
16747else
16748  cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h.  */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h.  */
16754$ac_includes_default
16755long longval () { return (long) (sizeof (unsigned int32_t)); }
16756unsigned long ulongval () { return (long) (sizeof (unsigned int32_t)); }
16757#include <stdio.h>
16758#include <stdlib.h>
16759int
16760main ()
16761{
16762
16763  FILE *f = fopen ("conftest.val", "w");
16764  if (! f)
16765    exit (1);
16766  if (((long) (sizeof (unsigned int32_t))) < 0)
16767    {
16768      long i = longval ();
16769      if (i != ((long) (sizeof (unsigned int32_t))))
16770	exit (1);
16771      fprintf (f, "%ld\n", i);
16772    }
16773  else
16774    {
16775      unsigned long i = ulongval ();
16776      if (i != ((long) (sizeof (unsigned int32_t))))
16777	exit (1);
16778      fprintf (f, "%lu\n", i);
16779    }
16780  exit (ferror (f) || fclose (f) != 0);
16781
16782  ;
16783  return 0;
16784}
16785_ACEOF
16786rm -f conftest$ac_exeext
16787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788  (eval $ac_link) 2>&5
16789  ac_status=$?
16790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793  (eval $ac_try) 2>&5
16794  ac_status=$?
16795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796  (exit $ac_status); }; }; then
16797  ac_cv_sizeof_unsigned_int32_t=`cat conftest.val`
16798else
16799  echo "$as_me: program exited with status $ac_status" >&5
16800echo "$as_me: failed program was:" >&5
16801sed 's/^/| /' conftest.$ac_ext >&5
16802
16803( exit $ac_status )
16804{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int32_t), 77
16805See \`config.log' for more details." >&5
16806echo "$as_me: error: cannot compute sizeof (unsigned int32_t), 77
16807See \`config.log' for more details." >&2;}
16808   { (exit 1); exit 1; }; }
16809fi
16810rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16811fi
16812fi
16813rm -f conftest.val
16814else
16815  ac_cv_sizeof_unsigned_int32_t=0
16816fi
16817fi
16818echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int32_t" >&5
16819echo "${ECHO_T}$ac_cv_sizeof_unsigned_int32_t" >&6
16820cat >>confdefs.h <<_ACEOF
16821#define SIZEOF_UNSIGNED_INT32_T $ac_cv_sizeof_unsigned_int32_t
16822_ACEOF
16823
16824
16825  if test "$ac_cv_sizeof_unsigned_int32_t" -eq 4; then
16826    uint32_t="unsigned int32_t"
16827    return
16828  fi
16829
16830
16831  echo "$as_me:$LINENO: checking for unsigned" >&5
16832echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
16833if test "${ac_cv_type_unsigned+set}" = set; then
16834  echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836  cat >conftest.$ac_ext <<_ACEOF
16837/* confdefs.h.  */
16838_ACEOF
16839cat confdefs.h >>conftest.$ac_ext
16840cat >>conftest.$ac_ext <<_ACEOF
16841/* end confdefs.h.  */
16842$ac_includes_default
16843int
16844main ()
16845{
16846if ((unsigned *) 0)
16847  return 0;
16848if (sizeof (unsigned))
16849  return 0;
16850  ;
16851  return 0;
16852}
16853_ACEOF
16854rm -f conftest.$ac_objext
16855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16856  (eval $ac_compile) 2>conftest.er1
16857  ac_status=$?
16858  grep -v '^ *+' conftest.er1 >conftest.err
16859  rm -f conftest.er1
16860  cat conftest.err >&5
16861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862  (exit $ac_status); } &&
16863	 { ac_try='test -z "$ac_cxx_werror_flag"
16864			 || test ! -s conftest.err'
16865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866  (eval $ac_try) 2>&5
16867  ac_status=$?
16868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869  (exit $ac_status); }; } &&
16870	 { ac_try='test -s conftest.$ac_objext'
16871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872  (eval $ac_try) 2>&5
16873  ac_status=$?
16874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875  (exit $ac_status); }; }; then
16876  ac_cv_type_unsigned=yes
16877else
16878  echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881ac_cv_type_unsigned=no
16882fi
16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884fi
16885echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
16886echo "${ECHO_T}$ac_cv_type_unsigned" >&6
16887
16888echo "$as_me:$LINENO: checking size of unsigned" >&5
16889echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
16890if test "${ac_cv_sizeof_unsigned+set}" = set; then
16891  echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
16893  if test "$ac_cv_type_unsigned" = yes; then
16894  # The cast to unsigned long works around a bug in the HP C Compiler
16895  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16896  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16897  # This bug is HP SR number 8606223364.
16898  if test "$cross_compiling" = yes; then
16899  # Depending upon the size, compute the lo and hi bounds.
16900cat >conftest.$ac_ext <<_ACEOF
16901/* confdefs.h.  */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h.  */
16906$ac_includes_default
16907int
16908main ()
16909{
16910static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
16911test_array [0] = 0
16912
16913  ;
16914  return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext
16918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919  (eval $ac_compile) 2>conftest.er1
16920  ac_status=$?
16921  grep -v '^ *+' conftest.er1 >conftest.err
16922  rm -f conftest.er1
16923  cat conftest.err >&5
16924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925  (exit $ac_status); } &&
16926	 { ac_try='test -z "$ac_cxx_werror_flag"
16927			 || test ! -s conftest.err'
16928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929  (eval $ac_try) 2>&5
16930  ac_status=$?
16931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932  (exit $ac_status); }; } &&
16933	 { ac_try='test -s conftest.$ac_objext'
16934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935  (eval $ac_try) 2>&5
16936  ac_status=$?
16937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938  (exit $ac_status); }; }; then
16939  ac_lo=0 ac_mid=0
16940  while :; do
16941    cat >conftest.$ac_ext <<_ACEOF
16942/* confdefs.h.  */
16943_ACEOF
16944cat confdefs.h >>conftest.$ac_ext
16945cat >>conftest.$ac_ext <<_ACEOF
16946/* end confdefs.h.  */
16947$ac_includes_default
16948int
16949main ()
16950{
16951static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
16952test_array [0] = 0
16953
16954  ;
16955  return 0;
16956}
16957_ACEOF
16958rm -f conftest.$ac_objext
16959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16960  (eval $ac_compile) 2>conftest.er1
16961  ac_status=$?
16962  grep -v '^ *+' conftest.er1 >conftest.err
16963  rm -f conftest.er1
16964  cat conftest.err >&5
16965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966  (exit $ac_status); } &&
16967	 { ac_try='test -z "$ac_cxx_werror_flag"
16968			 || test ! -s conftest.err'
16969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970  (eval $ac_try) 2>&5
16971  ac_status=$?
16972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973  (exit $ac_status); }; } &&
16974	 { ac_try='test -s conftest.$ac_objext'
16975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976  (eval $ac_try) 2>&5
16977  ac_status=$?
16978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979  (exit $ac_status); }; }; then
16980  ac_hi=$ac_mid; break
16981else
16982  echo "$as_me: failed program was:" >&5
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
16985ac_lo=`expr $ac_mid + 1`
16986		    if test $ac_lo -le $ac_mid; then
16987		      ac_lo= ac_hi=
16988		      break
16989		    fi
16990		    ac_mid=`expr 2 '*' $ac_mid + 1`
16991fi
16992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16993  done
16994else
16995  echo "$as_me: failed program was:" >&5
16996sed 's/^/| /' conftest.$ac_ext >&5
16997
16998cat >conftest.$ac_ext <<_ACEOF
16999/* confdefs.h.  */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h.  */
17004$ac_includes_default
17005int
17006main ()
17007{
17008static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
17009test_array [0] = 0
17010
17011  ;
17012  return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext
17016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017  (eval $ac_compile) 2>conftest.er1
17018  ac_status=$?
17019  grep -v '^ *+' conftest.er1 >conftest.err
17020  rm -f conftest.er1
17021  cat conftest.err >&5
17022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023  (exit $ac_status); } &&
17024	 { ac_try='test -z "$ac_cxx_werror_flag"
17025			 || test ! -s conftest.err'
17026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027  (eval $ac_try) 2>&5
17028  ac_status=$?
17029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030  (exit $ac_status); }; } &&
17031	 { ac_try='test -s conftest.$ac_objext'
17032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033  (eval $ac_try) 2>&5
17034  ac_status=$?
17035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036  (exit $ac_status); }; }; then
17037  ac_hi=-1 ac_mid=-1
17038  while :; do
17039    cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h.  */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h.  */
17045$ac_includes_default
17046int
17047main ()
17048{
17049static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
17050test_array [0] = 0
17051
17052  ;
17053  return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058  (eval $ac_compile) 2>conftest.er1
17059  ac_status=$?
17060  grep -v '^ *+' conftest.er1 >conftest.err
17061  rm -f conftest.er1
17062  cat conftest.err >&5
17063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064  (exit $ac_status); } &&
17065	 { ac_try='test -z "$ac_cxx_werror_flag"
17066			 || test ! -s conftest.err'
17067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068  (eval $ac_try) 2>&5
17069  ac_status=$?
17070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071  (exit $ac_status); }; } &&
17072	 { ac_try='test -s conftest.$ac_objext'
17073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074  (eval $ac_try) 2>&5
17075  ac_status=$?
17076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077  (exit $ac_status); }; }; then
17078  ac_lo=$ac_mid; break
17079else
17080  echo "$as_me: failed program was:" >&5
17081sed 's/^/| /' conftest.$ac_ext >&5
17082
17083ac_hi=`expr '(' $ac_mid ')' - 1`
17084		       if test $ac_mid -le $ac_hi; then
17085			 ac_lo= ac_hi=
17086			 break
17087		       fi
17088		       ac_mid=`expr 2 '*' $ac_mid`
17089fi
17090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17091  done
17092else
17093  echo "$as_me: failed program was:" >&5
17094sed 's/^/| /' conftest.$ac_ext >&5
17095
17096ac_lo= ac_hi=
17097fi
17098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17099fi
17100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17101# Binary search between lo and hi bounds.
17102while test "x$ac_lo" != "x$ac_hi"; do
17103  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17104  cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h.  */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h.  */
17110$ac_includes_default
17111int
17112main ()
17113{
17114static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
17115test_array [0] = 0
17116
17117  ;
17118  return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext
17122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17123  (eval $ac_compile) 2>conftest.er1
17124  ac_status=$?
17125  grep -v '^ *+' conftest.er1 >conftest.err
17126  rm -f conftest.er1
17127  cat conftest.err >&5
17128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129  (exit $ac_status); } &&
17130	 { ac_try='test -z "$ac_cxx_werror_flag"
17131			 || test ! -s conftest.err'
17132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133  (eval $ac_try) 2>&5
17134  ac_status=$?
17135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136  (exit $ac_status); }; } &&
17137	 { ac_try='test -s conftest.$ac_objext'
17138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139  (eval $ac_try) 2>&5
17140  ac_status=$?
17141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142  (exit $ac_status); }; }; then
17143  ac_hi=$ac_mid
17144else
17145  echo "$as_me: failed program was:" >&5
17146sed 's/^/| /' conftest.$ac_ext >&5
17147
17148ac_lo=`expr '(' $ac_mid ')' + 1`
17149fi
17150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17151done
17152case $ac_lo in
17153?*) ac_cv_sizeof_unsigned=$ac_lo;;
17154'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
17155See \`config.log' for more details." >&5
17156echo "$as_me: error: cannot compute sizeof (unsigned), 77
17157See \`config.log' for more details." >&2;}
17158   { (exit 1); exit 1; }; } ;;
17159esac
17160else
17161  if test "$cross_compiling" = yes; then
17162  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17163See \`config.log' for more details." >&5
17164echo "$as_me: error: cannot run test program while cross compiling
17165See \`config.log' for more details." >&2;}
17166   { (exit 1); exit 1; }; }
17167else
17168  cat >conftest.$ac_ext <<_ACEOF
17169/* confdefs.h.  */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h.  */
17174$ac_includes_default
17175long longval () { return (long) (sizeof (unsigned)); }
17176unsigned long ulongval () { return (long) (sizeof (unsigned)); }
17177#include <stdio.h>
17178#include <stdlib.h>
17179int
17180main ()
17181{
17182
17183  FILE *f = fopen ("conftest.val", "w");
17184  if (! f)
17185    exit (1);
17186  if (((long) (sizeof (unsigned))) < 0)
17187    {
17188      long i = longval ();
17189      if (i != ((long) (sizeof (unsigned))))
17190	exit (1);
17191      fprintf (f, "%ld\n", i);
17192    }
17193  else
17194    {
17195      unsigned long i = ulongval ();
17196      if (i != ((long) (sizeof (unsigned))))
17197	exit (1);
17198      fprintf (f, "%lu\n", i);
17199    }
17200  exit (ferror (f) || fclose (f) != 0);
17201
17202  ;
17203  return 0;
17204}
17205_ACEOF
17206rm -f conftest$ac_exeext
17207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17208  (eval $ac_link) 2>&5
17209  ac_status=$?
17210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213  (eval $ac_try) 2>&5
17214  ac_status=$?
17215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216  (exit $ac_status); }; }; then
17217  ac_cv_sizeof_unsigned=`cat conftest.val`
17218else
17219  echo "$as_me: program exited with status $ac_status" >&5
17220echo "$as_me: failed program was:" >&5
17221sed 's/^/| /' conftest.$ac_ext >&5
17222
17223( exit $ac_status )
17224{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
17225See \`config.log' for more details." >&5
17226echo "$as_me: error: cannot compute sizeof (unsigned), 77
17227See \`config.log' for more details." >&2;}
17228   { (exit 1); exit 1; }; }
17229fi
17230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17231fi
17232fi
17233rm -f conftest.val
17234else
17235  ac_cv_sizeof_unsigned=0
17236fi
17237fi
17238echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
17239echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
17240cat >>confdefs.h <<_ACEOF
17241#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
17242_ACEOF
17243
17244
17245  if test "$ac_cv_sizeof_unsigned" -eq 4; then
17246    uint32_t="unsigned"
17247    return
17248  fi
17249
17250
17251  echo "$as_me:$LINENO: checking for unsigned long" >&5
17252echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17253if test "${ac_cv_type_unsigned_long+set}" = set; then
17254  echo $ECHO_N "(cached) $ECHO_C" >&6
17255else
17256  cat >conftest.$ac_ext <<_ACEOF
17257/* confdefs.h.  */
17258_ACEOF
17259cat confdefs.h >>conftest.$ac_ext
17260cat >>conftest.$ac_ext <<_ACEOF
17261/* end confdefs.h.  */
17262$ac_includes_default
17263int
17264main ()
17265{
17266if ((unsigned long *) 0)
17267  return 0;
17268if (sizeof (unsigned long))
17269  return 0;
17270  ;
17271  return 0;
17272}
17273_ACEOF
17274rm -f conftest.$ac_objext
17275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17276  (eval $ac_compile) 2>conftest.er1
17277  ac_status=$?
17278  grep -v '^ *+' conftest.er1 >conftest.err
17279  rm -f conftest.er1
17280  cat conftest.err >&5
17281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282  (exit $ac_status); } &&
17283	 { ac_try='test -z "$ac_cxx_werror_flag"
17284			 || test ! -s conftest.err'
17285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286  (eval $ac_try) 2>&5
17287  ac_status=$?
17288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289  (exit $ac_status); }; } &&
17290	 { ac_try='test -s conftest.$ac_objext'
17291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292  (eval $ac_try) 2>&5
17293  ac_status=$?
17294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295  (exit $ac_status); }; }; then
17296  ac_cv_type_unsigned_long=yes
17297else
17298  echo "$as_me: failed program was:" >&5
17299sed 's/^/| /' conftest.$ac_ext >&5
17300
17301ac_cv_type_unsigned_long=no
17302fi
17303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17304fi
17305echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17306echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17307
17308echo "$as_me:$LINENO: checking size of unsigned long" >&5
17309echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17310if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17311  echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313  if test "$ac_cv_type_unsigned_long" = yes; then
17314  # The cast to unsigned long works around a bug in the HP C Compiler
17315  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17316  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17317  # This bug is HP SR number 8606223364.
17318  if test "$cross_compiling" = yes; then
17319  # Depending upon the size, compute the lo and hi bounds.
17320cat >conftest.$ac_ext <<_ACEOF
17321/* confdefs.h.  */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
17325/* end confdefs.h.  */
17326$ac_includes_default
17327int
17328main ()
17329{
17330static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17331test_array [0] = 0
17332
17333  ;
17334  return 0;
17335}
17336_ACEOF
17337rm -f conftest.$ac_objext
17338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17339  (eval $ac_compile) 2>conftest.er1
17340  ac_status=$?
17341  grep -v '^ *+' conftest.er1 >conftest.err
17342  rm -f conftest.er1
17343  cat conftest.err >&5
17344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345  (exit $ac_status); } &&
17346	 { ac_try='test -z "$ac_cxx_werror_flag"
17347			 || test ! -s conftest.err'
17348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349  (eval $ac_try) 2>&5
17350  ac_status=$?
17351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352  (exit $ac_status); }; } &&
17353	 { ac_try='test -s conftest.$ac_objext'
17354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355  (eval $ac_try) 2>&5
17356  ac_status=$?
17357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358  (exit $ac_status); }; }; then
17359  ac_lo=0 ac_mid=0
17360  while :; do
17361    cat >conftest.$ac_ext <<_ACEOF
17362/* confdefs.h.  */
17363_ACEOF
17364cat confdefs.h >>conftest.$ac_ext
17365cat >>conftest.$ac_ext <<_ACEOF
17366/* end confdefs.h.  */
17367$ac_includes_default
17368int
17369main ()
17370{
17371static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17372test_array [0] = 0
17373
17374  ;
17375  return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext
17379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380  (eval $ac_compile) 2>conftest.er1
17381  ac_status=$?
17382  grep -v '^ *+' conftest.er1 >conftest.err
17383  rm -f conftest.er1
17384  cat conftest.err >&5
17385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386  (exit $ac_status); } &&
17387	 { ac_try='test -z "$ac_cxx_werror_flag"
17388			 || test ! -s conftest.err'
17389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390  (eval $ac_try) 2>&5
17391  ac_status=$?
17392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393  (exit $ac_status); }; } &&
17394	 { ac_try='test -s conftest.$ac_objext'
17395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396  (eval $ac_try) 2>&5
17397  ac_status=$?
17398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399  (exit $ac_status); }; }; then
17400  ac_hi=$ac_mid; break
17401else
17402  echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
17405ac_lo=`expr $ac_mid + 1`
17406		    if test $ac_lo -le $ac_mid; then
17407		      ac_lo= ac_hi=
17408		      break
17409		    fi
17410		    ac_mid=`expr 2 '*' $ac_mid + 1`
17411fi
17412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17413  done
17414else
17415  echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h.  */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h.  */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17429test_array [0] = 0
17430
17431  ;
17432  return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437  (eval $ac_compile) 2>conftest.er1
17438  ac_status=$?
17439  grep -v '^ *+' conftest.er1 >conftest.err
17440  rm -f conftest.er1
17441  cat conftest.err >&5
17442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443  (exit $ac_status); } &&
17444	 { ac_try='test -z "$ac_cxx_werror_flag"
17445			 || test ! -s conftest.err'
17446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447  (eval $ac_try) 2>&5
17448  ac_status=$?
17449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450  (exit $ac_status); }; } &&
17451	 { ac_try='test -s conftest.$ac_objext'
17452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453  (eval $ac_try) 2>&5
17454  ac_status=$?
17455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456  (exit $ac_status); }; }; then
17457  ac_hi=-1 ac_mid=-1
17458  while :; do
17459    cat >conftest.$ac_ext <<_ACEOF
17460/* confdefs.h.  */
17461_ACEOF
17462cat confdefs.h >>conftest.$ac_ext
17463cat >>conftest.$ac_ext <<_ACEOF
17464/* end confdefs.h.  */
17465$ac_includes_default
17466int
17467main ()
17468{
17469static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17470test_array [0] = 0
17471
17472  ;
17473  return 0;
17474}
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478  (eval $ac_compile) 2>conftest.er1
17479  ac_status=$?
17480  grep -v '^ *+' conftest.er1 >conftest.err
17481  rm -f conftest.er1
17482  cat conftest.err >&5
17483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484  (exit $ac_status); } &&
17485	 { ac_try='test -z "$ac_cxx_werror_flag"
17486			 || test ! -s conftest.err'
17487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488  (eval $ac_try) 2>&5
17489  ac_status=$?
17490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491  (exit $ac_status); }; } &&
17492	 { ac_try='test -s conftest.$ac_objext'
17493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494  (eval $ac_try) 2>&5
17495  ac_status=$?
17496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497  (exit $ac_status); }; }; then
17498  ac_lo=$ac_mid; break
17499else
17500  echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503ac_hi=`expr '(' $ac_mid ')' - 1`
17504		       if test $ac_mid -le $ac_hi; then
17505			 ac_lo= ac_hi=
17506			 break
17507		       fi
17508		       ac_mid=`expr 2 '*' $ac_mid`
17509fi
17510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511  done
17512else
17513  echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516ac_lo= ac_hi=
17517fi
17518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17519fi
17520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17521# Binary search between lo and hi bounds.
17522while test "x$ac_lo" != "x$ac_hi"; do
17523  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17524  cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h.  */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h.  */
17530$ac_includes_default
17531int
17532main ()
17533{
17534static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17535test_array [0] = 0
17536
17537  ;
17538  return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543  (eval $ac_compile) 2>conftest.er1
17544  ac_status=$?
17545  grep -v '^ *+' conftest.er1 >conftest.err
17546  rm -f conftest.er1
17547  cat conftest.err >&5
17548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549  (exit $ac_status); } &&
17550	 { ac_try='test -z "$ac_cxx_werror_flag"
17551			 || test ! -s conftest.err'
17552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553  (eval $ac_try) 2>&5
17554  ac_status=$?
17555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556  (exit $ac_status); }; } &&
17557	 { ac_try='test -s conftest.$ac_objext'
17558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559  (eval $ac_try) 2>&5
17560  ac_status=$?
17561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562  (exit $ac_status); }; }; then
17563  ac_hi=$ac_mid
17564else
17565  echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568ac_lo=`expr '(' $ac_mid ')' + 1`
17569fi
17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17571done
17572case $ac_lo in
17573?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17574'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17575See \`config.log' for more details." >&5
17576echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17577See \`config.log' for more details." >&2;}
17578   { (exit 1); exit 1; }; } ;;
17579esac
17580else
17581  if test "$cross_compiling" = yes; then
17582  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17583See \`config.log' for more details." >&5
17584echo "$as_me: error: cannot run test program while cross compiling
17585See \`config.log' for more details." >&2;}
17586   { (exit 1); exit 1; }; }
17587else
17588  cat >conftest.$ac_ext <<_ACEOF
17589/* confdefs.h.  */
17590_ACEOF
17591cat confdefs.h >>conftest.$ac_ext
17592cat >>conftest.$ac_ext <<_ACEOF
17593/* end confdefs.h.  */
17594$ac_includes_default
17595long longval () { return (long) (sizeof (unsigned long)); }
17596unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17597#include <stdio.h>
17598#include <stdlib.h>
17599int
17600main ()
17601{
17602
17603  FILE *f = fopen ("conftest.val", "w");
17604  if (! f)
17605    exit (1);
17606  if (((long) (sizeof (unsigned long))) < 0)
17607    {
17608      long i = longval ();
17609      if (i != ((long) (sizeof (unsigned long))))
17610	exit (1);
17611      fprintf (f, "%ld\n", i);
17612    }
17613  else
17614    {
17615      unsigned long i = ulongval ();
17616      if (i != ((long) (sizeof (unsigned long))))
17617	exit (1);
17618      fprintf (f, "%lu\n", i);
17619    }
17620  exit (ferror (f) || fclose (f) != 0);
17621
17622  ;
17623  return 0;
17624}
17625_ACEOF
17626rm -f conftest$ac_exeext
17627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17628  (eval $ac_link) 2>&5
17629  ac_status=$?
17630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633  (eval $ac_try) 2>&5
17634  ac_status=$?
17635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636  (exit $ac_status); }; }; then
17637  ac_cv_sizeof_unsigned_long=`cat conftest.val`
17638else
17639  echo "$as_me: program exited with status $ac_status" >&5
17640echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643( exit $ac_status )
17644{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17645See \`config.log' for more details." >&5
17646echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17647See \`config.log' for more details." >&2;}
17648   { (exit 1); exit 1; }; }
17649fi
17650rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17651fi
17652fi
17653rm -f conftest.val
17654else
17655  ac_cv_sizeof_unsigned_long=0
17656fi
17657fi
17658echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17659echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17660cat >>confdefs.h <<_ACEOF
17661#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17662_ACEOF
17663
17664
17665  if test "$ac_cv_sizeof_unsigned_long" -eq 4; then
17666    uint32_t="unsigned long"
17667    return
17668  fi
17669
17670
17671  echo "$as_me:$LINENO: checking for unsigned __int32" >&5
17672echo $ECHO_N "checking for unsigned __int32... $ECHO_C" >&6
17673if test "${ac_cv_type_unsigned___int32+set}" = set; then
17674  echo $ECHO_N "(cached) $ECHO_C" >&6
17675else
17676  cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h.  */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h.  */
17682$ac_includes_default
17683int
17684main ()
17685{
17686if ((unsigned __int32 *) 0)
17687  return 0;
17688if (sizeof (unsigned __int32))
17689  return 0;
17690  ;
17691  return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext
17695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17696  (eval $ac_compile) 2>conftest.er1
17697  ac_status=$?
17698  grep -v '^ *+' conftest.er1 >conftest.err
17699  rm -f conftest.er1
17700  cat conftest.err >&5
17701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702  (exit $ac_status); } &&
17703	 { ac_try='test -z "$ac_cxx_werror_flag"
17704			 || test ! -s conftest.err'
17705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706  (eval $ac_try) 2>&5
17707  ac_status=$?
17708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709  (exit $ac_status); }; } &&
17710	 { ac_try='test -s conftest.$ac_objext'
17711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712  (eval $ac_try) 2>&5
17713  ac_status=$?
17714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715  (exit $ac_status); }; }; then
17716  ac_cv_type_unsigned___int32=yes
17717else
17718  echo "$as_me: failed program was:" >&5
17719sed 's/^/| /' conftest.$ac_ext >&5
17720
17721ac_cv_type_unsigned___int32=no
17722fi
17723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17724fi
17725echo "$as_me:$LINENO: result: $ac_cv_type_unsigned___int32" >&5
17726echo "${ECHO_T}$ac_cv_type_unsigned___int32" >&6
17727
17728echo "$as_me:$LINENO: checking size of unsigned __int32" >&5
17729echo $ECHO_N "checking size of unsigned __int32... $ECHO_C" >&6
17730if test "${ac_cv_sizeof_unsigned___int32+set}" = set; then
17731  echo $ECHO_N "(cached) $ECHO_C" >&6
17732else
17733  if test "$ac_cv_type_unsigned___int32" = yes; then
17734  # The cast to unsigned long works around a bug in the HP C Compiler
17735  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17736  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17737  # This bug is HP SR number 8606223364.
17738  if test "$cross_compiling" = yes; then
17739  # Depending upon the size, compute the lo and hi bounds.
17740cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h.  */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h.  */
17746$ac_includes_default
17747int
17748main ()
17749{
17750static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int32))) >= 0)];
17751test_array [0] = 0
17752
17753  ;
17754  return 0;
17755}
17756_ACEOF
17757rm -f conftest.$ac_objext
17758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17759  (eval $ac_compile) 2>conftest.er1
17760  ac_status=$?
17761  grep -v '^ *+' conftest.er1 >conftest.err
17762  rm -f conftest.er1
17763  cat conftest.err >&5
17764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765  (exit $ac_status); } &&
17766	 { ac_try='test -z "$ac_cxx_werror_flag"
17767			 || test ! -s conftest.err'
17768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769  (eval $ac_try) 2>&5
17770  ac_status=$?
17771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772  (exit $ac_status); }; } &&
17773	 { ac_try='test -s conftest.$ac_objext'
17774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775  (eval $ac_try) 2>&5
17776  ac_status=$?
17777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778  (exit $ac_status); }; }; then
17779  ac_lo=0 ac_mid=0
17780  while :; do
17781    cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h.  */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h.  */
17787$ac_includes_default
17788int
17789main ()
17790{
17791static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int32))) <= $ac_mid)];
17792test_array [0] = 0
17793
17794  ;
17795  return 0;
17796}
17797_ACEOF
17798rm -f conftest.$ac_objext
17799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800  (eval $ac_compile) 2>conftest.er1
17801  ac_status=$?
17802  grep -v '^ *+' conftest.er1 >conftest.err
17803  rm -f conftest.er1
17804  cat conftest.err >&5
17805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806  (exit $ac_status); } &&
17807	 { ac_try='test -z "$ac_cxx_werror_flag"
17808			 || test ! -s conftest.err'
17809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810  (eval $ac_try) 2>&5
17811  ac_status=$?
17812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813  (exit $ac_status); }; } &&
17814	 { ac_try='test -s conftest.$ac_objext'
17815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816  (eval $ac_try) 2>&5
17817  ac_status=$?
17818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819  (exit $ac_status); }; }; then
17820  ac_hi=$ac_mid; break
17821else
17822  echo "$as_me: failed program was:" >&5
17823sed 's/^/| /' conftest.$ac_ext >&5
17824
17825ac_lo=`expr $ac_mid + 1`
17826		    if test $ac_lo -le $ac_mid; then
17827		      ac_lo= ac_hi=
17828		      break
17829		    fi
17830		    ac_mid=`expr 2 '*' $ac_mid + 1`
17831fi
17832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17833  done
17834else
17835  echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h.  */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h.  */
17844$ac_includes_default
17845int
17846main ()
17847{
17848static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int32))) < 0)];
17849test_array [0] = 0
17850
17851  ;
17852  return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857  (eval $ac_compile) 2>conftest.er1
17858  ac_status=$?
17859  grep -v '^ *+' conftest.er1 >conftest.err
17860  rm -f conftest.er1
17861  cat conftest.err >&5
17862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863  (exit $ac_status); } &&
17864	 { ac_try='test -z "$ac_cxx_werror_flag"
17865			 || test ! -s conftest.err'
17866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867  (eval $ac_try) 2>&5
17868  ac_status=$?
17869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870  (exit $ac_status); }; } &&
17871	 { ac_try='test -s conftest.$ac_objext'
17872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873  (eval $ac_try) 2>&5
17874  ac_status=$?
17875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876  (exit $ac_status); }; }; then
17877  ac_hi=-1 ac_mid=-1
17878  while :; do
17879    cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h.  */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h.  */
17885$ac_includes_default
17886int
17887main ()
17888{
17889static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int32))) >= $ac_mid)];
17890test_array [0] = 0
17891
17892  ;
17893  return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898  (eval $ac_compile) 2>conftest.er1
17899  ac_status=$?
17900  grep -v '^ *+' conftest.er1 >conftest.err
17901  rm -f conftest.er1
17902  cat conftest.err >&5
17903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904  (exit $ac_status); } &&
17905	 { ac_try='test -z "$ac_cxx_werror_flag"
17906			 || test ! -s conftest.err'
17907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908  (eval $ac_try) 2>&5
17909  ac_status=$?
17910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911  (exit $ac_status); }; } &&
17912	 { ac_try='test -s conftest.$ac_objext'
17913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914  (eval $ac_try) 2>&5
17915  ac_status=$?
17916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917  (exit $ac_status); }; }; then
17918  ac_lo=$ac_mid; break
17919else
17920  echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923ac_hi=`expr '(' $ac_mid ')' - 1`
17924		       if test $ac_mid -le $ac_hi; then
17925			 ac_lo= ac_hi=
17926			 break
17927		       fi
17928		       ac_mid=`expr 2 '*' $ac_mid`
17929fi
17930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17931  done
17932else
17933  echo "$as_me: failed program was:" >&5
17934sed 's/^/| /' conftest.$ac_ext >&5
17935
17936ac_lo= ac_hi=
17937fi
17938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17939fi
17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17941# Binary search between lo and hi bounds.
17942while test "x$ac_lo" != "x$ac_hi"; do
17943  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17944  cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h.  */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h.  */
17950$ac_includes_default
17951int
17952main ()
17953{
17954static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int32))) <= $ac_mid)];
17955test_array [0] = 0
17956
17957  ;
17958  return 0;
17959}
17960_ACEOF
17961rm -f conftest.$ac_objext
17962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17963  (eval $ac_compile) 2>conftest.er1
17964  ac_status=$?
17965  grep -v '^ *+' conftest.er1 >conftest.err
17966  rm -f conftest.er1
17967  cat conftest.err >&5
17968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969  (exit $ac_status); } &&
17970	 { ac_try='test -z "$ac_cxx_werror_flag"
17971			 || test ! -s conftest.err'
17972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973  (eval $ac_try) 2>&5
17974  ac_status=$?
17975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976  (exit $ac_status); }; } &&
17977	 { ac_try='test -s conftest.$ac_objext'
17978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979  (eval $ac_try) 2>&5
17980  ac_status=$?
17981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982  (exit $ac_status); }; }; then
17983  ac_hi=$ac_mid
17984else
17985  echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988ac_lo=`expr '(' $ac_mid ')' + 1`
17989fi
17990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17991done
17992case $ac_lo in
17993?*) ac_cv_sizeof_unsigned___int32=$ac_lo;;
17994'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int32), 77
17995See \`config.log' for more details." >&5
17996echo "$as_me: error: cannot compute sizeof (unsigned __int32), 77
17997See \`config.log' for more details." >&2;}
17998   { (exit 1); exit 1; }; } ;;
17999esac
18000else
18001  if test "$cross_compiling" = yes; then
18002  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18003See \`config.log' for more details." >&5
18004echo "$as_me: error: cannot run test program while cross compiling
18005See \`config.log' for more details." >&2;}
18006   { (exit 1); exit 1; }; }
18007else
18008  cat >conftest.$ac_ext <<_ACEOF
18009/* confdefs.h.  */
18010_ACEOF
18011cat confdefs.h >>conftest.$ac_ext
18012cat >>conftest.$ac_ext <<_ACEOF
18013/* end confdefs.h.  */
18014$ac_includes_default
18015long longval () { return (long) (sizeof (unsigned __int32)); }
18016unsigned long ulongval () { return (long) (sizeof (unsigned __int32)); }
18017#include <stdio.h>
18018#include <stdlib.h>
18019int
18020main ()
18021{
18022
18023  FILE *f = fopen ("conftest.val", "w");
18024  if (! f)
18025    exit (1);
18026  if (((long) (sizeof (unsigned __int32))) < 0)
18027    {
18028      long i = longval ();
18029      if (i != ((long) (sizeof (unsigned __int32))))
18030	exit (1);
18031      fprintf (f, "%ld\n", i);
18032    }
18033  else
18034    {
18035      unsigned long i = ulongval ();
18036      if (i != ((long) (sizeof (unsigned __int32))))
18037	exit (1);
18038      fprintf (f, "%lu\n", i);
18039    }
18040  exit (ferror (f) || fclose (f) != 0);
18041
18042  ;
18043  return 0;
18044}
18045_ACEOF
18046rm -f conftest$ac_exeext
18047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18048  (eval $ac_link) 2>&5
18049  ac_status=$?
18050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053  (eval $ac_try) 2>&5
18054  ac_status=$?
18055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056  (exit $ac_status); }; }; then
18057  ac_cv_sizeof_unsigned___int32=`cat conftest.val`
18058else
18059  echo "$as_me: program exited with status $ac_status" >&5
18060echo "$as_me: failed program was:" >&5
18061sed 's/^/| /' conftest.$ac_ext >&5
18062
18063( exit $ac_status )
18064{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int32), 77
18065See \`config.log' for more details." >&5
18066echo "$as_me: error: cannot compute sizeof (unsigned __int32), 77
18067See \`config.log' for more details." >&2;}
18068   { (exit 1); exit 1; }; }
18069fi
18070rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18071fi
18072fi
18073rm -f conftest.val
18074else
18075  ac_cv_sizeof_unsigned___int32=0
18076fi
18077fi
18078echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned___int32" >&5
18079echo "${ECHO_T}$ac_cv_sizeof_unsigned___int32" >&6
18080cat >>confdefs.h <<_ACEOF
18081#define SIZEOF_UNSIGNED___INT32 $ac_cv_sizeof_unsigned___int32
18082_ACEOF
18083
18084
18085  if test "$ac_cv_sizeof_unsigned___int32" -eq 4; then
18086    uint32_t="unsigned __int32"
18087    return
18088  fi
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099    :
18100  }
18101  find_uint32_t
18102
18103cat >>confdefs.h <<_ACEOF
18104#define uint32_t $uint32_t
18105_ACEOF
18106
18107
18108fi
18109
18110
18111
18112
18113echo "$as_me:$LINENO: checking for int64_t" >&5
18114echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
18115if test "${ac_cv_type_int64_t+set}" = set; then
18116  echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118  cat >conftest.$ac_ext <<_ACEOF
18119/* confdefs.h.  */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h.  */
18124$ac_includes_default
18125int
18126main ()
18127{
18128if ((int64_t *) 0)
18129  return 0;
18130if (sizeof (int64_t))
18131  return 0;
18132  ;
18133  return 0;
18134}
18135_ACEOF
18136rm -f conftest.$ac_objext
18137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18138  (eval $ac_compile) 2>conftest.er1
18139  ac_status=$?
18140  grep -v '^ *+' conftest.er1 >conftest.err
18141  rm -f conftest.er1
18142  cat conftest.err >&5
18143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144  (exit $ac_status); } &&
18145	 { ac_try='test -z "$ac_cxx_werror_flag"
18146			 || test ! -s conftest.err'
18147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148  (eval $ac_try) 2>&5
18149  ac_status=$?
18150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151  (exit $ac_status); }; } &&
18152	 { ac_try='test -s conftest.$ac_objext'
18153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154  (eval $ac_try) 2>&5
18155  ac_status=$?
18156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157  (exit $ac_status); }; }; then
18158  ac_cv_type_int64_t=yes
18159else
18160  echo "$as_me: failed program was:" >&5
18161sed 's/^/| /' conftest.$ac_ext >&5
18162
18163ac_cv_type_int64_t=no
18164fi
18165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18166fi
18167echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
18168echo "${ECHO_T}$ac_cv_type_int64_t" >&6
18169if test $ac_cv_type_int64_t = yes; then
18170  :
18171else
18172
18173  { echo "$as_me:$LINENO: trying to find a suitable 8-byte replacement for int64_t" >&5
18174echo "$as_me: trying to find a suitable 8-byte replacement for int64_t" >&6;}
18175  int64_t=no
18176  find_int64_t ()
18177  {
18178
18179
18180  echo "$as_me:$LINENO: checking for signed long" >&5
18181echo $ECHO_N "checking for signed long... $ECHO_C" >&6
18182if test "${ac_cv_type_signed_long+set}" = set; then
18183  echo $ECHO_N "(cached) $ECHO_C" >&6
18184else
18185  cat >conftest.$ac_ext <<_ACEOF
18186/* confdefs.h.  */
18187_ACEOF
18188cat confdefs.h >>conftest.$ac_ext
18189cat >>conftest.$ac_ext <<_ACEOF
18190/* end confdefs.h.  */
18191$ac_includes_default
18192int
18193main ()
18194{
18195if ((signed long *) 0)
18196  return 0;
18197if (sizeof (signed long))
18198  return 0;
18199  ;
18200  return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext
18204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205  (eval $ac_compile) 2>conftest.er1
18206  ac_status=$?
18207  grep -v '^ *+' conftest.er1 >conftest.err
18208  rm -f conftest.er1
18209  cat conftest.err >&5
18210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211  (exit $ac_status); } &&
18212	 { ac_try='test -z "$ac_cxx_werror_flag"
18213			 || test ! -s conftest.err'
18214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215  (eval $ac_try) 2>&5
18216  ac_status=$?
18217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218  (exit $ac_status); }; } &&
18219	 { ac_try='test -s conftest.$ac_objext'
18220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221  (eval $ac_try) 2>&5
18222  ac_status=$?
18223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224  (exit $ac_status); }; }; then
18225  ac_cv_type_signed_long=yes
18226else
18227  echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230ac_cv_type_signed_long=no
18231fi
18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18233fi
18234echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
18235echo "${ECHO_T}$ac_cv_type_signed_long" >&6
18236
18237echo "$as_me:$LINENO: checking size of signed long" >&5
18238echo $ECHO_N "checking size of signed long... $ECHO_C" >&6
18239if test "${ac_cv_sizeof_signed_long+set}" = set; then
18240  echo $ECHO_N "(cached) $ECHO_C" >&6
18241else
18242  if test "$ac_cv_type_signed_long" = yes; then
18243  # The cast to unsigned long works around a bug in the HP C Compiler
18244  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18245  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18246  # This bug is HP SR number 8606223364.
18247  if test "$cross_compiling" = yes; then
18248  # Depending upon the size, compute the lo and hi bounds.
18249cat >conftest.$ac_ext <<_ACEOF
18250/* confdefs.h.  */
18251_ACEOF
18252cat confdefs.h >>conftest.$ac_ext
18253cat >>conftest.$ac_ext <<_ACEOF
18254/* end confdefs.h.  */
18255$ac_includes_default
18256int
18257main ()
18258{
18259static int test_array [1 - 2 * !(((long) (sizeof (signed long))) >= 0)];
18260test_array [0] = 0
18261
18262  ;
18263  return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext
18267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268  (eval $ac_compile) 2>conftest.er1
18269  ac_status=$?
18270  grep -v '^ *+' conftest.er1 >conftest.err
18271  rm -f conftest.er1
18272  cat conftest.err >&5
18273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274  (exit $ac_status); } &&
18275	 { ac_try='test -z "$ac_cxx_werror_flag"
18276			 || test ! -s conftest.err'
18277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278  (eval $ac_try) 2>&5
18279  ac_status=$?
18280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281  (exit $ac_status); }; } &&
18282	 { ac_try='test -s conftest.$ac_objext'
18283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284  (eval $ac_try) 2>&5
18285  ac_status=$?
18286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287  (exit $ac_status); }; }; then
18288  ac_lo=0 ac_mid=0
18289  while :; do
18290    cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h.  */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h.  */
18296$ac_includes_default
18297int
18298main ()
18299{
18300static int test_array [1 - 2 * !(((long) (sizeof (signed long))) <= $ac_mid)];
18301test_array [0] = 0
18302
18303  ;
18304  return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18309  (eval $ac_compile) 2>conftest.er1
18310  ac_status=$?
18311  grep -v '^ *+' conftest.er1 >conftest.err
18312  rm -f conftest.er1
18313  cat conftest.err >&5
18314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315  (exit $ac_status); } &&
18316	 { ac_try='test -z "$ac_cxx_werror_flag"
18317			 || test ! -s conftest.err'
18318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319  (eval $ac_try) 2>&5
18320  ac_status=$?
18321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322  (exit $ac_status); }; } &&
18323	 { ac_try='test -s conftest.$ac_objext'
18324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325  (eval $ac_try) 2>&5
18326  ac_status=$?
18327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328  (exit $ac_status); }; }; then
18329  ac_hi=$ac_mid; break
18330else
18331  echo "$as_me: failed program was:" >&5
18332sed 's/^/| /' conftest.$ac_ext >&5
18333
18334ac_lo=`expr $ac_mid + 1`
18335		    if test $ac_lo -le $ac_mid; then
18336		      ac_lo= ac_hi=
18337		      break
18338		    fi
18339		    ac_mid=`expr 2 '*' $ac_mid + 1`
18340fi
18341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18342  done
18343else
18344  echo "$as_me: failed program was:" >&5
18345sed 's/^/| /' conftest.$ac_ext >&5
18346
18347cat >conftest.$ac_ext <<_ACEOF
18348/* confdefs.h.  */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h.  */
18353$ac_includes_default
18354int
18355main ()
18356{
18357static int test_array [1 - 2 * !(((long) (sizeof (signed long))) < 0)];
18358test_array [0] = 0
18359
18360  ;
18361  return 0;
18362}
18363_ACEOF
18364rm -f conftest.$ac_objext
18365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18366  (eval $ac_compile) 2>conftest.er1
18367  ac_status=$?
18368  grep -v '^ *+' conftest.er1 >conftest.err
18369  rm -f conftest.er1
18370  cat conftest.err >&5
18371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372  (exit $ac_status); } &&
18373	 { ac_try='test -z "$ac_cxx_werror_flag"
18374			 || test ! -s conftest.err'
18375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376  (eval $ac_try) 2>&5
18377  ac_status=$?
18378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379  (exit $ac_status); }; } &&
18380	 { ac_try='test -s conftest.$ac_objext'
18381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382  (eval $ac_try) 2>&5
18383  ac_status=$?
18384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385  (exit $ac_status); }; }; then
18386  ac_hi=-1 ac_mid=-1
18387  while :; do
18388    cat >conftest.$ac_ext <<_ACEOF
18389/* confdefs.h.  */
18390_ACEOF
18391cat confdefs.h >>conftest.$ac_ext
18392cat >>conftest.$ac_ext <<_ACEOF
18393/* end confdefs.h.  */
18394$ac_includes_default
18395int
18396main ()
18397{
18398static int test_array [1 - 2 * !(((long) (sizeof (signed long))) >= $ac_mid)];
18399test_array [0] = 0
18400
18401  ;
18402  return 0;
18403}
18404_ACEOF
18405rm -f conftest.$ac_objext
18406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18407  (eval $ac_compile) 2>conftest.er1
18408  ac_status=$?
18409  grep -v '^ *+' conftest.er1 >conftest.err
18410  rm -f conftest.er1
18411  cat conftest.err >&5
18412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413  (exit $ac_status); } &&
18414	 { ac_try='test -z "$ac_cxx_werror_flag"
18415			 || test ! -s conftest.err'
18416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417  (eval $ac_try) 2>&5
18418  ac_status=$?
18419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420  (exit $ac_status); }; } &&
18421	 { ac_try='test -s conftest.$ac_objext'
18422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423  (eval $ac_try) 2>&5
18424  ac_status=$?
18425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426  (exit $ac_status); }; }; then
18427  ac_lo=$ac_mid; break
18428else
18429  echo "$as_me: failed program was:" >&5
18430sed 's/^/| /' conftest.$ac_ext >&5
18431
18432ac_hi=`expr '(' $ac_mid ')' - 1`
18433		       if test $ac_mid -le $ac_hi; then
18434			 ac_lo= ac_hi=
18435			 break
18436		       fi
18437		       ac_mid=`expr 2 '*' $ac_mid`
18438fi
18439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18440  done
18441else
18442  echo "$as_me: failed program was:" >&5
18443sed 's/^/| /' conftest.$ac_ext >&5
18444
18445ac_lo= ac_hi=
18446fi
18447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18448fi
18449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18450# Binary search between lo and hi bounds.
18451while test "x$ac_lo" != "x$ac_hi"; do
18452  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18453  cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h.  */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h.  */
18459$ac_includes_default
18460int
18461main ()
18462{
18463static int test_array [1 - 2 * !(((long) (sizeof (signed long))) <= $ac_mid)];
18464test_array [0] = 0
18465
18466  ;
18467  return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472  (eval $ac_compile) 2>conftest.er1
18473  ac_status=$?
18474  grep -v '^ *+' conftest.er1 >conftest.err
18475  rm -f conftest.er1
18476  cat conftest.err >&5
18477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478  (exit $ac_status); } &&
18479	 { ac_try='test -z "$ac_cxx_werror_flag"
18480			 || test ! -s conftest.err'
18481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482  (eval $ac_try) 2>&5
18483  ac_status=$?
18484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485  (exit $ac_status); }; } &&
18486	 { ac_try='test -s conftest.$ac_objext'
18487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488  (eval $ac_try) 2>&5
18489  ac_status=$?
18490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491  (exit $ac_status); }; }; then
18492  ac_hi=$ac_mid
18493else
18494  echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497ac_lo=`expr '(' $ac_mid ')' + 1`
18498fi
18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18500done
18501case $ac_lo in
18502?*) ac_cv_sizeof_signed_long=$ac_lo;;
18503'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long), 77
18504See \`config.log' for more details." >&5
18505echo "$as_me: error: cannot compute sizeof (signed long), 77
18506See \`config.log' for more details." >&2;}
18507   { (exit 1); exit 1; }; } ;;
18508esac
18509else
18510  if test "$cross_compiling" = yes; then
18511  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18512See \`config.log' for more details." >&5
18513echo "$as_me: error: cannot run test program while cross compiling
18514See \`config.log' for more details." >&2;}
18515   { (exit 1); exit 1; }; }
18516else
18517  cat >conftest.$ac_ext <<_ACEOF
18518/* confdefs.h.  */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h.  */
18523$ac_includes_default
18524long longval () { return (long) (sizeof (signed long)); }
18525unsigned long ulongval () { return (long) (sizeof (signed long)); }
18526#include <stdio.h>
18527#include <stdlib.h>
18528int
18529main ()
18530{
18531
18532  FILE *f = fopen ("conftest.val", "w");
18533  if (! f)
18534    exit (1);
18535  if (((long) (sizeof (signed long))) < 0)
18536    {
18537      long i = longval ();
18538      if (i != ((long) (sizeof (signed long))))
18539	exit (1);
18540      fprintf (f, "%ld\n", i);
18541    }
18542  else
18543    {
18544      unsigned long i = ulongval ();
18545      if (i != ((long) (sizeof (signed long))))
18546	exit (1);
18547      fprintf (f, "%lu\n", i);
18548    }
18549  exit (ferror (f) || fclose (f) != 0);
18550
18551  ;
18552  return 0;
18553}
18554_ACEOF
18555rm -f conftest$ac_exeext
18556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18557  (eval $ac_link) 2>&5
18558  ac_status=$?
18559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562  (eval $ac_try) 2>&5
18563  ac_status=$?
18564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565  (exit $ac_status); }; }; then
18566  ac_cv_sizeof_signed_long=`cat conftest.val`
18567else
18568  echo "$as_me: program exited with status $ac_status" >&5
18569echo "$as_me: failed program was:" >&5
18570sed 's/^/| /' conftest.$ac_ext >&5
18571
18572( exit $ac_status )
18573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long), 77
18574See \`config.log' for more details." >&5
18575echo "$as_me: error: cannot compute sizeof (signed long), 77
18576See \`config.log' for more details." >&2;}
18577   { (exit 1); exit 1; }; }
18578fi
18579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18580fi
18581fi
18582rm -f conftest.val
18583else
18584  ac_cv_sizeof_signed_long=0
18585fi
18586fi
18587echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
18588echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6
18589cat >>confdefs.h <<_ACEOF
18590#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
18591_ACEOF
18592
18593
18594  if test "$ac_cv_sizeof_signed_long" -eq 8; then
18595    int64_t="signed long"
18596    return
18597  fi
18598
18599
18600  echo "$as_me:$LINENO: checking for signed long long" >&5
18601echo $ECHO_N "checking for signed long long... $ECHO_C" >&6
18602if test "${ac_cv_type_signed_long_long+set}" = set; then
18603  echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605  cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h.  */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h.  */
18611$ac_includes_default
18612int
18613main ()
18614{
18615if ((signed long long *) 0)
18616  return 0;
18617if (sizeof (signed long long))
18618  return 0;
18619  ;
18620  return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext
18624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18625  (eval $ac_compile) 2>conftest.er1
18626  ac_status=$?
18627  grep -v '^ *+' conftest.er1 >conftest.err
18628  rm -f conftest.er1
18629  cat conftest.err >&5
18630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631  (exit $ac_status); } &&
18632	 { ac_try='test -z "$ac_cxx_werror_flag"
18633			 || test ! -s conftest.err'
18634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635  (eval $ac_try) 2>&5
18636  ac_status=$?
18637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638  (exit $ac_status); }; } &&
18639	 { ac_try='test -s conftest.$ac_objext'
18640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641  (eval $ac_try) 2>&5
18642  ac_status=$?
18643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644  (exit $ac_status); }; }; then
18645  ac_cv_type_signed_long_long=yes
18646else
18647  echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650ac_cv_type_signed_long_long=no
18651fi
18652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18653fi
18654echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
18655echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6
18656
18657echo "$as_me:$LINENO: checking size of signed long long" >&5
18658echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6
18659if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
18660  echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662  if test "$ac_cv_type_signed_long_long" = yes; then
18663  # The cast to unsigned long works around a bug in the HP C Compiler
18664  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18665  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18666  # This bug is HP SR number 8606223364.
18667  if test "$cross_compiling" = yes; then
18668  # Depending upon the size, compute the lo and hi bounds.
18669cat >conftest.$ac_ext <<_ACEOF
18670/* confdefs.h.  */
18671_ACEOF
18672cat confdefs.h >>conftest.$ac_ext
18673cat >>conftest.$ac_ext <<_ACEOF
18674/* end confdefs.h.  */
18675$ac_includes_default
18676int
18677main ()
18678{
18679static int test_array [1 - 2 * !(((long) (sizeof (signed long long))) >= 0)];
18680test_array [0] = 0
18681
18682  ;
18683  return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext
18687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18688  (eval $ac_compile) 2>conftest.er1
18689  ac_status=$?
18690  grep -v '^ *+' conftest.er1 >conftest.err
18691  rm -f conftest.er1
18692  cat conftest.err >&5
18693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694  (exit $ac_status); } &&
18695	 { ac_try='test -z "$ac_cxx_werror_flag"
18696			 || test ! -s conftest.err'
18697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698  (eval $ac_try) 2>&5
18699  ac_status=$?
18700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701  (exit $ac_status); }; } &&
18702	 { ac_try='test -s conftest.$ac_objext'
18703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704  (eval $ac_try) 2>&5
18705  ac_status=$?
18706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707  (exit $ac_status); }; }; then
18708  ac_lo=0 ac_mid=0
18709  while :; do
18710    cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h.  */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h.  */
18716$ac_includes_default
18717int
18718main ()
18719{
18720static int test_array [1 - 2 * !(((long) (sizeof (signed long long))) <= $ac_mid)];
18721test_array [0] = 0
18722
18723  ;
18724  return 0;
18725}
18726_ACEOF
18727rm -f conftest.$ac_objext
18728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18729  (eval $ac_compile) 2>conftest.er1
18730  ac_status=$?
18731  grep -v '^ *+' conftest.er1 >conftest.err
18732  rm -f conftest.er1
18733  cat conftest.err >&5
18734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735  (exit $ac_status); } &&
18736	 { ac_try='test -z "$ac_cxx_werror_flag"
18737			 || test ! -s conftest.err'
18738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739  (eval $ac_try) 2>&5
18740  ac_status=$?
18741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742  (exit $ac_status); }; } &&
18743	 { ac_try='test -s conftest.$ac_objext'
18744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745  (eval $ac_try) 2>&5
18746  ac_status=$?
18747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748  (exit $ac_status); }; }; then
18749  ac_hi=$ac_mid; break
18750else
18751  echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754ac_lo=`expr $ac_mid + 1`
18755		    if test $ac_lo -le $ac_mid; then
18756		      ac_lo= ac_hi=
18757		      break
18758		    fi
18759		    ac_mid=`expr 2 '*' $ac_mid + 1`
18760fi
18761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18762  done
18763else
18764  echo "$as_me: failed program was:" >&5
18765sed 's/^/| /' conftest.$ac_ext >&5
18766
18767cat >conftest.$ac_ext <<_ACEOF
18768/* confdefs.h.  */
18769_ACEOF
18770cat confdefs.h >>conftest.$ac_ext
18771cat >>conftest.$ac_ext <<_ACEOF
18772/* end confdefs.h.  */
18773$ac_includes_default
18774int
18775main ()
18776{
18777static int test_array [1 - 2 * !(((long) (sizeof (signed long long))) < 0)];
18778test_array [0] = 0
18779
18780  ;
18781  return 0;
18782}
18783_ACEOF
18784rm -f conftest.$ac_objext
18785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18786  (eval $ac_compile) 2>conftest.er1
18787  ac_status=$?
18788  grep -v '^ *+' conftest.er1 >conftest.err
18789  rm -f conftest.er1
18790  cat conftest.err >&5
18791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792  (exit $ac_status); } &&
18793	 { ac_try='test -z "$ac_cxx_werror_flag"
18794			 || test ! -s conftest.err'
18795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796  (eval $ac_try) 2>&5
18797  ac_status=$?
18798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799  (exit $ac_status); }; } &&
18800	 { ac_try='test -s conftest.$ac_objext'
18801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802  (eval $ac_try) 2>&5
18803  ac_status=$?
18804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805  (exit $ac_status); }; }; then
18806  ac_hi=-1 ac_mid=-1
18807  while :; do
18808    cat >conftest.$ac_ext <<_ACEOF
18809/* confdefs.h.  */
18810_ACEOF
18811cat confdefs.h >>conftest.$ac_ext
18812cat >>conftest.$ac_ext <<_ACEOF
18813/* end confdefs.h.  */
18814$ac_includes_default
18815int
18816main ()
18817{
18818static int test_array [1 - 2 * !(((long) (sizeof (signed long long))) >= $ac_mid)];
18819test_array [0] = 0
18820
18821  ;
18822  return 0;
18823}
18824_ACEOF
18825rm -f conftest.$ac_objext
18826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827  (eval $ac_compile) 2>conftest.er1
18828  ac_status=$?
18829  grep -v '^ *+' conftest.er1 >conftest.err
18830  rm -f conftest.er1
18831  cat conftest.err >&5
18832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833  (exit $ac_status); } &&
18834	 { ac_try='test -z "$ac_cxx_werror_flag"
18835			 || test ! -s conftest.err'
18836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837  (eval $ac_try) 2>&5
18838  ac_status=$?
18839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840  (exit $ac_status); }; } &&
18841	 { ac_try='test -s conftest.$ac_objext'
18842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843  (eval $ac_try) 2>&5
18844  ac_status=$?
18845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846  (exit $ac_status); }; }; then
18847  ac_lo=$ac_mid; break
18848else
18849  echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
18852ac_hi=`expr '(' $ac_mid ')' - 1`
18853		       if test $ac_mid -le $ac_hi; then
18854			 ac_lo= ac_hi=
18855			 break
18856		       fi
18857		       ac_mid=`expr 2 '*' $ac_mid`
18858fi
18859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18860  done
18861else
18862  echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865ac_lo= ac_hi=
18866fi
18867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18868fi
18869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18870# Binary search between lo and hi bounds.
18871while test "x$ac_lo" != "x$ac_hi"; do
18872  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18873  cat >conftest.$ac_ext <<_ACEOF
18874/* confdefs.h.  */
18875_ACEOF
18876cat confdefs.h >>conftest.$ac_ext
18877cat >>conftest.$ac_ext <<_ACEOF
18878/* end confdefs.h.  */
18879$ac_includes_default
18880int
18881main ()
18882{
18883static int test_array [1 - 2 * !(((long) (sizeof (signed long long))) <= $ac_mid)];
18884test_array [0] = 0
18885
18886  ;
18887  return 0;
18888}
18889_ACEOF
18890rm -f conftest.$ac_objext
18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892  (eval $ac_compile) 2>conftest.er1
18893  ac_status=$?
18894  grep -v '^ *+' conftest.er1 >conftest.err
18895  rm -f conftest.er1
18896  cat conftest.err >&5
18897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898  (exit $ac_status); } &&
18899	 { ac_try='test -z "$ac_cxx_werror_flag"
18900			 || test ! -s conftest.err'
18901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902  (eval $ac_try) 2>&5
18903  ac_status=$?
18904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905  (exit $ac_status); }; } &&
18906	 { ac_try='test -s conftest.$ac_objext'
18907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908  (eval $ac_try) 2>&5
18909  ac_status=$?
18910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911  (exit $ac_status); }; }; then
18912  ac_hi=$ac_mid
18913else
18914  echo "$as_me: failed program was:" >&5
18915sed 's/^/| /' conftest.$ac_ext >&5
18916
18917ac_lo=`expr '(' $ac_mid ')' + 1`
18918fi
18919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18920done
18921case $ac_lo in
18922?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
18923'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long), 77
18924See \`config.log' for more details." >&5
18925echo "$as_me: error: cannot compute sizeof (signed long long), 77
18926See \`config.log' for more details." >&2;}
18927   { (exit 1); exit 1; }; } ;;
18928esac
18929else
18930  if test "$cross_compiling" = yes; then
18931  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18932See \`config.log' for more details." >&5
18933echo "$as_me: error: cannot run test program while cross compiling
18934See \`config.log' for more details." >&2;}
18935   { (exit 1); exit 1; }; }
18936else
18937  cat >conftest.$ac_ext <<_ACEOF
18938/* confdefs.h.  */
18939_ACEOF
18940cat confdefs.h >>conftest.$ac_ext
18941cat >>conftest.$ac_ext <<_ACEOF
18942/* end confdefs.h.  */
18943$ac_includes_default
18944long longval () { return (long) (sizeof (signed long long)); }
18945unsigned long ulongval () { return (long) (sizeof (signed long long)); }
18946#include <stdio.h>
18947#include <stdlib.h>
18948int
18949main ()
18950{
18951
18952  FILE *f = fopen ("conftest.val", "w");
18953  if (! f)
18954    exit (1);
18955  if (((long) (sizeof (signed long long))) < 0)
18956    {
18957      long i = longval ();
18958      if (i != ((long) (sizeof (signed long long))))
18959	exit (1);
18960      fprintf (f, "%ld\n", i);
18961    }
18962  else
18963    {
18964      unsigned long i = ulongval ();
18965      if (i != ((long) (sizeof (signed long long))))
18966	exit (1);
18967      fprintf (f, "%lu\n", i);
18968    }
18969  exit (ferror (f) || fclose (f) != 0);
18970
18971  ;
18972  return 0;
18973}
18974_ACEOF
18975rm -f conftest$ac_exeext
18976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18977  (eval $ac_link) 2>&5
18978  ac_status=$?
18979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982  (eval $ac_try) 2>&5
18983  ac_status=$?
18984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985  (exit $ac_status); }; }; then
18986  ac_cv_sizeof_signed_long_long=`cat conftest.val`
18987else
18988  echo "$as_me: program exited with status $ac_status" >&5
18989echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992( exit $ac_status )
18993{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long), 77
18994See \`config.log' for more details." >&5
18995echo "$as_me: error: cannot compute sizeof (signed long long), 77
18996See \`config.log' for more details." >&2;}
18997   { (exit 1); exit 1; }; }
18998fi
18999rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19000fi
19001fi
19002rm -f conftest.val
19003else
19004  ac_cv_sizeof_signed_long_long=0
19005fi
19006fi
19007echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
19008echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6
19009cat >>confdefs.h <<_ACEOF
19010#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
19011_ACEOF
19012
19013
19014  if test "$ac_cv_sizeof_signed_long_long" -eq 8; then
19015    int64_t="signed long long"
19016    return
19017  fi
19018
19019
19020  echo "$as_me:$LINENO: checking for __int64" >&5
19021echo $ECHO_N "checking for __int64... $ECHO_C" >&6
19022if test "${ac_cv_type___int64+set}" = set; then
19023  echo $ECHO_N "(cached) $ECHO_C" >&6
19024else
19025  cat >conftest.$ac_ext <<_ACEOF
19026/* confdefs.h.  */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
19030/* end confdefs.h.  */
19031$ac_includes_default
19032int
19033main ()
19034{
19035if ((__int64 *) 0)
19036  return 0;
19037if (sizeof (__int64))
19038  return 0;
19039  ;
19040  return 0;
19041}
19042_ACEOF
19043rm -f conftest.$ac_objext
19044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19045  (eval $ac_compile) 2>conftest.er1
19046  ac_status=$?
19047  grep -v '^ *+' conftest.er1 >conftest.err
19048  rm -f conftest.er1
19049  cat conftest.err >&5
19050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051  (exit $ac_status); } &&
19052	 { ac_try='test -z "$ac_cxx_werror_flag"
19053			 || test ! -s conftest.err'
19054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055  (eval $ac_try) 2>&5
19056  ac_status=$?
19057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058  (exit $ac_status); }; } &&
19059	 { ac_try='test -s conftest.$ac_objext'
19060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061  (eval $ac_try) 2>&5
19062  ac_status=$?
19063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064  (exit $ac_status); }; }; then
19065  ac_cv_type___int64=yes
19066else
19067  echo "$as_me: failed program was:" >&5
19068sed 's/^/| /' conftest.$ac_ext >&5
19069
19070ac_cv_type___int64=no
19071fi
19072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19073fi
19074echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
19075echo "${ECHO_T}$ac_cv_type___int64" >&6
19076
19077echo "$as_me:$LINENO: checking size of __int64" >&5
19078echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
19079if test "${ac_cv_sizeof___int64+set}" = set; then
19080  echo $ECHO_N "(cached) $ECHO_C" >&6
19081else
19082  if test "$ac_cv_type___int64" = yes; then
19083  # The cast to unsigned long works around a bug in the HP C Compiler
19084  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19085  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19086  # This bug is HP SR number 8606223364.
19087  if test "$cross_compiling" = yes; then
19088  # Depending upon the size, compute the lo and hi bounds.
19089cat >conftest.$ac_ext <<_ACEOF
19090/* confdefs.h.  */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h.  */
19095$ac_includes_default
19096int
19097main ()
19098{
19099static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
19100test_array [0] = 0
19101
19102  ;
19103  return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
19107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108  (eval $ac_compile) 2>conftest.er1
19109  ac_status=$?
19110  grep -v '^ *+' conftest.er1 >conftest.err
19111  rm -f conftest.er1
19112  cat conftest.err >&5
19113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114  (exit $ac_status); } &&
19115	 { ac_try='test -z "$ac_cxx_werror_flag"
19116			 || test ! -s conftest.err'
19117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118  (eval $ac_try) 2>&5
19119  ac_status=$?
19120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121  (exit $ac_status); }; } &&
19122	 { ac_try='test -s conftest.$ac_objext'
19123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124  (eval $ac_try) 2>&5
19125  ac_status=$?
19126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127  (exit $ac_status); }; }; then
19128  ac_lo=0 ac_mid=0
19129  while :; do
19130    cat >conftest.$ac_ext <<_ACEOF
19131/* confdefs.h.  */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h.  */
19136$ac_includes_default
19137int
19138main ()
19139{
19140static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
19141test_array [0] = 0
19142
19143  ;
19144  return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext
19148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149  (eval $ac_compile) 2>conftest.er1
19150  ac_status=$?
19151  grep -v '^ *+' conftest.er1 >conftest.err
19152  rm -f conftest.er1
19153  cat conftest.err >&5
19154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155  (exit $ac_status); } &&
19156	 { ac_try='test -z "$ac_cxx_werror_flag"
19157			 || test ! -s conftest.err'
19158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159  (eval $ac_try) 2>&5
19160  ac_status=$?
19161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162  (exit $ac_status); }; } &&
19163	 { ac_try='test -s conftest.$ac_objext'
19164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165  (eval $ac_try) 2>&5
19166  ac_status=$?
19167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168  (exit $ac_status); }; }; then
19169  ac_hi=$ac_mid; break
19170else
19171  echo "$as_me: failed program was:" >&5
19172sed 's/^/| /' conftest.$ac_ext >&5
19173
19174ac_lo=`expr $ac_mid + 1`
19175		    if test $ac_lo -le $ac_mid; then
19176		      ac_lo= ac_hi=
19177		      break
19178		    fi
19179		    ac_mid=`expr 2 '*' $ac_mid + 1`
19180fi
19181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182  done
19183else
19184  echo "$as_me: failed program was:" >&5
19185sed 's/^/| /' conftest.$ac_ext >&5
19186
19187cat >conftest.$ac_ext <<_ACEOF
19188/* confdefs.h.  */
19189_ACEOF
19190cat confdefs.h >>conftest.$ac_ext
19191cat >>conftest.$ac_ext <<_ACEOF
19192/* end confdefs.h.  */
19193$ac_includes_default
19194int
19195main ()
19196{
19197static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
19198test_array [0] = 0
19199
19200  ;
19201  return 0;
19202}
19203_ACEOF
19204rm -f conftest.$ac_objext
19205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206  (eval $ac_compile) 2>conftest.er1
19207  ac_status=$?
19208  grep -v '^ *+' conftest.er1 >conftest.err
19209  rm -f conftest.er1
19210  cat conftest.err >&5
19211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212  (exit $ac_status); } &&
19213	 { ac_try='test -z "$ac_cxx_werror_flag"
19214			 || test ! -s conftest.err'
19215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216  (eval $ac_try) 2>&5
19217  ac_status=$?
19218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219  (exit $ac_status); }; } &&
19220	 { ac_try='test -s conftest.$ac_objext'
19221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222  (eval $ac_try) 2>&5
19223  ac_status=$?
19224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225  (exit $ac_status); }; }; then
19226  ac_hi=-1 ac_mid=-1
19227  while :; do
19228    cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h.  */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h.  */
19234$ac_includes_default
19235int
19236main ()
19237{
19238static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
19239test_array [0] = 0
19240
19241  ;
19242  return 0;
19243}
19244_ACEOF
19245rm -f conftest.$ac_objext
19246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247  (eval $ac_compile) 2>conftest.er1
19248  ac_status=$?
19249  grep -v '^ *+' conftest.er1 >conftest.err
19250  rm -f conftest.er1
19251  cat conftest.err >&5
19252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253  (exit $ac_status); } &&
19254	 { ac_try='test -z "$ac_cxx_werror_flag"
19255			 || test ! -s conftest.err'
19256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257  (eval $ac_try) 2>&5
19258  ac_status=$?
19259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260  (exit $ac_status); }; } &&
19261	 { ac_try='test -s conftest.$ac_objext'
19262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263  (eval $ac_try) 2>&5
19264  ac_status=$?
19265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266  (exit $ac_status); }; }; then
19267  ac_lo=$ac_mid; break
19268else
19269  echo "$as_me: failed program was:" >&5
19270sed 's/^/| /' conftest.$ac_ext >&5
19271
19272ac_hi=`expr '(' $ac_mid ')' - 1`
19273		       if test $ac_mid -le $ac_hi; then
19274			 ac_lo= ac_hi=
19275			 break
19276		       fi
19277		       ac_mid=`expr 2 '*' $ac_mid`
19278fi
19279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19280  done
19281else
19282  echo "$as_me: failed program was:" >&5
19283sed 's/^/| /' conftest.$ac_ext >&5
19284
19285ac_lo= ac_hi=
19286fi
19287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19288fi
19289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19290# Binary search between lo and hi bounds.
19291while test "x$ac_lo" != "x$ac_hi"; do
19292  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19293  cat >conftest.$ac_ext <<_ACEOF
19294/* confdefs.h.  */
19295_ACEOF
19296cat confdefs.h >>conftest.$ac_ext
19297cat >>conftest.$ac_ext <<_ACEOF
19298/* end confdefs.h.  */
19299$ac_includes_default
19300int
19301main ()
19302{
19303static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
19304test_array [0] = 0
19305
19306  ;
19307  return 0;
19308}
19309_ACEOF
19310rm -f conftest.$ac_objext
19311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312  (eval $ac_compile) 2>conftest.er1
19313  ac_status=$?
19314  grep -v '^ *+' conftest.er1 >conftest.err
19315  rm -f conftest.er1
19316  cat conftest.err >&5
19317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318  (exit $ac_status); } &&
19319	 { ac_try='test -z "$ac_cxx_werror_flag"
19320			 || test ! -s conftest.err'
19321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322  (eval $ac_try) 2>&5
19323  ac_status=$?
19324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325  (exit $ac_status); }; } &&
19326	 { ac_try='test -s conftest.$ac_objext'
19327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328  (eval $ac_try) 2>&5
19329  ac_status=$?
19330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331  (exit $ac_status); }; }; then
19332  ac_hi=$ac_mid
19333else
19334  echo "$as_me: failed program was:" >&5
19335sed 's/^/| /' conftest.$ac_ext >&5
19336
19337ac_lo=`expr '(' $ac_mid ')' + 1`
19338fi
19339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340done
19341case $ac_lo in
19342?*) ac_cv_sizeof___int64=$ac_lo;;
19343'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
19344See \`config.log' for more details." >&5
19345echo "$as_me: error: cannot compute sizeof (__int64), 77
19346See \`config.log' for more details." >&2;}
19347   { (exit 1); exit 1; }; } ;;
19348esac
19349else
19350  if test "$cross_compiling" = yes; then
19351  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19352See \`config.log' for more details." >&5
19353echo "$as_me: error: cannot run test program while cross compiling
19354See \`config.log' for more details." >&2;}
19355   { (exit 1); exit 1; }; }
19356else
19357  cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h.  */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h.  */
19363$ac_includes_default
19364long longval () { return (long) (sizeof (__int64)); }
19365unsigned long ulongval () { return (long) (sizeof (__int64)); }
19366#include <stdio.h>
19367#include <stdlib.h>
19368int
19369main ()
19370{
19371
19372  FILE *f = fopen ("conftest.val", "w");
19373  if (! f)
19374    exit (1);
19375  if (((long) (sizeof (__int64))) < 0)
19376    {
19377      long i = longval ();
19378      if (i != ((long) (sizeof (__int64))))
19379	exit (1);
19380      fprintf (f, "%ld\n", i);
19381    }
19382  else
19383    {
19384      unsigned long i = ulongval ();
19385      if (i != ((long) (sizeof (__int64))))
19386	exit (1);
19387      fprintf (f, "%lu\n", i);
19388    }
19389  exit (ferror (f) || fclose (f) != 0);
19390
19391  ;
19392  return 0;
19393}
19394_ACEOF
19395rm -f conftest$ac_exeext
19396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397  (eval $ac_link) 2>&5
19398  ac_status=$?
19399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402  (eval $ac_try) 2>&5
19403  ac_status=$?
19404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405  (exit $ac_status); }; }; then
19406  ac_cv_sizeof___int64=`cat conftest.val`
19407else
19408  echo "$as_me: program exited with status $ac_status" >&5
19409echo "$as_me: failed program was:" >&5
19410sed 's/^/| /' conftest.$ac_ext >&5
19411
19412( exit $ac_status )
19413{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
19414See \`config.log' for more details." >&5
19415echo "$as_me: error: cannot compute sizeof (__int64), 77
19416See \`config.log' for more details." >&2;}
19417   { (exit 1); exit 1; }; }
19418fi
19419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19420fi
19421fi
19422rm -f conftest.val
19423else
19424  ac_cv_sizeof___int64=0
19425fi
19426fi
19427echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
19428echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
19429cat >>confdefs.h <<_ACEOF
19430#define SIZEOF___INT64 $ac_cv_sizeof___int64
19431_ACEOF
19432
19433
19434  if test "$ac_cv_sizeof___int64" -eq 8; then
19435    int64_t="__int64"
19436    return
19437  fi
19438
19439
19440  echo "$as_me:$LINENO: checking for long long" >&5
19441echo $ECHO_N "checking for long long... $ECHO_C" >&6
19442if test "${ac_cv_type_long_long+set}" = set; then
19443  echo $ECHO_N "(cached) $ECHO_C" >&6
19444else
19445  cat >conftest.$ac_ext <<_ACEOF
19446/* confdefs.h.  */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h.  */
19451$ac_includes_default
19452int
19453main ()
19454{
19455if ((long long *) 0)
19456  return 0;
19457if (sizeof (long long))
19458  return 0;
19459  ;
19460  return 0;
19461}
19462_ACEOF
19463rm -f conftest.$ac_objext
19464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19465  (eval $ac_compile) 2>conftest.er1
19466  ac_status=$?
19467  grep -v '^ *+' conftest.er1 >conftest.err
19468  rm -f conftest.er1
19469  cat conftest.err >&5
19470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471  (exit $ac_status); } &&
19472	 { ac_try='test -z "$ac_cxx_werror_flag"
19473			 || test ! -s conftest.err'
19474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475  (eval $ac_try) 2>&5
19476  ac_status=$?
19477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478  (exit $ac_status); }; } &&
19479	 { ac_try='test -s conftest.$ac_objext'
19480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481  (eval $ac_try) 2>&5
19482  ac_status=$?
19483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484  (exit $ac_status); }; }; then
19485  ac_cv_type_long_long=yes
19486else
19487  echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
19490ac_cv_type_long_long=no
19491fi
19492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19493fi
19494echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19495echo "${ECHO_T}$ac_cv_type_long_long" >&6
19496
19497echo "$as_me:$LINENO: checking size of long long" >&5
19498echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19499if test "${ac_cv_sizeof_long_long+set}" = set; then
19500  echo $ECHO_N "(cached) $ECHO_C" >&6
19501else
19502  if test "$ac_cv_type_long_long" = yes; then
19503  # The cast to unsigned long works around a bug in the HP C Compiler
19504  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19505  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19506  # This bug is HP SR number 8606223364.
19507  if test "$cross_compiling" = yes; then
19508  # Depending upon the size, compute the lo and hi bounds.
19509cat >conftest.$ac_ext <<_ACEOF
19510/* confdefs.h.  */
19511_ACEOF
19512cat confdefs.h >>conftest.$ac_ext
19513cat >>conftest.$ac_ext <<_ACEOF
19514/* end confdefs.h.  */
19515$ac_includes_default
19516int
19517main ()
19518{
19519static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19520test_array [0] = 0
19521
19522  ;
19523  return 0;
19524}
19525_ACEOF
19526rm -f conftest.$ac_objext
19527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528  (eval $ac_compile) 2>conftest.er1
19529  ac_status=$?
19530  grep -v '^ *+' conftest.er1 >conftest.err
19531  rm -f conftest.er1
19532  cat conftest.err >&5
19533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534  (exit $ac_status); } &&
19535	 { ac_try='test -z "$ac_cxx_werror_flag"
19536			 || test ! -s conftest.err'
19537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538  (eval $ac_try) 2>&5
19539  ac_status=$?
19540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541  (exit $ac_status); }; } &&
19542	 { ac_try='test -s conftest.$ac_objext'
19543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544  (eval $ac_try) 2>&5
19545  ac_status=$?
19546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547  (exit $ac_status); }; }; then
19548  ac_lo=0 ac_mid=0
19549  while :; do
19550    cat >conftest.$ac_ext <<_ACEOF
19551/* confdefs.h.  */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h.  */
19556$ac_includes_default
19557int
19558main ()
19559{
19560static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19561test_array [0] = 0
19562
19563  ;
19564  return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569  (eval $ac_compile) 2>conftest.er1
19570  ac_status=$?
19571  grep -v '^ *+' conftest.er1 >conftest.err
19572  rm -f conftest.er1
19573  cat conftest.err >&5
19574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575  (exit $ac_status); } &&
19576	 { ac_try='test -z "$ac_cxx_werror_flag"
19577			 || test ! -s conftest.err'
19578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579  (eval $ac_try) 2>&5
19580  ac_status=$?
19581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582  (exit $ac_status); }; } &&
19583	 { ac_try='test -s conftest.$ac_objext'
19584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585  (eval $ac_try) 2>&5
19586  ac_status=$?
19587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588  (exit $ac_status); }; }; then
19589  ac_hi=$ac_mid; break
19590else
19591  echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594ac_lo=`expr $ac_mid + 1`
19595		    if test $ac_lo -le $ac_mid; then
19596		      ac_lo= ac_hi=
19597		      break
19598		    fi
19599		    ac_mid=`expr 2 '*' $ac_mid + 1`
19600fi
19601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19602  done
19603else
19604  echo "$as_me: failed program was:" >&5
19605sed 's/^/| /' conftest.$ac_ext >&5
19606
19607cat >conftest.$ac_ext <<_ACEOF
19608/* confdefs.h.  */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h.  */
19613$ac_includes_default
19614int
19615main ()
19616{
19617static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19618test_array [0] = 0
19619
19620  ;
19621  return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext
19625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626  (eval $ac_compile) 2>conftest.er1
19627  ac_status=$?
19628  grep -v '^ *+' conftest.er1 >conftest.err
19629  rm -f conftest.er1
19630  cat conftest.err >&5
19631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632  (exit $ac_status); } &&
19633	 { ac_try='test -z "$ac_cxx_werror_flag"
19634			 || test ! -s conftest.err'
19635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636  (eval $ac_try) 2>&5
19637  ac_status=$?
19638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639  (exit $ac_status); }; } &&
19640	 { ac_try='test -s conftest.$ac_objext'
19641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642  (eval $ac_try) 2>&5
19643  ac_status=$?
19644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645  (exit $ac_status); }; }; then
19646  ac_hi=-1 ac_mid=-1
19647  while :; do
19648    cat >conftest.$ac_ext <<_ACEOF
19649/* confdefs.h.  */
19650_ACEOF
19651cat confdefs.h >>conftest.$ac_ext
19652cat >>conftest.$ac_ext <<_ACEOF
19653/* end confdefs.h.  */
19654$ac_includes_default
19655int
19656main ()
19657{
19658static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19659test_array [0] = 0
19660
19661  ;
19662  return 0;
19663}
19664_ACEOF
19665rm -f conftest.$ac_objext
19666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667  (eval $ac_compile) 2>conftest.er1
19668  ac_status=$?
19669  grep -v '^ *+' conftest.er1 >conftest.err
19670  rm -f conftest.er1
19671  cat conftest.err >&5
19672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673  (exit $ac_status); } &&
19674	 { ac_try='test -z "$ac_cxx_werror_flag"
19675			 || test ! -s conftest.err'
19676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677  (eval $ac_try) 2>&5
19678  ac_status=$?
19679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); }; } &&
19681	 { ac_try='test -s conftest.$ac_objext'
19682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683  (eval $ac_try) 2>&5
19684  ac_status=$?
19685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686  (exit $ac_status); }; }; then
19687  ac_lo=$ac_mid; break
19688else
19689  echo "$as_me: failed program was:" >&5
19690sed 's/^/| /' conftest.$ac_ext >&5
19691
19692ac_hi=`expr '(' $ac_mid ')' - 1`
19693		       if test $ac_mid -le $ac_hi; then
19694			 ac_lo= ac_hi=
19695			 break
19696		       fi
19697		       ac_mid=`expr 2 '*' $ac_mid`
19698fi
19699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700  done
19701else
19702  echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
19705ac_lo= ac_hi=
19706fi
19707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19708fi
19709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19710# Binary search between lo and hi bounds.
19711while test "x$ac_lo" != "x$ac_hi"; do
19712  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19713  cat >conftest.$ac_ext <<_ACEOF
19714/* confdefs.h.  */
19715_ACEOF
19716cat confdefs.h >>conftest.$ac_ext
19717cat >>conftest.$ac_ext <<_ACEOF
19718/* end confdefs.h.  */
19719$ac_includes_default
19720int
19721main ()
19722{
19723static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19724test_array [0] = 0
19725
19726  ;
19727  return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext
19731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732  (eval $ac_compile) 2>conftest.er1
19733  ac_status=$?
19734  grep -v '^ *+' conftest.er1 >conftest.err
19735  rm -f conftest.er1
19736  cat conftest.err >&5
19737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738  (exit $ac_status); } &&
19739	 { ac_try='test -z "$ac_cxx_werror_flag"
19740			 || test ! -s conftest.err'
19741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742  (eval $ac_try) 2>&5
19743  ac_status=$?
19744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745  (exit $ac_status); }; } &&
19746	 { ac_try='test -s conftest.$ac_objext'
19747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748  (eval $ac_try) 2>&5
19749  ac_status=$?
19750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751  (exit $ac_status); }; }; then
19752  ac_hi=$ac_mid
19753else
19754  echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757ac_lo=`expr '(' $ac_mid ')' + 1`
19758fi
19759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760done
19761case $ac_lo in
19762?*) ac_cv_sizeof_long_long=$ac_lo;;
19763'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19764See \`config.log' for more details." >&5
19765echo "$as_me: error: cannot compute sizeof (long long), 77
19766See \`config.log' for more details." >&2;}
19767   { (exit 1); exit 1; }; } ;;
19768esac
19769else
19770  if test "$cross_compiling" = yes; then
19771  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19772See \`config.log' for more details." >&5
19773echo "$as_me: error: cannot run test program while cross compiling
19774See \`config.log' for more details." >&2;}
19775   { (exit 1); exit 1; }; }
19776else
19777  cat >conftest.$ac_ext <<_ACEOF
19778/* confdefs.h.  */
19779_ACEOF
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h.  */
19783$ac_includes_default
19784long longval () { return (long) (sizeof (long long)); }
19785unsigned long ulongval () { return (long) (sizeof (long long)); }
19786#include <stdio.h>
19787#include <stdlib.h>
19788int
19789main ()
19790{
19791
19792  FILE *f = fopen ("conftest.val", "w");
19793  if (! f)
19794    exit (1);
19795  if (((long) (sizeof (long long))) < 0)
19796    {
19797      long i = longval ();
19798      if (i != ((long) (sizeof (long long))))
19799	exit (1);
19800      fprintf (f, "%ld\n", i);
19801    }
19802  else
19803    {
19804      unsigned long i = ulongval ();
19805      if (i != ((long) (sizeof (long long))))
19806	exit (1);
19807      fprintf (f, "%lu\n", i);
19808    }
19809  exit (ferror (f) || fclose (f) != 0);
19810
19811  ;
19812  return 0;
19813}
19814_ACEOF
19815rm -f conftest$ac_exeext
19816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19817  (eval $ac_link) 2>&5
19818  ac_status=$?
19819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822  (eval $ac_try) 2>&5
19823  ac_status=$?
19824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825  (exit $ac_status); }; }; then
19826  ac_cv_sizeof_long_long=`cat conftest.val`
19827else
19828  echo "$as_me: program exited with status $ac_status" >&5
19829echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832( exit $ac_status )
19833{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19834See \`config.log' for more details." >&5
19835echo "$as_me: error: cannot compute sizeof (long long), 77
19836See \`config.log' for more details." >&2;}
19837   { (exit 1); exit 1; }; }
19838fi
19839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19840fi
19841fi
19842rm -f conftest.val
19843else
19844  ac_cv_sizeof_long_long=0
19845fi
19846fi
19847echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19848echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19849cat >>confdefs.h <<_ACEOF
19850#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19851_ACEOF
19852
19853
19854  if test "$ac_cv_sizeof_long_long" -eq 8; then
19855    int64_t="long long"
19856    return
19857  fi
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868    :
19869  }
19870  find_int64_t
19871
19872cat >>confdefs.h <<_ACEOF
19873#define int64_t $int64_t
19874_ACEOF
19875
19876
19877fi
19878
19879
19880
19881
19882echo "$as_me:$LINENO: checking for uint64_t" >&5
19883echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19884if test "${ac_cv_type_uint64_t+set}" = set; then
19885  echo $ECHO_N "(cached) $ECHO_C" >&6
19886else
19887  cat >conftest.$ac_ext <<_ACEOF
19888/* confdefs.h.  */
19889_ACEOF
19890cat confdefs.h >>conftest.$ac_ext
19891cat >>conftest.$ac_ext <<_ACEOF
19892/* end confdefs.h.  */
19893$ac_includes_default
19894int
19895main ()
19896{
19897if ((uint64_t *) 0)
19898  return 0;
19899if (sizeof (uint64_t))
19900  return 0;
19901  ;
19902  return 0;
19903}
19904_ACEOF
19905rm -f conftest.$ac_objext
19906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19907  (eval $ac_compile) 2>conftest.er1
19908  ac_status=$?
19909  grep -v '^ *+' conftest.er1 >conftest.err
19910  rm -f conftest.er1
19911  cat conftest.err >&5
19912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913  (exit $ac_status); } &&
19914	 { ac_try='test -z "$ac_cxx_werror_flag"
19915			 || test ! -s conftest.err'
19916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917  (eval $ac_try) 2>&5
19918  ac_status=$?
19919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920  (exit $ac_status); }; } &&
19921	 { ac_try='test -s conftest.$ac_objext'
19922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923  (eval $ac_try) 2>&5
19924  ac_status=$?
19925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926  (exit $ac_status); }; }; then
19927  ac_cv_type_uint64_t=yes
19928else
19929  echo "$as_me: failed program was:" >&5
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
19932ac_cv_type_uint64_t=no
19933fi
19934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935fi
19936echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19937echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19938if test $ac_cv_type_uint64_t = yes; then
19939  :
19940else
19941
19942  { echo "$as_me:$LINENO: trying to find a suitable 8-byte replacement for uint64_t" >&5
19943echo "$as_me: trying to find a suitable 8-byte replacement for uint64_t" >&6;}
19944  uint64_t=no
19945  find_uint64_t ()
19946  {
19947
19948
19949  echo "$as_me:$LINENO: checking for unsigned int64_t" >&5
19950echo $ECHO_N "checking for unsigned int64_t... $ECHO_C" >&6
19951if test "${ac_cv_type_unsigned_int64_t+set}" = set; then
19952  echo $ECHO_N "(cached) $ECHO_C" >&6
19953else
19954  cat >conftest.$ac_ext <<_ACEOF
19955/* confdefs.h.  */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
19959/* end confdefs.h.  */
19960$ac_includes_default
19961int
19962main ()
19963{
19964if ((unsigned int64_t *) 0)
19965  return 0;
19966if (sizeof (unsigned int64_t))
19967  return 0;
19968  ;
19969  return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext
19973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974  (eval $ac_compile) 2>conftest.er1
19975  ac_status=$?
19976  grep -v '^ *+' conftest.er1 >conftest.err
19977  rm -f conftest.er1
19978  cat conftest.err >&5
19979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980  (exit $ac_status); } &&
19981	 { ac_try='test -z "$ac_cxx_werror_flag"
19982			 || test ! -s conftest.err'
19983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984  (eval $ac_try) 2>&5
19985  ac_status=$?
19986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987  (exit $ac_status); }; } &&
19988	 { ac_try='test -s conftest.$ac_objext'
19989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990  (eval $ac_try) 2>&5
19991  ac_status=$?
19992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993  (exit $ac_status); }; }; then
19994  ac_cv_type_unsigned_int64_t=yes
19995else
19996  echo "$as_me: failed program was:" >&5
19997sed 's/^/| /' conftest.$ac_ext >&5
19998
19999ac_cv_type_unsigned_int64_t=no
20000fi
20001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20002fi
20003echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int64_t" >&5
20004echo "${ECHO_T}$ac_cv_type_unsigned_int64_t" >&6
20005
20006echo "$as_me:$LINENO: checking size of unsigned int64_t" >&5
20007echo $ECHO_N "checking size of unsigned int64_t... $ECHO_C" >&6
20008if test "${ac_cv_sizeof_unsigned_int64_t+set}" = set; then
20009  echo $ECHO_N "(cached) $ECHO_C" >&6
20010else
20011  if test "$ac_cv_type_unsigned_int64_t" = yes; then
20012  # The cast to unsigned long works around a bug in the HP C Compiler
20013  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20014  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20015  # This bug is HP SR number 8606223364.
20016  if test "$cross_compiling" = yes; then
20017  # Depending upon the size, compute the lo and hi bounds.
20018cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h.  */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
20023/* end confdefs.h.  */
20024$ac_includes_default
20025int
20026main ()
20027{
20028static int test_array [1 - 2 * !(((long) (sizeof (unsigned int64_t))) >= 0)];
20029test_array [0] = 0
20030
20031  ;
20032  return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext
20036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037  (eval $ac_compile) 2>conftest.er1
20038  ac_status=$?
20039  grep -v '^ *+' conftest.er1 >conftest.err
20040  rm -f conftest.er1
20041  cat conftest.err >&5
20042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043  (exit $ac_status); } &&
20044	 { ac_try='test -z "$ac_cxx_werror_flag"
20045			 || test ! -s conftest.err'
20046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047  (eval $ac_try) 2>&5
20048  ac_status=$?
20049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050  (exit $ac_status); }; } &&
20051	 { ac_try='test -s conftest.$ac_objext'
20052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053  (eval $ac_try) 2>&5
20054  ac_status=$?
20055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056  (exit $ac_status); }; }; then
20057  ac_lo=0 ac_mid=0
20058  while :; do
20059    cat >conftest.$ac_ext <<_ACEOF
20060/* confdefs.h.  */
20061_ACEOF
20062cat confdefs.h >>conftest.$ac_ext
20063cat >>conftest.$ac_ext <<_ACEOF
20064/* end confdefs.h.  */
20065$ac_includes_default
20066int
20067main ()
20068{
20069static int test_array [1 - 2 * !(((long) (sizeof (unsigned int64_t))) <= $ac_mid)];
20070test_array [0] = 0
20071
20072  ;
20073  return 0;
20074}
20075_ACEOF
20076rm -f conftest.$ac_objext
20077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20078  (eval $ac_compile) 2>conftest.er1
20079  ac_status=$?
20080  grep -v '^ *+' conftest.er1 >conftest.err
20081  rm -f conftest.er1
20082  cat conftest.err >&5
20083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084  (exit $ac_status); } &&
20085	 { ac_try='test -z "$ac_cxx_werror_flag"
20086			 || test ! -s conftest.err'
20087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088  (eval $ac_try) 2>&5
20089  ac_status=$?
20090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091  (exit $ac_status); }; } &&
20092	 { ac_try='test -s conftest.$ac_objext'
20093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094  (eval $ac_try) 2>&5
20095  ac_status=$?
20096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097  (exit $ac_status); }; }; then
20098  ac_hi=$ac_mid; break
20099else
20100  echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103ac_lo=`expr $ac_mid + 1`
20104		    if test $ac_lo -le $ac_mid; then
20105		      ac_lo= ac_hi=
20106		      break
20107		    fi
20108		    ac_mid=`expr 2 '*' $ac_mid + 1`
20109fi
20110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20111  done
20112else
20113  echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h.  */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h.  */
20122$ac_includes_default
20123int
20124main ()
20125{
20126static int test_array [1 - 2 * !(((long) (sizeof (unsigned int64_t))) < 0)];
20127test_array [0] = 0
20128
20129  ;
20130  return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext
20134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20135  (eval $ac_compile) 2>conftest.er1
20136  ac_status=$?
20137  grep -v '^ *+' conftest.er1 >conftest.err
20138  rm -f conftest.er1
20139  cat conftest.err >&5
20140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141  (exit $ac_status); } &&
20142	 { ac_try='test -z "$ac_cxx_werror_flag"
20143			 || test ! -s conftest.err'
20144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145  (eval $ac_try) 2>&5
20146  ac_status=$?
20147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148  (exit $ac_status); }; } &&
20149	 { ac_try='test -s conftest.$ac_objext'
20150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151  (eval $ac_try) 2>&5
20152  ac_status=$?
20153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154  (exit $ac_status); }; }; then
20155  ac_hi=-1 ac_mid=-1
20156  while :; do
20157    cat >conftest.$ac_ext <<_ACEOF
20158/* confdefs.h.  */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
20162/* end confdefs.h.  */
20163$ac_includes_default
20164int
20165main ()
20166{
20167static int test_array [1 - 2 * !(((long) (sizeof (unsigned int64_t))) >= $ac_mid)];
20168test_array [0] = 0
20169
20170  ;
20171  return 0;
20172}
20173_ACEOF
20174rm -f conftest.$ac_objext
20175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176  (eval $ac_compile) 2>conftest.er1
20177  ac_status=$?
20178  grep -v '^ *+' conftest.er1 >conftest.err
20179  rm -f conftest.er1
20180  cat conftest.err >&5
20181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182  (exit $ac_status); } &&
20183	 { ac_try='test -z "$ac_cxx_werror_flag"
20184			 || test ! -s conftest.err'
20185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186  (eval $ac_try) 2>&5
20187  ac_status=$?
20188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189  (exit $ac_status); }; } &&
20190	 { ac_try='test -s conftest.$ac_objext'
20191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192  (eval $ac_try) 2>&5
20193  ac_status=$?
20194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195  (exit $ac_status); }; }; then
20196  ac_lo=$ac_mid; break
20197else
20198  echo "$as_me: failed program was:" >&5
20199sed 's/^/| /' conftest.$ac_ext >&5
20200
20201ac_hi=`expr '(' $ac_mid ')' - 1`
20202		       if test $ac_mid -le $ac_hi; then
20203			 ac_lo= ac_hi=
20204			 break
20205		       fi
20206		       ac_mid=`expr 2 '*' $ac_mid`
20207fi
20208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20209  done
20210else
20211  echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214ac_lo= ac_hi=
20215fi
20216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20217fi
20218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20219# Binary search between lo and hi bounds.
20220while test "x$ac_lo" != "x$ac_hi"; do
20221  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20222  cat >conftest.$ac_ext <<_ACEOF
20223/* confdefs.h.  */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
20227/* end confdefs.h.  */
20228$ac_includes_default
20229int
20230main ()
20231{
20232static int test_array [1 - 2 * !(((long) (sizeof (unsigned int64_t))) <= $ac_mid)];
20233test_array [0] = 0
20234
20235  ;
20236  return 0;
20237}
20238_ACEOF
20239rm -f conftest.$ac_objext
20240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20241  (eval $ac_compile) 2>conftest.er1
20242  ac_status=$?
20243  grep -v '^ *+' conftest.er1 >conftest.err
20244  rm -f conftest.er1
20245  cat conftest.err >&5
20246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247  (exit $ac_status); } &&
20248	 { ac_try='test -z "$ac_cxx_werror_flag"
20249			 || test ! -s conftest.err'
20250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251  (eval $ac_try) 2>&5
20252  ac_status=$?
20253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254  (exit $ac_status); }; } &&
20255	 { ac_try='test -s conftest.$ac_objext'
20256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257  (eval $ac_try) 2>&5
20258  ac_status=$?
20259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260  (exit $ac_status); }; }; then
20261  ac_hi=$ac_mid
20262else
20263  echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
20266ac_lo=`expr '(' $ac_mid ')' + 1`
20267fi
20268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20269done
20270case $ac_lo in
20271?*) ac_cv_sizeof_unsigned_int64_t=$ac_lo;;
20272'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int64_t), 77
20273See \`config.log' for more details." >&5
20274echo "$as_me: error: cannot compute sizeof (unsigned int64_t), 77
20275See \`config.log' for more details." >&2;}
20276   { (exit 1); exit 1; }; } ;;
20277esac
20278else
20279  if test "$cross_compiling" = yes; then
20280  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20281See \`config.log' for more details." >&5
20282echo "$as_me: error: cannot run test program while cross compiling
20283See \`config.log' for more details." >&2;}
20284   { (exit 1); exit 1; }; }
20285else
20286  cat >conftest.$ac_ext <<_ACEOF
20287/* confdefs.h.  */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h.  */
20292$ac_includes_default
20293long longval () { return (long) (sizeof (unsigned int64_t)); }
20294unsigned long ulongval () { return (long) (sizeof (unsigned int64_t)); }
20295#include <stdio.h>
20296#include <stdlib.h>
20297int
20298main ()
20299{
20300
20301  FILE *f = fopen ("conftest.val", "w");
20302  if (! f)
20303    exit (1);
20304  if (((long) (sizeof (unsigned int64_t))) < 0)
20305    {
20306      long i = longval ();
20307      if (i != ((long) (sizeof (unsigned int64_t))))
20308	exit (1);
20309      fprintf (f, "%ld\n", i);
20310    }
20311  else
20312    {
20313      unsigned long i = ulongval ();
20314      if (i != ((long) (sizeof (unsigned int64_t))))
20315	exit (1);
20316      fprintf (f, "%lu\n", i);
20317    }
20318  exit (ferror (f) || fclose (f) != 0);
20319
20320  ;
20321  return 0;
20322}
20323_ACEOF
20324rm -f conftest$ac_exeext
20325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326  (eval $ac_link) 2>&5
20327  ac_status=$?
20328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331  (eval $ac_try) 2>&5
20332  ac_status=$?
20333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334  (exit $ac_status); }; }; then
20335  ac_cv_sizeof_unsigned_int64_t=`cat conftest.val`
20336else
20337  echo "$as_me: program exited with status $ac_status" >&5
20338echo "$as_me: failed program was:" >&5
20339sed 's/^/| /' conftest.$ac_ext >&5
20340
20341( exit $ac_status )
20342{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int64_t), 77
20343See \`config.log' for more details." >&5
20344echo "$as_me: error: cannot compute sizeof (unsigned int64_t), 77
20345See \`config.log' for more details." >&2;}
20346   { (exit 1); exit 1; }; }
20347fi
20348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20349fi
20350fi
20351rm -f conftest.val
20352else
20353  ac_cv_sizeof_unsigned_int64_t=0
20354fi
20355fi
20356echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int64_t" >&5
20357echo "${ECHO_T}$ac_cv_sizeof_unsigned_int64_t" >&6
20358cat >>confdefs.h <<_ACEOF
20359#define SIZEOF_UNSIGNED_INT64_T $ac_cv_sizeof_unsigned_int64_t
20360_ACEOF
20361
20362
20363  if test "$ac_cv_sizeof_unsigned_int64_t" -eq 8; then
20364    uint64_t="unsigned int64_t"
20365    return
20366  fi
20367
20368
20369  echo "$as_me:$LINENO: checking for unsigned long" >&5
20370echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
20371if test "${ac_cv_type_unsigned_long+set}" = set; then
20372  echo $ECHO_N "(cached) $ECHO_C" >&6
20373else
20374  cat >conftest.$ac_ext <<_ACEOF
20375/* confdefs.h.  */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h.  */
20380$ac_includes_default
20381int
20382main ()
20383{
20384if ((unsigned long *) 0)
20385  return 0;
20386if (sizeof (unsigned long))
20387  return 0;
20388  ;
20389  return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext
20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394  (eval $ac_compile) 2>conftest.er1
20395  ac_status=$?
20396  grep -v '^ *+' conftest.er1 >conftest.err
20397  rm -f conftest.er1
20398  cat conftest.err >&5
20399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); } &&
20401	 { ac_try='test -z "$ac_cxx_werror_flag"
20402			 || test ! -s conftest.err'
20403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404  (eval $ac_try) 2>&5
20405  ac_status=$?
20406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407  (exit $ac_status); }; } &&
20408	 { ac_try='test -s conftest.$ac_objext'
20409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410  (eval $ac_try) 2>&5
20411  ac_status=$?
20412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413  (exit $ac_status); }; }; then
20414  ac_cv_type_unsigned_long=yes
20415else
20416  echo "$as_me: failed program was:" >&5
20417sed 's/^/| /' conftest.$ac_ext >&5
20418
20419ac_cv_type_unsigned_long=no
20420fi
20421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422fi
20423echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20424echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
20425
20426echo "$as_me:$LINENO: checking size of unsigned long" >&5
20427echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
20428if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20429  echo $ECHO_N "(cached) $ECHO_C" >&6
20430else
20431  if test "$ac_cv_type_unsigned_long" = yes; then
20432  # The cast to unsigned long works around a bug in the HP C Compiler
20433  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20434  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20435  # This bug is HP SR number 8606223364.
20436  if test "$cross_compiling" = yes; then
20437  # Depending upon the size, compute the lo and hi bounds.
20438cat >conftest.$ac_ext <<_ACEOF
20439/* confdefs.h.  */
20440_ACEOF
20441cat confdefs.h >>conftest.$ac_ext
20442cat >>conftest.$ac_ext <<_ACEOF
20443/* end confdefs.h.  */
20444$ac_includes_default
20445int
20446main ()
20447{
20448static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
20449test_array [0] = 0
20450
20451  ;
20452  return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext
20456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457  (eval $ac_compile) 2>conftest.er1
20458  ac_status=$?
20459  grep -v '^ *+' conftest.er1 >conftest.err
20460  rm -f conftest.er1
20461  cat conftest.err >&5
20462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463  (exit $ac_status); } &&
20464	 { ac_try='test -z "$ac_cxx_werror_flag"
20465			 || test ! -s conftest.err'
20466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467  (eval $ac_try) 2>&5
20468  ac_status=$?
20469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470  (exit $ac_status); }; } &&
20471	 { ac_try='test -s conftest.$ac_objext'
20472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473  (eval $ac_try) 2>&5
20474  ac_status=$?
20475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476  (exit $ac_status); }; }; then
20477  ac_lo=0 ac_mid=0
20478  while :; do
20479    cat >conftest.$ac_ext <<_ACEOF
20480/* confdefs.h.  */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h.  */
20485$ac_includes_default
20486int
20487main ()
20488{
20489static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
20490test_array [0] = 0
20491
20492  ;
20493  return 0;
20494}
20495_ACEOF
20496rm -f conftest.$ac_objext
20497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20498  (eval $ac_compile) 2>conftest.er1
20499  ac_status=$?
20500  grep -v '^ *+' conftest.er1 >conftest.err
20501  rm -f conftest.er1
20502  cat conftest.err >&5
20503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504  (exit $ac_status); } &&
20505	 { ac_try='test -z "$ac_cxx_werror_flag"
20506			 || test ! -s conftest.err'
20507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508  (eval $ac_try) 2>&5
20509  ac_status=$?
20510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511  (exit $ac_status); }; } &&
20512	 { ac_try='test -s conftest.$ac_objext'
20513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514  (eval $ac_try) 2>&5
20515  ac_status=$?
20516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517  (exit $ac_status); }; }; then
20518  ac_hi=$ac_mid; break
20519else
20520  echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523ac_lo=`expr $ac_mid + 1`
20524		    if test $ac_lo -le $ac_mid; then
20525		      ac_lo= ac_hi=
20526		      break
20527		    fi
20528		    ac_mid=`expr 2 '*' $ac_mid + 1`
20529fi
20530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531  done
20532else
20533  echo "$as_me: failed program was:" >&5
20534sed 's/^/| /' conftest.$ac_ext >&5
20535
20536cat >conftest.$ac_ext <<_ACEOF
20537/* confdefs.h.  */
20538_ACEOF
20539cat confdefs.h >>conftest.$ac_ext
20540cat >>conftest.$ac_ext <<_ACEOF
20541/* end confdefs.h.  */
20542$ac_includes_default
20543int
20544main ()
20545{
20546static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
20547test_array [0] = 0
20548
20549  ;
20550  return 0;
20551}
20552_ACEOF
20553rm -f conftest.$ac_objext
20554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20555  (eval $ac_compile) 2>conftest.er1
20556  ac_status=$?
20557  grep -v '^ *+' conftest.er1 >conftest.err
20558  rm -f conftest.er1
20559  cat conftest.err >&5
20560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561  (exit $ac_status); } &&
20562	 { ac_try='test -z "$ac_cxx_werror_flag"
20563			 || test ! -s conftest.err'
20564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565  (eval $ac_try) 2>&5
20566  ac_status=$?
20567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568  (exit $ac_status); }; } &&
20569	 { ac_try='test -s conftest.$ac_objext'
20570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571  (eval $ac_try) 2>&5
20572  ac_status=$?
20573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574  (exit $ac_status); }; }; then
20575  ac_hi=-1 ac_mid=-1
20576  while :; do
20577    cat >conftest.$ac_ext <<_ACEOF
20578/* confdefs.h.  */
20579_ACEOF
20580cat confdefs.h >>conftest.$ac_ext
20581cat >>conftest.$ac_ext <<_ACEOF
20582/* end confdefs.h.  */
20583$ac_includes_default
20584int
20585main ()
20586{
20587static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
20588test_array [0] = 0
20589
20590  ;
20591  return 0;
20592}
20593_ACEOF
20594rm -f conftest.$ac_objext
20595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596  (eval $ac_compile) 2>conftest.er1
20597  ac_status=$?
20598  grep -v '^ *+' conftest.er1 >conftest.err
20599  rm -f conftest.er1
20600  cat conftest.err >&5
20601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602  (exit $ac_status); } &&
20603	 { ac_try='test -z "$ac_cxx_werror_flag"
20604			 || test ! -s conftest.err'
20605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606  (eval $ac_try) 2>&5
20607  ac_status=$?
20608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609  (exit $ac_status); }; } &&
20610	 { ac_try='test -s conftest.$ac_objext'
20611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612  (eval $ac_try) 2>&5
20613  ac_status=$?
20614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615  (exit $ac_status); }; }; then
20616  ac_lo=$ac_mid; break
20617else
20618  echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621ac_hi=`expr '(' $ac_mid ')' - 1`
20622		       if test $ac_mid -le $ac_hi; then
20623			 ac_lo= ac_hi=
20624			 break
20625		       fi
20626		       ac_mid=`expr 2 '*' $ac_mid`
20627fi
20628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20629  done
20630else
20631  echo "$as_me: failed program was:" >&5
20632sed 's/^/| /' conftest.$ac_ext >&5
20633
20634ac_lo= ac_hi=
20635fi
20636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20637fi
20638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20639# Binary search between lo and hi bounds.
20640while test "x$ac_lo" != "x$ac_hi"; do
20641  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20642  cat >conftest.$ac_ext <<_ACEOF
20643/* confdefs.h.  */
20644_ACEOF
20645cat confdefs.h >>conftest.$ac_ext
20646cat >>conftest.$ac_ext <<_ACEOF
20647/* end confdefs.h.  */
20648$ac_includes_default
20649int
20650main ()
20651{
20652static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
20653test_array [0] = 0
20654
20655  ;
20656  return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext
20660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661  (eval $ac_compile) 2>conftest.er1
20662  ac_status=$?
20663  grep -v '^ *+' conftest.er1 >conftest.err
20664  rm -f conftest.er1
20665  cat conftest.err >&5
20666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667  (exit $ac_status); } &&
20668	 { ac_try='test -z "$ac_cxx_werror_flag"
20669			 || test ! -s conftest.err'
20670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671  (eval $ac_try) 2>&5
20672  ac_status=$?
20673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674  (exit $ac_status); }; } &&
20675	 { ac_try='test -s conftest.$ac_objext'
20676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677  (eval $ac_try) 2>&5
20678  ac_status=$?
20679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680  (exit $ac_status); }; }; then
20681  ac_hi=$ac_mid
20682else
20683  echo "$as_me: failed program was:" >&5
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
20686ac_lo=`expr '(' $ac_mid ')' + 1`
20687fi
20688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20689done
20690case $ac_lo in
20691?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20692'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20693See \`config.log' for more details." >&5
20694echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20695See \`config.log' for more details." >&2;}
20696   { (exit 1); exit 1; }; } ;;
20697esac
20698else
20699  if test "$cross_compiling" = yes; then
20700  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20701See \`config.log' for more details." >&5
20702echo "$as_me: error: cannot run test program while cross compiling
20703See \`config.log' for more details." >&2;}
20704   { (exit 1); exit 1; }; }
20705else
20706  cat >conftest.$ac_ext <<_ACEOF
20707/* confdefs.h.  */
20708_ACEOF
20709cat confdefs.h >>conftest.$ac_ext
20710cat >>conftest.$ac_ext <<_ACEOF
20711/* end confdefs.h.  */
20712$ac_includes_default
20713long longval () { return (long) (sizeof (unsigned long)); }
20714unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
20715#include <stdio.h>
20716#include <stdlib.h>
20717int
20718main ()
20719{
20720
20721  FILE *f = fopen ("conftest.val", "w");
20722  if (! f)
20723    exit (1);
20724  if (((long) (sizeof (unsigned long))) < 0)
20725    {
20726      long i = longval ();
20727      if (i != ((long) (sizeof (unsigned long))))
20728	exit (1);
20729      fprintf (f, "%ld\n", i);
20730    }
20731  else
20732    {
20733      unsigned long i = ulongval ();
20734      if (i != ((long) (sizeof (unsigned long))))
20735	exit (1);
20736      fprintf (f, "%lu\n", i);
20737    }
20738  exit (ferror (f) || fclose (f) != 0);
20739
20740  ;
20741  return 0;
20742}
20743_ACEOF
20744rm -f conftest$ac_exeext
20745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746  (eval $ac_link) 2>&5
20747  ac_status=$?
20748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751  (eval $ac_try) 2>&5
20752  ac_status=$?
20753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754  (exit $ac_status); }; }; then
20755  ac_cv_sizeof_unsigned_long=`cat conftest.val`
20756else
20757  echo "$as_me: program exited with status $ac_status" >&5
20758echo "$as_me: failed program was:" >&5
20759sed 's/^/| /' conftest.$ac_ext >&5
20760
20761( exit $ac_status )
20762{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20763See \`config.log' for more details." >&5
20764echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20765See \`config.log' for more details." >&2;}
20766   { (exit 1); exit 1; }; }
20767fi
20768rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20769fi
20770fi
20771rm -f conftest.val
20772else
20773  ac_cv_sizeof_unsigned_long=0
20774fi
20775fi
20776echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20777echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20778cat >>confdefs.h <<_ACEOF
20779#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20780_ACEOF
20781
20782
20783  if test "$ac_cv_sizeof_unsigned_long" -eq 8; then
20784    uint64_t="unsigned long"
20785    return
20786  fi
20787
20788
20789  echo "$as_me:$LINENO: checking for unsigned long long" >&5
20790echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
20791if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20792  echo $ECHO_N "(cached) $ECHO_C" >&6
20793else
20794  cat >conftest.$ac_ext <<_ACEOF
20795/* confdefs.h.  */
20796_ACEOF
20797cat confdefs.h >>conftest.$ac_ext
20798cat >>conftest.$ac_ext <<_ACEOF
20799/* end confdefs.h.  */
20800$ac_includes_default
20801int
20802main ()
20803{
20804if ((unsigned long long *) 0)
20805  return 0;
20806if (sizeof (unsigned long long))
20807  return 0;
20808  ;
20809  return 0;
20810}
20811_ACEOF
20812rm -f conftest.$ac_objext
20813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814  (eval $ac_compile) 2>conftest.er1
20815  ac_status=$?
20816  grep -v '^ *+' conftest.er1 >conftest.err
20817  rm -f conftest.er1
20818  cat conftest.err >&5
20819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820  (exit $ac_status); } &&
20821	 { ac_try='test -z "$ac_cxx_werror_flag"
20822			 || test ! -s conftest.err'
20823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824  (eval $ac_try) 2>&5
20825  ac_status=$?
20826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827  (exit $ac_status); }; } &&
20828	 { ac_try='test -s conftest.$ac_objext'
20829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830  (eval $ac_try) 2>&5
20831  ac_status=$?
20832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833  (exit $ac_status); }; }; then
20834  ac_cv_type_unsigned_long_long=yes
20835else
20836  echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839ac_cv_type_unsigned_long_long=no
20840fi
20841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20842fi
20843echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20844echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
20845
20846echo "$as_me:$LINENO: checking size of unsigned long long" >&5
20847echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
20848if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
20849  echo $ECHO_N "(cached) $ECHO_C" >&6
20850else
20851  if test "$ac_cv_type_unsigned_long_long" = yes; then
20852  # The cast to unsigned long works around a bug in the HP C Compiler
20853  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20854  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20855  # This bug is HP SR number 8606223364.
20856  if test "$cross_compiling" = yes; then
20857  # Depending upon the size, compute the lo and hi bounds.
20858cat >conftest.$ac_ext <<_ACEOF
20859/* confdefs.h.  */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h.  */
20864$ac_includes_default
20865int
20866main ()
20867{
20868static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
20869test_array [0] = 0
20870
20871  ;
20872  return 0;
20873}
20874_ACEOF
20875rm -f conftest.$ac_objext
20876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20877  (eval $ac_compile) 2>conftest.er1
20878  ac_status=$?
20879  grep -v '^ *+' conftest.er1 >conftest.err
20880  rm -f conftest.er1
20881  cat conftest.err >&5
20882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883  (exit $ac_status); } &&
20884	 { ac_try='test -z "$ac_cxx_werror_flag"
20885			 || test ! -s conftest.err'
20886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887  (eval $ac_try) 2>&5
20888  ac_status=$?
20889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890  (exit $ac_status); }; } &&
20891	 { ac_try='test -s conftest.$ac_objext'
20892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893  (eval $ac_try) 2>&5
20894  ac_status=$?
20895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896  (exit $ac_status); }; }; then
20897  ac_lo=0 ac_mid=0
20898  while :; do
20899    cat >conftest.$ac_ext <<_ACEOF
20900/* confdefs.h.  */
20901_ACEOF
20902cat confdefs.h >>conftest.$ac_ext
20903cat >>conftest.$ac_ext <<_ACEOF
20904/* end confdefs.h.  */
20905$ac_includes_default
20906int
20907main ()
20908{
20909static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
20910test_array [0] = 0
20911
20912  ;
20913  return 0;
20914}
20915_ACEOF
20916rm -f conftest.$ac_objext
20917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20918  (eval $ac_compile) 2>conftest.er1
20919  ac_status=$?
20920  grep -v '^ *+' conftest.er1 >conftest.err
20921  rm -f conftest.er1
20922  cat conftest.err >&5
20923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924  (exit $ac_status); } &&
20925	 { ac_try='test -z "$ac_cxx_werror_flag"
20926			 || test ! -s conftest.err'
20927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928  (eval $ac_try) 2>&5
20929  ac_status=$?
20930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931  (exit $ac_status); }; } &&
20932	 { ac_try='test -s conftest.$ac_objext'
20933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934  (eval $ac_try) 2>&5
20935  ac_status=$?
20936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937  (exit $ac_status); }; }; then
20938  ac_hi=$ac_mid; break
20939else
20940  echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
20943ac_lo=`expr $ac_mid + 1`
20944		    if test $ac_lo -le $ac_mid; then
20945		      ac_lo= ac_hi=
20946		      break
20947		    fi
20948		    ac_mid=`expr 2 '*' $ac_mid + 1`
20949fi
20950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20951  done
20952else
20953  echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
20956cat >conftest.$ac_ext <<_ACEOF
20957/* confdefs.h.  */
20958_ACEOF
20959cat confdefs.h >>conftest.$ac_ext
20960cat >>conftest.$ac_ext <<_ACEOF
20961/* end confdefs.h.  */
20962$ac_includes_default
20963int
20964main ()
20965{
20966static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
20967test_array [0] = 0
20968
20969  ;
20970  return 0;
20971}
20972_ACEOF
20973rm -f conftest.$ac_objext
20974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975  (eval $ac_compile) 2>conftest.er1
20976  ac_status=$?
20977  grep -v '^ *+' conftest.er1 >conftest.err
20978  rm -f conftest.er1
20979  cat conftest.err >&5
20980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981  (exit $ac_status); } &&
20982	 { ac_try='test -z "$ac_cxx_werror_flag"
20983			 || test ! -s conftest.err'
20984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985  (eval $ac_try) 2>&5
20986  ac_status=$?
20987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988  (exit $ac_status); }; } &&
20989	 { ac_try='test -s conftest.$ac_objext'
20990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991  (eval $ac_try) 2>&5
20992  ac_status=$?
20993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994  (exit $ac_status); }; }; then
20995  ac_hi=-1 ac_mid=-1
20996  while :; do
20997    cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h.  */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h.  */
21003$ac_includes_default
21004int
21005main ()
21006{
21007static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
21008test_array [0] = 0
21009
21010  ;
21011  return 0;
21012}
21013_ACEOF
21014rm -f conftest.$ac_objext
21015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016  (eval $ac_compile) 2>conftest.er1
21017  ac_status=$?
21018  grep -v '^ *+' conftest.er1 >conftest.err
21019  rm -f conftest.er1
21020  cat conftest.err >&5
21021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022  (exit $ac_status); } &&
21023	 { ac_try='test -z "$ac_cxx_werror_flag"
21024			 || test ! -s conftest.err'
21025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026  (eval $ac_try) 2>&5
21027  ac_status=$?
21028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029  (exit $ac_status); }; } &&
21030	 { ac_try='test -s conftest.$ac_objext'
21031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032  (eval $ac_try) 2>&5
21033  ac_status=$?
21034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035  (exit $ac_status); }; }; then
21036  ac_lo=$ac_mid; break
21037else
21038  echo "$as_me: failed program was:" >&5
21039sed 's/^/| /' conftest.$ac_ext >&5
21040
21041ac_hi=`expr '(' $ac_mid ')' - 1`
21042		       if test $ac_mid -le $ac_hi; then
21043			 ac_lo= ac_hi=
21044			 break
21045		       fi
21046		       ac_mid=`expr 2 '*' $ac_mid`
21047fi
21048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21049  done
21050else
21051  echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
21054ac_lo= ac_hi=
21055fi
21056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21057fi
21058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21059# Binary search between lo and hi bounds.
21060while test "x$ac_lo" != "x$ac_hi"; do
21061  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21062  cat >conftest.$ac_ext <<_ACEOF
21063/* confdefs.h.  */
21064_ACEOF
21065cat confdefs.h >>conftest.$ac_ext
21066cat >>conftest.$ac_ext <<_ACEOF
21067/* end confdefs.h.  */
21068$ac_includes_default
21069int
21070main ()
21071{
21072static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
21073test_array [0] = 0
21074
21075  ;
21076  return 0;
21077}
21078_ACEOF
21079rm -f conftest.$ac_objext
21080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081  (eval $ac_compile) 2>conftest.er1
21082  ac_status=$?
21083  grep -v '^ *+' conftest.er1 >conftest.err
21084  rm -f conftest.er1
21085  cat conftest.err >&5
21086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087  (exit $ac_status); } &&
21088	 { ac_try='test -z "$ac_cxx_werror_flag"
21089			 || test ! -s conftest.err'
21090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091  (eval $ac_try) 2>&5
21092  ac_status=$?
21093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094  (exit $ac_status); }; } &&
21095	 { ac_try='test -s conftest.$ac_objext'
21096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097  (eval $ac_try) 2>&5
21098  ac_status=$?
21099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100  (exit $ac_status); }; }; then
21101  ac_hi=$ac_mid
21102else
21103  echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106ac_lo=`expr '(' $ac_mid ')' + 1`
21107fi
21108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21109done
21110case $ac_lo in
21111?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
21112'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
21113See \`config.log' for more details." >&5
21114echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
21115See \`config.log' for more details." >&2;}
21116   { (exit 1); exit 1; }; } ;;
21117esac
21118else
21119  if test "$cross_compiling" = yes; then
21120  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21121See \`config.log' for more details." >&5
21122echo "$as_me: error: cannot run test program while cross compiling
21123See \`config.log' for more details." >&2;}
21124   { (exit 1); exit 1; }; }
21125else
21126  cat >conftest.$ac_ext <<_ACEOF
21127/* confdefs.h.  */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h.  */
21132$ac_includes_default
21133long longval () { return (long) (sizeof (unsigned long long)); }
21134unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
21135#include <stdio.h>
21136#include <stdlib.h>
21137int
21138main ()
21139{
21140
21141  FILE *f = fopen ("conftest.val", "w");
21142  if (! f)
21143    exit (1);
21144  if (((long) (sizeof (unsigned long long))) < 0)
21145    {
21146      long i = longval ();
21147      if (i != ((long) (sizeof (unsigned long long))))
21148	exit (1);
21149      fprintf (f, "%ld\n", i);
21150    }
21151  else
21152    {
21153      unsigned long i = ulongval ();
21154      if (i != ((long) (sizeof (unsigned long long))))
21155	exit (1);
21156      fprintf (f, "%lu\n", i);
21157    }
21158  exit (ferror (f) || fclose (f) != 0);
21159
21160  ;
21161  return 0;
21162}
21163_ACEOF
21164rm -f conftest$ac_exeext
21165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21166  (eval $ac_link) 2>&5
21167  ac_status=$?
21168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171  (eval $ac_try) 2>&5
21172  ac_status=$?
21173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174  (exit $ac_status); }; }; then
21175  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
21176else
21177  echo "$as_me: program exited with status $ac_status" >&5
21178echo "$as_me: failed program was:" >&5
21179sed 's/^/| /' conftest.$ac_ext >&5
21180
21181( exit $ac_status )
21182{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
21183See \`config.log' for more details." >&5
21184echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
21185See \`config.log' for more details." >&2;}
21186   { (exit 1); exit 1; }; }
21187fi
21188rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21189fi
21190fi
21191rm -f conftest.val
21192else
21193  ac_cv_sizeof_unsigned_long_long=0
21194fi
21195fi
21196echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
21197echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
21198cat >>confdefs.h <<_ACEOF
21199#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21200_ACEOF
21201
21202
21203  if test "$ac_cv_sizeof_unsigned_long_long" -eq 8; then
21204    uint64_t="unsigned long long"
21205    return
21206  fi
21207
21208
21209  echo "$as_me:$LINENO: checking for unsigned __int64" >&5
21210echo $ECHO_N "checking for unsigned __int64... $ECHO_C" >&6
21211if test "${ac_cv_type_unsigned___int64+set}" = set; then
21212  echo $ECHO_N "(cached) $ECHO_C" >&6
21213else
21214  cat >conftest.$ac_ext <<_ACEOF
21215/* confdefs.h.  */
21216_ACEOF
21217cat confdefs.h >>conftest.$ac_ext
21218cat >>conftest.$ac_ext <<_ACEOF
21219/* end confdefs.h.  */
21220$ac_includes_default
21221int
21222main ()
21223{
21224if ((unsigned __int64 *) 0)
21225  return 0;
21226if (sizeof (unsigned __int64))
21227  return 0;
21228  ;
21229  return 0;
21230}
21231_ACEOF
21232rm -f conftest.$ac_objext
21233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234  (eval $ac_compile) 2>conftest.er1
21235  ac_status=$?
21236  grep -v '^ *+' conftest.er1 >conftest.err
21237  rm -f conftest.er1
21238  cat conftest.err >&5
21239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240  (exit $ac_status); } &&
21241	 { ac_try='test -z "$ac_cxx_werror_flag"
21242			 || test ! -s conftest.err'
21243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244  (eval $ac_try) 2>&5
21245  ac_status=$?
21246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247  (exit $ac_status); }; } &&
21248	 { ac_try='test -s conftest.$ac_objext'
21249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250  (eval $ac_try) 2>&5
21251  ac_status=$?
21252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253  (exit $ac_status); }; }; then
21254  ac_cv_type_unsigned___int64=yes
21255else
21256  echo "$as_me: failed program was:" >&5
21257sed 's/^/| /' conftest.$ac_ext >&5
21258
21259ac_cv_type_unsigned___int64=no
21260fi
21261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262fi
21263echo "$as_me:$LINENO: result: $ac_cv_type_unsigned___int64" >&5
21264echo "${ECHO_T}$ac_cv_type_unsigned___int64" >&6
21265
21266echo "$as_me:$LINENO: checking size of unsigned __int64" >&5
21267echo $ECHO_N "checking size of unsigned __int64... $ECHO_C" >&6
21268if test "${ac_cv_sizeof_unsigned___int64+set}" = set; then
21269  echo $ECHO_N "(cached) $ECHO_C" >&6
21270else
21271  if test "$ac_cv_type_unsigned___int64" = yes; then
21272  # The cast to unsigned long works around a bug in the HP C Compiler
21273  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21274  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21275  # This bug is HP SR number 8606223364.
21276  if test "$cross_compiling" = yes; then
21277  # Depending upon the size, compute the lo and hi bounds.
21278cat >conftest.$ac_ext <<_ACEOF
21279/* confdefs.h.  */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h.  */
21284$ac_includes_default
21285int
21286main ()
21287{
21288static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int64))) >= 0)];
21289test_array [0] = 0
21290
21291  ;
21292  return 0;
21293}
21294_ACEOF
21295rm -f conftest.$ac_objext
21296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21297  (eval $ac_compile) 2>conftest.er1
21298  ac_status=$?
21299  grep -v '^ *+' conftest.er1 >conftest.err
21300  rm -f conftest.er1
21301  cat conftest.err >&5
21302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303  (exit $ac_status); } &&
21304	 { ac_try='test -z "$ac_cxx_werror_flag"
21305			 || test ! -s conftest.err'
21306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307  (eval $ac_try) 2>&5
21308  ac_status=$?
21309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310  (exit $ac_status); }; } &&
21311	 { ac_try='test -s conftest.$ac_objext'
21312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313  (eval $ac_try) 2>&5
21314  ac_status=$?
21315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316  (exit $ac_status); }; }; then
21317  ac_lo=0 ac_mid=0
21318  while :; do
21319    cat >conftest.$ac_ext <<_ACEOF
21320/* confdefs.h.  */
21321_ACEOF
21322cat confdefs.h >>conftest.$ac_ext
21323cat >>conftest.$ac_ext <<_ACEOF
21324/* end confdefs.h.  */
21325$ac_includes_default
21326int
21327main ()
21328{
21329static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int64))) <= $ac_mid)];
21330test_array [0] = 0
21331
21332  ;
21333  return 0;
21334}
21335_ACEOF
21336rm -f conftest.$ac_objext
21337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338  (eval $ac_compile) 2>conftest.er1
21339  ac_status=$?
21340  grep -v '^ *+' conftest.er1 >conftest.err
21341  rm -f conftest.er1
21342  cat conftest.err >&5
21343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344  (exit $ac_status); } &&
21345	 { ac_try='test -z "$ac_cxx_werror_flag"
21346			 || test ! -s conftest.err'
21347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348  (eval $ac_try) 2>&5
21349  ac_status=$?
21350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351  (exit $ac_status); }; } &&
21352	 { ac_try='test -s conftest.$ac_objext'
21353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354  (eval $ac_try) 2>&5
21355  ac_status=$?
21356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357  (exit $ac_status); }; }; then
21358  ac_hi=$ac_mid; break
21359else
21360  echo "$as_me: failed program was:" >&5
21361sed 's/^/| /' conftest.$ac_ext >&5
21362
21363ac_lo=`expr $ac_mid + 1`
21364		    if test $ac_lo -le $ac_mid; then
21365		      ac_lo= ac_hi=
21366		      break
21367		    fi
21368		    ac_mid=`expr 2 '*' $ac_mid + 1`
21369fi
21370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371  done
21372else
21373  echo "$as_me: failed program was:" >&5
21374sed 's/^/| /' conftest.$ac_ext >&5
21375
21376cat >conftest.$ac_ext <<_ACEOF
21377/* confdefs.h.  */
21378_ACEOF
21379cat confdefs.h >>conftest.$ac_ext
21380cat >>conftest.$ac_ext <<_ACEOF
21381/* end confdefs.h.  */
21382$ac_includes_default
21383int
21384main ()
21385{
21386static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int64))) < 0)];
21387test_array [0] = 0
21388
21389  ;
21390  return 0;
21391}
21392_ACEOF
21393rm -f conftest.$ac_objext
21394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21395  (eval $ac_compile) 2>conftest.er1
21396  ac_status=$?
21397  grep -v '^ *+' conftest.er1 >conftest.err
21398  rm -f conftest.er1
21399  cat conftest.err >&5
21400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401  (exit $ac_status); } &&
21402	 { ac_try='test -z "$ac_cxx_werror_flag"
21403			 || test ! -s conftest.err'
21404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405  (eval $ac_try) 2>&5
21406  ac_status=$?
21407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408  (exit $ac_status); }; } &&
21409	 { ac_try='test -s conftest.$ac_objext'
21410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411  (eval $ac_try) 2>&5
21412  ac_status=$?
21413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414  (exit $ac_status); }; }; then
21415  ac_hi=-1 ac_mid=-1
21416  while :; do
21417    cat >conftest.$ac_ext <<_ACEOF
21418/* confdefs.h.  */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h.  */
21423$ac_includes_default
21424int
21425main ()
21426{
21427static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int64))) >= $ac_mid)];
21428test_array [0] = 0
21429
21430  ;
21431  return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext
21435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21436  (eval $ac_compile) 2>conftest.er1
21437  ac_status=$?
21438  grep -v '^ *+' conftest.er1 >conftest.err
21439  rm -f conftest.er1
21440  cat conftest.err >&5
21441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442  (exit $ac_status); } &&
21443	 { ac_try='test -z "$ac_cxx_werror_flag"
21444			 || test ! -s conftest.err'
21445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446  (eval $ac_try) 2>&5
21447  ac_status=$?
21448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449  (exit $ac_status); }; } &&
21450	 { ac_try='test -s conftest.$ac_objext'
21451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452  (eval $ac_try) 2>&5
21453  ac_status=$?
21454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455  (exit $ac_status); }; }; then
21456  ac_lo=$ac_mid; break
21457else
21458  echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
21460
21461ac_hi=`expr '(' $ac_mid ')' - 1`
21462		       if test $ac_mid -le $ac_hi; then
21463			 ac_lo= ac_hi=
21464			 break
21465		       fi
21466		       ac_mid=`expr 2 '*' $ac_mid`
21467fi
21468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21469  done
21470else
21471  echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474ac_lo= ac_hi=
21475fi
21476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21477fi
21478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21479# Binary search between lo and hi bounds.
21480while test "x$ac_lo" != "x$ac_hi"; do
21481  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21482  cat >conftest.$ac_ext <<_ACEOF
21483/* confdefs.h.  */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h.  */
21488$ac_includes_default
21489int
21490main ()
21491{
21492static int test_array [1 - 2 * !(((long) (sizeof (unsigned __int64))) <= $ac_mid)];
21493test_array [0] = 0
21494
21495  ;
21496  return 0;
21497}
21498_ACEOF
21499rm -f conftest.$ac_objext
21500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501  (eval $ac_compile) 2>conftest.er1
21502  ac_status=$?
21503  grep -v '^ *+' conftest.er1 >conftest.err
21504  rm -f conftest.er1
21505  cat conftest.err >&5
21506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507  (exit $ac_status); } &&
21508	 { ac_try='test -z "$ac_cxx_werror_flag"
21509			 || test ! -s conftest.err'
21510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511  (eval $ac_try) 2>&5
21512  ac_status=$?
21513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514  (exit $ac_status); }; } &&
21515	 { ac_try='test -s conftest.$ac_objext'
21516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517  (eval $ac_try) 2>&5
21518  ac_status=$?
21519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520  (exit $ac_status); }; }; then
21521  ac_hi=$ac_mid
21522else
21523  echo "$as_me: failed program was:" >&5
21524sed 's/^/| /' conftest.$ac_ext >&5
21525
21526ac_lo=`expr '(' $ac_mid ')' + 1`
21527fi
21528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21529done
21530case $ac_lo in
21531?*) ac_cv_sizeof_unsigned___int64=$ac_lo;;
21532'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int64), 77
21533See \`config.log' for more details." >&5
21534echo "$as_me: error: cannot compute sizeof (unsigned __int64), 77
21535See \`config.log' for more details." >&2;}
21536   { (exit 1); exit 1; }; } ;;
21537esac
21538else
21539  if test "$cross_compiling" = yes; then
21540  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21541See \`config.log' for more details." >&5
21542echo "$as_me: error: cannot run test program while cross compiling
21543See \`config.log' for more details." >&2;}
21544   { (exit 1); exit 1; }; }
21545else
21546  cat >conftest.$ac_ext <<_ACEOF
21547/* confdefs.h.  */
21548_ACEOF
21549cat confdefs.h >>conftest.$ac_ext
21550cat >>conftest.$ac_ext <<_ACEOF
21551/* end confdefs.h.  */
21552$ac_includes_default
21553long longval () { return (long) (sizeof (unsigned __int64)); }
21554unsigned long ulongval () { return (long) (sizeof (unsigned __int64)); }
21555#include <stdio.h>
21556#include <stdlib.h>
21557int
21558main ()
21559{
21560
21561  FILE *f = fopen ("conftest.val", "w");
21562  if (! f)
21563    exit (1);
21564  if (((long) (sizeof (unsigned __int64))) < 0)
21565    {
21566      long i = longval ();
21567      if (i != ((long) (sizeof (unsigned __int64))))
21568	exit (1);
21569      fprintf (f, "%ld\n", i);
21570    }
21571  else
21572    {
21573      unsigned long i = ulongval ();
21574      if (i != ((long) (sizeof (unsigned __int64))))
21575	exit (1);
21576      fprintf (f, "%lu\n", i);
21577    }
21578  exit (ferror (f) || fclose (f) != 0);
21579
21580  ;
21581  return 0;
21582}
21583_ACEOF
21584rm -f conftest$ac_exeext
21585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586  (eval $ac_link) 2>&5
21587  ac_status=$?
21588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591  (eval $ac_try) 2>&5
21592  ac_status=$?
21593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594  (exit $ac_status); }; }; then
21595  ac_cv_sizeof_unsigned___int64=`cat conftest.val`
21596else
21597  echo "$as_me: program exited with status $ac_status" >&5
21598echo "$as_me: failed program was:" >&5
21599sed 's/^/| /' conftest.$ac_ext >&5
21600
21601( exit $ac_status )
21602{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned __int64), 77
21603See \`config.log' for more details." >&5
21604echo "$as_me: error: cannot compute sizeof (unsigned __int64), 77
21605See \`config.log' for more details." >&2;}
21606   { (exit 1); exit 1; }; }
21607fi
21608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21609fi
21610fi
21611rm -f conftest.val
21612else
21613  ac_cv_sizeof_unsigned___int64=0
21614fi
21615fi
21616echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned___int64" >&5
21617echo "${ECHO_T}$ac_cv_sizeof_unsigned___int64" >&6
21618cat >>confdefs.h <<_ACEOF
21619#define SIZEOF_UNSIGNED___INT64 $ac_cv_sizeof_unsigned___int64
21620_ACEOF
21621
21622
21623  if test "$ac_cv_sizeof_unsigned___int64" -eq 8; then
21624    uint64_t="unsigned __int64"
21625    return
21626  fi
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637    :
21638  }
21639  find_uint64_t
21640
21641cat >>confdefs.h <<_ACEOF
21642#define uint64_t $uint64_t
21643_ACEOF
21644
21645
21646fi
21647
21648
21649
21650  echo "$as_me:$LINENO: checking whether int32_t and int are equivalent types" >&5
21651echo $ECHO_N "checking whether int32_t and int are equivalent types... $ECHO_C" >&6
21652if test "${ac_cv_int32_t_is_int+set}" = set; then
21653  echo $ECHO_N "(cached) $ECHO_C" >&6
21654else
21655  ac_ext=cc
21656ac_cpp='$CXXCPP $CPPFLAGS'
21657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21660
21661    cat >conftest.$ac_ext <<_ACEOF
21662
21663      /* confdefs.h.  */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h.  */
21668$ac_includes_default
21669extern void
21670foo (int32_t);
21671void (*bar) (int) = &foo;
21672int
21673main ()
21674{
21675
21676  ;
21677  return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext
21681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682  (eval $ac_compile) 2>conftest.er1
21683  ac_status=$?
21684  grep -v '^ *+' conftest.er1 >conftest.err
21685  rm -f conftest.er1
21686  cat conftest.err >&5
21687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688  (exit $ac_status); } &&
21689	 { ac_try='test -z "$ac_cxx_werror_flag"
21690			 || test ! -s conftest.err'
21691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692  (eval $ac_try) 2>&5
21693  ac_status=$?
21694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695  (exit $ac_status); }; } &&
21696	 { ac_try='test -s conftest.$ac_objext'
21697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698  (eval $ac_try) 2>&5
21699  ac_status=$?
21700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701  (exit $ac_status); }; }; then
21702  ac_cv_int32_t_is_int=yes
21703else
21704  echo "$as_me: failed program was:" >&5
21705sed 's/^/| /' conftest.$ac_ext >&5
21706
21707ac_cv_int32_t_is_int=no
21708fi
21709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21710    ac_ext=cc
21711ac_cpp='$CXXCPP $CPPFLAGS'
21712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21715
21716fi
21717echo "$as_me:$LINENO: result: $ac_cv_int32_t_is_int" >&5
21718echo "${ECHO_T}$ac_cv_int32_t_is_int" >&6
21719  if test $ac_cv_int32_t_is_int = yes; then
21720
21721cat >>confdefs.h <<_ACEOF
21722#define TYPE_INT32_T_IS_INT 1
21723_ACEOF
21724
21725fi
21726
21727
21728
21729if test "$uint64_t" = no; then
21730    echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21731echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21732if test "${ac_cv_c_bigendian+set}" = set; then
21733  echo $ECHO_N "(cached) $ECHO_C" >&6
21734else
21735  # See if sys/param.h defines the BYTE_ORDER macro.
21736cat >conftest.$ac_ext <<_ACEOF
21737/* confdefs.h.  */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h.  */
21742#include <sys/types.h>
21743#include <sys/param.h>
21744
21745int
21746main ()
21747{
21748#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21749 bogus endian macros
21750#endif
21751
21752  ;
21753  return 0;
21754}
21755_ACEOF
21756rm -f conftest.$ac_objext
21757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21758  (eval $ac_compile) 2>conftest.er1
21759  ac_status=$?
21760  grep -v '^ *+' conftest.er1 >conftest.err
21761  rm -f conftest.er1
21762  cat conftest.err >&5
21763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764  (exit $ac_status); } &&
21765	 { ac_try='test -z "$ac_cxx_werror_flag"
21766			 || test ! -s conftest.err'
21767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768  (eval $ac_try) 2>&5
21769  ac_status=$?
21770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771  (exit $ac_status); }; } &&
21772	 { ac_try='test -s conftest.$ac_objext'
21773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774  (eval $ac_try) 2>&5
21775  ac_status=$?
21776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777  (exit $ac_status); }; }; then
21778  # It does; now see whether it defined to BIG_ENDIAN or not.
21779cat >conftest.$ac_ext <<_ACEOF
21780/* confdefs.h.  */
21781_ACEOF
21782cat confdefs.h >>conftest.$ac_ext
21783cat >>conftest.$ac_ext <<_ACEOF
21784/* end confdefs.h.  */
21785#include <sys/types.h>
21786#include <sys/param.h>
21787
21788int
21789main ()
21790{
21791#if BYTE_ORDER != BIG_ENDIAN
21792 not big endian
21793#endif
21794
21795  ;
21796  return 0;
21797}
21798_ACEOF
21799rm -f conftest.$ac_objext
21800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21801  (eval $ac_compile) 2>conftest.er1
21802  ac_status=$?
21803  grep -v '^ *+' conftest.er1 >conftest.err
21804  rm -f conftest.er1
21805  cat conftest.err >&5
21806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807  (exit $ac_status); } &&
21808	 { ac_try='test -z "$ac_cxx_werror_flag"
21809			 || test ! -s conftest.err'
21810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811  (eval $ac_try) 2>&5
21812  ac_status=$?
21813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814  (exit $ac_status); }; } &&
21815	 { ac_try='test -s conftest.$ac_objext'
21816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817  (eval $ac_try) 2>&5
21818  ac_status=$?
21819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820  (exit $ac_status); }; }; then
21821  ac_cv_c_bigendian=yes
21822else
21823  echo "$as_me: failed program was:" >&5
21824sed 's/^/| /' conftest.$ac_ext >&5
21825
21826ac_cv_c_bigendian=no
21827fi
21828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21829else
21830  echo "$as_me: failed program was:" >&5
21831sed 's/^/| /' conftest.$ac_ext >&5
21832
21833# It does not; compile a test program.
21834if test "$cross_compiling" = yes; then
21835  # try to guess the endianness by grepping values into an object file
21836  ac_cv_c_bigendian=unknown
21837  cat >conftest.$ac_ext <<_ACEOF
21838/* confdefs.h.  */
21839_ACEOF
21840cat confdefs.h >>conftest.$ac_ext
21841cat >>conftest.$ac_ext <<_ACEOF
21842/* end confdefs.h.  */
21843short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21844short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21845void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21846short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21847short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21848void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21849int
21850main ()
21851{
21852 _ascii (); _ebcdic ();
21853  ;
21854  return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext
21858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859  (eval $ac_compile) 2>conftest.er1
21860  ac_status=$?
21861  grep -v '^ *+' conftest.er1 >conftest.err
21862  rm -f conftest.er1
21863  cat conftest.err >&5
21864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865  (exit $ac_status); } &&
21866	 { ac_try='test -z "$ac_cxx_werror_flag"
21867			 || test ! -s conftest.err'
21868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869  (eval $ac_try) 2>&5
21870  ac_status=$?
21871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872  (exit $ac_status); }; } &&
21873	 { ac_try='test -s conftest.$ac_objext'
21874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875  (eval $ac_try) 2>&5
21876  ac_status=$?
21877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878  (exit $ac_status); }; }; then
21879  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21880  ac_cv_c_bigendian=yes
21881fi
21882if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21883  if test "$ac_cv_c_bigendian" = unknown; then
21884    ac_cv_c_bigendian=no
21885  else
21886    # finding both strings is unlikely to happen, but who knows?
21887    ac_cv_c_bigendian=unknown
21888  fi
21889fi
21890else
21891  echo "$as_me: failed program was:" >&5
21892sed 's/^/| /' conftest.$ac_ext >&5
21893
21894fi
21895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21896else
21897  cat >conftest.$ac_ext <<_ACEOF
21898/* confdefs.h.  */
21899_ACEOF
21900cat confdefs.h >>conftest.$ac_ext
21901cat >>conftest.$ac_ext <<_ACEOF
21902/* end confdefs.h.  */
21903int
21904main ()
21905{
21906  /* Are we little or big endian?  From Harbison&Steele.  */
21907  union
21908  {
21909    long l;
21910    char c[sizeof (long)];
21911  } u;
21912  u.l = 1;
21913  exit (u.c[sizeof (long) - 1] == 1);
21914}
21915_ACEOF
21916rm -f conftest$ac_exeext
21917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918  (eval $ac_link) 2>&5
21919  ac_status=$?
21920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923  (eval $ac_try) 2>&5
21924  ac_status=$?
21925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926  (exit $ac_status); }; }; then
21927  ac_cv_c_bigendian=no
21928else
21929  echo "$as_me: program exited with status $ac_status" >&5
21930echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933( exit $ac_status )
21934ac_cv_c_bigendian=yes
21935fi
21936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21937fi
21938fi
21939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21940fi
21941echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21942echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21943case $ac_cv_c_bigendian in
21944  yes)
21945
21946cat >>confdefs.h <<\_ACEOF
21947#define WORDS_BIGENDIAN 1
21948_ACEOF
21949 ;;
21950  no)
21951     ;;
21952  *)
21953    { { echo "$as_me:$LINENO: error: unknown endianness
21954presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21955echo "$as_me: error: unknown endianness
21956presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21957   { (exit 1); exit 1; }; } ;;
21958esac
21959
21960else
21961
21962cat >>confdefs.h <<\_ACEOF
21963#define HAVE_64BIT_TYPES 1
21964_ACEOF
21965
21966fi
21967
21968
21969
21970echo "$as_me:$LINENO: checking for __S_IFDIR symbol" >&5
21971echo $ECHO_N "checking for __S_IFDIR symbol... $ECHO_C" >&6
21972if test "${jikes_cv_stat_ifdir_2underscore+set}" = set; then
21973  echo $ECHO_N "(cached) $ECHO_C" >&6
21974else
21975  cat >conftest.$ac_ext <<_ACEOF
21976/* confdefs.h.  */
21977_ACEOF
21978cat confdefs.h >>conftest.$ac_ext
21979cat >>conftest.$ac_ext <<_ACEOF
21980/* end confdefs.h.  */
21981
21982#include <sys/stat.h>
21983
21984int
21985main ()
21986{
21987int i = __S_IFDIR; i++;
21988  ;
21989  return 0;
21990}
21991_ACEOF
21992rm -f conftest.$ac_objext
21993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21994  (eval $ac_compile) 2>conftest.er1
21995  ac_status=$?
21996  grep -v '^ *+' conftest.er1 >conftest.err
21997  rm -f conftest.er1
21998  cat conftest.err >&5
21999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000  (exit $ac_status); } &&
22001	 { ac_try='test -z "$ac_cxx_werror_flag"
22002			 || test ! -s conftest.err'
22003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004  (eval $ac_try) 2>&5
22005  ac_status=$?
22006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007  (exit $ac_status); }; } &&
22008	 { ac_try='test -s conftest.$ac_objext'
22009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010  (eval $ac_try) 2>&5
22011  ac_status=$?
22012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013  (exit $ac_status); }; }; then
22014  jikes_cv_stat_ifdir_2underscore=yes
22015else
22016  echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019jikes_cv_stat_ifdir_2underscore=no
22020fi
22021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22022fi
22023echo "$as_me:$LINENO: result: $jikes_cv_stat_ifdir_2underscore" >&5
22024echo "${ECHO_T}$jikes_cv_stat_ifdir_2underscore" >&6
22025
22026echo "$as_me:$LINENO: checking for _S_IFDIR symbol" >&5
22027echo $ECHO_N "checking for _S_IFDIR symbol... $ECHO_C" >&6
22028if test "${jikes_cv_stat_ifdir_1underscore+set}" = set; then
22029  echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031  cat >conftest.$ac_ext <<_ACEOF
22032/* confdefs.h.  */
22033_ACEOF
22034cat confdefs.h >>conftest.$ac_ext
22035cat >>conftest.$ac_ext <<_ACEOF
22036/* end confdefs.h.  */
22037
22038#include <sys/stat.h>
22039
22040int
22041main ()
22042{
22043int i = _S_IFDIR; i++;
22044  ;
22045  return 0;
22046}
22047_ACEOF
22048rm -f conftest.$ac_objext
22049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22050  (eval $ac_compile) 2>conftest.er1
22051  ac_status=$?
22052  grep -v '^ *+' conftest.er1 >conftest.err
22053  rm -f conftest.er1
22054  cat conftest.err >&5
22055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056  (exit $ac_status); } &&
22057	 { ac_try='test -z "$ac_cxx_werror_flag"
22058			 || test ! -s conftest.err'
22059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060  (eval $ac_try) 2>&5
22061  ac_status=$?
22062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063  (exit $ac_status); }; } &&
22064	 { ac_try='test -s conftest.$ac_objext'
22065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066  (eval $ac_try) 2>&5
22067  ac_status=$?
22068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069  (exit $ac_status); }; }; then
22070  jikes_cv_stat_ifdir_1underscore=yes
22071else
22072  echo "$as_me: failed program was:" >&5
22073sed 's/^/| /' conftest.$ac_ext >&5
22074
22075jikes_cv_stat_ifdir_1underscore=no
22076fi
22077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22078fi
22079echo "$as_me:$LINENO: result: $jikes_cv_stat_ifdir_1underscore" >&5
22080echo "${ECHO_T}$jikes_cv_stat_ifdir_1underscore" >&6
22081
22082echo "$as_me:$LINENO: checking for S_IFDIR symbol" >&5
22083echo $ECHO_N "checking for S_IFDIR symbol... $ECHO_C" >&6
22084if test "${jikes_cv_stat_ifdir_0underscore+set}" = set; then
22085  echo $ECHO_N "(cached) $ECHO_C" >&6
22086else
22087  cat >conftest.$ac_ext <<_ACEOF
22088/* confdefs.h.  */
22089_ACEOF
22090cat confdefs.h >>conftest.$ac_ext
22091cat >>conftest.$ac_ext <<_ACEOF
22092/* end confdefs.h.  */
22093
22094#include <sys/stat.h>
22095
22096int
22097main ()
22098{
22099int i = S_IFDIR; i++;
22100  ;
22101  return 0;
22102}
22103_ACEOF
22104rm -f conftest.$ac_objext
22105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22106  (eval $ac_compile) 2>conftest.er1
22107  ac_status=$?
22108  grep -v '^ *+' conftest.er1 >conftest.err
22109  rm -f conftest.er1
22110  cat conftest.err >&5
22111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112  (exit $ac_status); } &&
22113	 { ac_try='test -z "$ac_cxx_werror_flag"
22114			 || test ! -s conftest.err'
22115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116  (eval $ac_try) 2>&5
22117  ac_status=$?
22118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119  (exit $ac_status); }; } &&
22120	 { ac_try='test -s conftest.$ac_objext'
22121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122  (eval $ac_try) 2>&5
22123  ac_status=$?
22124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125  (exit $ac_status); }; }; then
22126  jikes_cv_stat_ifdir_0underscore=yes
22127else
22128  echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131jikes_cv_stat_ifdir_0underscore=no
22132fi
22133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22134fi
22135echo "$as_me:$LINENO: result: $jikes_cv_stat_ifdir_0underscore" >&5
22136echo "${ECHO_T}$jikes_cv_stat_ifdir_0underscore" >&6
22137
22138if test "$jikes_cv_stat_ifdir_2underscore" = "yes"; then
22139
22140cat >>confdefs.h <<\_ACEOF
22141#define JIKES_STAT_S_IFDIR __S_IFDIR
22142_ACEOF
22143
22144elif test "$jikes_cv_stat_ifdir_1underscore" = "yes"; then
22145
22146cat >>confdefs.h <<\_ACEOF
22147#define JIKES_STAT_S_IFDIR _S_IFDIR
22148_ACEOF
22149
22150elif test "$jikes_cv_stat_ifdir_0underscore" = "yes"; then
22151
22152cat >>confdefs.h <<\_ACEOF
22153#define JIKES_STAT_S_IFDIR S_IFDIR
22154_ACEOF
22155
22156else
22157    { { echo "$as_me:$LINENO: error: Could not find stat S_IFDIR symbol" >&5
22158echo "$as_me: error: Could not find stat S_IFDIR symbol" >&2;}
22159   { (exit 1); exit 1; }; }
22160fi
22161
22162
22163
22164
22165
22166for ac_func in mkdir
22167do
22168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22169echo "$as_me:$LINENO: checking for $ac_func" >&5
22170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22171if eval "test \"\${$as_ac_var+set}\" = set"; then
22172  echo $ECHO_N "(cached) $ECHO_C" >&6
22173else
22174  cat >conftest.$ac_ext <<_ACEOF
22175/* confdefs.h.  */
22176_ACEOF
22177cat confdefs.h >>conftest.$ac_ext
22178cat >>conftest.$ac_ext <<_ACEOF
22179/* end confdefs.h.  */
22180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22181   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22182#define $ac_func innocuous_$ac_func
22183
22184/* System header to define __stub macros and hopefully few prototypes,
22185    which can conflict with char $ac_func (); below.
22186    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187    <limits.h> exists even on freestanding compilers.  */
22188
22189#ifdef __STDC__
22190# include <limits.h>
22191#else
22192# include <assert.h>
22193#endif
22194
22195#undef $ac_func
22196
22197/* Override any gcc2 internal prototype to avoid an error.  */
22198#ifdef __cplusplus
22199extern "C"
22200{
22201#endif
22202/* We use char because int might match the return type of a gcc2
22203   builtin and then its argument prototype would still apply.  */
22204char $ac_func ();
22205/* The GNU C library defines this for functions which it implements
22206    to always fail with ENOSYS.  Some functions are actually named
22207    something starting with __ and the normal name is an alias.  */
22208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22209choke me
22210#else
22211char (*f) () = $ac_func;
22212#endif
22213#ifdef __cplusplus
22214}
22215#endif
22216
22217int
22218main ()
22219{
22220return f != $ac_func;
22221  ;
22222  return 0;
22223}
22224_ACEOF
22225rm -f conftest.$ac_objext conftest$ac_exeext
22226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22227  (eval $ac_link) 2>conftest.er1
22228  ac_status=$?
22229  grep -v '^ *+' conftest.er1 >conftest.err
22230  rm -f conftest.er1
22231  cat conftest.err >&5
22232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233  (exit $ac_status); } &&
22234	 { ac_try='test -z "$ac_cxx_werror_flag"
22235			 || test ! -s conftest.err'
22236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237  (eval $ac_try) 2>&5
22238  ac_status=$?
22239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240  (exit $ac_status); }; } &&
22241	 { ac_try='test -s conftest$ac_exeext'
22242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243  (eval $ac_try) 2>&5
22244  ac_status=$?
22245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246  (exit $ac_status); }; }; then
22247  eval "$as_ac_var=yes"
22248else
22249  echo "$as_me: failed program was:" >&5
22250sed 's/^/| /' conftest.$ac_ext >&5
22251
22252eval "$as_ac_var=no"
22253fi
22254rm -f conftest.err conftest.$ac_objext \
22255      conftest$ac_exeext conftest.$ac_ext
22256fi
22257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22259if test `eval echo '${'$as_ac_var'}'` = yes; then
22260  cat >>confdefs.h <<_ACEOF
22261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22262_ACEOF
22263
22264else
22265  { { echo "$as_me:$LINENO: error: No mkdir() function found" >&5
22266echo "$as_me: error: No mkdir() function found" >&2;}
22267   { (exit 1); exit 1; }; }
22268fi
22269done
22270
22271
22272echo "$as_me:$LINENO: checking for mac style mkdir" >&5
22273echo $ECHO_N "checking for mac style mkdir... $ECHO_C" >&6
22274if test "${jikes_cv_mac_mkdir+set}" = set; then
22275  echo $ECHO_N "(cached) $ECHO_C" >&6
22276else
22277  cat >conftest.$ac_ext <<_ACEOF
22278/* confdefs.h.  */
22279_ACEOF
22280cat confdefs.h >>conftest.$ac_ext
22281cat >>conftest.$ac_ext <<_ACEOF
22282/* end confdefs.h.  */
22283
22284#include <sys/stat.h>
22285#include <stat.mac.h>
22286
22287int
22288main ()
22289{
22290mkdir("foo.dir", 0);
22291
22292  ;
22293  return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext conftest$ac_exeext
22297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22298  (eval $ac_link) 2>conftest.er1
22299  ac_status=$?
22300  grep -v '^ *+' conftest.er1 >conftest.err
22301  rm -f conftest.er1
22302  cat conftest.err >&5
22303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304  (exit $ac_status); } &&
22305	 { ac_try='test -z "$ac_cxx_werror_flag"
22306			 || test ! -s conftest.err'
22307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308  (eval $ac_try) 2>&5
22309  ac_status=$?
22310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311  (exit $ac_status); }; } &&
22312	 { ac_try='test -s conftest$ac_exeext'
22313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314  (eval $ac_try) 2>&5
22315  ac_status=$?
22316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317  (exit $ac_status); }; }; then
22318  jikes_cv_mac_mkdir=yes
22319else
22320  echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323jikes_cv_mac_mkdir=no
22324fi
22325rm -f conftest.err conftest.$ac_objext \
22326      conftest$ac_exeext conftest.$ac_ext
22327
22328fi
22329echo "$as_me:$LINENO: result: $jikes_cv_mac_mkdir" >&5
22330echo "${ECHO_T}$jikes_cv_mac_mkdir" >&6
22331
22332echo "$as_me:$LINENO: checking for glibc style mkdir" >&5
22333echo $ECHO_N "checking for glibc style mkdir... $ECHO_C" >&6
22334if test "${jikes_cv_glibc_mkdir+set}" = set; then
22335  echo $ECHO_N "(cached) $ECHO_C" >&6
22336else
22337  cat >conftest.$ac_ext <<_ACEOF
22338/* confdefs.h.  */
22339_ACEOF
22340cat confdefs.h >>conftest.$ac_ext
22341cat >>conftest.$ac_ext <<_ACEOF
22342/* end confdefs.h.  */
22343
22344#include <sys/stat.h>
22345#include <unistd.h>
22346
22347int
22348main ()
22349{
22350mkdir("foo.dir", S_IRWXU | S_IRWXG | S_IRWXO);
22351
22352  ;
22353  return 0;
22354}
22355_ACEOF
22356rm -f conftest.$ac_objext conftest$ac_exeext
22357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22358  (eval $ac_link) 2>conftest.er1
22359  ac_status=$?
22360  grep -v '^ *+' conftest.er1 >conftest.err
22361  rm -f conftest.er1
22362  cat conftest.err >&5
22363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364  (exit $ac_status); } &&
22365	 { ac_try='test -z "$ac_cxx_werror_flag"
22366			 || test ! -s conftest.err'
22367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368  (eval $ac_try) 2>&5
22369  ac_status=$?
22370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371  (exit $ac_status); }; } &&
22372	 { ac_try='test -s conftest$ac_exeext'
22373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374  (eval $ac_try) 2>&5
22375  ac_status=$?
22376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377  (exit $ac_status); }; }; then
22378  jikes_cv_glibc_mkdir=yes
22379else
22380  echo "$as_me: failed program was:" >&5
22381sed 's/^/| /' conftest.$ac_ext >&5
22382
22383jikes_cv_glibc_mkdir=no
22384fi
22385rm -f conftest.err conftest.$ac_objext \
22386      conftest$ac_exeext conftest.$ac_ext
22387
22388fi
22389echo "$as_me:$LINENO: result: $jikes_cv_glibc_mkdir" >&5
22390echo "${ECHO_T}$jikes_cv_glibc_mkdir" >&6
22391
22392echo "$as_me:$LINENO: checking for libc5 style mkdir" >&5
22393echo $ECHO_N "checking for libc5 style mkdir... $ECHO_C" >&6
22394if test "${jikes_cv_libc5_mkdir+set}" = set; then
22395  echo $ECHO_N "(cached) $ECHO_C" >&6
22396else
22397  cat >conftest.$ac_ext <<_ACEOF
22398/* confdefs.h.  */
22399_ACEOF
22400cat confdefs.h >>conftest.$ac_ext
22401cat >>conftest.$ac_ext <<_ACEOF
22402/* end confdefs.h.  */
22403
22404#include <sys/stat.h>
22405#include <unistd.h>
22406
22407int
22408main ()
22409{
22410mkdir("foo.dir", S_IRWXU);
22411
22412  ;
22413  return 0;
22414}
22415_ACEOF
22416rm -f conftest.$ac_objext conftest$ac_exeext
22417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22418  (eval $ac_link) 2>conftest.er1
22419  ac_status=$?
22420  grep -v '^ *+' conftest.er1 >conftest.err
22421  rm -f conftest.er1
22422  cat conftest.err >&5
22423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424  (exit $ac_status); } &&
22425	 { ac_try='test -z "$ac_cxx_werror_flag"
22426			 || test ! -s conftest.err'
22427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428  (eval $ac_try) 2>&5
22429  ac_status=$?
22430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431  (exit $ac_status); }; } &&
22432	 { ac_try='test -s conftest$ac_exeext'
22433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434  (eval $ac_try) 2>&5
22435  ac_status=$?
22436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437  (exit $ac_status); }; }; then
22438  jikes_cv_libc5_mkdir=yes
22439else
22440  echo "$as_me: failed program was:" >&5
22441sed 's/^/| /' conftest.$ac_ext >&5
22442
22443jikes_cv_libc5_mkdir=no
22444fi
22445rm -f conftest.err conftest.$ac_objext \
22446      conftest$ac_exeext conftest.$ac_ext
22447
22448fi
22449echo "$as_me:$LINENO: result: $jikes_cv_libc5_mkdir" >&5
22450echo "${ECHO_T}$jikes_cv_libc5_mkdir" >&6
22451
22452echo "$as_me:$LINENO: checking for win32 style mkdir" >&5
22453echo $ECHO_N "checking for win32 style mkdir... $ECHO_C" >&6
22454if test "${jikes_cv_win32_mkdir+set}" = set; then
22455  echo $ECHO_N "(cached) $ECHO_C" >&6
22456else
22457  cat >conftest.$ac_ext <<_ACEOF
22458/* confdefs.h.  */
22459_ACEOF
22460cat confdefs.h >>conftest.$ac_ext
22461cat >>conftest.$ac_ext <<_ACEOF
22462/* end confdefs.h.  */
22463
22464#include <direct.h>
22465
22466int
22467main ()
22468{
22469mkdir("foo.dir");
22470
22471  ;
22472  return 0;
22473}
22474_ACEOF
22475rm -f conftest.$ac_objext conftest$ac_exeext
22476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22477  (eval $ac_link) 2>conftest.er1
22478  ac_status=$?
22479  grep -v '^ *+' conftest.er1 >conftest.err
22480  rm -f conftest.er1
22481  cat conftest.err >&5
22482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483  (exit $ac_status); } &&
22484	 { ac_try='test -z "$ac_cxx_werror_flag"
22485			 || test ! -s conftest.err'
22486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487  (eval $ac_try) 2>&5
22488  ac_status=$?
22489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490  (exit $ac_status); }; } &&
22491	 { ac_try='test -s conftest$ac_exeext'
22492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493  (eval $ac_try) 2>&5
22494  ac_status=$?
22495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496  (exit $ac_status); }; }; then
22497  jikes_cv_win32_mkdir=yes
22498else
22499  echo "$as_me: failed program was:" >&5
22500sed 's/^/| /' conftest.$ac_ext >&5
22501
22502jikes_cv_win32_mkdir=no
22503fi
22504rm -f conftest.err conftest.$ac_objext \
22505      conftest$ac_exeext conftest.$ac_ext
22506
22507fi
22508echo "$as_me:$LINENO: result: $jikes_cv_win32_mkdir" >&5
22509echo "${ECHO_T}$jikes_cv_win32_mkdir" >&6
22510
22511if test "$jikes_cv_glibc_mkdir" = "yes" ; then
22512
22513cat >>confdefs.h <<\_ACEOF
22514#define HAVE_GLIBC_MKDIR
22515_ACEOF
22516
22517elif test "$jikes_cv_libc5_mkdir" = "yes" ; then
22518
22519cat >>confdefs.h <<\_ACEOF
22520#define HAVE_LIBC5_MKDIR
22521_ACEOF
22522
22523elif test "$jikes_cv_win32_mkdir" = "yes" ; then
22524
22525cat >>confdefs.h <<\_ACEOF
22526#define HAVE_WIN32_MKDIR
22527_ACEOF
22528
22529elif test "$jikes_cv_mac_mkdir" = "yes" ; then
22530
22531cat >>confdefs.h <<\_ACEOF
22532#define HAVE_MAC_MKDIR
22533_ACEOF
22534
22535else
22536    { { echo "$as_me:$LINENO: error: Could not locate a working mkdir() implementation" >&5
22537echo "$as_me: error: Could not locate a working mkdir() implementation" >&2;}
22538   { (exit 1); exit 1; }; }
22539fi
22540
22541
22542
22543
22544
22545
22546echo "$as_me:$LINENO: checking floating point bug workaround for ICC compiler" >&5
22547echo $ECHO_N "checking floating point bug workaround for ICC compiler... $ECHO_C" >&6
22548if test "${jikes_cv_icc_fp_bugs+set}" = set; then
22549  echo $ECHO_N "(cached) $ECHO_C" >&6
22550else
22551  if test "$CXX" = ICC || test "$CXX" = vacpp; then
22552  cat >conftest.$ac_ext <<_ACEOF
22553/* confdefs.h.  */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h.  */
22558#include <float.h>
22559int
22560main ()
22561{
22562 _control87(EM_UNDERFLOW, EM_UNDERFLOW);
22563  ;
22564  return 0;
22565}
22566_ACEOF
22567rm -f conftest.$ac_objext
22568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22569  (eval $ac_compile) 2>conftest.er1
22570  ac_status=$?
22571  grep -v '^ *+' conftest.er1 >conftest.err
22572  rm -f conftest.er1
22573  cat conftest.err >&5
22574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575  (exit $ac_status); } &&
22576	 { ac_try='test -z "$ac_cxx_werror_flag"
22577			 || test ! -s conftest.err'
22578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579  (eval $ac_try) 2>&5
22580  ac_status=$?
22581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582  (exit $ac_status); }; } &&
22583	 { ac_try='test -s conftest.$ac_objext'
22584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585  (eval $ac_try) 2>&5
22586  ac_status=$?
22587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588  (exit $ac_status); }; }; then
22589  jikes_cv_icc_fp_bugs=yes
22590else
22591  echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
22594jikes_cv_icc_fp_bugs=no
22595fi
22596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22597else
22598  jikes_cv_icc_fp_bugs=no
22599fi
22600
22601fi
22602echo "$as_me:$LINENO: result: $jikes_cv_icc_fp_bugs" >&5
22603echo "${ECHO_T}$jikes_cv_icc_fp_bugs" >&6
22604
22605if test "$jikes_cv_icc_fp_bugs" = yes; then
22606
22607cat >>confdefs.h <<\_ACEOF
22608#define HAVE_ICC_FP_BUGS
22609_ACEOF
22610
22611fi
22612
22613
22614
22615# Check whether --with-jikespg or --without-jikespg was given.
22616if test "${with_jikespg+set}" = set; then
22617  withval="$with_jikespg"
22618  JIKESPG=$withval
22619else
22620  JIKESPG=NONE
22621fi;
22622
22623if test "$JIKESPG" != NONE; then
22624  if test ! -f "$JIKESPG" || test ! -x "$JIKESPG"; then
22625  { { echo "$as_me:$LINENO: error: jikespg argument '$JIKESPG' is not a file or is not executable" >&5
22626echo "$as_me: error: jikespg argument '$JIKESPG' is not a file or is not executable" >&2;}
22627   { (exit 1); exit 1; }; }
22628fi
22629
22630else
22631  JIKESPG=jikespg
22632fi
22633
22634
22635
22636
22637# Turn on beta version of 1.5 support
22638# Check whether --enable-source15 or --disable-source15 was given.
22639if test "${enable_source15+set}" = set; then
22640  enableval="$enable_source15"
22641  source15=$enableval
22642else
22643  source15=no
22644fi;
22645if test $source15 = yes; then
22646
22647cat >>confdefs.h <<\_ACEOF
22648#define ENABLE_SOURCE_15 1
22649_ACEOF
22650
22651else
22652
22653cat >>confdefs.h <<\_ACEOF
22654#define ENABLE_SOURCE_15 0
22655_ACEOF
22656
22657fi
22658
22659
22660# Subst variables into Makefile.in to produce the Makefile
22661
22662                              ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
22663
22664cat >confcache <<\_ACEOF
22665# This file is a shell script that caches the results of configure
22666# tests run on this system so they can be shared between configure
22667# scripts and configure runs, see configure's option --config-cache.
22668# It is not useful on other systems.  If it contains results you don't
22669# want to keep, you may remove or edit it.
22670#
22671# config.status only pays attention to the cache file if you give it
22672# the --recheck option to rerun configure.
22673#
22674# `ac_cv_env_foo' variables (set or unset) will be overridden when
22675# loading this file, other *unset* `ac_cv_foo' will be assigned the
22676# following values.
22677
22678_ACEOF
22679
22680# The following way of writing the cache mishandles newlines in values,
22681# but we know of no workaround that is simple, portable, and efficient.
22682# So, don't put newlines in cache variables' values.
22683# Ultrix sh set writes to stderr and can't be redirected directly,
22684# and sets the high bit in the cache file unless we assign to the vars.
22685{
22686  (set) 2>&1 |
22687    case `(ac_space=' '; set | grep ac_space) 2>&1` in
22688    *ac_space=\ *)
22689      # `set' does not quote correctly, so add quotes (double-quote
22690      # substitution turns \\\\ into \\, and sed turns \\ into \).
22691      sed -n \
22692	"s/'/'\\\\''/g;
22693	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22694      ;;
22695    *)
22696      # `set' quotes correctly as required by POSIX, so do not add quotes.
22697      sed -n \
22698	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22699      ;;
22700    esac;
22701} |
22702  sed '
22703     t clear
22704     : clear
22705     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22706     t end
22707     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22708     : end' >>confcache
22709if diff $cache_file confcache >/dev/null 2>&1; then :; else
22710  if test -w $cache_file; then
22711    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22712    cat confcache >$cache_file
22713  else
22714    echo "not updating unwritable cache $cache_file"
22715  fi
22716fi
22717rm -f confcache
22718
22719test "x$prefix" = xNONE && prefix=$ac_default_prefix
22720# Let make expand exec_prefix.
22721test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22722
22723# VPATH may cause trouble with some makes, so we remove $(srcdir),
22724# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22725# trailing colons and then remove the whole line if VPATH becomes empty
22726# (actually we leave an empty line to preserve line numbers).
22727if test "x$srcdir" = x.; then
22728  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22729s/:*\$(srcdir):*/:/;
22730s/:*\${srcdir}:*/:/;
22731s/:*@srcdir@:*/:/;
22732s/^\([^=]*=[	 ]*\):*/\1/;
22733s/:*$//;
22734s/^[^=]*=[	 ]*$//;
22735}'
22736fi
22737
22738DEFS=-DHAVE_CONFIG_H
22739
22740ac_libobjs=
22741ac_ltlibobjs=
22742for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22743  # 1. Remove the extension, and $U if already installed.
22744  ac_i=`echo "$ac_i" |
22745	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22746  # 2. Add them.
22747  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22748  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22749done
22750LIBOBJS=$ac_libobjs
22751
22752LTLIBOBJS=$ac_ltlibobjs
22753
22754
22755if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22756  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22757Usually this means the macro was only invoked conditionally." >&5
22758echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22759Usually this means the macro was only invoked conditionally." >&2;}
22760   { (exit 1); exit 1; }; }
22761fi
22762if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22763  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22764Usually this means the macro was only invoked conditionally." >&5
22765echo "$as_me: error: conditional \"AMDEP\" was never defined.
22766Usually this means the macro was only invoked conditionally." >&2;}
22767   { (exit 1); exit 1; }; }
22768fi
22769if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22770  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22771Usually this means the macro was only invoked conditionally." >&5
22772echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22773Usually this means the macro was only invoked conditionally." >&2;}
22774   { (exit 1); exit 1; }; }
22775fi
22776
22777: ${CONFIG_STATUS=./config.status}
22778ac_clean_files_save=$ac_clean_files
22779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22780{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22781echo "$as_me: creating $CONFIG_STATUS" >&6;}
22782cat >$CONFIG_STATUS <<_ACEOF
22783#! $SHELL
22784# Generated by $as_me.
22785# Run this file to recreate the current configuration.
22786# Compiler output produced by configure, useful for debugging
22787# configure, is in config.log if it exists.
22788
22789debug=false
22790ac_cs_recheck=false
22791ac_cs_silent=false
22792SHELL=\${CONFIG_SHELL-$SHELL}
22793_ACEOF
22794
22795cat >>$CONFIG_STATUS <<\_ACEOF
22796## --------------------- ##
22797## M4sh Initialization.  ##
22798## --------------------- ##
22799
22800# Be Bourne compatible
22801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22802  emulate sh
22803  NULLCMD=:
22804  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22805  # is contrary to our usage.  Disable this feature.
22806  alias -g '${1+"$@"}'='"$@"'
22807elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22808  set -o posix
22809fi
22810DUALCASE=1; export DUALCASE # for MKS sh
22811
22812# Support unset when possible.
22813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22814  as_unset=unset
22815else
22816  as_unset=false
22817fi
22818
22819
22820# Work around bugs in pre-3.0 UWIN ksh.
22821$as_unset ENV MAIL MAILPATH
22822PS1='$ '
22823PS2='> '
22824PS4='+ '
22825
22826# NLS nuisances.
22827for as_var in \
22828  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22829  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22830  LC_TELEPHONE LC_TIME
22831do
22832  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22833    eval $as_var=C; export $as_var
22834  else
22835    $as_unset $as_var
22836  fi
22837done
22838
22839# Required to use basename.
22840if expr a : '\(a\)' >/dev/null 2>&1; then
22841  as_expr=expr
22842else
22843  as_expr=false
22844fi
22845
22846if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22847  as_basename=basename
22848else
22849  as_basename=false
22850fi
22851
22852
22853# Name of the executable.
22854as_me=`$as_basename "$0" ||
22855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22856	 X"$0" : 'X\(//\)$' \| \
22857	 X"$0" : 'X\(/\)$' \| \
22858	 .     : '\(.\)' 2>/dev/null ||
22859echo X/"$0" |
22860    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22861  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22862  	  /^X\/\(\/\).*/{ s//\1/; q; }
22863  	  s/.*/./; q'`
22864
22865
22866# PATH needs CR, and LINENO needs CR and PATH.
22867# Avoid depending upon Character Ranges.
22868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22871as_cr_digits='0123456789'
22872as_cr_alnum=$as_cr_Letters$as_cr_digits
22873
22874# The user is always right.
22875if test "${PATH_SEPARATOR+set}" != set; then
22876  echo "#! /bin/sh" >conf$$.sh
22877  echo  "exit 0"   >>conf$$.sh
22878  chmod +x conf$$.sh
22879  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22880    PATH_SEPARATOR=';'
22881  else
22882    PATH_SEPARATOR=:
22883  fi
22884  rm -f conf$$.sh
22885fi
22886
22887
22888  as_lineno_1=$LINENO
22889  as_lineno_2=$LINENO
22890  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22891  test "x$as_lineno_1" != "x$as_lineno_2" &&
22892  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22893  # Find who we are.  Look in the path if we contain no path at all
22894  # relative or not.
22895  case $0 in
22896    *[\\/]* ) as_myself=$0 ;;
22897    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22898for as_dir in $PATH
22899do
22900  IFS=$as_save_IFS
22901  test -z "$as_dir" && as_dir=.
22902  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22903done
22904
22905       ;;
22906  esac
22907  # We did not find ourselves, most probably we were run as `sh COMMAND'
22908  # in which case we are not to be found in the path.
22909  if test "x$as_myself" = x; then
22910    as_myself=$0
22911  fi
22912  if test ! -f "$as_myself"; then
22913    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22914echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22915   { (exit 1); exit 1; }; }
22916  fi
22917  case $CONFIG_SHELL in
22918  '')
22919    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22920for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22921do
22922  IFS=$as_save_IFS
22923  test -z "$as_dir" && as_dir=.
22924  for as_base in sh bash ksh sh5; do
22925	 case $as_dir in
22926	 /*)
22927	   if ("$as_dir/$as_base" -c '
22928  as_lineno_1=$LINENO
22929  as_lineno_2=$LINENO
22930  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22931  test "x$as_lineno_1" != "x$as_lineno_2" &&
22932  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22933	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22934	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22935	     CONFIG_SHELL=$as_dir/$as_base
22936	     export CONFIG_SHELL
22937	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22938	   fi;;
22939	 esac
22940       done
22941done
22942;;
22943  esac
22944
22945  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22946  # uniformly replaced by the line number.  The first 'sed' inserts a
22947  # line-number line before each line; the second 'sed' does the real
22948  # work.  The second script uses 'N' to pair each line-number line
22949  # with the numbered line, and appends trailing '-' during
22950  # substitution so that $LINENO is not a special case at line end.
22951  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22952  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22953  sed '=' <$as_myself |
22954    sed '
22955      N
22956      s,$,-,
22957      : loop
22958      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22959      t loop
22960      s,-$,,
22961      s,^['$as_cr_digits']*\n,,
22962    ' >$as_me.lineno &&
22963  chmod +x $as_me.lineno ||
22964    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22965echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22966   { (exit 1); exit 1; }; }
22967
22968  # Don't try to exec as it changes $[0], causing all sort of problems
22969  # (the dirname of $[0] is not the place where we might find the
22970  # original and so on.  Autoconf is especially sensible to this).
22971  . ./$as_me.lineno
22972  # Exit status is that of the last command.
22973  exit
22974}
22975
22976
22977case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22978  *c*,-n*) ECHO_N= ECHO_C='
22979' ECHO_T='	' ;;
22980  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22981  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22982esac
22983
22984if expr a : '\(a\)' >/dev/null 2>&1; then
22985  as_expr=expr
22986else
22987  as_expr=false
22988fi
22989
22990rm -f conf$$ conf$$.exe conf$$.file
22991echo >conf$$.file
22992if ln -s conf$$.file conf$$ 2>/dev/null; then
22993  # We could just check for DJGPP; but this test a) works b) is more generic
22994  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22995  if test -f conf$$.exe; then
22996    # Don't use ln at all; we don't have any links
22997    as_ln_s='cp -p'
22998  else
22999    as_ln_s='ln -s'
23000  fi
23001elif ln conf$$.file conf$$ 2>/dev/null; then
23002  as_ln_s=ln
23003else
23004  as_ln_s='cp -p'
23005fi
23006rm -f conf$$ conf$$.exe conf$$.file
23007
23008if mkdir -p . 2>/dev/null; then
23009  as_mkdir_p=:
23010else
23011  test -d ./-p && rmdir ./-p
23012  as_mkdir_p=false
23013fi
23014
23015as_executable_p="test -f"
23016
23017# Sed expression to map a string onto a valid CPP name.
23018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23019
23020# Sed expression to map a string onto a valid variable name.
23021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23022
23023
23024# IFS
23025# We need space, tab and new line, in precisely that order.
23026as_nl='
23027'
23028IFS=" 	$as_nl"
23029
23030# CDPATH.
23031$as_unset CDPATH
23032
23033exec 6>&1
23034
23035# Open the log real soon, to keep \$[0] and so on meaningful, and to
23036# report actual input values of CONFIG_FILES etc. instead of their
23037# values after options handling.  Logging --version etc. is OK.
23038exec 5>>config.log
23039{
23040  echo
23041  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23042## Running $as_me. ##
23043_ASBOX
23044} >&5
23045cat >&5 <<_CSEOF
23046
23047This file was extended by jikes $as_me 1.22, which was
23048generated by GNU Autoconf 2.59.  Invocation command line was
23049
23050  CONFIG_FILES    = $CONFIG_FILES
23051  CONFIG_HEADERS  = $CONFIG_HEADERS
23052  CONFIG_LINKS    = $CONFIG_LINKS
23053  CONFIG_COMMANDS = $CONFIG_COMMANDS
23054  $ $0 $@
23055
23056_CSEOF
23057echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23058echo >&5
23059_ACEOF
23060
23061# Files that config.status was made for.
23062if test -n "$ac_config_files"; then
23063  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23064fi
23065
23066if test -n "$ac_config_headers"; then
23067  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23068fi
23069
23070if test -n "$ac_config_links"; then
23071  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23072fi
23073
23074if test -n "$ac_config_commands"; then
23075  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23076fi
23077
23078cat >>$CONFIG_STATUS <<\_ACEOF
23079
23080ac_cs_usage="\
23081\`$as_me' instantiates files from templates according to the
23082current configuration.
23083
23084Usage: $0 [OPTIONS] [FILE]...
23085
23086  -h, --help       print this help, then exit
23087  -V, --version    print version number, then exit
23088  -q, --quiet      do not print progress messages
23089  -d, --debug      don't remove temporary files
23090      --recheck    update $as_me by reconfiguring in the same conditions
23091  --file=FILE[:TEMPLATE]
23092		   instantiate the configuration file FILE
23093  --header=FILE[:TEMPLATE]
23094		   instantiate the configuration header FILE
23095
23096Configuration files:
23097$config_files
23098
23099Configuration headers:
23100$config_headers
23101
23102Configuration commands:
23103$config_commands
23104
23105Report bugs to <bug-autoconf@gnu.org>."
23106_ACEOF
23107
23108cat >>$CONFIG_STATUS <<_ACEOF
23109ac_cs_version="\\
23110jikes config.status 1.22
23111configured by $0, generated by GNU Autoconf 2.59,
23112  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23113
23114Copyright (C) 2003 Free Software Foundation, Inc.
23115This config.status script is free software; the Free Software Foundation
23116gives unlimited permission to copy, distribute and modify it."
23117srcdir=$srcdir
23118INSTALL="$INSTALL"
23119_ACEOF
23120
23121cat >>$CONFIG_STATUS <<\_ACEOF
23122# If no file are specified by the user, then we need to provide default
23123# value.  By we need to know if files were specified by the user.
23124ac_need_defaults=:
23125while test $# != 0
23126do
23127  case $1 in
23128  --*=*)
23129    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23130    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23131    ac_shift=:
23132    ;;
23133  -*)
23134    ac_option=$1
23135    ac_optarg=$2
23136    ac_shift=shift
23137    ;;
23138  *) # This is not an option, so the user has probably given explicit
23139     # arguments.
23140     ac_option=$1
23141     ac_need_defaults=false;;
23142  esac
23143
23144  case $ac_option in
23145  # Handling of the options.
23146_ACEOF
23147cat >>$CONFIG_STATUS <<\_ACEOF
23148  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23149    ac_cs_recheck=: ;;
23150  --version | --vers* | -V )
23151    echo "$ac_cs_version"; exit 0 ;;
23152  --he | --h)
23153    # Conflict between --help and --header
23154    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23155Try \`$0 --help' for more information." >&5
23156echo "$as_me: error: ambiguous option: $1
23157Try \`$0 --help' for more information." >&2;}
23158   { (exit 1); exit 1; }; };;
23159  --help | --hel | -h )
23160    echo "$ac_cs_usage"; exit 0 ;;
23161  --debug | --d* | -d )
23162    debug=: ;;
23163  --file | --fil | --fi | --f )
23164    $ac_shift
23165    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23166    ac_need_defaults=false;;
23167  --header | --heade | --head | --hea )
23168    $ac_shift
23169    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23170    ac_need_defaults=false;;
23171  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23172  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23173    ac_cs_silent=: ;;
23174
23175  # This is an error.
23176  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23177Try \`$0 --help' for more information." >&5
23178echo "$as_me: error: unrecognized option: $1
23179Try \`$0 --help' for more information." >&2;}
23180   { (exit 1); exit 1; }; } ;;
23181
23182  *) ac_config_targets="$ac_config_targets $1" ;;
23183
23184  esac
23185  shift
23186done
23187
23188ac_configure_extra_args=
23189
23190if $ac_cs_silent; then
23191  exec 6>/dev/null
23192  ac_configure_extra_args="$ac_configure_extra_args --silent"
23193fi
23194
23195_ACEOF
23196cat >>$CONFIG_STATUS <<_ACEOF
23197if \$ac_cs_recheck; then
23198  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23199  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23200fi
23201
23202_ACEOF
23203
23204cat >>$CONFIG_STATUS <<_ACEOF
23205#
23206# INIT-COMMANDS section.
23207#
23208
23209AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23210
23211_ACEOF
23212
23213
23214
23215cat >>$CONFIG_STATUS <<\_ACEOF
23216for ac_config_target in $ac_config_targets
23217do
23218  case "$ac_config_target" in
23219  # Handling of arguments.
23220  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23221  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23222  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23223  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23224  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23225  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23226echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23227   { (exit 1); exit 1; }; };;
23228  esac
23229done
23230
23231# If the user did not use the arguments to specify the items to instantiate,
23232# then the envvar interface is used.  Set only those that are not.
23233# We use the long form for the default assignment because of an extremely
23234# bizarre bug on SunOS 4.1.3.
23235if $ac_need_defaults; then
23236  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23237  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23238  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23239fi
23240
23241# Have a temporary directory for convenience.  Make it in the build tree
23242# simply because there is no reason to put it here, and in addition,
23243# creating and moving files from /tmp can sometimes cause problems.
23244# Create a temporary directory, and hook for its removal unless debugging.
23245$debug ||
23246{
23247  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23248  trap '{ (exit 1); exit 1; }' 1 2 13 15
23249}
23250
23251# Create a (secure) tmp directory for tmp files.
23252
23253{
23254  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23255  test -n "$tmp" && test -d "$tmp"
23256}  ||
23257{
23258  tmp=./confstat$$-$RANDOM
23259  (umask 077 && mkdir $tmp)
23260} ||
23261{
23262   echo "$me: cannot create a temporary directory in ." >&2
23263   { (exit 1); exit 1; }
23264}
23265
23266_ACEOF
23267
23268cat >>$CONFIG_STATUS <<_ACEOF
23269
23270#
23271# CONFIG_FILES section.
23272#
23273
23274# No need to generate the scripts if there are no CONFIG_FILES.
23275# This happens for instance when ./config.status config.h
23276if test -n "\$CONFIG_FILES"; then
23277  # Protect against being on the right side of a sed subst in config.status.
23278  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23279   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23280s,@SHELL@,$SHELL,;t t
23281s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23282s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23283s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23284s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23285s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23286s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23287s,@exec_prefix@,$exec_prefix,;t t
23288s,@prefix@,$prefix,;t t
23289s,@program_transform_name@,$program_transform_name,;t t
23290s,@bindir@,$bindir,;t t
23291s,@sbindir@,$sbindir,;t t
23292s,@libexecdir@,$libexecdir,;t t
23293s,@datadir@,$datadir,;t t
23294s,@sysconfdir@,$sysconfdir,;t t
23295s,@sharedstatedir@,$sharedstatedir,;t t
23296s,@localstatedir@,$localstatedir,;t t
23297s,@libdir@,$libdir,;t t
23298s,@includedir@,$includedir,;t t
23299s,@oldincludedir@,$oldincludedir,;t t
23300s,@infodir@,$infodir,;t t
23301s,@mandir@,$mandir,;t t
23302s,@build_alias@,$build_alias,;t t
23303s,@host_alias@,$host_alias,;t t
23304s,@target_alias@,$target_alias,;t t
23305s,@DEFS@,$DEFS,;t t
23306s,@ECHO_C@,$ECHO_C,;t t
23307s,@ECHO_N@,$ECHO_N,;t t
23308s,@ECHO_T@,$ECHO_T,;t t
23309s,@LIBS@,$LIBS,;t t
23310s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23311s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23312s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23313s,@CYGPATH_W@,$CYGPATH_W,;t t
23314s,@PACKAGE@,$PACKAGE,;t t
23315s,@VERSION@,$VERSION,;t t
23316s,@ACLOCAL@,$ACLOCAL,;t t
23317s,@AUTOCONF@,$AUTOCONF,;t t
23318s,@AUTOMAKE@,$AUTOMAKE,;t t
23319s,@AUTOHEADER@,$AUTOHEADER,;t t
23320s,@MAKEINFO@,$MAKEINFO,;t t
23321s,@AMTAR@,$AMTAR,;t t
23322s,@install_sh@,$install_sh,;t t
23323s,@STRIP@,$STRIP,;t t
23324s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23325s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23326s,@mkdir_p@,$mkdir_p,;t t
23327s,@AWK@,$AWK,;t t
23328s,@SET_MAKE@,$SET_MAKE,;t t
23329s,@am__leading_dot@,$am__leading_dot,;t t
23330s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23331s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23332s,@MAINT@,$MAINT,;t t
23333s,@build@,$build,;t t
23334s,@build_cpu@,$build_cpu,;t t
23335s,@build_vendor@,$build_vendor,;t t
23336s,@build_os@,$build_os,;t t
23337s,@host@,$host,;t t
23338s,@host_cpu@,$host_cpu,;t t
23339s,@host_vendor@,$host_vendor,;t t
23340s,@host_os@,$host_os,;t t
23341s,@TOUCH@,$TOUCH,;t t
23342s,@CXX@,$CXX,;t t
23343s,@CXXFLAGS@,$CXXFLAGS,;t t
23344s,@LDFLAGS@,$LDFLAGS,;t t
23345s,@CPPFLAGS@,$CPPFLAGS,;t t
23346s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23347s,@EXEEXT@,$EXEEXT,;t t
23348s,@OBJEXT@,$OBJEXT,;t t
23349s,@DEPDIR@,$DEPDIR,;t t
23350s,@am__include@,$am__include,;t t
23351s,@am__quote@,$am__quote,;t t
23352s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23353s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23354s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23355s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23356s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23357s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23358s,@CXXCPP@,$CXXCPP,;t t
23359s,@EGREP@,$EGREP,;t t
23360s,@JIKESPG@,$JIKESPG,;t t
23361s,@LIBOBJS@,$LIBOBJS,;t t
23362s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23363CEOF
23364
23365_ACEOF
23366
23367  cat >>$CONFIG_STATUS <<\_ACEOF
23368  # Split the substitutions into bite-sized pieces for seds with
23369  # small command number limits, like on Digital OSF/1 and HP-UX.
23370  ac_max_sed_lines=48
23371  ac_sed_frag=1 # Number of current file.
23372  ac_beg=1 # First line for current file.
23373  ac_end=$ac_max_sed_lines # Line after last line for current file.
23374  ac_more_lines=:
23375  ac_sed_cmds=
23376  while $ac_more_lines; do
23377    if test $ac_beg -gt 1; then
23378      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23379    else
23380      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23381    fi
23382    if test ! -s $tmp/subs.frag; then
23383      ac_more_lines=false
23384    else
23385      # The purpose of the label and of the branching condition is to
23386      # speed up the sed processing (if there are no `@' at all, there
23387      # is no need to browse any of the substitutions).
23388      # These are the two extra sed commands mentioned above.
23389      (echo ':t
23390  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23391      if test -z "$ac_sed_cmds"; then
23392	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23393      else
23394	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23395      fi
23396      ac_sed_frag=`expr $ac_sed_frag + 1`
23397      ac_beg=$ac_end
23398      ac_end=`expr $ac_end + $ac_max_sed_lines`
23399    fi
23400  done
23401  if test -z "$ac_sed_cmds"; then
23402    ac_sed_cmds=cat
23403  fi
23404fi # test -n "$CONFIG_FILES"
23405
23406_ACEOF
23407cat >>$CONFIG_STATUS <<\_ACEOF
23408for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23409  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23410  case $ac_file in
23411  - | *:- | *:-:* ) # input from stdin
23412	cat >$tmp/stdin
23413	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23414	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23415  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23416	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23417  * )   ac_file_in=$ac_file.in ;;
23418  esac
23419
23420  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23421  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423	 X"$ac_file" : 'X\(//\)[^/]' \| \
23424	 X"$ac_file" : 'X\(//\)$' \| \
23425	 X"$ac_file" : 'X\(/\)' \| \
23426	 .     : '\(.\)' 2>/dev/null ||
23427echo X"$ac_file" |
23428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23429  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23430  	  /^X\(\/\/\)$/{ s//\1/; q; }
23431  	  /^X\(\/\).*/{ s//\1/; q; }
23432  	  s/.*/./; q'`
23433  { if $as_mkdir_p; then
23434    mkdir -p "$ac_dir"
23435  else
23436    as_dir="$ac_dir"
23437    as_dirs=
23438    while test ! -d "$as_dir"; do
23439      as_dirs="$as_dir $as_dirs"
23440      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23442	 X"$as_dir" : 'X\(//\)[^/]' \| \
23443	 X"$as_dir" : 'X\(//\)$' \| \
23444	 X"$as_dir" : 'X\(/\)' \| \
23445	 .     : '\(.\)' 2>/dev/null ||
23446echo X"$as_dir" |
23447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23448  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23449  	  /^X\(\/\/\)$/{ s//\1/; q; }
23450  	  /^X\(\/\).*/{ s//\1/; q; }
23451  	  s/.*/./; q'`
23452    done
23453    test ! -n "$as_dirs" || mkdir $as_dirs
23454  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23455echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23456   { (exit 1); exit 1; }; }; }
23457
23458  ac_builddir=.
23459
23460if test "$ac_dir" != .; then
23461  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23462  # A "../" for each directory in $ac_dir_suffix.
23463  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23464else
23465  ac_dir_suffix= ac_top_builddir=
23466fi
23467
23468case $srcdir in
23469  .)  # No --srcdir option.  We are building in place.
23470    ac_srcdir=.
23471    if test -z "$ac_top_builddir"; then
23472       ac_top_srcdir=.
23473    else
23474       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23475    fi ;;
23476  [\\/]* | ?:[\\/]* )  # Absolute path.
23477    ac_srcdir=$srcdir$ac_dir_suffix;
23478    ac_top_srcdir=$srcdir ;;
23479  *) # Relative path.
23480    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23481    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23482esac
23483
23484# Do not use `cd foo && pwd` to compute absolute paths, because
23485# the directories may not exist.
23486case `pwd` in
23487.) ac_abs_builddir="$ac_dir";;
23488*)
23489  case "$ac_dir" in
23490  .) ac_abs_builddir=`pwd`;;
23491  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23492  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23493  esac;;
23494esac
23495case $ac_abs_builddir in
23496.) ac_abs_top_builddir=${ac_top_builddir}.;;
23497*)
23498  case ${ac_top_builddir}. in
23499  .) ac_abs_top_builddir=$ac_abs_builddir;;
23500  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23501  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23502  esac;;
23503esac
23504case $ac_abs_builddir in
23505.) ac_abs_srcdir=$ac_srcdir;;
23506*)
23507  case $ac_srcdir in
23508  .) ac_abs_srcdir=$ac_abs_builddir;;
23509  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23510  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23511  esac;;
23512esac
23513case $ac_abs_builddir in
23514.) ac_abs_top_srcdir=$ac_top_srcdir;;
23515*)
23516  case $ac_top_srcdir in
23517  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23518  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23519  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23520  esac;;
23521esac
23522
23523
23524  case $INSTALL in
23525  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23526  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23527  esac
23528
23529  if test x"$ac_file" != x-; then
23530    { echo "$as_me:$LINENO: creating $ac_file" >&5
23531echo "$as_me: creating $ac_file" >&6;}
23532    rm -f "$ac_file"
23533  fi
23534  # Let's still pretend it is `configure' which instantiates (i.e., don't
23535  # use $as_me), people would be surprised to read:
23536  #    /* config.h.  Generated by config.status.  */
23537  if test x"$ac_file" = x-; then
23538    configure_input=
23539  else
23540    configure_input="$ac_file.  "
23541  fi
23542  configure_input=$configure_input"Generated from `echo $ac_file_in |
23543				     sed 's,.*/,,'` by configure."
23544
23545  # First look for the input files in the build tree, otherwise in the
23546  # src tree.
23547  ac_file_inputs=`IFS=:
23548    for f in $ac_file_in; do
23549      case $f in
23550      -) echo $tmp/stdin ;;
23551      [\\/$]*)
23552	 # Absolute (can't be DOS-style, as IFS=:)
23553	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23554echo "$as_me: error: cannot find input file: $f" >&2;}
23555   { (exit 1); exit 1; }; }
23556	 echo "$f";;
23557      *) # Relative
23558	 if test -f "$f"; then
23559	   # Build tree
23560	   echo "$f"
23561	 elif test -f "$srcdir/$f"; then
23562	   # Source tree
23563	   echo "$srcdir/$f"
23564	 else
23565	   # /dev/null tree
23566	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23567echo "$as_me: error: cannot find input file: $f" >&2;}
23568   { (exit 1); exit 1; }; }
23569	 fi;;
23570      esac
23571    done` || { (exit 1); exit 1; }
23572_ACEOF
23573cat >>$CONFIG_STATUS <<_ACEOF
23574  sed "$ac_vpsub
23575$extrasub
23576_ACEOF
23577cat >>$CONFIG_STATUS <<\_ACEOF
23578:t
23579/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23580s,@configure_input@,$configure_input,;t t
23581s,@srcdir@,$ac_srcdir,;t t
23582s,@abs_srcdir@,$ac_abs_srcdir,;t t
23583s,@top_srcdir@,$ac_top_srcdir,;t t
23584s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23585s,@builddir@,$ac_builddir,;t t
23586s,@abs_builddir@,$ac_abs_builddir,;t t
23587s,@top_builddir@,$ac_top_builddir,;t t
23588s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23589s,@INSTALL@,$ac_INSTALL,;t t
23590" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23591  rm -f $tmp/stdin
23592  if test x"$ac_file" != x-; then
23593    mv $tmp/out $ac_file
23594  else
23595    cat $tmp/out
23596    rm -f $tmp/out
23597  fi
23598
23599done
23600_ACEOF
23601cat >>$CONFIG_STATUS <<\_ACEOF
23602
23603#
23604# CONFIG_HEADER section.
23605#
23606
23607# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23608# NAME is the cpp macro being defined and VALUE is the value it is being given.
23609#
23610# ac_d sets the value in "#define NAME VALUE" lines.
23611ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
23612ac_dB='[	 ].*$,\1#\2'
23613ac_dC=' '
23614ac_dD=',;t'
23615# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23616ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
23617ac_uB='$,\1#\2define\3'
23618ac_uC=' '
23619ac_uD=',;t'
23620
23621for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23622  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23623  case $ac_file in
23624  - | *:- | *:-:* ) # input from stdin
23625	cat >$tmp/stdin
23626	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23627	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23628  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23629	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23630  * )   ac_file_in=$ac_file.in ;;
23631  esac
23632
23633  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23634echo "$as_me: creating $ac_file" >&6;}
23635
23636  # First look for the input files in the build tree, otherwise in the
23637  # src tree.
23638  ac_file_inputs=`IFS=:
23639    for f in $ac_file_in; do
23640      case $f in
23641      -) echo $tmp/stdin ;;
23642      [\\/$]*)
23643	 # Absolute (can't be DOS-style, as IFS=:)
23644	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23645echo "$as_me: error: cannot find input file: $f" >&2;}
23646   { (exit 1); exit 1; }; }
23647	 # Do quote $f, to prevent DOS paths from being IFS'd.
23648	 echo "$f";;
23649      *) # Relative
23650	 if test -f "$f"; then
23651	   # Build tree
23652	   echo "$f"
23653	 elif test -f "$srcdir/$f"; then
23654	   # Source tree
23655	   echo "$srcdir/$f"
23656	 else
23657	   # /dev/null tree
23658	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23659echo "$as_me: error: cannot find input file: $f" >&2;}
23660   { (exit 1); exit 1; }; }
23661	 fi;;
23662      esac
23663    done` || { (exit 1); exit 1; }
23664  # Remove the trailing spaces.
23665  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
23666
23667_ACEOF
23668
23669# Transform confdefs.h into two sed scripts, `conftest.defines' and
23670# `conftest.undefs', that substitutes the proper values into
23671# config.h.in to produce config.h.  The first handles `#define'
23672# templates, and the second `#undef' templates.
23673# And first: Protect against being on the right side of a sed subst in
23674# config.status.  Protect against being in an unquoted here document
23675# in config.status.
23676rm -f conftest.defines conftest.undefs
23677# Using a here document instead of a string reduces the quoting nightmare.
23678# Putting comments in sed scripts is not portable.
23679#
23680# `end' is used to avoid that the second main sed command (meant for
23681# 0-ary CPP macros) applies to n-ary macro definitions.
23682# See the Autoconf documentation for `clear'.
23683cat >confdef2sed.sed <<\_ACEOF
23684s/[\\&,]/\\&/g
23685s,[\\$`],\\&,g
23686t clear
23687: clear
23688s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23689t end
23690s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23691: end
23692_ACEOF
23693# If some macros were called several times there might be several times
23694# the same #defines, which is useless.  Nevertheless, we may not want to
23695# sort them, since we want the *last* AC-DEFINE to be honored.
23696uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23697sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23698rm -f confdef2sed.sed
23699
23700# This sed command replaces #undef with comments.  This is necessary, for
23701# example, in the case of _POSIX_SOURCE, which is predefined and required
23702# on some systems where configure will not decide to define it.
23703cat >>conftest.undefs <<\_ACEOF
23704s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23705_ACEOF
23706
23707# Break up conftest.defines because some shells have a limit on the size
23708# of here documents, and old seds have small limits too (100 cmds).
23709echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23710echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23711echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23712echo '  :' >>$CONFIG_STATUS
23713rm -f conftest.tail
23714while grep . conftest.defines >/dev/null
23715do
23716  # Write a limited-size here document to $tmp/defines.sed.
23717  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23718  # Speed up: don't consider the non `#define' lines.
23719  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
23720  # Work around the forget-to-reset-the-flag bug.
23721  echo 't clr' >>$CONFIG_STATUS
23722  echo ': clr' >>$CONFIG_STATUS
23723  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23724  echo 'CEOF
23725  sed -f $tmp/defines.sed $tmp/in >$tmp/out
23726  rm -f $tmp/in
23727  mv $tmp/out $tmp/in
23728' >>$CONFIG_STATUS
23729  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23730  rm -f conftest.defines
23731  mv conftest.tail conftest.defines
23732done
23733rm -f conftest.defines
23734echo '  fi # grep' >>$CONFIG_STATUS
23735echo >>$CONFIG_STATUS
23736
23737# Break up conftest.undefs because some shells have a limit on the size
23738# of here documents, and old seds have small limits too (100 cmds).
23739echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23740rm -f conftest.tail
23741while grep . conftest.undefs >/dev/null
23742do
23743  # Write a limited-size here document to $tmp/undefs.sed.
23744  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23745  # Speed up: don't consider the non `#undef'
23746  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
23747  # Work around the forget-to-reset-the-flag bug.
23748  echo 't clr' >>$CONFIG_STATUS
23749  echo ': clr' >>$CONFIG_STATUS
23750  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23751  echo 'CEOF
23752  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23753  rm -f $tmp/in
23754  mv $tmp/out $tmp/in
23755' >>$CONFIG_STATUS
23756  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23757  rm -f conftest.undefs
23758  mv conftest.tail conftest.undefs
23759done
23760rm -f conftest.undefs
23761
23762cat >>$CONFIG_STATUS <<\_ACEOF
23763  # Let's still pretend it is `configure' which instantiates (i.e., don't
23764  # use $as_me), people would be surprised to read:
23765  #    /* config.h.  Generated by config.status.  */
23766  if test x"$ac_file" = x-; then
23767    echo "/* Generated by configure.  */" >$tmp/config.h
23768  else
23769    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23770  fi
23771  cat $tmp/in >>$tmp/config.h
23772  rm -f $tmp/in
23773  if test x"$ac_file" != x-; then
23774    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23775      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23776echo "$as_me: $ac_file is unchanged" >&6;}
23777    else
23778      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23779$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23780	 X"$ac_file" : 'X\(//\)[^/]' \| \
23781	 X"$ac_file" : 'X\(//\)$' \| \
23782	 X"$ac_file" : 'X\(/\)' \| \
23783	 .     : '\(.\)' 2>/dev/null ||
23784echo X"$ac_file" |
23785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23786  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23787  	  /^X\(\/\/\)$/{ s//\1/; q; }
23788  	  /^X\(\/\).*/{ s//\1/; q; }
23789  	  s/.*/./; q'`
23790      { if $as_mkdir_p; then
23791    mkdir -p "$ac_dir"
23792  else
23793    as_dir="$ac_dir"
23794    as_dirs=
23795    while test ! -d "$as_dir"; do
23796      as_dirs="$as_dir $as_dirs"
23797      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23799	 X"$as_dir" : 'X\(//\)[^/]' \| \
23800	 X"$as_dir" : 'X\(//\)$' \| \
23801	 X"$as_dir" : 'X\(/\)' \| \
23802	 .     : '\(.\)' 2>/dev/null ||
23803echo X"$as_dir" |
23804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23805  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23806  	  /^X\(\/\/\)$/{ s//\1/; q; }
23807  	  /^X\(\/\).*/{ s//\1/; q; }
23808  	  s/.*/./; q'`
23809    done
23810    test ! -n "$as_dirs" || mkdir $as_dirs
23811  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23812echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23813   { (exit 1); exit 1; }; }; }
23814
23815      rm -f $ac_file
23816      mv $tmp/config.h $ac_file
23817    fi
23818  else
23819    cat $tmp/config.h
23820    rm -f $tmp/config.h
23821  fi
23822# Compute $ac_file's index in $config_headers.
23823_am_stamp_count=1
23824for _am_header in $config_headers :; do
23825  case $_am_header in
23826    $ac_file | $ac_file:* )
23827      break ;;
23828    * )
23829      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23830  esac
23831done
23832echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23833$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23834	 X$ac_file : 'X\(//\)[^/]' \| \
23835	 X$ac_file : 'X\(//\)$' \| \
23836	 X$ac_file : 'X\(/\)' \| \
23837	 .     : '\(.\)' 2>/dev/null ||
23838echo X$ac_file |
23839    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23840  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23841  	  /^X\(\/\/\)$/{ s//\1/; q; }
23842  	  /^X\(\/\).*/{ s//\1/; q; }
23843  	  s/.*/./; q'`/stamp-h$_am_stamp_count
23844done
23845_ACEOF
23846cat >>$CONFIG_STATUS <<\_ACEOF
23847
23848#
23849# CONFIG_COMMANDS section.
23850#
23851for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23852  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23853  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23854  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23855$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23856	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23857	 X"$ac_dest" : 'X\(//\)$' \| \
23858	 X"$ac_dest" : 'X\(/\)' \| \
23859	 .     : '\(.\)' 2>/dev/null ||
23860echo X"$ac_dest" |
23861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23862  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23863  	  /^X\(\/\/\)$/{ s//\1/; q; }
23864  	  /^X\(\/\).*/{ s//\1/; q; }
23865  	  s/.*/./; q'`
23866  { if $as_mkdir_p; then
23867    mkdir -p "$ac_dir"
23868  else
23869    as_dir="$ac_dir"
23870    as_dirs=
23871    while test ! -d "$as_dir"; do
23872      as_dirs="$as_dir $as_dirs"
23873      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23875	 X"$as_dir" : 'X\(//\)[^/]' \| \
23876	 X"$as_dir" : 'X\(//\)$' \| \
23877	 X"$as_dir" : 'X\(/\)' \| \
23878	 .     : '\(.\)' 2>/dev/null ||
23879echo X"$as_dir" |
23880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23881  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23882  	  /^X\(\/\/\)$/{ s//\1/; q; }
23883  	  /^X\(\/\).*/{ s//\1/; q; }
23884  	  s/.*/./; q'`
23885    done
23886    test ! -n "$as_dirs" || mkdir $as_dirs
23887  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23888echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23889   { (exit 1); exit 1; }; }; }
23890
23891  ac_builddir=.
23892
23893if test "$ac_dir" != .; then
23894  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23895  # A "../" for each directory in $ac_dir_suffix.
23896  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23897else
23898  ac_dir_suffix= ac_top_builddir=
23899fi
23900
23901case $srcdir in
23902  .)  # No --srcdir option.  We are building in place.
23903    ac_srcdir=.
23904    if test -z "$ac_top_builddir"; then
23905       ac_top_srcdir=.
23906    else
23907       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23908    fi ;;
23909  [\\/]* | ?:[\\/]* )  # Absolute path.
23910    ac_srcdir=$srcdir$ac_dir_suffix;
23911    ac_top_srcdir=$srcdir ;;
23912  *) # Relative path.
23913    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23914    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23915esac
23916
23917# Do not use `cd foo && pwd` to compute absolute paths, because
23918# the directories may not exist.
23919case `pwd` in
23920.) ac_abs_builddir="$ac_dir";;
23921*)
23922  case "$ac_dir" in
23923  .) ac_abs_builddir=`pwd`;;
23924  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23925  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23926  esac;;
23927esac
23928case $ac_abs_builddir in
23929.) ac_abs_top_builddir=${ac_top_builddir}.;;
23930*)
23931  case ${ac_top_builddir}. in
23932  .) ac_abs_top_builddir=$ac_abs_builddir;;
23933  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23934  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23935  esac;;
23936esac
23937case $ac_abs_builddir in
23938.) ac_abs_srcdir=$ac_srcdir;;
23939*)
23940  case $ac_srcdir in
23941  .) ac_abs_srcdir=$ac_abs_builddir;;
23942  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23943  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23944  esac;;
23945esac
23946case $ac_abs_builddir in
23947.) ac_abs_top_srcdir=$ac_top_srcdir;;
23948*)
23949  case $ac_top_srcdir in
23950  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23951  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23952  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23953  esac;;
23954esac
23955
23956
23957  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23958echo "$as_me: executing $ac_dest commands" >&6;}
23959  case $ac_dest in
23960    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23961  # Strip MF so we end up with the name of the file.
23962  mf=`echo "$mf" | sed -e 's/:.*$//'`
23963  # Check whether this is an Automake generated Makefile or not.
23964  # We used to match only the files named `Makefile.in', but
23965  # some people rename them; so instead we look at the file content.
23966  # Grep'ing the first line is not enough: some people post-process
23967  # each Makefile.in and add a new line on top of each file to say so.
23968  # So let's grep whole file.
23969  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23970    dirpart=`(dirname "$mf") 2>/dev/null ||
23971$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23972	 X"$mf" : 'X\(//\)[^/]' \| \
23973	 X"$mf" : 'X\(//\)$' \| \
23974	 X"$mf" : 'X\(/\)' \| \
23975	 .     : '\(.\)' 2>/dev/null ||
23976echo X"$mf" |
23977    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23978  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23979  	  /^X\(\/\/\)$/{ s//\1/; q; }
23980  	  /^X\(\/\).*/{ s//\1/; q; }
23981  	  s/.*/./; q'`
23982  else
23983    continue
23984  fi
23985  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23986  # Extract the definition of DEP_FILES from the Makefile without
23987  # running `make'.
23988  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23989  test -z "$DEPDIR" && continue
23990  # When using ansi2knr, U may be empty or an underscore; expand it
23991  U=`sed -n 's/^U = //p' < "$mf"`
23992  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23993  # We invoke sed twice because it is the simplest approach to
23994  # changing $(DEPDIR) to its actual value in the expansion.
23995  for file in `sed -n '
23996    /^DEP_FILES = .*\\\\$/ {
23997      s/^DEP_FILES = //
23998      :loop
23999	s/\\\\$//
24000	p
24001	n
24002	/\\\\$/ b loop
24003      p
24004    }
24005    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24006       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24007    # Make sure the directory exists.
24008    test -f "$dirpart/$file" && continue
24009    fdir=`(dirname "$file") 2>/dev/null ||
24010$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011	 X"$file" : 'X\(//\)[^/]' \| \
24012	 X"$file" : 'X\(//\)$' \| \
24013	 X"$file" : 'X\(/\)' \| \
24014	 .     : '\(.\)' 2>/dev/null ||
24015echo X"$file" |
24016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24017  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24018  	  /^X\(\/\/\)$/{ s//\1/; q; }
24019  	  /^X\(\/\).*/{ s//\1/; q; }
24020  	  s/.*/./; q'`
24021    { if $as_mkdir_p; then
24022    mkdir -p $dirpart/$fdir
24023  else
24024    as_dir=$dirpart/$fdir
24025    as_dirs=
24026    while test ! -d "$as_dir"; do
24027      as_dirs="$as_dir $as_dirs"
24028      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24030	 X"$as_dir" : 'X\(//\)[^/]' \| \
24031	 X"$as_dir" : 'X\(//\)$' \| \
24032	 X"$as_dir" : 'X\(/\)' \| \
24033	 .     : '\(.\)' 2>/dev/null ||
24034echo X"$as_dir" |
24035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24036  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24037  	  /^X\(\/\/\)$/{ s//\1/; q; }
24038  	  /^X\(\/\).*/{ s//\1/; q; }
24039  	  s/.*/./; q'`
24040    done
24041    test ! -n "$as_dirs" || mkdir $as_dirs
24042  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24043echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24044   { (exit 1); exit 1; }; }; }
24045
24046    # echo "creating $dirpart/$file"
24047    echo '# dummy' > "$dirpart/$file"
24048  done
24049done
24050 ;;
24051  esac
24052done
24053_ACEOF
24054
24055cat >>$CONFIG_STATUS <<\_ACEOF
24056
24057{ (exit 0); exit 0; }
24058_ACEOF
24059chmod +x $CONFIG_STATUS
24060ac_clean_files=$ac_clean_files_save
24061
24062
24063# configure is writing to config.log, and then calls config.status.
24064# config.status does its own redirection, appending to config.log.
24065# Unfortunately, on DOS this fails, as config.log is still kept open
24066# by configure, so config.status won't be able to write to it; its
24067# output is simply discarded.  So we exec the FD to /dev/null,
24068# effectively closing config.log, so it can be properly (re)opened and
24069# appended to by config.status.  When coming back to configure, we
24070# need to make the FD available again.
24071if test "$no_create" != yes; then
24072  ac_cs_success=:
24073  ac_config_status_args=
24074  test "$silent" = yes &&
24075    ac_config_status_args="$ac_config_status_args --quiet"
24076  exec 5>/dev/null
24077  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24078  exec 5>>config.log
24079  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24080  # would make configure fail if this is the last instruction.
24081  $ac_cs_success || { (exit 1); exit 1; }
24082fi
24083
24084