1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/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 -n "`(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  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="src/main.cc"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 AWK SET_MAKE 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 LN_S CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB USE_INTLDIR_TRUE USE_INTLDIR_FALSE ac_cv_prog_doxygen HAVE_DOXYGEN_TRUE HAVE_DOXYGEN_FALSE ac_cv_prog_perl HAVE_PERL_TRUE HAVE_PERL_FALSE 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_CC_set=${CC+set}
769ac_env_CC_value=$CC
770ac_cv_env_CC_set=${CC+set}
771ac_cv_env_CC_value=$CC
772ac_env_CFLAGS_set=${CFLAGS+set}
773ac_env_CFLAGS_value=$CFLAGS
774ac_cv_env_CFLAGS_set=${CFLAGS+set}
775ac_cv_env_CFLAGS_value=$CFLAGS
776ac_env_CPP_set=${CPP+set}
777ac_env_CPP_value=$CPP
778ac_cv_env_CPP_set=${CPP+set}
779ac_cv_env_CPP_value=$CPP
780
781#
782# Report the --help message.
783#
784if test "$ac_init_help" = "long"; then
785  # Omit some internal or obsolete options to make the list less imposing.
786  # This message is too long to be a string in the A/UX 3.1 sh.
787  cat <<_ACEOF
788\`configure' configures this package to adapt to many kinds of systems.
789
790Usage: $0 [OPTION]... [VAR=VALUE]...
791
792To assign environment variables (e.g., CC, CFLAGS...), specify them as
793VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795Defaults for the options are specified in brackets.
796
797Configuration:
798  -h, --help              display this help and exit
799      --help=short        display options specific to this package
800      --help=recursive    display the short help of all the included packages
801  -V, --version           display version information and exit
802  -q, --quiet, --silent   do not print \`checking...' messages
803      --cache-file=FILE   cache test results in FILE [disabled]
804  -C, --config-cache      alias for \`--cache-file=config.cache'
805  -n, --no-create         do not create output files
806      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808_ACEOF
809
810  cat <<_ACEOF
811Installation directories:
812  --prefix=PREFIX         install architecture-independent files in PREFIX
813                          [$ac_default_prefix]
814  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                          [PREFIX]
816
817By default, \`make install' will install all the files in
818\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820for instance \`--prefix=\$HOME'.
821
822For better control, use the options below.
823
824Fine tuning of the installation directories:
825  --bindir=DIR           user executables [EPREFIX/bin]
826  --sbindir=DIR          system admin executables [EPREFIX/sbin]
827  --libexecdir=DIR       program executables [EPREFIX/libexec]
828  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832  --libdir=DIR           object code libraries [EPREFIX/lib]
833  --includedir=DIR       C header files [PREFIX/include]
834  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835  --infodir=DIR          info documentation [PREFIX/info]
836  --mandir=DIR           man documentation [PREFIX/man]
837_ACEOF
838
839  cat <<\_ACEOF
840
841Program names:
842  --program-prefix=PREFIX            prepend PREFIX to installed program names
843  --program-suffix=SUFFIX            append SUFFIX to installed program names
844  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
845
846System types:
847  --build=BUILD     configure for building on BUILD [guessed]
848  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849  --target=TARGET   configure for building compilers for TARGET [HOST]
850_ACEOF
851fi
852
853if test -n "$ac_init_help"; then
854
855  cat <<\_ACEOF
856
857Optional Features:
858  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
859  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
860  --disable-dependency-tracking Speeds up one-time builds
861  --enable-dependency-tracking  Do not reject slow dependency extractors
862  --disable-rpath         do not hardcode runtime library paths
863  --disable-nls           do not use Native Language Support
864  --enable-debug          enable debugging
865  --disable-randomness    disable randomness making every run exactly reproducible
866
867Optional Packages:
868  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870  --with-gnu-ld           assume the C compiler uses GNU ld default=no
871  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
872  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
873  --with-included-gettext use the GNU gettext library included here
874  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
875  --without-libintl-prefix     don't search for libintl in includedir and libdir
876
877Some influential environment variables:
878  CXX         C++ compiler command
879  CXXFLAGS    C++ compiler flags
880  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881              nonstandard directory <lib dir>
882  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883              headers in a nonstandard directory <include dir>
884  CC          C compiler command
885  CFLAGS      C compiler flags
886  CPP         C preprocessor
887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
891_ACEOF
892fi
893
894if test "$ac_init_help" = "recursive"; then
895  # If there are subdirs, report their specific --help.
896  ac_popdir=`pwd`
897  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898    test -d $ac_dir || continue
899    ac_builddir=.
900
901if test "$ac_dir" != .; then
902  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903  # A "../" for each directory in $ac_dir_suffix.
904  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905else
906  ac_dir_suffix= ac_top_builddir=
907fi
908
909case $srcdir in
910  .)  # No --srcdir option.  We are building in place.
911    ac_srcdir=.
912    if test -z "$ac_top_builddir"; then
913       ac_top_srcdir=.
914    else
915       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916    fi ;;
917  [\\/]* | ?:[\\/]* )  # Absolute path.
918    ac_srcdir=$srcdir$ac_dir_suffix;
919    ac_top_srcdir=$srcdir ;;
920  *) # Relative path.
921    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922    ac_top_srcdir=$ac_top_builddir$srcdir ;;
923esac
924# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925# absolute.
926ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
928ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930
931    cd $ac_dir
932    # Check for guested configure; otherwise get Cygnus style configure.
933    if test -f $ac_srcdir/configure.gnu; then
934      echo
935      $SHELL $ac_srcdir/configure.gnu  --help=recursive
936    elif test -f $ac_srcdir/configure; then
937      echo
938      $SHELL $ac_srcdir/configure  --help=recursive
939    elif test -f $ac_srcdir/configure.ac ||
940           test -f $ac_srcdir/configure.in; then
941      echo
942      $ac_configure --help
943    else
944      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945    fi
946    cd $ac_popdir
947  done
948fi
949
950test -n "$ac_init_help" && exit 0
951if $ac_init_version; then
952  cat <<\_ACEOF
953
954Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955Free Software Foundation, Inc.
956This configure script is free software; the Free Software Foundation
957gives unlimited permission to copy, distribute and modify it.
958_ACEOF
959  exit 0
960fi
961exec 5>config.log
962cat >&5 <<_ACEOF
963This file contains any messages produced by compilers while
964running configure, to aid debugging if configure makes a mistake.
965
966It was created by $as_me, which was
967generated by GNU Autoconf 2.57.  Invocation command line was
968
969  $ $0 $@
970
971_ACEOF
972{
973cat <<_ASUNAME
974## --------- ##
975## Platform. ##
976## --------- ##
977
978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979uname -m = `(uname -m) 2>/dev/null || echo unknown`
980uname -r = `(uname -r) 2>/dev/null || echo unknown`
981uname -s = `(uname -s) 2>/dev/null || echo unknown`
982uname -v = `(uname -v) 2>/dev/null || echo unknown`
983
984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
986
987/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
988/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
991/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
992/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
993/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
994
995_ASUNAME
996
997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998for as_dir in $PATH
999do
1000  IFS=$as_save_IFS
1001  test -z "$as_dir" && as_dir=.
1002  echo "PATH: $as_dir"
1003done
1004
1005} >&5
1006
1007cat >&5 <<_ACEOF
1008
1009
1010## ----------- ##
1011## Core tests. ##
1012## ----------- ##
1013
1014_ACEOF
1015
1016
1017# Keep a trace of the command line.
1018# Strip out --no-create and --no-recursion so they do not pile up.
1019# Strip out --silent because we don't want to record it for future runs.
1020# Also quote any args containing shell meta-characters.
1021# Make two passes to allow for proper duplicate-argument suppression.
1022ac_configure_args=
1023ac_configure_args0=
1024ac_configure_args1=
1025ac_sep=
1026ac_must_keep_next=false
1027for ac_pass in 1 2
1028do
1029  for ac_arg
1030  do
1031    case $ac_arg in
1032    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034    | -silent | --silent | --silen | --sile | --sil)
1035      continue ;;
1036    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038    esac
1039    case $ac_pass in
1040    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041    2)
1042      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043      if test $ac_must_keep_next = true; then
1044        ac_must_keep_next=false # Got value, back to normal.
1045      else
1046        case $ac_arg in
1047          *=* | --config-cache | -C | -disable-* | --disable-* \
1048          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050          | -with-* | --with-* | -without-* | --without-* | --x)
1051            case "$ac_configure_args0 " in
1052              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053            esac
1054            ;;
1055          -* ) ac_must_keep_next=true ;;
1056        esac
1057      fi
1058      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059      # Get rid of the leading space.
1060      ac_sep=" "
1061      ;;
1062    esac
1063  done
1064done
1065$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067
1068# When interrupted or exit'd, cleanup temporary files, and complete
1069# config.log.  We remove comments because anyway the quotes in there
1070# would cause problems or look ugly.
1071# WARNING: Be sure not to use single quotes in there, as some shells,
1072# such as our DU 5.0 friend, will then `close' the trap.
1073trap 'exit_status=$?
1074  # Save into config.log some information that might help in debugging.
1075  {
1076    echo
1077
1078    cat <<\_ASBOX
1079## ---------------- ##
1080## Cache variables. ##
1081## ---------------- ##
1082_ASBOX
1083    echo
1084    # The following way of writing the cache mishandles newlines in values,
1085{
1086  (set) 2>&1 |
1087    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088    *ac_space=\ *)
1089      sed -n \
1090        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092      ;;
1093    *)
1094      sed -n \
1095        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096      ;;
1097    esac;
1098}
1099    echo
1100
1101    cat <<\_ASBOX
1102## ----------------- ##
1103## Output variables. ##
1104## ----------------- ##
1105_ASBOX
1106    echo
1107    for ac_var in $ac_subst_vars
1108    do
1109      eval ac_val=$`echo $ac_var`
1110      echo "$ac_var='"'"'$ac_val'"'"'"
1111    done | sort
1112    echo
1113
1114    if test -n "$ac_subst_files"; then
1115      cat <<\_ASBOX
1116## ------------- ##
1117## Output files. ##
1118## ------------- ##
1119_ASBOX
1120      echo
1121      for ac_var in $ac_subst_files
1122      do
1123	eval ac_val=$`echo $ac_var`
1124        echo "$ac_var='"'"'$ac_val'"'"'"
1125      done | sort
1126      echo
1127    fi
1128
1129    if test -s confdefs.h; then
1130      cat <<\_ASBOX
1131## ----------- ##
1132## confdefs.h. ##
1133## ----------- ##
1134_ASBOX
1135      echo
1136      sed "/^$/d" confdefs.h | sort
1137      echo
1138    fi
1139    test "$ac_signal" != 0 &&
1140      echo "$as_me: caught signal $ac_signal"
1141    echo "$as_me: exit $exit_status"
1142  } >&5
1143  rm -f core core.* *.core &&
1144  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145    exit $exit_status
1146     ' 0
1147for ac_signal in 1 2 13 15; do
1148  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149done
1150ac_signal=0
1151
1152# confdefs.h avoids OS command line length limits that DEFS can exceed.
1153rm -rf conftest* confdefs.h
1154# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155echo >confdefs.h
1156
1157# Predefined preprocessor variables.
1158
1159cat >>confdefs.h <<_ACEOF
1160#define PACKAGE_NAME "$PACKAGE_NAME"
1161_ACEOF
1162
1163
1164cat >>confdefs.h <<_ACEOF
1165#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166_ACEOF
1167
1168
1169cat >>confdefs.h <<_ACEOF
1170#define PACKAGE_VERSION "$PACKAGE_VERSION"
1171_ACEOF
1172
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_STRING "$PACKAGE_STRING"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181_ACEOF
1182
1183
1184# Let the site file select an alternate cache file if it wants to.
1185# Prefer explicitly selected file to automatically selected ones.
1186if test -z "$CONFIG_SITE"; then
1187  if test "x$prefix" != xNONE; then
1188    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189  else
1190    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191  fi
1192fi
1193for ac_site_file in $CONFIG_SITE; do
1194  if test -r "$ac_site_file"; then
1195    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196echo "$as_me: loading site script $ac_site_file" >&6;}
1197    sed 's/^/| /' "$ac_site_file" >&5
1198    . "$ac_site_file"
1199  fi
1200done
1201
1202if test -r "$cache_file"; then
1203  # Some versions of bash will fail to source /dev/null (special
1204  # files actually), so we avoid doing that.
1205  if test -f "$cache_file"; then
1206    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207echo "$as_me: loading cache $cache_file" >&6;}
1208    case $cache_file in
1209      [\\/]* | ?:[\\/]* ) . $cache_file;;
1210      *)                      . ./$cache_file;;
1211    esac
1212  fi
1213else
1214  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215echo "$as_me: creating cache $cache_file" >&6;}
1216  >$cache_file
1217fi
1218
1219# Check that the precious variables saved in the cache have kept the same
1220# value.
1221ac_cache_corrupted=false
1222for ac_var in `(set) 2>&1 |
1223               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225  eval ac_new_set=\$ac_env_${ac_var}_set
1226  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227  eval ac_new_val="\$ac_env_${ac_var}_value"
1228  case $ac_old_set,$ac_new_set in
1229    set,)
1230      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232      ac_cache_corrupted=: ;;
1233    ,set)
1234      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236      ac_cache_corrupted=: ;;
1237    ,);;
1238    *)
1239      if test "x$ac_old_val" != "x$ac_new_val"; then
1240        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1243echo "$as_me:   former value:  $ac_old_val" >&2;}
1244        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1245echo "$as_me:   current value: $ac_new_val" >&2;}
1246        ac_cache_corrupted=:
1247      fi;;
1248  esac
1249  # Pass precious variables to config.status.
1250  if test "$ac_new_set" = set; then
1251    case $ac_new_val in
1252    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254    *) ac_arg=$ac_var=$ac_new_val ;;
1255    esac
1256    case " $ac_configure_args " in
1257      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1258      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259    esac
1260  fi
1261done
1262if $ac_cache_corrupted; then
1263  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267   { (exit 1); exit 1; }; }
1268fi
1269
1270ac_ext=c
1271ac_cpp='$CPP $CPPFLAGS'
1272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294ac_aux_dir=
1295for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1296  if test -f $ac_dir/install-sh; then
1297    ac_aux_dir=$ac_dir
1298    ac_install_sh="$ac_aux_dir/install-sh -c"
1299    break
1300  elif test -f $ac_dir/install.sh; then
1301    ac_aux_dir=$ac_dir
1302    ac_install_sh="$ac_aux_dir/install.sh -c"
1303    break
1304  elif test -f $ac_dir/shtool; then
1305    ac_aux_dir=$ac_dir
1306    ac_install_sh="$ac_aux_dir/shtool install -c"
1307    break
1308  fi
1309done
1310if test -z "$ac_aux_dir"; then
1311  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1312echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1313   { (exit 1); exit 1; }; }
1314fi
1315ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1316ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1317ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1318
1319# Make sure we can run config.sub.
1320$ac_config_sub sun4 >/dev/null 2>&1 ||
1321  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1322echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1323   { (exit 1); exit 1; }; }
1324
1325echo "$as_me:$LINENO: checking build system type" >&5
1326echo $ECHO_N "checking build system type... $ECHO_C" >&6
1327if test "${ac_cv_build+set}" = set; then
1328  echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330  ac_cv_build_alias=$build_alias
1331test -z "$ac_cv_build_alias" &&
1332  ac_cv_build_alias=`$ac_config_guess`
1333test -z "$ac_cv_build_alias" &&
1334  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1335echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1336   { (exit 1); exit 1; }; }
1337ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1338  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1339echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1340   { (exit 1); exit 1; }; }
1341
1342fi
1343echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1344echo "${ECHO_T}$ac_cv_build" >&6
1345build=$ac_cv_build
1346build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349
1350
1351echo "$as_me:$LINENO: checking host system type" >&5
1352echo $ECHO_N "checking host system type... $ECHO_C" >&6
1353if test "${ac_cv_host+set}" = set; then
1354  echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356  ac_cv_host_alias=$host_alias
1357test -z "$ac_cv_host_alias" &&
1358  ac_cv_host_alias=$ac_cv_build_alias
1359ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1360  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1361echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1362   { (exit 1); exit 1; }; }
1363
1364fi
1365echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1366echo "${ECHO_T}$ac_cv_host" >&6
1367host=$ac_cv_host
1368host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371
1372
1373echo "$as_me:$LINENO: checking target system type" >&5
1374echo $ECHO_N "checking target system type... $ECHO_C" >&6
1375if test "${ac_cv_target+set}" = set; then
1376  echo $ECHO_N "(cached) $ECHO_C" >&6
1377else
1378  ac_cv_target_alias=$target_alias
1379test "x$ac_cv_target_alias" = "x" &&
1380  ac_cv_target_alias=$ac_cv_host_alias
1381ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1382  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1383echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1384   { (exit 1); exit 1; }; }
1385
1386fi
1387echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1388echo "${ECHO_T}$ac_cv_target" >&6
1389target=$ac_cv_target
1390target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393
1394
1395# The aliases save the names the user supplied, while $host etc.
1396# will get canonicalized.
1397test -n "$target_alias" &&
1398  test "$program_prefix$program_suffix$program_transform_name" = \
1399    NONENONEs,x,x, &&
1400  program_prefix=${target_alias}-
1401am__api_version="1.7"
1402# Find a good install program.  We prefer a C program (faster),
1403# so one script is as good as another.  But avoid the broken or
1404# incompatible versions:
1405# SysV /etc/install, /usr/sbin/install
1406# SunOS /usr/etc/install
1407# IRIX /sbin/install
1408# AIX /bin/install
1409# AmigaOS /C/install, which installs bootblocks on floppy discs
1410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1413# ./install, which can be erroneously created by make from ./install.sh.
1414echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1415echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1416if test -z "$INSTALL"; then
1417if test "${ac_cv_path_install+set}" = set; then
1418  echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421for as_dir in $PATH
1422do
1423  IFS=$as_save_IFS
1424  test -z "$as_dir" && as_dir=.
1425  # Account for people who put trailing slashes in PATH elements.
1426case $as_dir/ in
1427  ./ | .// | /cC/* | \
1428  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1429  /usr/ucb/* ) ;;
1430  *)
1431    # OSF1 and SCO ODT 3.0 have their own names for install.
1432    # Don't use installbsd from OSF since it installs stuff as root
1433    # by default.
1434    for ac_prog in ginstall scoinst install; do
1435      for ac_exec_ext in '' $ac_executable_extensions; do
1436        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1437          if test $ac_prog = install &&
1438            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1439            # AIX install.  It has an incompatible calling convention.
1440            :
1441          elif test $ac_prog = install &&
1442            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1443            # program-specific install script used by HP pwplus--don't use.
1444            :
1445          else
1446            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1447            break 3
1448          fi
1449        fi
1450      done
1451    done
1452    ;;
1453esac
1454done
1455
1456
1457fi
1458  if test "${ac_cv_path_install+set}" = set; then
1459    INSTALL=$ac_cv_path_install
1460  else
1461    # As a last resort, use the slow shell script.  We don't cache a
1462    # path for INSTALL within a source directory, because that will
1463    # break other packages using the cache if that directory is
1464    # removed, or if the path is relative.
1465    INSTALL=$ac_install_sh
1466  fi
1467fi
1468echo "$as_me:$LINENO: result: $INSTALL" >&5
1469echo "${ECHO_T}$INSTALL" >&6
1470
1471# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1472# It thinks the first close brace ends the variable substitution.
1473test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1474
1475test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1476
1477test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1478
1479echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1480echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1481# Just in case
1482sleep 1
1483echo timestamp > conftest.file
1484# Do `set' in a subshell so we don't clobber the current shell's
1485# arguments.  Must try -L first in case configure is actually a
1486# symlink; some systems play weird games with the mod time of symlinks
1487# (eg FreeBSD returns the mod time of the symlink's containing
1488# directory).
1489if (
1490   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1491   if test "$*" = "X"; then
1492      # -L didn't work.
1493      set X `ls -t $srcdir/configure conftest.file`
1494   fi
1495   rm -f conftest.file
1496   if test "$*" != "X $srcdir/configure conftest.file" \
1497      && test "$*" != "X conftest.file $srcdir/configure"; then
1498
1499      # If neither matched, then we have a broken ls.  This can happen
1500      # if, for instance, CONFIG_SHELL is bash and it inherits a
1501      # broken ls alias from the environment.  This has actually
1502      # happened.  Such a system could not be considered "sane".
1503      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1504alias in your environment" >&5
1505echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1506alias in your environment" >&2;}
1507   { (exit 1); exit 1; }; }
1508   fi
1509
1510   test "$2" = conftest.file
1511   )
1512then
1513   # Ok.
1514   :
1515else
1516   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1517Check your system clock" >&5
1518echo "$as_me: error: newly created file is older than distributed files!
1519Check your system clock" >&2;}
1520   { (exit 1); exit 1; }; }
1521fi
1522echo "$as_me:$LINENO: result: yes" >&5
1523echo "${ECHO_T}yes" >&6
1524test "$program_prefix" != NONE &&
1525  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1526# Use a double $ so make ignores it.
1527test "$program_suffix" != NONE &&
1528  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1529# Double any \ or $.  echo might interpret backslashes.
1530# By default was `s,x,x', remove it if useless.
1531cat <<\_ACEOF >conftest.sed
1532s/[\\$]/&&/g;s/;s,x,x,$//
1533_ACEOF
1534program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1535rm conftest.sed
1536
1537
1538# expand $ac_aux_dir to an absolute path
1539am_aux_dir=`cd $ac_aux_dir && pwd`
1540
1541test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1542# Use eval to expand $SHELL
1543if eval "$MISSING --run true"; then
1544  am_missing_run="$MISSING --run "
1545else
1546  am_missing_run=
1547  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1548echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1549fi
1550
1551for ac_prog in gawk mawk nawk awk
1552do
1553  # Extract the first word of "$ac_prog", so it can be a program name with args.
1554set dummy $ac_prog; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_AWK+set}" = set; then
1558  echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560  if test -n "$AWK"; then
1561  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  for ac_exec_ext in '' $ac_executable_extensions; do
1569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570    ac_cv_prog_AWK="$ac_prog"
1571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572    break 2
1573  fi
1574done
1575done
1576
1577fi
1578fi
1579AWK=$ac_cv_prog_AWK
1580if test -n "$AWK"; then
1581  echo "$as_me:$LINENO: result: $AWK" >&5
1582echo "${ECHO_T}$AWK" >&6
1583else
1584  echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588  test -n "$AWK" && break
1589done
1590
1591echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1592echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1593set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1594if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1595  echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597  cat >conftest.make <<\_ACEOF
1598all:
1599	@echo 'ac_maketemp="$(MAKE)"'
1600_ACEOF
1601# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1602eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1603if test -n "$ac_maketemp"; then
1604  eval ac_cv_prog_make_${ac_make}_set=yes
1605else
1606  eval ac_cv_prog_make_${ac_make}_set=no
1607fi
1608rm -f conftest.make
1609fi
1610if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1611  echo "$as_me:$LINENO: result: yes" >&5
1612echo "${ECHO_T}yes" >&6
1613  SET_MAKE=
1614else
1615  echo "$as_me:$LINENO: result: no" >&5
1616echo "${ECHO_T}no" >&6
1617  SET_MAKE="MAKE=${MAKE-make}"
1618fi
1619
1620 # test to see if srcdir already configured
1621if test "`cd $srcdir && pwd`" != "`pwd`" &&
1622   test -f $srcdir/config.status; then
1623  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1624echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1625   { (exit 1); exit 1; }; }
1626fi
1627
1628# test whether we have cygpath
1629if test -z "$CYGPATH_W"; then
1630  if (cygpath --version) >/dev/null 2>/dev/null; then
1631    CYGPATH_W='cygpath -w'
1632  else
1633    CYGPATH_W=echo
1634  fi
1635fi
1636
1637
1638# Define the identity of the package.
1639 PACKAGE=steghide
1640 VERSION=0.5.1
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define PACKAGE "$PACKAGE"
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define VERSION "$VERSION"
1650_ACEOF
1651
1652# Some tools Automake needs.
1653
1654ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1655
1656
1657AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1658
1659
1660AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1661
1662
1663AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1664
1665
1666MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1667
1668
1669AMTAR=${AMTAR-"${am_missing_run}tar"}
1670
1671install_sh=${install_sh-"$am_aux_dir/install-sh"}
1672
1673# Installed binaries are usually stripped using `strip' when the user
1674# run `make install-strip'.  However `strip' might not be the right
1675# tool to use in cross-compilation environments, therefore Automake
1676# will honor the `STRIP' environment variable to overrule this program.
1677if test "$cross_compiling" != no; then
1678  if test -n "$ac_tool_prefix"; then
1679  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1680set dummy ${ac_tool_prefix}strip; ac_word=$2
1681echo "$as_me:$LINENO: checking for $ac_word" >&5
1682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_STRIP+set}" = set; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  if test -n "$STRIP"; then
1687  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1688else
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692  IFS=$as_save_IFS
1693  test -z "$as_dir" && as_dir=.
1694  for ac_exec_ext in '' $ac_executable_extensions; do
1695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698    break 2
1699  fi
1700done
1701done
1702
1703fi
1704fi
1705STRIP=$ac_cv_prog_STRIP
1706if test -n "$STRIP"; then
1707  echo "$as_me:$LINENO: result: $STRIP" >&5
1708echo "${ECHO_T}$STRIP" >&6
1709else
1710  echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714fi
1715if test -z "$ac_cv_prog_STRIP"; then
1716  ac_ct_STRIP=$STRIP
1717  # Extract the first word of "strip", so it can be a program name with args.
1718set dummy strip; ac_word=$2
1719echo "$as_me:$LINENO: checking for $ac_word" >&5
1720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1722  echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724  if test -n "$ac_ct_STRIP"; then
1725  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1726else
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730  IFS=$as_save_IFS
1731  test -z "$as_dir" && as_dir=.
1732  for ac_exec_ext in '' $ac_executable_extensions; do
1733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734    ac_cv_prog_ac_ct_STRIP="strip"
1735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736    break 2
1737  fi
1738done
1739done
1740
1741  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1742fi
1743fi
1744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1745if test -n "$ac_ct_STRIP"; then
1746  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1747echo "${ECHO_T}$ac_ct_STRIP" >&6
1748else
1749  echo "$as_me:$LINENO: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753  STRIP=$ac_ct_STRIP
1754else
1755  STRIP="$ac_cv_prog_STRIP"
1756fi
1757
1758fi
1759INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1760
1761# We need awk for the "check" target.  The system "awk" is bad on
1762# some platforms.
1763
1764
1765
1766          ac_config_headers="$ac_config_headers config.h"
1767
1768
1769ac_ext=cc
1770ac_cpp='$CXXCPP $CPPFLAGS'
1771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1774if test -n "$ac_tool_prefix"; then
1775  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1776  do
1777    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1779echo "$as_me:$LINENO: checking for $ac_word" >&5
1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781if test "${ac_cv_prog_CXX+set}" = set; then
1782  echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784  if test -n "$CXX"; then
1785  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1786else
1787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788for as_dir in $PATH
1789do
1790  IFS=$as_save_IFS
1791  test -z "$as_dir" && as_dir=.
1792  for ac_exec_ext in '' $ac_executable_extensions; do
1793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796    break 2
1797  fi
1798done
1799done
1800
1801fi
1802fi
1803CXX=$ac_cv_prog_CXX
1804if test -n "$CXX"; then
1805  echo "$as_me:$LINENO: result: $CXX" >&5
1806echo "${ECHO_T}$CXX" >&6
1807else
1808  echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812    test -n "$CXX" && break
1813  done
1814fi
1815if test -z "$CXX"; then
1816  ac_ct_CXX=$CXX
1817  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1818do
1819  # Extract the first word of "$ac_prog", so it can be a program name with args.
1820set dummy $ac_prog; ac_word=$2
1821echo "$as_me:$LINENO: checking for $ac_word" >&5
1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1824  echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826  if test -n "$ac_ct_CXX"; then
1827  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1828else
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832  IFS=$as_save_IFS
1833  test -z "$as_dir" && as_dir=.
1834  for ac_exec_ext in '' $ac_executable_extensions; do
1835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836    ac_cv_prog_ac_ct_CXX="$ac_prog"
1837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838    break 2
1839  fi
1840done
1841done
1842
1843fi
1844fi
1845ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1846if test -n "$ac_ct_CXX"; then
1847  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1848echo "${ECHO_T}$ac_ct_CXX" >&6
1849else
1850  echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852fi
1853
1854  test -n "$ac_ct_CXX" && break
1855done
1856test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1857
1858  CXX=$ac_ct_CXX
1859fi
1860
1861
1862# Provide some information about the compiler.
1863echo "$as_me:$LINENO:" \
1864     "checking for C++ compiler version" >&5
1865ac_compiler=`set X $ac_compile; echo $2`
1866{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1867  (eval $ac_compiler --version </dev/null >&5) 2>&5
1868  ac_status=$?
1869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870  (exit $ac_status); }
1871{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1872  (eval $ac_compiler -v </dev/null >&5) 2>&5
1873  ac_status=$?
1874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875  (exit $ac_status); }
1876{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1877  (eval $ac_compiler -V </dev/null >&5) 2>&5
1878  ac_status=$?
1879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880  (exit $ac_status); }
1881
1882cat >conftest.$ac_ext <<_ACEOF
1883#line $LINENO "configure"
1884/* confdefs.h.  */
1885_ACEOF
1886cat confdefs.h >>conftest.$ac_ext
1887cat >>conftest.$ac_ext <<_ACEOF
1888/* end confdefs.h.  */
1889
1890int
1891main ()
1892{
1893
1894  ;
1895  return 0;
1896}
1897_ACEOF
1898ac_clean_files_save=$ac_clean_files
1899ac_clean_files="$ac_clean_files a.out a.exe b.out"
1900# Try to create an executable without -o first, disregard a.out.
1901# It will help us diagnose broken compilers, and finding out an intuition
1902# of exeext.
1903echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1904echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1905ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1906if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1907  (eval $ac_link_default) 2>&5
1908  ac_status=$?
1909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910  (exit $ac_status); }; then
1911  # Find the output, starting from the most likely.  This scheme is
1912# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1913# resort.
1914
1915# Be careful to initialize this variable, since it used to be cached.
1916# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1917ac_cv_exeext=
1918# b.out is created by i960 compilers.
1919for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1920do
1921  test -f "$ac_file" || continue
1922  case $ac_file in
1923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1924        ;;
1925    conftest.$ac_ext )
1926        # This is the source file.
1927        ;;
1928    [ab].out )
1929        # We found the default executable, but exeext='' is most
1930        # certainly right.
1931        break;;
1932    *.* )
1933        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1934        # FIXME: I believe we export ac_cv_exeext for Libtool,
1935        # but it would be cool to find out if it's true.  Does anybody
1936        # maintain Libtool? --akim.
1937        export ac_cv_exeext
1938        break;;
1939    * )
1940        break;;
1941  esac
1942done
1943else
1944  echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1948See \`config.log' for more details." >&5
1949echo "$as_me: error: C++ compiler cannot create executables
1950See \`config.log' for more details." >&2;}
1951   { (exit 77); exit 77; }; }
1952fi
1953
1954ac_exeext=$ac_cv_exeext
1955echo "$as_me:$LINENO: result: $ac_file" >&5
1956echo "${ECHO_T}$ac_file" >&6
1957
1958# Check the compiler produces executables we can run.  If not, either
1959# the compiler is broken, or we cross compile.
1960echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1961echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1962# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1963# If not cross compiling, check that we can run a simple program.
1964if test "$cross_compiling" != yes; then
1965  if { ac_try='./$ac_file'
1966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1967  (eval $ac_try) 2>&5
1968  ac_status=$?
1969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970  (exit $ac_status); }; }; then
1971    cross_compiling=no
1972  else
1973    if test "$cross_compiling" = maybe; then
1974	cross_compiling=yes
1975    else
1976	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1977If you meant to cross compile, use \`--host'.
1978See \`config.log' for more details." >&5
1979echo "$as_me: error: cannot run C++ compiled programs.
1980If you meant to cross compile, use \`--host'.
1981See \`config.log' for more details." >&2;}
1982   { (exit 1); exit 1; }; }
1983    fi
1984  fi
1985fi
1986echo "$as_me:$LINENO: result: yes" >&5
1987echo "${ECHO_T}yes" >&6
1988
1989rm -f a.out a.exe conftest$ac_cv_exeext b.out
1990ac_clean_files=$ac_clean_files_save
1991# Check the compiler produces executables we can run.  If not, either
1992# the compiler is broken, or we cross compile.
1993echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1994echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1995echo "$as_me:$LINENO: result: $cross_compiling" >&5
1996echo "${ECHO_T}$cross_compiling" >&6
1997
1998echo "$as_me:$LINENO: checking for suffix of executables" >&5
1999echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2001  (eval $ac_link) 2>&5
2002  ac_status=$?
2003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004  (exit $ac_status); }; then
2005  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2006# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2007# work properly (i.e., refer to `conftest.exe'), while it won't with
2008# `rm'.
2009for ac_file in conftest.exe conftest conftest.*; do
2010  test -f "$ac_file" || continue
2011  case $ac_file in
2012    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2013    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2014          export ac_cv_exeext
2015          break;;
2016    * ) break;;
2017  esac
2018done
2019else
2020  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2021See \`config.log' for more details." >&5
2022echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2023See \`config.log' for more details." >&2;}
2024   { (exit 1); exit 1; }; }
2025fi
2026
2027rm -f conftest$ac_cv_exeext
2028echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2029echo "${ECHO_T}$ac_cv_exeext" >&6
2030
2031rm -f conftest.$ac_ext
2032EXEEXT=$ac_cv_exeext
2033ac_exeext=$EXEEXT
2034echo "$as_me:$LINENO: checking for suffix of object files" >&5
2035echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2036if test "${ac_cv_objext+set}" = set; then
2037  echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039  cat >conftest.$ac_ext <<_ACEOF
2040#line $LINENO "configure"
2041/* confdefs.h.  */
2042_ACEOF
2043cat confdefs.h >>conftest.$ac_ext
2044cat >>conftest.$ac_ext <<_ACEOF
2045/* end confdefs.h.  */
2046
2047int
2048main ()
2049{
2050
2051  ;
2052  return 0;
2053}
2054_ACEOF
2055rm -f conftest.o conftest.obj
2056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057  (eval $ac_compile) 2>&5
2058  ac_status=$?
2059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060  (exit $ac_status); }; then
2061  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2062  case $ac_file in
2063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2064    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2065       break;;
2066  esac
2067done
2068else
2069  echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: cannot compute suffix of object files: cannot compile
2075See \`config.log' for more details." >&2;}
2076   { (exit 1); exit 1; }; }
2077fi
2078
2079rm -f conftest.$ac_cv_objext conftest.$ac_ext
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2082echo "${ECHO_T}$ac_cv_objext" >&6
2083OBJEXT=$ac_cv_objext
2084ac_objext=$OBJEXT
2085echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2086echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2087if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2088  echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090  cat >conftest.$ac_ext <<_ACEOF
2091#line $LINENO "configure"
2092/* confdefs.h.  */
2093_ACEOF
2094cat confdefs.h >>conftest.$ac_ext
2095cat >>conftest.$ac_ext <<_ACEOF
2096/* end confdefs.h.  */
2097
2098int
2099main ()
2100{
2101#ifndef __GNUC__
2102       choke me
2103#endif
2104
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109rm -f conftest.$ac_objext
2110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111  (eval $ac_compile) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); } &&
2115         { ac_try='test -s conftest.$ac_objext'
2116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117  (eval $ac_try) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); }; }; then
2121  ac_compiler_gnu=yes
2122else
2123  echo "$as_me: failed program was:" >&5
2124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126ac_compiler_gnu=no
2127fi
2128rm -f conftest.$ac_objext conftest.$ac_ext
2129ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2130
2131fi
2132echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2133echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2134GXX=`test $ac_compiler_gnu = yes && echo yes`
2135ac_test_CXXFLAGS=${CXXFLAGS+set}
2136ac_save_CXXFLAGS=$CXXFLAGS
2137CXXFLAGS="-g"
2138echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2139echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2140if test "${ac_cv_prog_cxx_g+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  cat >conftest.$ac_ext <<_ACEOF
2144#line $LINENO "configure"
2145/* confdefs.h.  */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h.  */
2150
2151int
2152main ()
2153{
2154
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161  (eval $ac_compile) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); } &&
2165         { ac_try='test -s conftest.$ac_objext'
2166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167  (eval $ac_try) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }; }; then
2171  ac_cv_prog_cxx_g=yes
2172else
2173  echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176ac_cv_prog_cxx_g=no
2177fi
2178rm -f conftest.$ac_objext conftest.$ac_ext
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2181echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2182if test "$ac_test_CXXFLAGS" = set; then
2183  CXXFLAGS=$ac_save_CXXFLAGS
2184elif test $ac_cv_prog_cxx_g = yes; then
2185  if test "$GXX" = yes; then
2186    CXXFLAGS="-g  -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "
2187  else
2188    CXXFLAGS="-g"
2189  fi
2190else
2191  if test "$GXX" = yes; then
2192    CXXFLAGS=" -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "
2193  else
2194    CXXFLAGS=
2195  fi
2196fi
2197for ac_declaration in \
2198   ''\
2199   '#include <stdlib.h>' \
2200   'extern "C" void std::exit (int) throw (); using std::exit;' \
2201   'extern "C" void std::exit (int); using std::exit;' \
2202   'extern "C" void exit (int) throw ();' \
2203   'extern "C" void exit (int);' \
2204   'void exit (int);'
2205do
2206  cat >conftest.$ac_ext <<_ACEOF
2207#line $LINENO "configure"
2208/* confdefs.h.  */
2209_ACEOF
2210cat confdefs.h >>conftest.$ac_ext
2211cat >>conftest.$ac_ext <<_ACEOF
2212/* end confdefs.h.  */
2213#include <stdlib.h>
2214$ac_declaration
2215int
2216main ()
2217{
2218exit (42);
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225  (eval $ac_compile) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  :
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240continue
2241fi
2242rm -f conftest.$ac_objext conftest.$ac_ext
2243  cat >conftest.$ac_ext <<_ACEOF
2244#line $LINENO "configure"
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250$ac_declaration
2251int
2252main ()
2253{
2254exit (42);
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); } &&
2265         { ac_try='test -s conftest.$ac_objext'
2266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267  (eval $ac_try) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; }; then
2271  break
2272else
2273  echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276fi
2277rm -f conftest.$ac_objext conftest.$ac_ext
2278done
2279rm -f conftest*
2280if test -n "$ac_declaration"; then
2281  echo '#ifdef __cplusplus' >>confdefs.h
2282  echo $ac_declaration      >>confdefs.h
2283  echo '#endif'             >>confdefs.h
2284fi
2285
2286ac_ext=c
2287ac_cpp='$CPP $CPPFLAGS'
2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291rm -f .deps 2>/dev/null
2292mkdir .deps 2>/dev/null
2293if test -d .deps; then
2294  DEPDIR=.deps
2295else
2296  # MS-DOS does not allow filenames that begin with a dot.
2297  DEPDIR=_deps
2298fi
2299rmdir .deps 2>/dev/null
2300
2301
2302          ac_config_commands="$ac_config_commands depfiles"
2303
2304
2305am_make=${MAKE-make}
2306cat > confinc << 'END'
2307doit:
2308	@echo done
2309END
2310# If we don't find an include directive, just comment out the code.
2311echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2312echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2313am__include="#"
2314am__quote=
2315_am_result=none
2316# First try GNU make style include.
2317echo "include confinc" > confmf
2318# We grep out `Entering directory' and `Leaving directory'
2319# messages which can occur if `w' ends up in MAKEFLAGS.
2320# In particular we don't look at `^make:' because GNU make might
2321# be invoked under some other name (usually "gmake"), in which
2322# case it prints its new name instead of `make'.
2323if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2324   am__include=include
2325   am__quote=
2326   _am_result=GNU
2327fi
2328# Now try BSD make style include.
2329if test "$am__include" = "#"; then
2330   echo '.include "confinc"' > confmf
2331   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2332      am__include=.include
2333      am__quote="\""
2334      _am_result=BSD
2335   fi
2336fi
2337
2338
2339echo "$as_me:$LINENO: result: $_am_result" >&5
2340echo "${ECHO_T}$_am_result" >&6
2341rm -f confinc confmf
2342
2343# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2344if test "${enable_dependency_tracking+set}" = set; then
2345  enableval="$enable_dependency_tracking"
2346
2347fi;
2348if test "x$enable_dependency_tracking" != xno; then
2349  am_depcomp="$ac_aux_dir/depcomp"
2350  AMDEPBACKSLASH='\'
2351fi
2352
2353
2354if test "x$enable_dependency_tracking" != xno; then
2355  AMDEP_TRUE=
2356  AMDEP_FALSE='#'
2357else
2358  AMDEP_TRUE='#'
2359  AMDEP_FALSE=
2360fi
2361
2362
2363
2364
2365depcc="$CXX"  am_compiler_list=
2366
2367echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2368echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2369if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2373  # We make a subdir and do the tests there.  Otherwise we can end up
2374  # making bogus files that we don't know about and never remove.  For
2375  # instance it was reported that on HP-UX the gcc test will end up
2376  # making a dummy file named `D' -- because `-MD' means `put the output
2377  # in D'.
2378  mkdir conftest.dir
2379  # Copy depcomp to subdir because otherwise we won't find it if we're
2380  # using a relative directory.
2381  cp "$am_depcomp" conftest.dir
2382  cd conftest.dir
2383
2384  am_cv_CXX_dependencies_compiler_type=none
2385  if test "$am_compiler_list" = ""; then
2386     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2387  fi
2388  for depmode in $am_compiler_list; do
2389    # We need to recreate these files for each test, as the compiler may
2390    # overwrite some of them when testing with obscure command lines.
2391    # This happens at least with the AIX C compiler.
2392    echo '#include "conftest.h"' > conftest.c
2393    echo 'int i;' > conftest.h
2394    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2395
2396    case $depmode in
2397    nosideeffect)
2398      # after this tag, mechanisms are not by side-effect, so they'll
2399      # only be used when explicitly requested
2400      if test "x$enable_dependency_tracking" = xyes; then
2401	continue
2402      else
2403	break
2404      fi
2405      ;;
2406    none) break ;;
2407    esac
2408    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2409    # mode.  It turns out that the SunPro C++ compiler does not properly
2410    # handle `-M -o', and we need to detect this.
2411    if depmode=$depmode \
2412       source=conftest.c object=conftest.o \
2413       depfile=conftest.Po tmpdepfile=conftest.TPo \
2414       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2415       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2416       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2417      am_cv_CXX_dependencies_compiler_type=$depmode
2418      break
2419    fi
2420  done
2421
2422  cd ..
2423  rm -rf conftest.dir
2424else
2425  am_cv_CXX_dependencies_compiler_type=none
2426fi
2427
2428fi
2429echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2430echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2431CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2432
2433
2434
2435if
2436  test "x$enable_dependency_tracking" != xno \
2437  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2438  am__fastdepCXX_TRUE=
2439  am__fastdepCXX_FALSE='#'
2440else
2441  am__fastdepCXX_TRUE='#'
2442  am__fastdepCXX_FALSE=
2443fi
2444
2445
2446# Find a good install program.  We prefer a C program (faster),
2447# so one script is as good as another.  But avoid the broken or
2448# incompatible versions:
2449# SysV /etc/install, /usr/sbin/install
2450# SunOS /usr/etc/install
2451# IRIX /sbin/install
2452# AIX /bin/install
2453# AmigaOS /C/install, which installs bootblocks on floppy discs
2454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457# ./install, which can be erroneously created by make from ./install.sh.
2458echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2459echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2460if test -z "$INSTALL"; then
2461if test "${ac_cv_path_install+set}" = set; then
2462  echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469  # Account for people who put trailing slashes in PATH elements.
2470case $as_dir/ in
2471  ./ | .// | /cC/* | \
2472  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473  /usr/ucb/* ) ;;
2474  *)
2475    # OSF1 and SCO ODT 3.0 have their own names for install.
2476    # Don't use installbsd from OSF since it installs stuff as root
2477    # by default.
2478    for ac_prog in ginstall scoinst install; do
2479      for ac_exec_ext in '' $ac_executable_extensions; do
2480        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481          if test $ac_prog = install &&
2482            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483            # AIX install.  It has an incompatible calling convention.
2484            :
2485          elif test $ac_prog = install &&
2486            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487            # program-specific install script used by HP pwplus--don't use.
2488            :
2489          else
2490            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491            break 3
2492          fi
2493        fi
2494      done
2495    done
2496    ;;
2497esac
2498done
2499
2500
2501fi
2502  if test "${ac_cv_path_install+set}" = set; then
2503    INSTALL=$ac_cv_path_install
2504  else
2505    # As a last resort, use the slow shell script.  We don't cache a
2506    # path for INSTALL within a source directory, because that will
2507    # break other packages using the cache if that directory is
2508    # removed, or if the path is relative.
2509    INSTALL=$ac_install_sh
2510  fi
2511fi
2512echo "$as_me:$LINENO: result: $INSTALL" >&5
2513echo "${ECHO_T}$INSTALL" >&6
2514
2515# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2516# It thinks the first close brace ends the variable substitution.
2517test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2518
2519test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2520
2521test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2522
2523for ac_prog in gawk mawk nawk awk
2524do
2525  # Extract the first word of "$ac_prog", so it can be a program name with args.
2526set dummy $ac_prog; ac_word=$2
2527echo "$as_me:$LINENO: checking for $ac_word" >&5
2528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529if test "${ac_cv_prog_AWK+set}" = set; then
2530  echo $ECHO_N "(cached) $ECHO_C" >&6
2531else
2532  if test -n "$AWK"; then
2533  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540  for ac_exec_ext in '' $ac_executable_extensions; do
2541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542    ac_cv_prog_AWK="$ac_prog"
2543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547done
2548
2549fi
2550fi
2551AWK=$ac_cv_prog_AWK
2552if test -n "$AWK"; then
2553  echo "$as_me:$LINENO: result: $AWK" >&5
2554echo "${ECHO_T}$AWK" >&6
2555else
2556  echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6
2558fi
2559
2560  test -n "$AWK" && break
2561done
2562
2563echo "$as_me:$LINENO: checking whether ln -s works" >&5
2564echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2565LN_S=$as_ln_s
2566if test "$LN_S" = "ln -s"; then
2567  echo "$as_me:$LINENO: result: yes" >&5
2568echo "${ECHO_T}yes" >&6
2569else
2570  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2571echo "${ECHO_T}no, using $LN_S" >&6
2572fi
2573
2574
2575ac_ext=c
2576ac_cpp='$CPP $CPPFLAGS'
2577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580if test -n "$ac_tool_prefix"; then
2581  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2582set dummy ${ac_tool_prefix}gcc; ac_word=$2
2583echo "$as_me:$LINENO: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585if test "${ac_cv_prog_CC+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  if test -n "$CC"; then
2589  ac_cv_prog_CC="$CC" # Let the user override the test.
2590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594  IFS=$as_save_IFS
2595  test -z "$as_dir" && as_dir=.
2596  for ac_exec_ext in '' $ac_executable_extensions; do
2597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600    break 2
2601  fi
2602done
2603done
2604
2605fi
2606fi
2607CC=$ac_cv_prog_CC
2608if test -n "$CC"; then
2609  echo "$as_me:$LINENO: result: $CC" >&5
2610echo "${ECHO_T}$CC" >&6
2611else
2612  echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6
2614fi
2615
2616fi
2617if test -z "$ac_cv_prog_CC"; then
2618  ac_ct_CC=$CC
2619  # Extract the first word of "gcc", so it can be a program name with args.
2620set dummy gcc; ac_word=$2
2621echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624  echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626  if test -n "$ac_ct_CC"; then
2627  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634  for ac_exec_ext in '' $ac_executable_extensions; do
2635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    ac_cv_prog_ac_ct_CC="gcc"
2637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641done
2642
2643fi
2644fi
2645ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646if test -n "$ac_ct_CC"; then
2647  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648echo "${ECHO_T}$ac_ct_CC" >&6
2649else
2650  echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
2652fi
2653
2654  CC=$ac_ct_CC
2655else
2656  CC="$ac_cv_prog_CC"
2657fi
2658
2659if test -z "$CC"; then
2660  if test -n "$ac_tool_prefix"; then
2661  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2662set dummy ${ac_tool_prefix}cc; ac_word=$2
2663echo "$as_me:$LINENO: checking for $ac_word" >&5
2664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665if test "${ac_cv_prog_CC+set}" = set; then
2666  echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668  if test -n "$CC"; then
2669  ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676  for ac_exec_ext in '' $ac_executable_extensions; do
2677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678    ac_cv_prog_CC="${ac_tool_prefix}cc"
2679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683done
2684
2685fi
2686fi
2687CC=$ac_cv_prog_CC
2688if test -n "$CC"; then
2689  echo "$as_me:$LINENO: result: $CC" >&5
2690echo "${ECHO_T}$CC" >&6
2691else
2692  echo "$as_me:$LINENO: result: no" >&5
2693echo "${ECHO_T}no" >&6
2694fi
2695
2696fi
2697if test -z "$ac_cv_prog_CC"; then
2698  ac_ct_CC=$CC
2699  # Extract the first word of "cc", so it can be a program name with args.
2700set dummy cc; ac_word=$2
2701echo "$as_me:$LINENO: checking for $ac_word" >&5
2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704  echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706  if test -n "$ac_ct_CC"; then
2707  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714  for ac_exec_ext in '' $ac_executable_extensions; do
2715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_ac_ct_CC="cc"
2717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721done
2722
2723fi
2724fi
2725ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726if test -n "$ac_ct_CC"; then
2727  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728echo "${ECHO_T}$ac_ct_CC" >&6
2729else
2730  echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
2732fi
2733
2734  CC=$ac_ct_CC
2735else
2736  CC="$ac_cv_prog_CC"
2737fi
2738
2739fi
2740if test -z "$CC"; then
2741  # Extract the first word of "cc", so it can be a program name with args.
2742set dummy cc; ac_word=$2
2743echo "$as_me:$LINENO: checking for $ac_word" >&5
2744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2745if test "${ac_cv_prog_CC+set}" = set; then
2746  echo $ECHO_N "(cached) $ECHO_C" >&6
2747else
2748  if test -n "$CC"; then
2749  ac_cv_prog_CC="$CC" # Let the user override the test.
2750else
2751  ac_prog_rejected=no
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755  IFS=$as_save_IFS
2756  test -z "$as_dir" && as_dir=.
2757  for ac_exec_ext in '' $ac_executable_extensions; do
2758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2760       ac_prog_rejected=yes
2761       continue
2762     fi
2763    ac_cv_prog_CC="cc"
2764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765    break 2
2766  fi
2767done
2768done
2769
2770if test $ac_prog_rejected = yes; then
2771  # We found a bogon in the path, so make sure we never use it.
2772  set dummy $ac_cv_prog_CC
2773  shift
2774  if test $# != 0; then
2775    # We chose a different compiler from the bogus one.
2776    # However, it has the same basename, so the bogon will be chosen
2777    # first if we set CC to just the basename; use the full file name.
2778    shift
2779    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780  fi
2781fi
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
2786  echo "$as_me:$LINENO: result: $CC" >&5
2787echo "${ECHO_T}$CC" >&6
2788else
2789  echo "$as_me:$LINENO: result: no" >&5
2790echo "${ECHO_T}no" >&6
2791fi
2792
2793fi
2794if test -z "$CC"; then
2795  if test -n "$ac_tool_prefix"; then
2796  for ac_prog in cl
2797  do
2798    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800echo "$as_me:$LINENO: checking for $ac_word" >&5
2801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2802if test "${ac_cv_prog_CC+set}" = set; then
2803  echo $ECHO_N "(cached) $ECHO_C" >&6
2804else
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811  IFS=$as_save_IFS
2812  test -z "$as_dir" && as_dir=.
2813  for ac_exec_ext in '' $ac_executable_extensions; do
2814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817    break 2
2818  fi
2819done
2820done
2821
2822fi
2823fi
2824CC=$ac_cv_prog_CC
2825if test -n "$CC"; then
2826  echo "$as_me:$LINENO: result: $CC" >&5
2827echo "${ECHO_T}$CC" >&6
2828else
2829  echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831fi
2832
2833    test -n "$CC" && break
2834  done
2835fi
2836if test -z "$CC"; then
2837  ac_ct_CC=$CC
2838  for ac_prog in cl
2839do
2840  # Extract the first word of "$ac_prog", so it can be a program name with args.
2841set dummy $ac_prog; ac_word=$2
2842echo "$as_me:$LINENO: checking for $ac_word" >&5
2843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845  echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847  if test -n "$ac_ct_CC"; then
2848  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849else
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    ac_cv_prog_ac_ct_CC="$ac_prog"
2858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859    break 2
2860  fi
2861done
2862done
2863
2864fi
2865fi
2866ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867if test -n "$ac_ct_CC"; then
2868  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869echo "${ECHO_T}$ac_ct_CC" >&6
2870else
2871  echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873fi
2874
2875  test -n "$ac_ct_CC" && break
2876done
2877
2878  CC=$ac_ct_CC
2879fi
2880
2881fi
2882
2883
2884test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2885See \`config.log' for more details." >&5
2886echo "$as_me: error: no acceptable C compiler found in \$PATH
2887See \`config.log' for more details." >&2;}
2888   { (exit 1); exit 1; }; }
2889
2890# Provide some information about the compiler.
2891echo "$as_me:$LINENO:" \
2892     "checking for C compiler version" >&5
2893ac_compiler=`set X $ac_compile; echo $2`
2894{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2895  (eval $ac_compiler --version </dev/null >&5) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }
2899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2900  (eval $ac_compiler -v </dev/null >&5) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }
2904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2905  (eval $ac_compiler -V </dev/null >&5) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }
2909
2910echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2911echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2912if test "${ac_cv_c_compiler_gnu+set}" = set; then
2913  echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915  cat >conftest.$ac_ext <<_ACEOF
2916#line $LINENO "configure"
2917/* confdefs.h.  */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h.  */
2922
2923int
2924main ()
2925{
2926#ifndef __GNUC__
2927       choke me
2928#endif
2929
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext
2935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936  (eval $ac_compile) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); } &&
2940         { ac_try='test -s conftest.$ac_objext'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; }; then
2946  ac_compiler_gnu=yes
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951ac_compiler_gnu=no
2952fi
2953rm -f conftest.$ac_objext conftest.$ac_ext
2954ac_cv_c_compiler_gnu=$ac_compiler_gnu
2955
2956fi
2957echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2959GCC=`test $ac_compiler_gnu = yes && echo yes`
2960ac_test_CFLAGS=${CFLAGS+set}
2961ac_save_CFLAGS=$CFLAGS
2962CFLAGS="-g"
2963echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2965if test "${ac_cv_prog_cc_g+set}" = set; then
2966  echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968  cat >conftest.$ac_ext <<_ACEOF
2969#line $LINENO "configure"
2970/* confdefs.h.  */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986  (eval $ac_compile) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); } &&
2990         { ac_try='test -s conftest.$ac_objext'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; }; then
2996  ac_cv_prog_cc_g=yes
2997else
2998  echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001ac_cv_prog_cc_g=no
3002fi
3003rm -f conftest.$ac_objext conftest.$ac_ext
3004fi
3005echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3006echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3007if test "$ac_test_CFLAGS" = set; then
3008  CFLAGS=$ac_save_CFLAGS
3009elif test $ac_cv_prog_cc_g = yes; then
3010  if test "$GCC" = yes; then
3011    CFLAGS="-g -O2"
3012  else
3013    CFLAGS="-g"
3014  fi
3015else
3016  if test "$GCC" = yes; then
3017    CFLAGS="-O2"
3018  else
3019    CFLAGS=
3020  fi
3021fi
3022echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3023echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3024if test "${ac_cv_prog_cc_stdc+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  ac_cv_prog_cc_stdc=no
3028ac_save_CC=$CC
3029cat >conftest.$ac_ext <<_ACEOF
3030#line $LINENO "configure"
3031/* confdefs.h.  */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h.  */
3036#include <stdarg.h>
3037#include <stdio.h>
3038#include <sys/types.h>
3039#include <sys/stat.h>
3040/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3041struct buf { int x; };
3042FILE * (*rcsopen) (struct buf *, struct stat *, int);
3043static char *e (p, i)
3044     char **p;
3045     int i;
3046{
3047  return p[i];
3048}
3049static char *f (char * (*g) (char **, int), char **p, ...)
3050{
3051  char *s;
3052  va_list v;
3053  va_start (v,p);
3054  s = g (p, va_arg (v,int));
3055  va_end (v);
3056  return s;
3057}
3058int test (int i, double x);
3059struct s1 {int (*f) (int a);};
3060struct s2 {int (*f) (double a);};
3061int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3062int argc;
3063char **argv;
3064int
3065main ()
3066{
3067return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3068  ;
3069  return 0;
3070}
3071_ACEOF
3072# Don't try gcc -ansi; that turns off useful extensions and
3073# breaks some systems' header files.
3074# AIX			-qlanglvl=ansi
3075# Ultrix and OSF/1	-std1
3076# HP-UX 10.20 and later	-Ae
3077# HP-UX older versions	-Aa -D_HPUX_SOURCE
3078# SVR4			-Xc -D__EXTENSIONS__
3079for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3080do
3081  CC="$ac_save_CC $ac_arg"
3082  rm -f conftest.$ac_objext
3083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084  (eval $ac_compile) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } &&
3088         { ac_try='test -s conftest.$ac_objext'
3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090  (eval $ac_try) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; }; then
3094  ac_cv_prog_cc_stdc=$ac_arg
3095break
3096else
3097  echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100fi
3101rm -f conftest.$ac_objext
3102done
3103rm -f conftest.$ac_ext conftest.$ac_objext
3104CC=$ac_save_CC
3105
3106fi
3107
3108case "x$ac_cv_prog_cc_stdc" in
3109  x|xno)
3110    echo "$as_me:$LINENO: result: none needed" >&5
3111echo "${ECHO_T}none needed" >&6 ;;
3112  *)
3113    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3114echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3115    CC="$CC $ac_cv_prog_cc_stdc" ;;
3116esac
3117
3118# Some people use a C++ compiler to compile C.  Since we use `exit',
3119# in C++ we need to declare it.  In case someone uses the same compiler
3120# for both compiling C and C++ we need to have the C++ compiler decide
3121# the declaration of exit, since it's the most demanding environment.
3122cat >conftest.$ac_ext <<_ACEOF
3123#ifndef __cplusplus
3124  choke me
3125#endif
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129  (eval $ac_compile) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); } &&
3133         { ac_try='test -s conftest.$ac_objext'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; }; then
3139  for ac_declaration in \
3140   ''\
3141   '#include <stdlib.h>' \
3142   'extern "C" void std::exit (int) throw (); using std::exit;' \
3143   'extern "C" void std::exit (int); using std::exit;' \
3144   'extern "C" void exit (int) throw ();' \
3145   'extern "C" void exit (int);' \
3146   'void exit (int);'
3147do
3148  cat >conftest.$ac_ext <<_ACEOF
3149#line $LINENO "configure"
3150/* confdefs.h.  */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h.  */
3155#include <stdlib.h>
3156$ac_declaration
3157int
3158main ()
3159{
3160exit (42);
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167  (eval $ac_compile) 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); } &&
3171         { ac_try='test -s conftest.$ac_objext'
3172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173  (eval $ac_try) 2>&5
3174  ac_status=$?
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); }; }; then
3177  :
3178else
3179  echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182continue
3183fi
3184rm -f conftest.$ac_objext conftest.$ac_ext
3185  cat >conftest.$ac_ext <<_ACEOF
3186#line $LINENO "configure"
3187/* confdefs.h.  */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h.  */
3192$ac_declaration
3193int
3194main ()
3195{
3196exit (42);
3197  ;
3198  return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203  (eval $ac_compile) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); } &&
3207         { ac_try='test -s conftest.$ac_objext'
3208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209  (eval $ac_try) 2>&5
3210  ac_status=$?
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); }; }; then
3213  break
3214else
3215  echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218fi
3219rm -f conftest.$ac_objext conftest.$ac_ext
3220done
3221rm -f conftest*
3222if test -n "$ac_declaration"; then
3223  echo '#ifdef __cplusplus' >>confdefs.h
3224  echo $ac_declaration      >>confdefs.h
3225  echo '#endif'             >>confdefs.h
3226fi
3227
3228else
3229  echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232fi
3233rm -f conftest.$ac_objext conftest.$ac_ext
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240depcc="$CC"   am_compiler_list=
3241
3242echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3243echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3244if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3248  # We make a subdir and do the tests there.  Otherwise we can end up
3249  # making bogus files that we don't know about and never remove.  For
3250  # instance it was reported that on HP-UX the gcc test will end up
3251  # making a dummy file named `D' -- because `-MD' means `put the output
3252  # in D'.
3253  mkdir conftest.dir
3254  # Copy depcomp to subdir because otherwise we won't find it if we're
3255  # using a relative directory.
3256  cp "$am_depcomp" conftest.dir
3257  cd conftest.dir
3258
3259  am_cv_CC_dependencies_compiler_type=none
3260  if test "$am_compiler_list" = ""; then
3261     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3262  fi
3263  for depmode in $am_compiler_list; do
3264    # We need to recreate these files for each test, as the compiler may
3265    # overwrite some of them when testing with obscure command lines.
3266    # This happens at least with the AIX C compiler.
3267    echo '#include "conftest.h"' > conftest.c
3268    echo 'int i;' > conftest.h
3269    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3270
3271    case $depmode in
3272    nosideeffect)
3273      # after this tag, mechanisms are not by side-effect, so they'll
3274      # only be used when explicitly requested
3275      if test "x$enable_dependency_tracking" = xyes; then
3276	continue
3277      else
3278	break
3279      fi
3280      ;;
3281    none) break ;;
3282    esac
3283    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3284    # mode.  It turns out that the SunPro C++ compiler does not properly
3285    # handle `-M -o', and we need to detect this.
3286    if depmode=$depmode \
3287       source=conftest.c object=conftest.o \
3288       depfile=conftest.Po tmpdepfile=conftest.TPo \
3289       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3290       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3291       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3292      am_cv_CC_dependencies_compiler_type=$depmode
3293      break
3294    fi
3295  done
3296
3297  cd ..
3298  rm -rf conftest.dir
3299else
3300  am_cv_CC_dependencies_compiler_type=none
3301fi
3302
3303fi
3304echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3305echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3306CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3307
3308
3309
3310if
3311  test "x$enable_dependency_tracking" != xno \
3312  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3313  am__fastdepCC_TRUE=
3314  am__fastdepCC_FALSE='#'
3315else
3316  am__fastdepCC_TRUE='#'
3317  am__fastdepCC_FALSE=
3318fi
3319
3320
3321
3322
3323for ac_func in strchr
3324do
3325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3326echo "$as_me:$LINENO: checking for $ac_func" >&5
3327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3328if eval "test \"\${$as_ac_var+set}\" = set"; then
3329  echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331  cat >conftest.$ac_ext <<_ACEOF
3332#line $LINENO "configure"
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338/* System header to define __stub macros and hopefully few prototypes,
3339    which can conflict with char $ac_func (); below.
3340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341    <limits.h> exists even on freestanding compilers.  */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
3347/* Override any gcc2 internal prototype to avoid an error.  */
3348#ifdef __cplusplus
3349extern "C"
3350{
3351#endif
3352/* We use char because int might match the return type of a gcc2
3353   builtin and then its argument prototype would still apply.  */
3354char $ac_func ();
3355/* The GNU C library defines this for functions which it implements
3356    to always fail with ENOSYS.  Some functions are actually named
3357    something starting with __ and the normal name is an alias.  */
3358#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3359choke me
3360#else
3361char (*f) () = $ac_func;
3362#endif
3363#ifdef __cplusplus
3364}
3365#endif
3366
3367int
3368main ()
3369{
3370return f != $ac_func;
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375rm -f conftest.$ac_objext conftest$ac_exeext
3376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377  (eval $ac_link) 2>&5
3378  ac_status=$?
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); } &&
3381         { ac_try='test -s conftest$ac_exeext'
3382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383  (eval $ac_try) 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }; }; then
3387  eval "$as_ac_var=yes"
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392eval "$as_ac_var=no"
3393fi
3394rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3395fi
3396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3397echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3398if test `eval echo '${'$as_ac_var'}'` = yes; then
3399  cat >>confdefs.h <<_ACEOF
3400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3401_ACEOF
3402
3403fi
3404done
3405
3406
3407        MKINSTALLDIRS=
3408  if test -n "$ac_aux_dir"; then
3409    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3410  fi
3411  if test -z "$MKINSTALLDIRS"; then
3412    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3413  fi
3414
3415
3416
3417
3418
3419        # Extract the first word of "msgfmt", so it can be a program name with args.
3420set dummy msgfmt; ac_word=$2
3421echo "$as_me:$LINENO: checking for $ac_word" >&5
3422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423if test "${ac_cv_path_MSGFMT+set}" = set; then
3424  echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426  case "$MSGFMT" in
3427  /*)
3428  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3429  ;;
3430  *)
3431  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3432  for ac_dir in $PATH; do
3433    test -z "$ac_dir" && ac_dir=.
3434    if test -f $ac_dir/$ac_word; then
3435      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3436     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3437	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3438	break
3439      fi
3440    fi
3441  done
3442  IFS="$ac_save_ifs"
3443  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3444  ;;
3445esac
3446fi
3447MSGFMT="$ac_cv_path_MSGFMT"
3448if test "$MSGFMT" != ":"; then
3449  echo "$as_me:$LINENO: result: $MSGFMT" >&5
3450echo "${ECHO_T}$MSGFMT" >&6
3451else
3452  echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454fi
3455
3456  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3457set dummy gmsgfmt; ac_word=$2
3458echo "$as_me:$LINENO: checking for $ac_word" >&5
3459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460if test "${ac_cv_path_GMSGFMT+set}" = set; then
3461  echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463  case $GMSGFMT in
3464  [\\/]* | ?:[\\/]*)
3465  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3466  ;;
3467  *)
3468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in $PATH
3470do
3471  IFS=$as_save_IFS
3472  test -z "$as_dir" && as_dir=.
3473  for ac_exec_ext in '' $ac_executable_extensions; do
3474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477    break 2
3478  fi
3479done
3480done
3481
3482  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3483  ;;
3484esac
3485fi
3486GMSGFMT=$ac_cv_path_GMSGFMT
3487
3488if test -n "$GMSGFMT"; then
3489  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3490echo "${ECHO_T}$GMSGFMT" >&6
3491else
3492  echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494fi
3495
3496
3497        # Extract the first word of "xgettext", so it can be a program name with args.
3498set dummy xgettext; ac_word=$2
3499echo "$as_me:$LINENO: checking for $ac_word" >&5
3500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3501if test "${ac_cv_path_XGETTEXT+set}" = set; then
3502  echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504  case "$XGETTEXT" in
3505  /*)
3506  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3507  ;;
3508  *)
3509  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3510  for ac_dir in $PATH; do
3511    test -z "$ac_dir" && ac_dir=.
3512    if test -f $ac_dir/$ac_word; then
3513      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3514     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3515	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3516	break
3517      fi
3518    fi
3519  done
3520  IFS="$ac_save_ifs"
3521  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3522  ;;
3523esac
3524fi
3525XGETTEXT="$ac_cv_path_XGETTEXT"
3526if test "$XGETTEXT" != ":"; then
3527  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3528echo "${ECHO_T}$XGETTEXT" >&6
3529else
3530  echo "$as_me:$LINENO: result: no" >&5
3531echo "${ECHO_T}no" >&6
3532fi
3533
3534    rm -f messages.po
3535
3536    # Extract the first word of "msgmerge", so it can be a program name with args.
3537set dummy msgmerge; ac_word=$2
3538echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540if test "${ac_cv_path_MSGMERGE+set}" = set; then
3541  echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543  case "$MSGMERGE" in
3544  /*)
3545  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3546  ;;
3547  *)
3548  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3549  for ac_dir in $PATH; do
3550    test -z "$ac_dir" && ac_dir=.
3551    if test -f $ac_dir/$ac_word; then
3552      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3553	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3554	break
3555      fi
3556    fi
3557  done
3558  IFS="$ac_save_ifs"
3559  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3560  ;;
3561esac
3562fi
3563MSGMERGE="$ac_cv_path_MSGMERGE"
3564if test "$MSGMERGE" != ":"; then
3565  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3566echo "${ECHO_T}$MSGMERGE" >&6
3567else
3568  echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
3570fi
3571
3572
3573      if test "$GMSGFMT" != ":"; then
3574            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3575       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3576      : ;
3577    else
3578      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3579      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3580echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3581      GMSGFMT=":"
3582    fi
3583  fi
3584
3585      if test "$XGETTEXT" != ":"; then
3586            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3587       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3588      : ;
3589    else
3590      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3591echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3592      XGETTEXT=":"
3593    fi
3594        rm -f messages.po
3595  fi
3596
3597            ac_config_commands="$ac_config_commands default-1"
3598
3599
3600if test -n "$ac_tool_prefix"; then
3601  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3602set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3603echo "$as_me:$LINENO: checking for $ac_word" >&5
3604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605if test "${ac_cv_prog_RANLIB+set}" = set; then
3606  echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608  if test -n "$RANLIB"; then
3609  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  test -z "$as_dir" && as_dir=.
3616  for ac_exec_ext in '' $ac_executable_extensions; do
3617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620    break 2
3621  fi
3622done
3623done
3624
3625fi
3626fi
3627RANLIB=$ac_cv_prog_RANLIB
3628if test -n "$RANLIB"; then
3629  echo "$as_me:$LINENO: result: $RANLIB" >&5
3630echo "${ECHO_T}$RANLIB" >&6
3631else
3632  echo "$as_me:$LINENO: result: no" >&5
3633echo "${ECHO_T}no" >&6
3634fi
3635
3636fi
3637if test -z "$ac_cv_prog_RANLIB"; then
3638  ac_ct_RANLIB=$RANLIB
3639  # Extract the first word of "ranlib", so it can be a program name with args.
3640set dummy ranlib; ac_word=$2
3641echo "$as_me:$LINENO: checking for $ac_word" >&5
3642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3644  echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646  if test -n "$ac_ct_RANLIB"; then
3647  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3648else
3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650for as_dir in $PATH
3651do
3652  IFS=$as_save_IFS
3653  test -z "$as_dir" && as_dir=.
3654  for ac_exec_ext in '' $ac_executable_extensions; do
3655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656    ac_cv_prog_ac_ct_RANLIB="ranlib"
3657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658    break 2
3659  fi
3660done
3661done
3662
3663  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3664fi
3665fi
3666ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3667if test -n "$ac_ct_RANLIB"; then
3668  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3669echo "${ECHO_T}$ac_ct_RANLIB" >&6
3670else
3671  echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi
3674
3675  RANLIB=$ac_ct_RANLIB
3676else
3677  RANLIB="$ac_cv_prog_RANLIB"
3678fi
3679
3680
3681        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3682echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3683if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  ac_check_lib_save_LIBS=$LIBS
3687LIBS="-lcposix  $LIBS"
3688cat >conftest.$ac_ext <<_ACEOF
3689#line $LINENO "configure"
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695
3696/* Override any gcc2 internal prototype to avoid an error.  */
3697#ifdef __cplusplus
3698extern "C"
3699#endif
3700/* We use char because int might match the return type of a gcc2
3701   builtin and then its argument prototype would still apply.  */
3702char strerror ();
3703int
3704main ()
3705{
3706strerror ();
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext conftest$ac_exeext
3712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3713  (eval $ac_link) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); } &&
3717         { ac_try='test -s conftest$ac_exeext'
3718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719  (eval $ac_try) 2>&5
3720  ac_status=$?
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); }; }; then
3723  ac_cv_lib_cposix_strerror=yes
3724else
3725  echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728ac_cv_lib_cposix_strerror=no
3729fi
3730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731LIBS=$ac_check_lib_save_LIBS
3732fi
3733echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3734echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3735if test $ac_cv_lib_cposix_strerror = yes; then
3736  LIBS="$LIBS -lcposix"
3737fi
3738
3739
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3748# On Suns, sometimes $CPP names a directory.
3749if test -n "$CPP" && test -d "$CPP"; then
3750  CPP=
3751fi
3752if test -z "$CPP"; then
3753  if test "${ac_cv_prog_CPP+set}" = set; then
3754  echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756      # Double quotes because CPP needs to be expanded
3757    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3758    do
3759      ac_preproc_ok=false
3760for ac_c_preproc_warn_flag in '' yes
3761do
3762  # Use a header file that comes with gcc, so configuring glibc
3763  # with a fresh cross-compiler works.
3764  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765  # <limits.h> exists even on freestanding compilers.
3766  # On the NeXT, cc -E runs the code through the compiler's parser,
3767  # not just through cpp. "Syntax error" is here to catch this case.
3768  cat >conftest.$ac_ext <<_ACEOF
3769#line $LINENO "configure"
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775#ifdef __STDC__
3776# include <limits.h>
3777#else
3778# include <assert.h>
3779#endif
3780                     Syntax error
3781_ACEOF
3782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784  ac_status=$?
3785  grep -v '^ *+' conftest.er1 >conftest.err
3786  rm -f conftest.er1
3787  cat conftest.err >&5
3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789  (exit $ac_status); } >/dev/null; then
3790  if test -s conftest.err; then
3791    ac_cpp_err=$ac_c_preproc_warn_flag
3792  else
3793    ac_cpp_err=
3794  fi
3795else
3796  ac_cpp_err=yes
3797fi
3798if test -z "$ac_cpp_err"; then
3799  :
3800else
3801  echo "$as_me: failed program was:" >&5
3802sed 's/^/| /' conftest.$ac_ext >&5
3803
3804  # Broken: fails on valid input.
3805continue
3806fi
3807rm -f conftest.err conftest.$ac_ext
3808
3809  # OK, works on sane cases.  Now check whether non-existent headers
3810  # can be detected and how.
3811  cat >conftest.$ac_ext <<_ACEOF
3812#line $LINENO "configure"
3813/* confdefs.h.  */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h.  */
3818#include <ac_nonexistent.h>
3819_ACEOF
3820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822  ac_status=$?
3823  grep -v '^ *+' conftest.er1 >conftest.err
3824  rm -f conftest.er1
3825  cat conftest.err >&5
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); } >/dev/null; then
3828  if test -s conftest.err; then
3829    ac_cpp_err=$ac_c_preproc_warn_flag
3830  else
3831    ac_cpp_err=
3832  fi
3833else
3834  ac_cpp_err=yes
3835fi
3836if test -z "$ac_cpp_err"; then
3837  # Broken: success on invalid input.
3838continue
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843  # Passes both tests.
3844ac_preproc_ok=:
3845break
3846fi
3847rm -f conftest.err conftest.$ac_ext
3848
3849done
3850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851rm -f conftest.err conftest.$ac_ext
3852if $ac_preproc_ok; then
3853  break
3854fi
3855
3856    done
3857    ac_cv_prog_CPP=$CPP
3858
3859fi
3860  CPP=$ac_cv_prog_CPP
3861else
3862  ac_cv_prog_CPP=$CPP
3863fi
3864echo "$as_me:$LINENO: result: $CPP" >&5
3865echo "${ECHO_T}$CPP" >&6
3866ac_preproc_ok=false
3867for ac_c_preproc_warn_flag in '' yes
3868do
3869  # Use a header file that comes with gcc, so configuring glibc
3870  # with a fresh cross-compiler works.
3871  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872  # <limits.h> exists even on freestanding compilers.
3873  # On the NeXT, cc -E runs the code through the compiler's parser,
3874  # not just through cpp. "Syntax error" is here to catch this case.
3875  cat >conftest.$ac_ext <<_ACEOF
3876#line $LINENO "configure"
3877/* confdefs.h.  */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h.  */
3882#ifdef __STDC__
3883# include <limits.h>
3884#else
3885# include <assert.h>
3886#endif
3887                     Syntax error
3888_ACEOF
3889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891  ac_status=$?
3892  grep -v '^ *+' conftest.er1 >conftest.err
3893  rm -f conftest.er1
3894  cat conftest.err >&5
3895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896  (exit $ac_status); } >/dev/null; then
3897  if test -s conftest.err; then
3898    ac_cpp_err=$ac_c_preproc_warn_flag
3899  else
3900    ac_cpp_err=
3901  fi
3902else
3903  ac_cpp_err=yes
3904fi
3905if test -z "$ac_cpp_err"; then
3906  :
3907else
3908  echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911  # Broken: fails on valid input.
3912continue
3913fi
3914rm -f conftest.err conftest.$ac_ext
3915
3916  # OK, works on sane cases.  Now check whether non-existent headers
3917  # can be detected and how.
3918  cat >conftest.$ac_ext <<_ACEOF
3919#line $LINENO "configure"
3920/* confdefs.h.  */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h.  */
3925#include <ac_nonexistent.h>
3926_ACEOF
3927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3928  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929  ac_status=$?
3930  grep -v '^ *+' conftest.er1 >conftest.err
3931  rm -f conftest.er1
3932  cat conftest.err >&5
3933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934  (exit $ac_status); } >/dev/null; then
3935  if test -s conftest.err; then
3936    ac_cpp_err=$ac_c_preproc_warn_flag
3937  else
3938    ac_cpp_err=
3939  fi
3940else
3941  ac_cpp_err=yes
3942fi
3943if test -z "$ac_cpp_err"; then
3944  # Broken: success on invalid input.
3945continue
3946else
3947  echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950  # Passes both tests.
3951ac_preproc_ok=:
3952break
3953fi
3954rm -f conftest.err conftest.$ac_ext
3955
3956done
3957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958rm -f conftest.err conftest.$ac_ext
3959if $ac_preproc_ok; then
3960  :
3961else
3962  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963See \`config.log' for more details." >&5
3964echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965See \`config.log' for more details." >&2;}
3966   { (exit 1); exit 1; }; }
3967fi
3968
3969ac_ext=c
3970ac_cpp='$CPP $CPPFLAGS'
3971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976echo "$as_me:$LINENO: checking for egrep" >&5
3977echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3978if test "${ac_cv_prog_egrep+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3982    then ac_cv_prog_egrep='grep -E'
3983    else ac_cv_prog_egrep='egrep'
3984    fi
3985fi
3986echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3987echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3988 EGREP=$ac_cv_prog_egrep
3989
3990
3991echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3992echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3993if test "${ac_cv_header_stdc+set}" = set; then
3994  echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996  cat >conftest.$ac_ext <<_ACEOF
3997#line $LINENO "configure"
3998/* confdefs.h.  */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h.  */
4003#include <stdlib.h>
4004#include <stdarg.h>
4005#include <string.h>
4006#include <float.h>
4007
4008int
4009main ()
4010{
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext
4017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018  (eval $ac_compile) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); } &&
4022         { ac_try='test -s conftest.$ac_objext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  ac_cv_header_stdc=yes
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033ac_cv_header_stdc=no
4034fi
4035rm -f conftest.$ac_objext conftest.$ac_ext
4036
4037if test $ac_cv_header_stdc = yes; then
4038  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4039  cat >conftest.$ac_ext <<_ACEOF
4040#line $LINENO "configure"
4041/* confdefs.h.  */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h.  */
4046#include <string.h>
4047
4048_ACEOF
4049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050  $EGREP "memchr" >/dev/null 2>&1; then
4051  :
4052else
4053  ac_cv_header_stdc=no
4054fi
4055rm -f conftest*
4056
4057fi
4058
4059if test $ac_cv_header_stdc = yes; then
4060  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4061  cat >conftest.$ac_ext <<_ACEOF
4062#line $LINENO "configure"
4063/* confdefs.h.  */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h.  */
4068#include <stdlib.h>
4069
4070_ACEOF
4071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072  $EGREP "free" >/dev/null 2>&1; then
4073  :
4074else
4075  ac_cv_header_stdc=no
4076fi
4077rm -f conftest*
4078
4079fi
4080
4081if test $ac_cv_header_stdc = yes; then
4082  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4083  if test "$cross_compiling" = yes; then
4084  :
4085else
4086  cat >conftest.$ac_ext <<_ACEOF
4087#line $LINENO "configure"
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093#include <ctype.h>
4094#if ((' ' & 0x0FF) == 0x020)
4095# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4097#else
4098# define ISLOWER(c) \
4099                   (('a' <= (c) && (c) <= 'i') \
4100                     || ('j' <= (c) && (c) <= 'r') \
4101                     || ('s' <= (c) && (c) <= 'z'))
4102# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4103#endif
4104
4105#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4106int
4107main ()
4108{
4109  int i;
4110  for (i = 0; i < 256; i++)
4111    if (XOR (islower (i), ISLOWER (i))
4112        || toupper (i) != TOUPPER (i))
4113      exit(2);
4114  exit (0);
4115}
4116_ACEOF
4117rm -f conftest$ac_exeext
4118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119  (eval $ac_link) 2>&5
4120  ac_status=$?
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; }; then
4128  :
4129else
4130  echo "$as_me: program exited with status $ac_status" >&5
4131echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134( exit $ac_status )
4135ac_cv_header_stdc=no
4136fi
4137rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4138fi
4139fi
4140fi
4141echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142echo "${ECHO_T}$ac_cv_header_stdc" >&6
4143if test $ac_cv_header_stdc = yes; then
4144
4145cat >>confdefs.h <<\_ACEOF
4146#define STDC_HEADERS 1
4147_ACEOF
4148
4149fi
4150
4151echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4152echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4153if test "${ac_cv_c_const+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  cat >conftest.$ac_ext <<_ACEOF
4157#line $LINENO "configure"
4158/* confdefs.h.  */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h.  */
4163
4164int
4165main ()
4166{
4167/* FIXME: Include the comments suggested by Paul. */
4168#ifndef __cplusplus
4169  /* Ultrix mips cc rejects this.  */
4170  typedef int charset[2];
4171  const charset x;
4172  /* SunOS 4.1.1 cc rejects this.  */
4173  char const *const *ccp;
4174  char **p;
4175  /* NEC SVR4.0.2 mips cc rejects this.  */
4176  struct point {int x, y;};
4177  static struct point const zero = {0,0};
4178  /* AIX XL C 1.02.0.0 rejects this.
4179     It does not let you subtract one const X* pointer from another in
4180     an arm of an if-expression whose if-part is not a constant
4181     expression */
4182  const char *g = "string";
4183  ccp = &g + (g ? g-g : 0);
4184  /* HPUX 7.0 cc rejects these. */
4185  ++ccp;
4186  p = (char**) ccp;
4187  ccp = (char const *const *) p;
4188  { /* SCO 3.2v4 cc rejects this.  */
4189    char *t;
4190    char const *s = 0 ? (char *) 0 : (char const *) 0;
4191
4192    *t++ = 0;
4193  }
4194  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4195    int x[] = {25, 17};
4196    const int *foo = &x[0];
4197    ++foo;
4198  }
4199  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4200    typedef const int *iptr;
4201    iptr p = 0;
4202    ++p;
4203  }
4204  { /* AIX XL C 1.02.0.0 rejects this saying
4205       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4206    struct s { int j; const int *ap[3]; };
4207    struct s *b; b->j = 5;
4208  }
4209  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4210    const int foo = 10;
4211  }
4212#endif
4213
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220  (eval $ac_compile) 2>&5
4221  ac_status=$?
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); } &&
4224         { ac_try='test -s conftest.$ac_objext'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; }; then
4230  ac_cv_c_const=yes
4231else
4232  echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235ac_cv_c_const=no
4236fi
4237rm -f conftest.$ac_objext conftest.$ac_ext
4238fi
4239echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4240echo "${ECHO_T}$ac_cv_c_const" >&6
4241if test $ac_cv_c_const = no; then
4242
4243cat >>confdefs.h <<\_ACEOF
4244#define const
4245_ACEOF
4246
4247fi
4248
4249echo "$as_me:$LINENO: checking for inline" >&5
4250echo $ECHO_N "checking for inline... $ECHO_C" >&6
4251if test "${ac_cv_c_inline+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  ac_cv_c_inline=no
4255for ac_kw in inline __inline__ __inline; do
4256  cat >conftest.$ac_ext <<_ACEOF
4257#line $LINENO "configure"
4258/* confdefs.h.  */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h.  */
4263#ifndef __cplusplus
4264typedef int foo_t;
4265static $ac_kw foo_t static_foo () {return 0; }
4266$ac_kw foo_t foo () {return 0; }
4267#endif
4268
4269_ACEOF
4270rm -f conftest.$ac_objext
4271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272  (eval $ac_compile) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); } &&
4276         { ac_try='test -s conftest.$ac_objext'
4277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278  (eval $ac_try) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }; }; then
4282  ac_cv_c_inline=$ac_kw; break
4283else
4284  echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287fi
4288rm -f conftest.$ac_objext conftest.$ac_ext
4289done
4290
4291fi
4292echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4293echo "${ECHO_T}$ac_cv_c_inline" >&6
4294case $ac_cv_c_inline in
4295  inline | yes) ;;
4296  no)
4297cat >>confdefs.h <<\_ACEOF
4298#define inline
4299_ACEOF
4300 ;;
4301  *)  cat >>confdefs.h <<_ACEOF
4302#define inline $ac_cv_c_inline
4303_ACEOF
4304 ;;
4305esac
4306
4307# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4318                  inttypes.h stdint.h unistd.h
4319do
4320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321echo "$as_me:$LINENO: checking for $ac_header" >&5
4322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326  cat >conftest.$ac_ext <<_ACEOF
4327#line $LINENO "configure"
4328/* confdefs.h.  */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h.  */
4333$ac_includes_default
4334
4335#include <$ac_header>
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339  (eval $ac_compile) 2>&5
4340  ac_status=$?
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } &&
4343         { ac_try='test -s conftest.$ac_objext'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; }; then
4349  eval "$as_ac_Header=yes"
4350else
4351  echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354eval "$as_ac_Header=no"
4355fi
4356rm -f conftest.$ac_objext conftest.$ac_ext
4357fi
4358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4360if test `eval echo '${'$as_ac_Header'}'` = yes; then
4361  cat >>confdefs.h <<_ACEOF
4362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4363_ACEOF
4364
4365fi
4366
4367done
4368
4369
4370echo "$as_me:$LINENO: checking for off_t" >&5
4371echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4372if test "${ac_cv_type_off_t+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  cat >conftest.$ac_ext <<_ACEOF
4376#line $LINENO "configure"
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382$ac_includes_default
4383int
4384main ()
4385{
4386if ((off_t *) 0)
4387  return 0;
4388if (sizeof (off_t))
4389  return 0;
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396  (eval $ac_compile) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); } &&
4400         { ac_try='test -s conftest.$ac_objext'
4401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; }; then
4406  ac_cv_type_off_t=yes
4407else
4408  echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411ac_cv_type_off_t=no
4412fi
4413rm -f conftest.$ac_objext conftest.$ac_ext
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4416echo "${ECHO_T}$ac_cv_type_off_t" >&6
4417if test $ac_cv_type_off_t = yes; then
4418  :
4419else
4420
4421cat >>confdefs.h <<_ACEOF
4422#define off_t long
4423_ACEOF
4424
4425fi
4426
4427echo "$as_me:$LINENO: checking for size_t" >&5
4428echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4429if test "${ac_cv_type_size_t+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  cat >conftest.$ac_ext <<_ACEOF
4433#line $LINENO "configure"
4434/* confdefs.h.  */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h.  */
4439$ac_includes_default
4440int
4441main ()
4442{
4443if ((size_t *) 0)
4444  return 0;
4445if (sizeof (size_t))
4446  return 0;
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451rm -f conftest.$ac_objext
4452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453  (eval $ac_compile) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457         { ac_try='test -s conftest.$ac_objext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  ac_cv_type_size_t=yes
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468ac_cv_type_size_t=no
4469fi
4470rm -f conftest.$ac_objext conftest.$ac_ext
4471fi
4472echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4473echo "${ECHO_T}$ac_cv_type_size_t" >&6
4474if test $ac_cv_type_size_t = yes; then
4475  :
4476else
4477
4478cat >>confdefs.h <<_ACEOF
4479#define size_t unsigned
4480_ACEOF
4481
4482fi
4483
4484# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4485# for constant arguments.  Useless!
4486echo "$as_me:$LINENO: checking for working alloca.h" >&5
4487echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4488if test "${ac_cv_working_alloca_h+set}" = set; then
4489  echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491  cat >conftest.$ac_ext <<_ACEOF
4492#line $LINENO "configure"
4493/* confdefs.h.  */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h.  */
4498#include <alloca.h>
4499int
4500main ()
4501{
4502char *p = (char *) alloca (2 * sizeof (int));
4503  ;
4504  return 0;
4505}
4506_ACEOF
4507rm -f conftest.$ac_objext conftest$ac_exeext
4508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509  (eval $ac_link) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); } &&
4513         { ac_try='test -s conftest$ac_exeext'
4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515  (eval $ac_try) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; }; then
4519  ac_cv_working_alloca_h=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524ac_cv_working_alloca_h=no
4525fi
4526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4527fi
4528echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4529echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4530if test $ac_cv_working_alloca_h = yes; then
4531
4532cat >>confdefs.h <<\_ACEOF
4533#define HAVE_ALLOCA_H 1
4534_ACEOF
4535
4536fi
4537
4538echo "$as_me:$LINENO: checking for alloca" >&5
4539echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4540if test "${ac_cv_func_alloca_works+set}" = set; then
4541  echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543  cat >conftest.$ac_ext <<_ACEOF
4544#line $LINENO "configure"
4545/* confdefs.h.  */
4546_ACEOF
4547cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h.  */
4550#ifdef __GNUC__
4551# define alloca __builtin_alloca
4552#else
4553# ifdef _MSC_VER
4554#  include <malloc.h>
4555#  define alloca _alloca
4556# else
4557#  if HAVE_ALLOCA_H
4558#   include <alloca.h>
4559#  else
4560#   ifdef _AIX
4561 #pragma alloca
4562#   else
4563#    ifndef alloca /* predefined by HP cc +Olibcalls */
4564char *alloca ();
4565#    endif
4566#   endif
4567#  endif
4568# endif
4569#endif
4570
4571int
4572main ()
4573{
4574char *p = (char *) alloca (1);
4575  ;
4576  return 0;
4577}
4578_ACEOF
4579rm -f conftest.$ac_objext conftest$ac_exeext
4580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4581  (eval $ac_link) 2>&5
4582  ac_status=$?
4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584  (exit $ac_status); } &&
4585         { ac_try='test -s conftest$ac_exeext'
4586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587  (eval $ac_try) 2>&5
4588  ac_status=$?
4589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590  (exit $ac_status); }; }; then
4591  ac_cv_func_alloca_works=yes
4592else
4593  echo "$as_me: failed program was:" >&5
4594sed 's/^/| /' conftest.$ac_ext >&5
4595
4596ac_cv_func_alloca_works=no
4597fi
4598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599fi
4600echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4601echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4602
4603if test $ac_cv_func_alloca_works = yes; then
4604
4605cat >>confdefs.h <<\_ACEOF
4606#define HAVE_ALLOCA 1
4607_ACEOF
4608
4609else
4610  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4611# that cause trouble.  Some versions do not even contain alloca or
4612# contain a buggy version.  If you still want to use their alloca,
4613# use ar to extract alloca.o from them instead of compiling alloca.c.
4614
4615ALLOCA=alloca.$ac_objext
4616
4617cat >>confdefs.h <<\_ACEOF
4618#define C_ALLOCA 1
4619_ACEOF
4620
4621
4622echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4623echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4624if test "${ac_cv_os_cray+set}" = set; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627  cat >conftest.$ac_ext <<_ACEOF
4628#line $LINENO "configure"
4629/* confdefs.h.  */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h.  */
4634#if defined(CRAY) && ! defined(CRAY2)
4635webecray
4636#else
4637wenotbecray
4638#endif
4639
4640_ACEOF
4641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642  $EGREP "webecray" >/dev/null 2>&1; then
4643  ac_cv_os_cray=yes
4644else
4645  ac_cv_os_cray=no
4646fi
4647rm -f conftest*
4648
4649fi
4650echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4651echo "${ECHO_T}$ac_cv_os_cray" >&6
4652if test $ac_cv_os_cray = yes; then
4653  for ac_func in _getb67 GETB67 getb67; do
4654    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4655echo "$as_me:$LINENO: checking for $ac_func" >&5
4656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4657if eval "test \"\${$as_ac_var+set}\" = set"; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  cat >conftest.$ac_ext <<_ACEOF
4661#line $LINENO "configure"
4662/* confdefs.h.  */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h.  */
4667/* System header to define __stub macros and hopefully few prototypes,
4668    which can conflict with char $ac_func (); below.
4669    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670    <limits.h> exists even on freestanding compilers.  */
4671#ifdef __STDC__
4672# include <limits.h>
4673#else
4674# include <assert.h>
4675#endif
4676/* Override any gcc2 internal prototype to avoid an error.  */
4677#ifdef __cplusplus
4678extern "C"
4679{
4680#endif
4681/* We use char because int might match the return type of a gcc2
4682   builtin and then its argument prototype would still apply.  */
4683char $ac_func ();
4684/* The GNU C library defines this for functions which it implements
4685    to always fail with ENOSYS.  Some functions are actually named
4686    something starting with __ and the normal name is an alias.  */
4687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4688choke me
4689#else
4690char (*f) () = $ac_func;
4691#endif
4692#ifdef __cplusplus
4693}
4694#endif
4695
4696int
4697main ()
4698{
4699return f != $ac_func;
4700  ;
4701  return 0;
4702}
4703_ACEOF
4704rm -f conftest.$ac_objext conftest$ac_exeext
4705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706  (eval $ac_link) 2>&5
4707  ac_status=$?
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); } &&
4710         { ac_try='test -s conftest$ac_exeext'
4711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712  (eval $ac_try) 2>&5
4713  ac_status=$?
4714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715  (exit $ac_status); }; }; then
4716  eval "$as_ac_var=yes"
4717else
4718  echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721eval "$as_ac_var=no"
4722fi
4723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4724fi
4725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4727if test `eval echo '${'$as_ac_var'}'` = yes; then
4728
4729cat >>confdefs.h <<_ACEOF
4730#define CRAY_STACKSEG_END $ac_func
4731_ACEOF
4732
4733    break
4734fi
4735
4736  done
4737fi
4738
4739echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4740echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4741if test "${ac_cv_c_stack_direction+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  if test "$cross_compiling" = yes; then
4745  ac_cv_c_stack_direction=0
4746else
4747  cat >conftest.$ac_ext <<_ACEOF
4748#line $LINENO "configure"
4749/* confdefs.h.  */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
4753/* end confdefs.h.  */
4754int
4755find_stack_direction ()
4756{
4757  static char *addr = 0;
4758  auto char dummy;
4759  if (addr == 0)
4760    {
4761      addr = &dummy;
4762      return find_stack_direction ();
4763    }
4764  else
4765    return (&dummy > addr) ? 1 : -1;
4766}
4767
4768int
4769main ()
4770{
4771  exit (find_stack_direction () < 0);
4772}
4773_ACEOF
4774rm -f conftest$ac_exeext
4775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776  (eval $ac_link) 2>&5
4777  ac_status=$?
4778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781  (eval $ac_try) 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }; }; then
4785  ac_cv_c_stack_direction=1
4786else
4787  echo "$as_me: program exited with status $ac_status" >&5
4788echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791( exit $ac_status )
4792ac_cv_c_stack_direction=-1
4793fi
4794rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4795fi
4796fi
4797echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4798echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4799
4800cat >>confdefs.h <<_ACEOF
4801#define STACK_DIRECTION $ac_cv_c_stack_direction
4802_ACEOF
4803
4804
4805fi
4806
4807
4808
4809for ac_header in stdlib.h unistd.h
4810do
4811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813  echo "$as_me:$LINENO: checking for $ac_header" >&5
4814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817fi
4818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820else
4821  # Is the header compilable?
4822echo "$as_me:$LINENO: checking $ac_header usability" >&5
4823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4824cat >conftest.$ac_ext <<_ACEOF
4825#line $LINENO "configure"
4826/* confdefs.h.  */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h.  */
4831$ac_includes_default
4832#include <$ac_header>
4833_ACEOF
4834rm -f conftest.$ac_objext
4835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836  (eval $ac_compile) 2>&5
4837  ac_status=$?
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } &&
4840         { ac_try='test -s conftest.$ac_objext'
4841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842  (eval $ac_try) 2>&5
4843  ac_status=$?
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); }; }; then
4846  ac_header_compiler=yes
4847else
4848  echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851ac_header_compiler=no
4852fi
4853rm -f conftest.$ac_objext conftest.$ac_ext
4854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4855echo "${ECHO_T}$ac_header_compiler" >&6
4856
4857# Is the header present?
4858echo "$as_me:$LINENO: checking $ac_header presence" >&5
4859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4860cat >conftest.$ac_ext <<_ACEOF
4861#line $LINENO "configure"
4862/* confdefs.h.  */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h.  */
4867#include <$ac_header>
4868_ACEOF
4869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871  ac_status=$?
4872  grep -v '^ *+' conftest.er1 >conftest.err
4873  rm -f conftest.er1
4874  cat conftest.err >&5
4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876  (exit $ac_status); } >/dev/null; then
4877  if test -s conftest.err; then
4878    ac_cpp_err=$ac_c_preproc_warn_flag
4879  else
4880    ac_cpp_err=
4881  fi
4882else
4883  ac_cpp_err=yes
4884fi
4885if test -z "$ac_cpp_err"; then
4886  ac_header_preproc=yes
4887else
4888  echo "$as_me: failed program was:" >&5
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
4891  ac_header_preproc=no
4892fi
4893rm -f conftest.err conftest.$ac_ext
4894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4895echo "${ECHO_T}$ac_header_preproc" >&6
4896
4897# So?  What about this header?
4898case $ac_header_compiler:$ac_header_preproc in
4899  yes:no )
4900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904    (
4905      cat <<\_ASBOX
4906## ------------------------------------ ##
4907## Report this to bug-autoconf@gnu.org. ##
4908## ------------------------------------ ##
4909_ASBOX
4910    ) |
4911      sed "s/^/$as_me: WARNING:     /" >&2
4912    ;;
4913  no:yes )
4914    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4918    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920    (
4921      cat <<\_ASBOX
4922## ------------------------------------ ##
4923## Report this to bug-autoconf@gnu.org. ##
4924## ------------------------------------ ##
4925_ASBOX
4926    ) |
4927      sed "s/^/$as_me: WARNING:     /" >&2
4928    ;;
4929esac
4930echo "$as_me:$LINENO: checking for $ac_header" >&5
4931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  eval "$as_ac_Header=$ac_header_preproc"
4936fi
4937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939
4940fi
4941if test `eval echo '${'$as_ac_Header'}'` = yes; then
4942  cat >>confdefs.h <<_ACEOF
4943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4944_ACEOF
4945
4946fi
4947
4948done
4949
4950
4951for ac_func in getpagesize
4952do
4953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4954echo "$as_me:$LINENO: checking for $ac_func" >&5
4955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4956if eval "test \"\${$as_ac_var+set}\" = set"; then
4957  echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959  cat >conftest.$ac_ext <<_ACEOF
4960#line $LINENO "configure"
4961/* confdefs.h.  */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h.  */
4966/* System header to define __stub macros and hopefully few prototypes,
4967    which can conflict with char $ac_func (); below.
4968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969    <limits.h> exists even on freestanding compilers.  */
4970#ifdef __STDC__
4971# include <limits.h>
4972#else
4973# include <assert.h>
4974#endif
4975/* Override any gcc2 internal prototype to avoid an error.  */
4976#ifdef __cplusplus
4977extern "C"
4978{
4979#endif
4980/* We use char because int might match the return type of a gcc2
4981   builtin and then its argument prototype would still apply.  */
4982char $ac_func ();
4983/* The GNU C library defines this for functions which it implements
4984    to always fail with ENOSYS.  Some functions are actually named
4985    something starting with __ and the normal name is an alias.  */
4986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4987choke me
4988#else
4989char (*f) () = $ac_func;
4990#endif
4991#ifdef __cplusplus
4992}
4993#endif
4994
4995int
4996main ()
4997{
4998return f != $ac_func;
4999  ;
5000  return 0;
5001}
5002_ACEOF
5003rm -f conftest.$ac_objext conftest$ac_exeext
5004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5005  (eval $ac_link) 2>&5
5006  ac_status=$?
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); } &&
5009         { ac_try='test -s conftest$ac_exeext'
5010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011  (eval $ac_try) 2>&5
5012  ac_status=$?
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); }; }; then
5015  eval "$as_ac_var=yes"
5016else
5017  echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020eval "$as_ac_var=no"
5021fi
5022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023fi
5024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5026if test `eval echo '${'$as_ac_var'}'` = yes; then
5027  cat >>confdefs.h <<_ACEOF
5028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5029_ACEOF
5030
5031fi
5032done
5033
5034echo "$as_me:$LINENO: checking for working mmap" >&5
5035echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5036if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5037  echo $ECHO_N "(cached) $ECHO_C" >&6
5038else
5039  if test "$cross_compiling" = yes; then
5040  ac_cv_func_mmap_fixed_mapped=no
5041else
5042  cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
5044/* confdefs.h.  */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h.  */
5049$ac_includes_default
5050/* malloc might have been renamed as rpl_malloc. */
5051#undef malloc
5052
5053/* Thanks to Mike Haertel and Jim Avera for this test.
5054   Here is a matrix of mmap possibilities:
5055	mmap private not fixed
5056	mmap private fixed at somewhere currently unmapped
5057	mmap private fixed at somewhere already mapped
5058	mmap shared not fixed
5059	mmap shared fixed at somewhere currently unmapped
5060	mmap shared fixed at somewhere already mapped
5061   For private mappings, we should verify that changes cannot be read()
5062   back from the file, nor mmap's back from the file at a different
5063   address.  (There have been systems where private was not correctly
5064   implemented like the infamous i386 svr4.0, and systems where the
5065   VM page cache was not coherent with the file system buffer cache
5066   like early versions of FreeBSD and possibly contemporary NetBSD.)
5067   For shared mappings, we should conversely verify that changes get
5068   propagated back to all the places they're supposed to be.
5069
5070   Grep wants private fixed already mapped.
5071   The main things grep needs to know about mmap are:
5072   * does it exist and is it safe to write into the mmap'd area
5073   * how to use it (BSD variants)  */
5074
5075#include <fcntl.h>
5076#include <sys/mman.h>
5077
5078#if !STDC_HEADERS && !HAVE_STDLIB_H
5079char *malloc ();
5080#endif
5081
5082/* This mess was copied from the GNU getpagesize.h.  */
5083#if !HAVE_GETPAGESIZE
5084/* Assume that all systems that can run configure have sys/param.h.  */
5085# if !HAVE_SYS_PARAM_H
5086#  define HAVE_SYS_PARAM_H 1
5087# endif
5088
5089# ifdef _SC_PAGESIZE
5090#  define getpagesize() sysconf(_SC_PAGESIZE)
5091# else /* no _SC_PAGESIZE */
5092#  if HAVE_SYS_PARAM_H
5093#   include <sys/param.h>
5094#   ifdef EXEC_PAGESIZE
5095#    define getpagesize() EXEC_PAGESIZE
5096#   else /* no EXEC_PAGESIZE */
5097#    ifdef NBPG
5098#     define getpagesize() NBPG * CLSIZE
5099#     ifndef CLSIZE
5100#      define CLSIZE 1
5101#     endif /* no CLSIZE */
5102#    else /* no NBPG */
5103#     ifdef NBPC
5104#      define getpagesize() NBPC
5105#     else /* no NBPC */
5106#      ifdef PAGESIZE
5107#       define getpagesize() PAGESIZE
5108#      endif /* PAGESIZE */
5109#     endif /* no NBPC */
5110#    endif /* no NBPG */
5111#   endif /* no EXEC_PAGESIZE */
5112#  else /* no HAVE_SYS_PARAM_H */
5113#   define getpagesize() 8192	/* punt totally */
5114#  endif /* no HAVE_SYS_PARAM_H */
5115# endif /* no _SC_PAGESIZE */
5116
5117#endif /* no HAVE_GETPAGESIZE */
5118
5119int
5120main ()
5121{
5122  char *data, *data2, *data3;
5123  int i, pagesize;
5124  int fd;
5125
5126  pagesize = getpagesize ();
5127
5128  /* First, make a file with some known garbage in it. */
5129  data = (char *) malloc (pagesize);
5130  if (!data)
5131    exit (1);
5132  for (i = 0; i < pagesize; ++i)
5133    *(data + i) = rand ();
5134  umask (0);
5135  fd = creat ("conftest.mmap", 0600);
5136  if (fd < 0)
5137    exit (1);
5138  if (write (fd, data, pagesize) != pagesize)
5139    exit (1);
5140  close (fd);
5141
5142  /* Next, try to mmap the file at a fixed address which already has
5143     something else allocated at it.  If we can, also make sure that
5144     we see the same garbage.  */
5145  fd = open ("conftest.mmap", O_RDWR);
5146  if (fd < 0)
5147    exit (1);
5148  data2 = (char *) malloc (2 * pagesize);
5149  if (!data2)
5150    exit (1);
5151  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5152  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5153                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5154    exit (1);
5155  for (i = 0; i < pagesize; ++i)
5156    if (*(data + i) != *(data2 + i))
5157      exit (1);
5158
5159  /* Finally, make sure that changes to the mapped area do not
5160     percolate back to the file as seen by read().  (This is a bug on
5161     some variants of i386 svr4.0.)  */
5162  for (i = 0; i < pagesize; ++i)
5163    *(data2 + i) = *(data2 + i) + 1;
5164  data3 = (char *) malloc (pagesize);
5165  if (!data3)
5166    exit (1);
5167  if (read (fd, data3, pagesize) != pagesize)
5168    exit (1);
5169  for (i = 0; i < pagesize; ++i)
5170    if (*(data + i) != *(data3 + i))
5171      exit (1);
5172  close (fd);
5173  exit (0);
5174}
5175_ACEOF
5176rm -f conftest$ac_exeext
5177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5178  (eval $ac_link) 2>&5
5179  ac_status=$?
5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183  (eval $ac_try) 2>&5
5184  ac_status=$?
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); }; }; then
5187  ac_cv_func_mmap_fixed_mapped=yes
5188else
5189  echo "$as_me: program exited with status $ac_status" >&5
5190echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193( exit $ac_status )
5194ac_cv_func_mmap_fixed_mapped=no
5195fi
5196rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5197fi
5198fi
5199echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5200echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5201if test $ac_cv_func_mmap_fixed_mapped = yes; then
5202
5203cat >>confdefs.h <<\_ACEOF
5204#define HAVE_MMAP 1
5205_ACEOF
5206
5207fi
5208rm -f conftest.mmap
5209
5210
5211    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5212echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5213if test "${ac_cv_gnu_library_2_1+set}" = set; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  cat >conftest.$ac_ext <<_ACEOF
5217#line $LINENO "configure"
5218/* confdefs.h.  */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h.  */
5223
5224#include <features.h>
5225#ifdef __GNU_LIBRARY__
5226 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5227  Lucky GNU user
5228 #endif
5229#endif
5230
5231_ACEOF
5232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5234  ac_cv_gnu_library_2_1=yes
5235else
5236  ac_cv_gnu_library_2_1=no
5237fi
5238rm -f conftest*
5239
5240
5241
5242fi
5243echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5244echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5245
5246    GLIBC21="$ac_cv_gnu_library_2_1"
5247
5248
5249
5250
5251  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5252echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5253if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5254  echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256
5257      if test "$cross_compiling" = yes; then
5258
5259          # Guess based on the CPU.
5260          case "$host_cpu" in
5261            alpha* | i3456786 | m68k | s390*)
5262              gt_cv_int_divbyzero_sigfpe="guessing yes";;
5263            *)
5264              gt_cv_int_divbyzero_sigfpe="guessing no";;
5265          esac
5266
5267else
5268  cat >conftest.$ac_ext <<_ACEOF
5269#line $LINENO "configure"
5270/* confdefs.h.  */
5271_ACEOF
5272cat confdefs.h >>conftest.$ac_ext
5273cat >>conftest.$ac_ext <<_ACEOF
5274/* end confdefs.h.  */
5275
5276#include <stdlib.h>
5277#include <signal.h>
5278
5279static void
5280#ifdef __cplusplus
5281sigfpe_handler (int sig)
5282#else
5283sigfpe_handler (sig) int sig;
5284#endif
5285{
5286  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5287  exit (sig != SIGFPE);
5288}
5289
5290int x = 1;
5291int y = 0;
5292int z;
5293int nan;
5294
5295int main ()
5296{
5297  signal (SIGFPE, sigfpe_handler);
5298/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5299#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5300  signal (SIGTRAP, sigfpe_handler);
5301#endif
5302/* Linux/SPARC yields signal SIGILL.  */
5303#if defined (__sparc__) && defined (__linux__)
5304  signal (SIGILL, sigfpe_handler);
5305#endif
5306
5307  z = x / y;
5308  nan = y / y;
5309  exit (1);
5310}
5311
5312_ACEOF
5313rm -f conftest$ac_exeext
5314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315  (eval $ac_link) 2>&5
5316  ac_status=$?
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320  (eval $ac_try) 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }; }; then
5324  gt_cv_int_divbyzero_sigfpe=yes
5325else
5326  echo "$as_me: program exited with status $ac_status" >&5
5327echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330( exit $ac_status )
5331gt_cv_int_divbyzero_sigfpe=no
5332fi
5333rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5334fi
5335
5336fi
5337echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5338echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5339  case "$gt_cv_int_divbyzero_sigfpe" in
5340    *yes) value=1;;
5341    *) value=0;;
5342  esac
5343
5344cat >>confdefs.h <<_ACEOF
5345#define INTDIV0_RAISES_SIGFPE $value
5346_ACEOF
5347
5348
5349
5350  echo "$as_me:$LINENO: checking for inttypes.h" >&5
5351echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5352if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5353  echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355  cat >conftest.$ac_ext <<_ACEOF
5356#line $LINENO "configure"
5357/* confdefs.h.  */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h.  */
5362#include <sys/types.h>
5363#include <inttypes.h>
5364int
5365main ()
5366{
5367uintmax_t i = (uintmax_t) -1;
5368  ;
5369  return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext
5373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374  (eval $ac_compile) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); } &&
5378         { ac_try='test -s conftest.$ac_objext'
5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380  (eval $ac_try) 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  jm_ac_cv_header_inttypes_h=yes
5385else
5386  echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389jm_ac_cv_header_inttypes_h=no
5390fi
5391rm -f conftest.$ac_objext conftest.$ac_ext
5392fi
5393echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5394echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5395  if test $jm_ac_cv_header_inttypes_h = yes; then
5396
5397cat >>confdefs.h <<_ACEOF
5398#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5399_ACEOF
5400
5401  fi
5402
5403
5404  echo "$as_me:$LINENO: checking for stdint.h" >&5
5405echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5406if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  cat >conftest.$ac_ext <<_ACEOF
5410#line $LINENO "configure"
5411/* confdefs.h.  */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h.  */
5416#include <sys/types.h>
5417#include <stdint.h>
5418int
5419main ()
5420{
5421uintmax_t i = (uintmax_t) -1;
5422  ;
5423  return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext
5427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428  (eval $ac_compile) 2>&5
5429  ac_status=$?
5430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); } &&
5432         { ac_try='test -s conftest.$ac_objext'
5433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434  (eval $ac_try) 2>&5
5435  ac_status=$?
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); }; }; then
5438  jm_ac_cv_header_stdint_h=yes
5439else
5440  echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
5443jm_ac_cv_header_stdint_h=no
5444fi
5445rm -f conftest.$ac_objext conftest.$ac_ext
5446fi
5447echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5448echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5449  if test $jm_ac_cv_header_stdint_h = yes; then
5450
5451cat >>confdefs.h <<_ACEOF
5452#define HAVE_STDINT_H_WITH_UINTMAX 1
5453_ACEOF
5454
5455  fi
5456
5457
5458  echo "$as_me:$LINENO: checking for unsigned long long" >&5
5459echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5460if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5461  echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463  cat >conftest.$ac_ext <<_ACEOF
5464#line $LINENO "configure"
5465/* confdefs.h.  */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h.  */
5470unsigned long long ull = 1; int i = 63;
5471int
5472main ()
5473{
5474unsigned long long ullmax = (unsigned long long) -1;
5475     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480rm -f conftest.$ac_objext conftest$ac_exeext
5481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5482  (eval $ac_link) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); } &&
5486         { ac_try='test -s conftest$ac_exeext'
5487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488  (eval $ac_try) 2>&5
5489  ac_status=$?
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); }; }; then
5492  ac_cv_type_unsigned_long_long=yes
5493else
5494  echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497ac_cv_type_unsigned_long_long=no
5498fi
5499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500fi
5501echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5502echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5503  if test $ac_cv_type_unsigned_long_long = yes; then
5504
5505cat >>confdefs.h <<\_ACEOF
5506#define HAVE_UNSIGNED_LONG_LONG 1
5507_ACEOF
5508
5509  fi
5510
5511
5512
5513
5514  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5515
5516    test $ac_cv_type_unsigned_long_long = yes \
5517      && ac_type='unsigned long long' \
5518      || ac_type='unsigned long'
5519
5520cat >>confdefs.h <<_ACEOF
5521#define uintmax_t $ac_type
5522_ACEOF
5523
5524  fi
5525
5526
5527  echo "$as_me:$LINENO: checking for inttypes.h" >&5
5528echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5529if test "${gt_cv_header_inttypes_h+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532
5533    cat >conftest.$ac_ext <<_ACEOF
5534#line $LINENO "configure"
5535/* confdefs.h.  */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h.  */
5540#include <sys/types.h>
5541#include <inttypes.h>
5542int
5543main ()
5544{
5545
5546  ;
5547  return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552  (eval $ac_compile) 2>&5
5553  ac_status=$?
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } &&
5556         { ac_try='test -s conftest.$ac_objext'
5557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558  (eval $ac_try) 2>&5
5559  ac_status=$?
5560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561  (exit $ac_status); }; }; then
5562  gt_cv_header_inttypes_h=yes
5563else
5564  echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567gt_cv_header_inttypes_h=no
5568fi
5569rm -f conftest.$ac_objext conftest.$ac_ext
5570
5571fi
5572echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5573echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5574  if test $gt_cv_header_inttypes_h = yes; then
5575
5576cat >>confdefs.h <<_ACEOF
5577#define HAVE_INTTYPES_H 1
5578_ACEOF
5579
5580  fi
5581
5582
5583
5584  if test $gt_cv_header_inttypes_h = yes; then
5585    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5586echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5587if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590
5591        cat >conftest.$ac_ext <<_ACEOF
5592#line $LINENO "configure"
5593/* confdefs.h.  */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h.  */
5598#include <inttypes.h>
5599#ifdef PRId32
5600char *p = PRId32;
5601#endif
5602
5603int
5604main ()
5605{
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611rm -f conftest.$ac_objext
5612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613  (eval $ac_compile) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); } &&
5617         { ac_try='test -s conftest.$ac_objext'
5618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619  (eval $ac_try) 2>&5
5620  ac_status=$?
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); }; }; then
5623  gt_cv_inttypes_pri_broken=no
5624else
5625  echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628gt_cv_inttypes_pri_broken=yes
5629fi
5630rm -f conftest.$ac_objext conftest.$ac_ext
5631
5632fi
5633echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5634echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5635  fi
5636  if test "$gt_cv_inttypes_pri_broken" = yes; then
5637
5638cat >>confdefs.h <<_ACEOF
5639#define PRI_MACROS_BROKEN 1
5640_ACEOF
5641
5642  fi
5643
5644
5645      if test "X$prefix" = "XNONE"; then
5646    acl_final_prefix="$ac_default_prefix"
5647  else
5648    acl_final_prefix="$prefix"
5649  fi
5650  if test "X$exec_prefix" = "XNONE"; then
5651    acl_final_exec_prefix='${prefix}'
5652  else
5653    acl_final_exec_prefix="$exec_prefix"
5654  fi
5655  acl_save_prefix="$prefix"
5656  prefix="$acl_final_prefix"
5657  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5658  prefix="$acl_save_prefix"
5659
5660
5661# Check whether --with-gnu-ld or --without-gnu-ld was given.
5662if test "${with_gnu_ld+set}" = set; then
5663  withval="$with_gnu_ld"
5664  test "$withval" = no || with_gnu_ld=yes
5665else
5666  with_gnu_ld=no
5667fi;
5668ac_prog=ld
5669if test "$GCC" = yes; then
5670  # Check if gcc -print-prog-name=ld gives a path.
5671  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5672echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5673  case $host in
5674  *-*-mingw*)
5675    # gcc leaves a trailing carriage return which upsets mingw
5676    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5677  *)
5678    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5679  esac
5680  case $ac_prog in
5681    # Accept absolute paths.
5682    [\\/]* | [A-Za-z]:[\\/]*)
5683      re_direlt='/[^/][^/]*/\.\./'
5684      # Canonicalize the path of ld
5685      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5686      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5687	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5688      done
5689      test -z "$LD" && LD="$ac_prog"
5690      ;;
5691  "")
5692    # If it fails, then pretend we aren't using GCC.
5693    ac_prog=ld
5694    ;;
5695  *)
5696    # If it is relative, then search for the first ld in PATH.
5697    with_gnu_ld=unknown
5698    ;;
5699  esac
5700elif test "$with_gnu_ld" = yes; then
5701  echo "$as_me:$LINENO: checking for GNU ld" >&5
5702echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5703else
5704  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5705echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5706fi
5707if test "${acl_cv_path_LD+set}" = set; then
5708  echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710  if test -z "$LD"; then
5711  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5712  for ac_dir in $PATH; do
5713    test -z "$ac_dir" && ac_dir=.
5714    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5715      acl_cv_path_LD="$ac_dir/$ac_prog"
5716      # Check to see if the program is GNU ld.  I'd rather use --version,
5717      # but apparently some GNU ld's only accept -v.
5718      # Break only if it was the GNU/non-GNU ld that we prefer.
5719      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5720	test "$with_gnu_ld" != no && break
5721      else
5722	test "$with_gnu_ld" != yes && break
5723      fi
5724    fi
5725  done
5726  IFS="$ac_save_ifs"
5727else
5728  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5729fi
5730fi
5731
5732LD="$acl_cv_path_LD"
5733if test -n "$LD"; then
5734  echo "$as_me:$LINENO: result: $LD" >&5
5735echo "${ECHO_T}$LD" >&6
5736else
5737  echo "$as_me:$LINENO: result: no" >&5
5738echo "${ECHO_T}no" >&6
5739fi
5740test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5741echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5742   { (exit 1); exit 1; }; }
5743echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5744echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5745if test "${acl_cv_prog_gnu_ld+set}" = set; then
5746  echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5749if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5750  acl_cv_prog_gnu_ld=yes
5751else
5752  acl_cv_prog_gnu_ld=no
5753fi
5754fi
5755echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5756echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5757with_gnu_ld=$acl_cv_prog_gnu_ld
5758
5759
5760
5761                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5762echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5763if test "${acl_cv_rpath+set}" = set; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766
5767    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5768    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5769    . ./conftest.sh
5770    rm -f ./conftest.sh
5771    acl_cv_rpath=done
5772
5773fi
5774echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5775echo "${ECHO_T}$acl_cv_rpath" >&6
5776  wl="$acl_cv_wl"
5777  libext="$acl_cv_libext"
5778  shlibext="$acl_cv_shlibext"
5779  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5780  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5781  hardcode_direct="$acl_cv_hardcode_direct"
5782  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5783  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5784  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
5785    # Check whether --enable-rpath or --disable-rpath was given.
5786if test "${enable_rpath+set}" = set; then
5787  enableval="$enable_rpath"
5788  :
5789else
5790  enable_rpath=yes
5791fi;
5792
5793
5794
5795
5796
5797
5798
5799    use_additional=yes
5800
5801  acl_save_prefix="$prefix"
5802  prefix="$acl_final_prefix"
5803  acl_save_exec_prefix="$exec_prefix"
5804  exec_prefix="$acl_final_exec_prefix"
5805
5806    eval additional_includedir=\"$includedir\"
5807    eval additional_libdir=\"$libdir\"
5808
5809  exec_prefix="$acl_save_exec_prefix"
5810  prefix="$acl_save_prefix"
5811
5812
5813# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5814if test "${with_libiconv_prefix+set}" = set; then
5815  withval="$with_libiconv_prefix"
5816
5817    if test "X$withval" = "Xno"; then
5818      use_additional=no
5819    else
5820      if test "X$withval" = "X"; then
5821
5822  acl_save_prefix="$prefix"
5823  prefix="$acl_final_prefix"
5824  acl_save_exec_prefix="$exec_prefix"
5825  exec_prefix="$acl_final_exec_prefix"
5826
5827          eval additional_includedir=\"$includedir\"
5828          eval additional_libdir=\"$libdir\"
5829
5830  exec_prefix="$acl_save_exec_prefix"
5831  prefix="$acl_save_prefix"
5832
5833      else
5834        additional_includedir="$withval/include"
5835        additional_libdir="$withval/lib"
5836      fi
5837    fi
5838
5839fi;
5840      LIBICONV=
5841  LTLIBICONV=
5842  INCICONV=
5843  rpathdirs=
5844  ltrpathdirs=
5845  names_already_handled=
5846  names_next_round='iconv '
5847  while test -n "$names_next_round"; do
5848    names_this_round="$names_next_round"
5849    names_next_round=
5850    for name in $names_this_round; do
5851      already_handled=
5852      for n in $names_already_handled; do
5853        if test "$n" = "$name"; then
5854          already_handled=yes
5855          break
5856        fi
5857      done
5858      if test -z "$already_handled"; then
5859        names_already_handled="$names_already_handled $name"
5860                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5861        eval value=\"\$HAVE_LIB$uppername\"
5862        if test -n "$value"; then
5863          if test "$value" = yes; then
5864            eval value=\"\$LIB$uppername\"
5865            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5866            eval value=\"\$LTLIB$uppername\"
5867            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5868          else
5869                                    :
5870          fi
5871        else
5872                              found_dir=
5873          found_la=
5874          found_so=
5875          found_a=
5876          if test $use_additional = yes; then
5877            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5878              found_dir="$additional_libdir"
5879              found_so="$additional_libdir/lib$name.$shlibext"
5880              if test -f "$additional_libdir/lib$name.la"; then
5881                found_la="$additional_libdir/lib$name.la"
5882              fi
5883            else
5884              if test -f "$additional_libdir/lib$name.$libext"; then
5885                found_dir="$additional_libdir"
5886                found_a="$additional_libdir/lib$name.$libext"
5887                if test -f "$additional_libdir/lib$name.la"; then
5888                  found_la="$additional_libdir/lib$name.la"
5889                fi
5890              fi
5891            fi
5892          fi
5893          if test "X$found_dir" = "X"; then
5894            for x in $LDFLAGS $LTLIBICONV; do
5895
5896  acl_save_prefix="$prefix"
5897  prefix="$acl_final_prefix"
5898  acl_save_exec_prefix="$exec_prefix"
5899  exec_prefix="$acl_final_exec_prefix"
5900  eval x=\"$x\"
5901  exec_prefix="$acl_save_exec_prefix"
5902  prefix="$acl_save_prefix"
5903
5904              case "$x" in
5905                -L*)
5906                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5907                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5908                    found_dir="$dir"
5909                    found_so="$dir/lib$name.$shlibext"
5910                    if test -f "$dir/lib$name.la"; then
5911                      found_la="$dir/lib$name.la"
5912                    fi
5913                  else
5914                    if test -f "$dir/lib$name.$libext"; then
5915                      found_dir="$dir"
5916                      found_a="$dir/lib$name.$libext"
5917                      if test -f "$dir/lib$name.la"; then
5918                        found_la="$dir/lib$name.la"
5919                      fi
5920                    fi
5921                  fi
5922                  ;;
5923              esac
5924              if test "X$found_dir" != "X"; then
5925                break
5926              fi
5927            done
5928          fi
5929          if test "X$found_dir" != "X"; then
5930                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5931            if test "X$found_so" != "X"; then
5932                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5933                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5934              else
5935                                                                                haveit=
5936                for x in $ltrpathdirs; do
5937                  if test "X$x" = "X$found_dir"; then
5938                    haveit=yes
5939                    break
5940                  fi
5941                done
5942                if test -z "$haveit"; then
5943                  ltrpathdirs="$ltrpathdirs $found_dir"
5944                fi
5945                                if test "$hardcode_direct" = yes; then
5946                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5947                else
5948                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5949                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5950                                                            haveit=
5951                    for x in $rpathdirs; do
5952                      if test "X$x" = "X$found_dir"; then
5953                        haveit=yes
5954                        break
5955                      fi
5956                    done
5957                    if test -z "$haveit"; then
5958                      rpathdirs="$rpathdirs $found_dir"
5959                    fi
5960                  else
5961                                                                                haveit=
5962                    for x in $LDFLAGS $LIBICONV; do
5963
5964  acl_save_prefix="$prefix"
5965  prefix="$acl_final_prefix"
5966  acl_save_exec_prefix="$exec_prefix"
5967  exec_prefix="$acl_final_exec_prefix"
5968  eval x=\"$x\"
5969  exec_prefix="$acl_save_exec_prefix"
5970  prefix="$acl_save_prefix"
5971
5972                      if test "X$x" = "X-L$found_dir"; then
5973                        haveit=yes
5974                        break
5975                      fi
5976                    done
5977                    if test -z "$haveit"; then
5978                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5979                    fi
5980                    if test "$hardcode_minus_L" != no; then
5981                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5982                    else
5983                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5984                    fi
5985                  fi
5986                fi
5987              fi
5988            else
5989              if test "X$found_a" != "X"; then
5990                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5991              else
5992                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5993              fi
5994            fi
5995                        additional_includedir=
5996            case "$found_dir" in
5997              */lib | */lib/)
5998                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5999                additional_includedir="$basedir/include"
6000                ;;
6001            esac
6002            if test "X$additional_includedir" != "X"; then
6003                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6004                haveit=
6005                if test "X$additional_includedir" = "X/usr/local/include"; then
6006                  if test -n "$GCC"; then
6007                    case $host_os in
6008                      linux*) haveit=yes;;
6009                    esac
6010                  fi
6011                fi
6012                if test -z "$haveit"; then
6013                  for x in $CPPFLAGS $INCICONV; do
6014
6015  acl_save_prefix="$prefix"
6016  prefix="$acl_final_prefix"
6017  acl_save_exec_prefix="$exec_prefix"
6018  exec_prefix="$acl_final_exec_prefix"
6019  eval x=\"$x\"
6020  exec_prefix="$acl_save_exec_prefix"
6021  prefix="$acl_save_prefix"
6022
6023                    if test "X$x" = "X-I$additional_includedir"; then
6024                      haveit=yes
6025                      break
6026                    fi
6027                  done
6028                  if test -z "$haveit"; then
6029                    if test -d "$additional_includedir"; then
6030                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6031                    fi
6032                  fi
6033                fi
6034              fi
6035            fi
6036                        if test -n "$found_la"; then
6037                                                        save_libdir="$libdir"
6038              case "$found_la" in
6039                */* | *\\*) . "$found_la" ;;
6040                *) . "./$found_la" ;;
6041              esac
6042              libdir="$save_libdir"
6043                            for dep in $dependency_libs; do
6044                case "$dep" in
6045                  -L*)
6046                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6047                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
6048                      haveit=
6049                      if test "X$additional_libdir" = "X/usr/local/lib"; then
6050                        if test -n "$GCC"; then
6051                          case $host_os in
6052                            linux*) haveit=yes;;
6053                          esac
6054                        fi
6055                      fi
6056                      if test -z "$haveit"; then
6057                        haveit=
6058                        for x in $LDFLAGS $LIBICONV; do
6059
6060  acl_save_prefix="$prefix"
6061  prefix="$acl_final_prefix"
6062  acl_save_exec_prefix="$exec_prefix"
6063  exec_prefix="$acl_final_exec_prefix"
6064  eval x=\"$x\"
6065  exec_prefix="$acl_save_exec_prefix"
6066  prefix="$acl_save_prefix"
6067
6068                          if test "X$x" = "X-L$additional_libdir"; then
6069                            haveit=yes
6070                            break
6071                          fi
6072                        done
6073                        if test -z "$haveit"; then
6074                          if test -d "$additional_libdir"; then
6075                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6076                          fi
6077                        fi
6078                        haveit=
6079                        for x in $LDFLAGS $LTLIBICONV; do
6080
6081  acl_save_prefix="$prefix"
6082  prefix="$acl_final_prefix"
6083  acl_save_exec_prefix="$exec_prefix"
6084  exec_prefix="$acl_final_exec_prefix"
6085  eval x=\"$x\"
6086  exec_prefix="$acl_save_exec_prefix"
6087  prefix="$acl_save_prefix"
6088
6089                          if test "X$x" = "X-L$additional_libdir"; then
6090                            haveit=yes
6091                            break
6092                          fi
6093                        done
6094                        if test -z "$haveit"; then
6095                          if test -d "$additional_libdir"; then
6096                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6097                          fi
6098                        fi
6099                      fi
6100                    fi
6101                    ;;
6102                  -R*)
6103                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6104                    if test "$enable_rpath" != no; then
6105                                                                  haveit=
6106                      for x in $rpathdirs; do
6107                        if test "X$x" = "X$dir"; then
6108                          haveit=yes
6109                          break
6110                        fi
6111                      done
6112                      if test -z "$haveit"; then
6113                        rpathdirs="$rpathdirs $dir"
6114                      fi
6115                                                                  haveit=
6116                      for x in $ltrpathdirs; do
6117                        if test "X$x" = "X$dir"; then
6118                          haveit=yes
6119                          break
6120                        fi
6121                      done
6122                      if test -z "$haveit"; then
6123                        ltrpathdirs="$ltrpathdirs $dir"
6124                      fi
6125                    fi
6126                    ;;
6127                  -l*)
6128                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6129                    ;;
6130                  *.la)
6131                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6132                    ;;
6133                  *)
6134                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6135                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6136                    ;;
6137                esac
6138              done
6139            fi
6140          else
6141                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6142            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6143          fi
6144        fi
6145      fi
6146    done
6147  done
6148  if test "X$rpathdirs" != "X"; then
6149    if test -n "$hardcode_libdir_separator"; then
6150                        alldirs=
6151      for found_dir in $rpathdirs; do
6152        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6153      done
6154            acl_save_libdir="$libdir"
6155      libdir="$alldirs"
6156      eval flag=\"$hardcode_libdir_flag_spec\"
6157      libdir="$acl_save_libdir"
6158      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6159    else
6160            for found_dir in $rpathdirs; do
6161        acl_save_libdir="$libdir"
6162        libdir="$found_dir"
6163        eval flag=\"$hardcode_libdir_flag_spec\"
6164        libdir="$acl_save_libdir"
6165        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6166      done
6167    fi
6168  fi
6169  if test "X$ltrpathdirs" != "X"; then
6170            for found_dir in $ltrpathdirs; do
6171      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6172    done
6173  fi
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6189stdlib.h string.h unistd.h sys/param.h
6190do
6191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192if eval "test \"\${$as_ac_Header+set}\" = set"; then
6193  echo "$as_me:$LINENO: checking for $ac_header" >&5
6194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196  echo $ECHO_N "(cached) $ECHO_C" >&6
6197fi
6198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6200else
6201  # Is the header compilable?
6202echo "$as_me:$LINENO: checking $ac_header usability" >&5
6203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6204cat >conftest.$ac_ext <<_ACEOF
6205#line $LINENO "configure"
6206/* confdefs.h.  */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h.  */
6211$ac_includes_default
6212#include <$ac_header>
6213_ACEOF
6214rm -f conftest.$ac_objext
6215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216  (eval $ac_compile) 2>&5
6217  ac_status=$?
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); } &&
6220         { ac_try='test -s conftest.$ac_objext'
6221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222  (eval $ac_try) 2>&5
6223  ac_status=$?
6224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225  (exit $ac_status); }; }; then
6226  ac_header_compiler=yes
6227else
6228  echo "$as_me: failed program was:" >&5
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
6231ac_header_compiler=no
6232fi
6233rm -f conftest.$ac_objext conftest.$ac_ext
6234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235echo "${ECHO_T}$ac_header_compiler" >&6
6236
6237# Is the header present?
6238echo "$as_me:$LINENO: checking $ac_header presence" >&5
6239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6240cat >conftest.$ac_ext <<_ACEOF
6241#line $LINENO "configure"
6242/* confdefs.h.  */
6243_ACEOF
6244cat confdefs.h >>conftest.$ac_ext
6245cat >>conftest.$ac_ext <<_ACEOF
6246/* end confdefs.h.  */
6247#include <$ac_header>
6248_ACEOF
6249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6251  ac_status=$?
6252  grep -v '^ *+' conftest.er1 >conftest.err
6253  rm -f conftest.er1
6254  cat conftest.err >&5
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } >/dev/null; then
6257  if test -s conftest.err; then
6258    ac_cpp_err=$ac_c_preproc_warn_flag
6259  else
6260    ac_cpp_err=
6261  fi
6262else
6263  ac_cpp_err=yes
6264fi
6265if test -z "$ac_cpp_err"; then
6266  ac_header_preproc=yes
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271  ac_header_preproc=no
6272fi
6273rm -f conftest.err conftest.$ac_ext
6274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6275echo "${ECHO_T}$ac_header_preproc" >&6
6276
6277# So?  What about this header?
6278case $ac_header_compiler:$ac_header_preproc in
6279  yes:no )
6280    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6284    (
6285      cat <<\_ASBOX
6286## ------------------------------------ ##
6287## Report this to bug-autoconf@gnu.org. ##
6288## ------------------------------------ ##
6289_ASBOX
6290    ) |
6291      sed "s/^/$as_me: WARNING:     /" >&2
6292    ;;
6293  no:yes )
6294    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6296    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6298    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6300    (
6301      cat <<\_ASBOX
6302## ------------------------------------ ##
6303## Report this to bug-autoconf@gnu.org. ##
6304## ------------------------------------ ##
6305_ASBOX
6306    ) |
6307      sed "s/^/$as_me: WARNING:     /" >&2
6308    ;;
6309esac
6310echo "$as_me:$LINENO: checking for $ac_header" >&5
6311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6312if eval "test \"\${$as_ac_Header+set}\" = set"; then
6313  echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315  eval "$as_ac_Header=$ac_header_preproc"
6316fi
6317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6319
6320fi
6321if test `eval echo '${'$as_ac_Header'}'` = yes; then
6322  cat >>confdefs.h <<_ACEOF
6323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6324_ACEOF
6325
6326fi
6327
6328done
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6352geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6353strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6354do
6355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6356echo "$as_me:$LINENO: checking for $ac_func" >&5
6357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6358if eval "test \"\${$as_ac_var+set}\" = set"; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361  cat >conftest.$ac_ext <<_ACEOF
6362#line $LINENO "configure"
6363/* confdefs.h.  */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h.  */
6368/* System header to define __stub macros and hopefully few prototypes,
6369    which can conflict with char $ac_func (); below.
6370    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6371    <limits.h> exists even on freestanding compilers.  */
6372#ifdef __STDC__
6373# include <limits.h>
6374#else
6375# include <assert.h>
6376#endif
6377/* Override any gcc2 internal prototype to avoid an error.  */
6378#ifdef __cplusplus
6379extern "C"
6380{
6381#endif
6382/* We use char because int might match the return type of a gcc2
6383   builtin and then its argument prototype would still apply.  */
6384char $ac_func ();
6385/* The GNU C library defines this for functions which it implements
6386    to always fail with ENOSYS.  Some functions are actually named
6387    something starting with __ and the normal name is an alias.  */
6388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6389choke me
6390#else
6391char (*f) () = $ac_func;
6392#endif
6393#ifdef __cplusplus
6394}
6395#endif
6396
6397int
6398main ()
6399{
6400return f != $ac_func;
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext conftest$ac_exeext
6406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407  (eval $ac_link) 2>&5
6408  ac_status=$?
6409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410  (exit $ac_status); } &&
6411         { ac_try='test -s conftest$ac_exeext'
6412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413  (eval $ac_try) 2>&5
6414  ac_status=$?
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); }; }; then
6417  eval "$as_ac_var=yes"
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422eval "$as_ac_var=no"
6423fi
6424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6425fi
6426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6428if test `eval echo '${'$as_ac_var'}'` = yes; then
6429  cat >>confdefs.h <<_ACEOF
6430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6431_ACEOF
6432
6433fi
6434done
6435
6436
6437
6438
6439
6440
6441
6442          am_save_CPPFLAGS="$CPPFLAGS"
6443
6444  for element in $INCICONV; do
6445    haveit=
6446    for x in $CPPFLAGS; do
6447
6448  acl_save_prefix="$prefix"
6449  prefix="$acl_final_prefix"
6450  acl_save_exec_prefix="$exec_prefix"
6451  exec_prefix="$acl_final_exec_prefix"
6452  eval x=\"$x\"
6453  exec_prefix="$acl_save_exec_prefix"
6454  prefix="$acl_save_prefix"
6455
6456      if test "X$x" = "X$element"; then
6457        haveit=yes
6458        break
6459      fi
6460    done
6461    if test -z "$haveit"; then
6462      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6463    fi
6464  done
6465
6466
6467  echo "$as_me:$LINENO: checking for iconv" >&5
6468echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6469if test "${am_cv_func_iconv+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472
6473    am_cv_func_iconv="no, consider installing GNU libiconv"
6474    am_cv_lib_iconv=no
6475    cat >conftest.$ac_ext <<_ACEOF
6476#line $LINENO "configure"
6477/* confdefs.h.  */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h.  */
6482#include <stdlib.h>
6483#include <iconv.h>
6484int
6485main ()
6486{
6487iconv_t cd = iconv_open("","");
6488       iconv(cd,NULL,NULL,NULL,NULL);
6489       iconv_close(cd);
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
6495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496  (eval $ac_link) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); } &&
6500         { ac_try='test -s conftest$ac_exeext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  am_cv_func_iconv=yes
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511fi
6512rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6513    if test "$am_cv_func_iconv" != yes; then
6514      am_save_LIBS="$LIBS"
6515      LIBS="$LIBS $LIBICONV"
6516      cat >conftest.$ac_ext <<_ACEOF
6517#line $LINENO "configure"
6518/* confdefs.h.  */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h.  */
6523#include <stdlib.h>
6524#include <iconv.h>
6525int
6526main ()
6527{
6528iconv_t cd = iconv_open("","");
6529         iconv(cd,NULL,NULL,NULL,NULL);
6530         iconv_close(cd);
6531  ;
6532  return 0;
6533}
6534_ACEOF
6535rm -f conftest.$ac_objext conftest$ac_exeext
6536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6537  (eval $ac_link) 2>&5
6538  ac_status=$?
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); } &&
6541         { ac_try='test -s conftest$ac_exeext'
6542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543  (eval $ac_try) 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); }; }; then
6547  am_cv_lib_iconv=yes
6548        am_cv_func_iconv=yes
6549else
6550  echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553fi
6554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6555      LIBS="$am_save_LIBS"
6556    fi
6557
6558fi
6559echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6560echo "${ECHO_T}$am_cv_func_iconv" >&6
6561  if test "$am_cv_func_iconv" = yes; then
6562
6563cat >>confdefs.h <<\_ACEOF
6564#define HAVE_ICONV 1
6565_ACEOF
6566
6567  fi
6568  if test "$am_cv_lib_iconv" = yes; then
6569    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6570echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6571    echo "$as_me:$LINENO: result: $LIBICONV" >&5
6572echo "${ECHO_T}$LIBICONV" >&6
6573  else
6574            CPPFLAGS="$am_save_CPPFLAGS"
6575    LIBICONV=
6576    LTLIBICONV=
6577  fi
6578
6579
6580
6581  if test "$am_cv_func_iconv" = yes; then
6582    echo "$as_me:$LINENO: checking for iconv declaration" >&5
6583echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6584    if test "${am_cv_proto_iconv+set}" = set; then
6585  echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587
6588      cat >conftest.$ac_ext <<_ACEOF
6589#line $LINENO "configure"
6590/* confdefs.h.  */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h.  */
6595
6596#include <stdlib.h>
6597#include <iconv.h>
6598extern
6599#ifdef __cplusplus
6600"C"
6601#endif
6602#if defined(__STDC__) || defined(__cplusplus)
6603size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6604#else
6605size_t iconv();
6606#endif
6607
6608int
6609main ()
6610{
6611
6612  ;
6613  return 0;
6614}
6615_ACEOF
6616rm -f conftest.$ac_objext
6617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618  (eval $ac_compile) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); } &&
6622         { ac_try='test -s conftest.$ac_objext'
6623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624  (eval $ac_try) 2>&5
6625  ac_status=$?
6626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627  (exit $ac_status); }; }; then
6628  am_cv_proto_iconv_arg1=""
6629else
6630  echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633am_cv_proto_iconv_arg1="const"
6634fi
6635rm -f conftest.$ac_objext conftest.$ac_ext
6636      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6637fi
6638
6639    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6640    echo "$as_me:$LINENO: result: ${ac_t:-
6641         }$am_cv_proto_iconv" >&5
6642echo "${ECHO_T}${ac_t:-
6643         }$am_cv_proto_iconv" >&6
6644
6645cat >>confdefs.h <<_ACEOF
6646#define ICONV_CONST $am_cv_proto_iconv_arg1
6647_ACEOF
6648
6649  fi
6650
6651
6652  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6653echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6654if test "${am_cv_langinfo_codeset+set}" = set; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657  cat >conftest.$ac_ext <<_ACEOF
6658#line $LINENO "configure"
6659/* confdefs.h.  */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h.  */
6664#include <langinfo.h>
6665int
6666main ()
6667{
6668char* cs = nl_langinfo(CODESET);
6669  ;
6670  return 0;
6671}
6672_ACEOF
6673rm -f conftest.$ac_objext conftest$ac_exeext
6674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675  (eval $ac_link) 2>&5
6676  ac_status=$?
6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678  (exit $ac_status); } &&
6679         { ac_try='test -s conftest$ac_exeext'
6680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681  (eval $ac_try) 2>&5
6682  ac_status=$?
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); }; }; then
6685  am_cv_langinfo_codeset=yes
6686else
6687  echo "$as_me: failed program was:" >&5
6688sed 's/^/| /' conftest.$ac_ext >&5
6689
6690am_cv_langinfo_codeset=no
6691fi
6692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693
6694fi
6695echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6696echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6697  if test $am_cv_langinfo_codeset = yes; then
6698
6699cat >>confdefs.h <<\_ACEOF
6700#define HAVE_LANGINFO_CODESET 1
6701_ACEOF
6702
6703  fi
6704
6705  if test $ac_cv_header_locale_h = yes; then
6706
6707  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6708echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6709if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6710  echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712  cat >conftest.$ac_ext <<_ACEOF
6713#line $LINENO "configure"
6714/* confdefs.h.  */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h.  */
6719#include <locale.h>
6720int
6721main ()
6722{
6723return LC_MESSAGES
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728rm -f conftest.$ac_objext conftest$ac_exeext
6729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6730  (eval $ac_link) 2>&5
6731  ac_status=$?
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } &&
6734         { ac_try='test -s conftest$ac_exeext'
6735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736  (eval $ac_try) 2>&5
6737  ac_status=$?
6738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739  (exit $ac_status); }; }; then
6740  am_cv_val_LC_MESSAGES=yes
6741else
6742  echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745am_cv_val_LC_MESSAGES=no
6746fi
6747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6748fi
6749echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6750echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6751  if test $am_cv_val_LC_MESSAGES = yes; then
6752
6753cat >>confdefs.h <<\_ACEOF
6754#define HAVE_LC_MESSAGES 1
6755_ACEOF
6756
6757  fi
6758
6759  fi
6760
6761                      for ac_prog in bison
6762do
6763  # Extract the first word of "$ac_prog", so it can be a program name with args.
6764set dummy $ac_prog; ac_word=$2
6765echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6767if test "${ac_cv_prog_INTLBISON+set}" = set; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770  if test -n "$INTLBISON"; then
6771  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776  IFS=$as_save_IFS
6777  test -z "$as_dir" && as_dir=.
6778  for ac_exec_ext in '' $ac_executable_extensions; do
6779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780    ac_cv_prog_INTLBISON="$ac_prog"
6781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782    break 2
6783  fi
6784done
6785done
6786
6787fi
6788fi
6789INTLBISON=$ac_cv_prog_INTLBISON
6790if test -n "$INTLBISON"; then
6791  echo "$as_me:$LINENO: result: $INTLBISON" >&5
6792echo "${ECHO_T}$INTLBISON" >&6
6793else
6794  echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796fi
6797
6798  test -n "$INTLBISON" && break
6799done
6800
6801  if test -z "$INTLBISON"; then
6802    ac_verc_fail=yes
6803  else
6804        echo "$as_me:$LINENO: checking version of bison" >&5
6805echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6806    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6807    case $ac_prog_version in
6808      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6809      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6810         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6811      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6812    esac
6813    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6814echo "${ECHO_T}$ac_prog_version" >&6
6815  fi
6816  if test $ac_verc_fail = yes; then
6817    INTLBISON=:
6818  fi
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6835echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6836    # Check whether --enable-nls or --disable-nls was given.
6837if test "${enable_nls+set}" = set; then
6838  enableval="$enable_nls"
6839  USE_NLS=$enableval
6840else
6841  USE_NLS=yes
6842fi;
6843  echo "$as_me:$LINENO: result: $USE_NLS" >&5
6844echo "${ECHO_T}$USE_NLS" >&6
6845
6846
6847
6848    BUILD_INCLUDED_LIBINTL=no
6849    USE_INCLUDED_LIBINTL=no
6850
6851  LIBINTL=
6852  LTLIBINTL=
6853  POSUB=
6854
6855    if test "$USE_NLS" = "yes"; then
6856    gt_use_preinstalled_gnugettext=no
6857
6858      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6859echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6860
6861# Check whether --with-included-gettext or --without-included-gettext was given.
6862if test "${with_included_gettext+set}" = set; then
6863  withval="$with_included_gettext"
6864  nls_cv_force_use_gnu_gettext=$withval
6865else
6866  nls_cv_force_use_gnu_gettext=no
6867fi;
6868      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6869echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6870
6871      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6872      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6873
6874
6875
6876
6877
6878
6879        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6880echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6881if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6882  echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884  cat >conftest.$ac_ext <<_ACEOF
6885#line $LINENO "configure"
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891#include <libintl.h>
6892extern int _nl_msg_cat_cntr;
6893extern int *_nl_domain_bindings;
6894int
6895main ()
6896{
6897bindtextdomain ("", "");
6898return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6899  ;
6900  return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext conftest$ac_exeext
6904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905  (eval $ac_link) 2>&5
6906  ac_status=$?
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } &&
6909         { ac_try='test -s conftest$ac_exeext'
6910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911  (eval $ac_try) 2>&5
6912  ac_status=$?
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); }; }; then
6915  gt_cv_func_gnugettext1_libc=yes
6916else
6917  echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920gt_cv_func_gnugettext1_libc=no
6921fi
6922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6923fi
6924echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6925echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6926
6927        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6928
6929
6930
6931    use_additional=yes
6932
6933  acl_save_prefix="$prefix"
6934  prefix="$acl_final_prefix"
6935  acl_save_exec_prefix="$exec_prefix"
6936  exec_prefix="$acl_final_exec_prefix"
6937
6938    eval additional_includedir=\"$includedir\"
6939    eval additional_libdir=\"$libdir\"
6940
6941  exec_prefix="$acl_save_exec_prefix"
6942  prefix="$acl_save_prefix"
6943
6944
6945# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6946if test "${with_libintl_prefix+set}" = set; then
6947  withval="$with_libintl_prefix"
6948
6949    if test "X$withval" = "Xno"; then
6950      use_additional=no
6951    else
6952      if test "X$withval" = "X"; then
6953
6954  acl_save_prefix="$prefix"
6955  prefix="$acl_final_prefix"
6956  acl_save_exec_prefix="$exec_prefix"
6957  exec_prefix="$acl_final_exec_prefix"
6958
6959          eval additional_includedir=\"$includedir\"
6960          eval additional_libdir=\"$libdir\"
6961
6962  exec_prefix="$acl_save_exec_prefix"
6963  prefix="$acl_save_prefix"
6964
6965      else
6966        additional_includedir="$withval/include"
6967        additional_libdir="$withval/lib"
6968      fi
6969    fi
6970
6971fi;
6972      LIBINTL=
6973  LTLIBINTL=
6974  INCINTL=
6975  rpathdirs=
6976  ltrpathdirs=
6977  names_already_handled=
6978  names_next_round='intl '
6979  while test -n "$names_next_round"; do
6980    names_this_round="$names_next_round"
6981    names_next_round=
6982    for name in $names_this_round; do
6983      already_handled=
6984      for n in $names_already_handled; do
6985        if test "$n" = "$name"; then
6986          already_handled=yes
6987          break
6988        fi
6989      done
6990      if test -z "$already_handled"; then
6991        names_already_handled="$names_already_handled $name"
6992                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6993        eval value=\"\$HAVE_LIB$uppername\"
6994        if test -n "$value"; then
6995          if test "$value" = yes; then
6996            eval value=\"\$LIB$uppername\"
6997            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6998            eval value=\"\$LTLIB$uppername\"
6999            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7000          else
7001                                    :
7002          fi
7003        else
7004                              found_dir=
7005          found_la=
7006          found_so=
7007          found_a=
7008          if test $use_additional = yes; then
7009            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7010              found_dir="$additional_libdir"
7011              found_so="$additional_libdir/lib$name.$shlibext"
7012              if test -f "$additional_libdir/lib$name.la"; then
7013                found_la="$additional_libdir/lib$name.la"
7014              fi
7015            else
7016              if test -f "$additional_libdir/lib$name.$libext"; then
7017                found_dir="$additional_libdir"
7018                found_a="$additional_libdir/lib$name.$libext"
7019                if test -f "$additional_libdir/lib$name.la"; then
7020                  found_la="$additional_libdir/lib$name.la"
7021                fi
7022              fi
7023            fi
7024          fi
7025          if test "X$found_dir" = "X"; then
7026            for x in $LDFLAGS $LTLIBINTL; do
7027
7028  acl_save_prefix="$prefix"
7029  prefix="$acl_final_prefix"
7030  acl_save_exec_prefix="$exec_prefix"
7031  exec_prefix="$acl_final_exec_prefix"
7032  eval x=\"$x\"
7033  exec_prefix="$acl_save_exec_prefix"
7034  prefix="$acl_save_prefix"
7035
7036              case "$x" in
7037                -L*)
7038                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7039                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7040                    found_dir="$dir"
7041                    found_so="$dir/lib$name.$shlibext"
7042                    if test -f "$dir/lib$name.la"; then
7043                      found_la="$dir/lib$name.la"
7044                    fi
7045                  else
7046                    if test -f "$dir/lib$name.$libext"; then
7047                      found_dir="$dir"
7048                      found_a="$dir/lib$name.$libext"
7049                      if test -f "$dir/lib$name.la"; then
7050                        found_la="$dir/lib$name.la"
7051                      fi
7052                    fi
7053                  fi
7054                  ;;
7055              esac
7056              if test "X$found_dir" != "X"; then
7057                break
7058              fi
7059            done
7060          fi
7061          if test "X$found_dir" != "X"; then
7062                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7063            if test "X$found_so" != "X"; then
7064                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7065                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7066              else
7067                                                                                haveit=
7068                for x in $ltrpathdirs; do
7069                  if test "X$x" = "X$found_dir"; then
7070                    haveit=yes
7071                    break
7072                  fi
7073                done
7074                if test -z "$haveit"; then
7075                  ltrpathdirs="$ltrpathdirs $found_dir"
7076                fi
7077                                if test "$hardcode_direct" = yes; then
7078                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7079                else
7080                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7081                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7082                                                            haveit=
7083                    for x in $rpathdirs; do
7084                      if test "X$x" = "X$found_dir"; then
7085                        haveit=yes
7086                        break
7087                      fi
7088                    done
7089                    if test -z "$haveit"; then
7090                      rpathdirs="$rpathdirs $found_dir"
7091                    fi
7092                  else
7093                                                                                haveit=
7094                    for x in $LDFLAGS $LIBINTL; do
7095
7096  acl_save_prefix="$prefix"
7097  prefix="$acl_final_prefix"
7098  acl_save_exec_prefix="$exec_prefix"
7099  exec_prefix="$acl_final_exec_prefix"
7100  eval x=\"$x\"
7101  exec_prefix="$acl_save_exec_prefix"
7102  prefix="$acl_save_prefix"
7103
7104                      if test "X$x" = "X-L$found_dir"; then
7105                        haveit=yes
7106                        break
7107                      fi
7108                    done
7109                    if test -z "$haveit"; then
7110                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7111                    fi
7112                    if test "$hardcode_minus_L" != no; then
7113                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7114                    else
7115                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7116                    fi
7117                  fi
7118                fi
7119              fi
7120            else
7121              if test "X$found_a" != "X"; then
7122                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7123              else
7124                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7125              fi
7126            fi
7127                        additional_includedir=
7128            case "$found_dir" in
7129              */lib | */lib/)
7130                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7131                additional_includedir="$basedir/include"
7132                ;;
7133            esac
7134            if test "X$additional_includedir" != "X"; then
7135                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7136                haveit=
7137                if test "X$additional_includedir" = "X/usr/local/include"; then
7138                  if test -n "$GCC"; then
7139                    case $host_os in
7140                      linux*) haveit=yes;;
7141                    esac
7142                  fi
7143                fi
7144                if test -z "$haveit"; then
7145                  for x in $CPPFLAGS $INCINTL; do
7146
7147  acl_save_prefix="$prefix"
7148  prefix="$acl_final_prefix"
7149  acl_save_exec_prefix="$exec_prefix"
7150  exec_prefix="$acl_final_exec_prefix"
7151  eval x=\"$x\"
7152  exec_prefix="$acl_save_exec_prefix"
7153  prefix="$acl_save_prefix"
7154
7155                    if test "X$x" = "X-I$additional_includedir"; then
7156                      haveit=yes
7157                      break
7158                    fi
7159                  done
7160                  if test -z "$haveit"; then
7161                    if test -d "$additional_includedir"; then
7162                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7163                    fi
7164                  fi
7165                fi
7166              fi
7167            fi
7168                        if test -n "$found_la"; then
7169                                                        save_libdir="$libdir"
7170              case "$found_la" in
7171                */* | *\\*) . "$found_la" ;;
7172                *) . "./$found_la" ;;
7173              esac
7174              libdir="$save_libdir"
7175                            for dep in $dependency_libs; do
7176                case "$dep" in
7177                  -L*)
7178                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7179                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7180                      haveit=
7181                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7182                        if test -n "$GCC"; then
7183                          case $host_os in
7184                            linux*) haveit=yes;;
7185                          esac
7186                        fi
7187                      fi
7188                      if test -z "$haveit"; then
7189                        haveit=
7190                        for x in $LDFLAGS $LIBINTL; do
7191
7192  acl_save_prefix="$prefix"
7193  prefix="$acl_final_prefix"
7194  acl_save_exec_prefix="$exec_prefix"
7195  exec_prefix="$acl_final_exec_prefix"
7196  eval x=\"$x\"
7197  exec_prefix="$acl_save_exec_prefix"
7198  prefix="$acl_save_prefix"
7199
7200                          if test "X$x" = "X-L$additional_libdir"; then
7201                            haveit=yes
7202                            break
7203                          fi
7204                        done
7205                        if test -z "$haveit"; then
7206                          if test -d "$additional_libdir"; then
7207                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7208                          fi
7209                        fi
7210                        haveit=
7211                        for x in $LDFLAGS $LTLIBINTL; do
7212
7213  acl_save_prefix="$prefix"
7214  prefix="$acl_final_prefix"
7215  acl_save_exec_prefix="$exec_prefix"
7216  exec_prefix="$acl_final_exec_prefix"
7217  eval x=\"$x\"
7218  exec_prefix="$acl_save_exec_prefix"
7219  prefix="$acl_save_prefix"
7220
7221                          if test "X$x" = "X-L$additional_libdir"; then
7222                            haveit=yes
7223                            break
7224                          fi
7225                        done
7226                        if test -z "$haveit"; then
7227                          if test -d "$additional_libdir"; then
7228                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7229                          fi
7230                        fi
7231                      fi
7232                    fi
7233                    ;;
7234                  -R*)
7235                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7236                    if test "$enable_rpath" != no; then
7237                                                                  haveit=
7238                      for x in $rpathdirs; do
7239                        if test "X$x" = "X$dir"; then
7240                          haveit=yes
7241                          break
7242                        fi
7243                      done
7244                      if test -z "$haveit"; then
7245                        rpathdirs="$rpathdirs $dir"
7246                      fi
7247                                                                  haveit=
7248                      for x in $ltrpathdirs; do
7249                        if test "X$x" = "X$dir"; then
7250                          haveit=yes
7251                          break
7252                        fi
7253                      done
7254                      if test -z "$haveit"; then
7255                        ltrpathdirs="$ltrpathdirs $dir"
7256                      fi
7257                    fi
7258                    ;;
7259                  -l*)
7260                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7261                    ;;
7262                  *.la)
7263                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7264                    ;;
7265                  *)
7266                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7267                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7268                    ;;
7269                esac
7270              done
7271            fi
7272          else
7273                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7274            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7275          fi
7276        fi
7277      fi
7278    done
7279  done
7280  if test "X$rpathdirs" != "X"; then
7281    if test -n "$hardcode_libdir_separator"; then
7282                        alldirs=
7283      for found_dir in $rpathdirs; do
7284        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7285      done
7286            acl_save_libdir="$libdir"
7287      libdir="$alldirs"
7288      eval flag=\"$hardcode_libdir_flag_spec\"
7289      libdir="$acl_save_libdir"
7290      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7291    else
7292            for found_dir in $rpathdirs; do
7293        acl_save_libdir="$libdir"
7294        libdir="$found_dir"
7295        eval flag=\"$hardcode_libdir_flag_spec\"
7296        libdir="$acl_save_libdir"
7297        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7298      done
7299    fi
7300  fi
7301  if test "X$ltrpathdirs" != "X"; then
7302            for found_dir in $ltrpathdirs; do
7303      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7304    done
7305  fi
7306
7307          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7308echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7309if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7310  echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312  gt_save_CPPFLAGS="$CPPFLAGS"
7313            CPPFLAGS="$CPPFLAGS $INCINTL"
7314            gt_save_LIBS="$LIBS"
7315            LIBS="$LIBS $LIBINTL"
7316                        cat >conftest.$ac_ext <<_ACEOF
7317#line $LINENO "configure"
7318/* confdefs.h.  */
7319_ACEOF
7320cat confdefs.h >>conftest.$ac_ext
7321cat >>conftest.$ac_ext <<_ACEOF
7322/* end confdefs.h.  */
7323#include <libintl.h>
7324extern int _nl_msg_cat_cntr;
7325extern
7326#ifdef __cplusplus
7327"C"
7328#endif
7329const char *_nl_expand_alias ();
7330int
7331main ()
7332{
7333bindtextdomain ("", "");
7334return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7335  ;
7336  return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext conftest$ac_exeext
7340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341  (eval $ac_link) 2>&5
7342  ac_status=$?
7343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344  (exit $ac_status); } &&
7345         { ac_try='test -s conftest$ac_exeext'
7346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347  (eval $ac_try) 2>&5
7348  ac_status=$?
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); }; }; then
7351  gt_cv_func_gnugettext1_libintl=yes
7352else
7353  echo "$as_me: failed program was:" >&5
7354sed 's/^/| /' conftest.$ac_ext >&5
7355
7356gt_cv_func_gnugettext1_libintl=no
7357fi
7358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7359                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7360              LIBS="$LIBS $LIBICONV"
7361              cat >conftest.$ac_ext <<_ACEOF
7362#line $LINENO "configure"
7363/* confdefs.h.  */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h.  */
7368#include <libintl.h>
7369extern int _nl_msg_cat_cntr;
7370extern
7371#ifdef __cplusplus
7372"C"
7373#endif
7374const char *_nl_expand_alias ();
7375int
7376main ()
7377{
7378bindtextdomain ("", "");
7379return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7380  ;
7381  return 0;
7382}
7383_ACEOF
7384rm -f conftest.$ac_objext conftest$ac_exeext
7385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386  (eval $ac_link) 2>&5
7387  ac_status=$?
7388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); } &&
7390         { ac_try='test -s conftest$ac_exeext'
7391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392  (eval $ac_try) 2>&5
7393  ac_status=$?
7394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); }; }; then
7396  LIBINTL="$LIBINTL $LIBICONV"
7397                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7398                gt_cv_func_gnugettext1_libintl=yes
7399
7400else
7401  echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404fi
7405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7406            fi
7407            CPPFLAGS="$gt_save_CPPFLAGS"
7408            LIBS="$gt_save_LIBS"
7409fi
7410echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7411echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7412        fi
7413
7414                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7415           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7416                && test "$PACKAGE" != gettext; }; then
7417          gt_use_preinstalled_gnugettext=yes
7418        else
7419                    LIBINTL=
7420          LTLIBINTL=
7421          INCINTL=
7422        fi
7423
7424
7425        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7426                              nls_cv_use_gnu_gettext=yes
7427        fi
7428      fi
7429
7430      if test "$nls_cv_use_gnu_gettext" = "yes"; then
7431                INTLOBJS="\$(GETTOBJS)"
7432        BUILD_INCLUDED_LIBINTL=yes
7433        USE_INCLUDED_LIBINTL=yes
7434        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7435        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7436        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7437      fi
7438
7439      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7440         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7441                CATOBJEXT=.gmo
7442      fi
7443
7444
7445    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7446       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7447
7448cat >>confdefs.h <<\_ACEOF
7449#define ENABLE_NLS 1
7450_ACEOF
7451
7452    else
7453      USE_NLS=no
7454    fi
7455  fi
7456
7457  if test "$USE_NLS" = "yes"; then
7458
7459    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7460      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7461        echo "$as_me:$LINENO: checking how to link with libintl" >&5
7462echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7463        echo "$as_me:$LINENO: result: $LIBINTL" >&5
7464echo "${ECHO_T}$LIBINTL" >&6
7465
7466  for element in $INCINTL; do
7467    haveit=
7468    for x in $CPPFLAGS; do
7469
7470  acl_save_prefix="$prefix"
7471  prefix="$acl_final_prefix"
7472  acl_save_exec_prefix="$exec_prefix"
7473  exec_prefix="$acl_final_exec_prefix"
7474  eval x=\"$x\"
7475  exec_prefix="$acl_save_exec_prefix"
7476  prefix="$acl_save_prefix"
7477
7478      if test "X$x" = "X$element"; then
7479        haveit=yes
7480        break
7481      fi
7482    done
7483    if test -z "$haveit"; then
7484      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7485    fi
7486  done
7487
7488      fi
7489
7490
7491cat >>confdefs.h <<\_ACEOF
7492#define HAVE_GETTEXT 1
7493_ACEOF
7494
7495
7496cat >>confdefs.h <<\_ACEOF
7497#define HAVE_DCGETTEXT 1
7498_ACEOF
7499
7500    fi
7501
7502        POSUB=po
7503  fi
7504
7505
7506            if test "$PACKAGE" = gettext; then
7507      BUILD_INCLUDED_LIBINTL=yes
7508    fi
7509
7510
7511
7512
7513
7514
7515        nls_cv_header_intl=
7516    nls_cv_header_libgt=
7517
7518        DATADIRNAME=share
7519
7520
7521        INSTOBJEXT=.mo
7522
7523
7524        GENCAT=gencat
7525
7526
7527        INTL_LIBTOOL_SUFFIX_PREFIX=
7528
7529
7530
7531    INTLLIBS="$LIBINTL"
7532
7533
7534
7535
7536
7537
7538
7539
7540if test "$nls_cv_use_gnu_gettext" = yes; then
7541  USE_INTLDIR_TRUE=
7542  USE_INTLDIR_FALSE='#'
7543else
7544  USE_INTLDIR_TRUE='#'
7545  USE_INTLDIR_FALSE=
7546fi
7547
7548
7549echo "$as_me:$LINENO: checking wether to enable debugging" >&5
7550echo $ECHO_N "checking wether to enable debugging... $ECHO_C" >&6
7551# Check whether --enable-debug or --disable-debug was given.
7552if test "${enable_debug+set}" = set; then
7553  enableval="$enable_debug"
7554  if test "$enableval" = yes ;
7555	then
7556		echo "$as_me:$LINENO: result: yes" >&5
7557echo "${ECHO_T}yes" >&6
7558
7559cat >>confdefs.h <<\_ACEOF
7560#define DEBUG 1
7561_ACEOF
7562
7563		CXXFLAGS=" -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -Wall -g"
7564	else
7565		echo "$as_me:$LINENO: result: no" >&5
7566echo "${ECHO_T}no" >&6
7567		CXXFLAGS=" -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -Wall"
7568	fi
7569
7570else
7571  echo "$as_me:$LINENO: result: no" >&5
7572echo "${ECHO_T}no" >&6
7573	CXXFLAGS=" -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -Wall"
7574
7575fi;
7576
7577echo "$as_me:$LINENO: checking wether to disable randomness" >&5
7578echo $ECHO_N "checking wether to disable randomness... $ECHO_C" >&6
7579# Check whether --enable-randomness or --disable-randomness was given.
7580if test "${enable_randomness+set}" = set; then
7581  enableval="$enable_randomness"
7582  if test "$enableval" = yes ;
7583		then
7584			echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586		else
7587			echo "$as_me:$LINENO: result: yes" >&5
7588echo "${ECHO_T}yes" >&6
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define NORANDOM 1
7592_ACEOF
7593
7594		fi
7595
7596else
7597  echo "$as_me:$LINENO: result: no" >&5
7598echo "${ECHO_T}no" >&6
7599
7600fi;
7601
7602echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7603echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7604if test "${ac_cv_header_stdc+set}" = set; then
7605  echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607  cat >conftest.$ac_ext <<_ACEOF
7608#line $LINENO "configure"
7609/* confdefs.h.  */
7610_ACEOF
7611cat confdefs.h >>conftest.$ac_ext
7612cat >>conftest.$ac_ext <<_ACEOF
7613/* end confdefs.h.  */
7614#include <stdlib.h>
7615#include <stdarg.h>
7616#include <string.h>
7617#include <float.h>
7618
7619int
7620main ()
7621{
7622
7623  ;
7624  return 0;
7625}
7626_ACEOF
7627rm -f conftest.$ac_objext
7628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629  (eval $ac_compile) 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); } &&
7633         { ac_try='test -s conftest.$ac_objext'
7634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635  (eval $ac_try) 2>&5
7636  ac_status=$?
7637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638  (exit $ac_status); }; }; then
7639  ac_cv_header_stdc=yes
7640else
7641  echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644ac_cv_header_stdc=no
7645fi
7646rm -f conftest.$ac_objext conftest.$ac_ext
7647
7648if test $ac_cv_header_stdc = yes; then
7649  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7650  cat >conftest.$ac_ext <<_ACEOF
7651#line $LINENO "configure"
7652/* confdefs.h.  */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h.  */
7657#include <string.h>
7658
7659_ACEOF
7660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661  $EGREP "memchr" >/dev/null 2>&1; then
7662  :
7663else
7664  ac_cv_header_stdc=no
7665fi
7666rm -f conftest*
7667
7668fi
7669
7670if test $ac_cv_header_stdc = yes; then
7671  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7672  cat >conftest.$ac_ext <<_ACEOF
7673#line $LINENO "configure"
7674/* confdefs.h.  */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h.  */
7679#include <stdlib.h>
7680
7681_ACEOF
7682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7683  $EGREP "free" >/dev/null 2>&1; then
7684  :
7685else
7686  ac_cv_header_stdc=no
7687fi
7688rm -f conftest*
7689
7690fi
7691
7692if test $ac_cv_header_stdc = yes; then
7693  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7694  if test "$cross_compiling" = yes; then
7695  :
7696else
7697  cat >conftest.$ac_ext <<_ACEOF
7698#line $LINENO "configure"
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704#include <ctype.h>
7705#if ((' ' & 0x0FF) == 0x020)
7706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7708#else
7709# define ISLOWER(c) \
7710                   (('a' <= (c) && (c) <= 'i') \
7711                     || ('j' <= (c) && (c) <= 'r') \
7712                     || ('s' <= (c) && (c) <= 'z'))
7713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7714#endif
7715
7716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7717int
7718main ()
7719{
7720  int i;
7721  for (i = 0; i < 256; i++)
7722    if (XOR (islower (i), ISLOWER (i))
7723        || toupper (i) != TOUPPER (i))
7724      exit(2);
7725  exit (0);
7726}
7727_ACEOF
7728rm -f conftest$ac_exeext
7729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730  (eval $ac_link) 2>&5
7731  ac_status=$?
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735  (eval $ac_try) 2>&5
7736  ac_status=$?
7737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738  (exit $ac_status); }; }; then
7739  :
7740else
7741  echo "$as_me: program exited with status $ac_status" >&5
7742echo "$as_me: failed program was:" >&5
7743sed 's/^/| /' conftest.$ac_ext >&5
7744
7745( exit $ac_status )
7746ac_cv_header_stdc=no
7747fi
7748rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7749fi
7750fi
7751fi
7752echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7753echo "${ECHO_T}$ac_cv_header_stdc" >&6
7754if test $ac_cv_header_stdc = yes; then
7755
7756cat >>confdefs.h <<\_ACEOF
7757#define STDC_HEADERS 1
7758_ACEOF
7759
7760fi
7761
7762echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7763echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7764if test "${ac_cv_header_sys_wait_h+set}" = set; then
7765  echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767  cat >conftest.$ac_ext <<_ACEOF
7768#line $LINENO "configure"
7769/* confdefs.h.  */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h.  */
7774#include <sys/types.h>
7775#include <sys/wait.h>
7776#ifndef WEXITSTATUS
7777# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7778#endif
7779#ifndef WIFEXITED
7780# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7781#endif
7782
7783int
7784main ()
7785{
7786  int s;
7787  wait (&s);
7788  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7789  ;
7790  return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext
7794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795  (eval $ac_compile) 2>&5
7796  ac_status=$?
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); } &&
7799         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7805  ac_cv_header_sys_wait_h=yes
7806else
7807  echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810ac_cv_header_sys_wait_h=no
7811fi
7812rm -f conftest.$ac_objext conftest.$ac_ext
7813fi
7814echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7815echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7816if test $ac_cv_header_sys_wait_h = yes; then
7817
7818cat >>confdefs.h <<\_ACEOF
7819#define HAVE_SYS_WAIT_H 1
7820_ACEOF
7821
7822fi
7823
7824
7825
7826for ac_header in limits.h termios.h
7827do
7828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829if eval "test \"\${$as_ac_Header+set}\" = set"; then
7830  echo "$as_me:$LINENO: checking for $ac_header" >&5
7831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7832if eval "test \"\${$as_ac_Header+set}\" = set"; then
7833  echo $ECHO_N "(cached) $ECHO_C" >&6
7834fi
7835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7837else
7838  # Is the header compilable?
7839echo "$as_me:$LINENO: checking $ac_header usability" >&5
7840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7841cat >conftest.$ac_ext <<_ACEOF
7842#line $LINENO "configure"
7843/* confdefs.h.  */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h.  */
7848$ac_includes_default
7849#include <$ac_header>
7850_ACEOF
7851rm -f conftest.$ac_objext
7852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7853  (eval $ac_compile) 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); } &&
7857         { ac_try='test -s conftest.$ac_objext'
7858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859  (eval $ac_try) 2>&5
7860  ac_status=$?
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); }; }; then
7863  ac_header_compiler=yes
7864else
7865  echo "$as_me: failed program was:" >&5
7866sed 's/^/| /' conftest.$ac_ext >&5
7867
7868ac_header_compiler=no
7869fi
7870rm -f conftest.$ac_objext conftest.$ac_ext
7871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7872echo "${ECHO_T}$ac_header_compiler" >&6
7873
7874# Is the header present?
7875echo "$as_me:$LINENO: checking $ac_header presence" >&5
7876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7877cat >conftest.$ac_ext <<_ACEOF
7878#line $LINENO "configure"
7879/* confdefs.h.  */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h.  */
7884#include <$ac_header>
7885_ACEOF
7886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7888  ac_status=$?
7889  grep -v '^ *+' conftest.er1 >conftest.err
7890  rm -f conftest.er1
7891  cat conftest.err >&5
7892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893  (exit $ac_status); } >/dev/null; then
7894  if test -s conftest.err; then
7895    ac_cpp_err=$ac_c_preproc_warn_flag
7896  else
7897    ac_cpp_err=
7898  fi
7899else
7900  ac_cpp_err=yes
7901fi
7902if test -z "$ac_cpp_err"; then
7903  ac_header_preproc=yes
7904else
7905  echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908  ac_header_preproc=no
7909fi
7910rm -f conftest.err conftest.$ac_ext
7911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7912echo "${ECHO_T}$ac_header_preproc" >&6
7913
7914# So?  What about this header?
7915case $ac_header_compiler:$ac_header_preproc in
7916  yes:no )
7917    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7921    (
7922      cat <<\_ASBOX
7923## ------------------------------------ ##
7924## Report this to bug-autoconf@gnu.org. ##
7925## ------------------------------------ ##
7926_ASBOX
7927    ) |
7928      sed "s/^/$as_me: WARNING:     /" >&2
7929    ;;
7930  no:yes )
7931    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7933    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7937    (
7938      cat <<\_ASBOX
7939## ------------------------------------ ##
7940## Report this to bug-autoconf@gnu.org. ##
7941## ------------------------------------ ##
7942_ASBOX
7943    ) |
7944      sed "s/^/$as_me: WARNING:     /" >&2
7945    ;;
7946esac
7947echo "$as_me:$LINENO: checking for $ac_header" >&5
7948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7949if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950  echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952  eval "$as_ac_Header=$ac_header_preproc"
7953fi
7954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7956
7957fi
7958if test `eval echo '${'$as_ac_Header'}'` = yes; then
7959  cat >>confdefs.h <<_ACEOF
7960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7961_ACEOF
7962
7963fi
7964
7965done
7966
7967
7968echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7969echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7970if test "${ac_cv_c_const+set}" = set; then
7971  echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973  cat >conftest.$ac_ext <<_ACEOF
7974#line $LINENO "configure"
7975/* confdefs.h.  */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h.  */
7980
7981int
7982main ()
7983{
7984/* FIXME: Include the comments suggested by Paul. */
7985#ifndef __cplusplus
7986  /* Ultrix mips cc rejects this.  */
7987  typedef int charset[2];
7988  const charset x;
7989  /* SunOS 4.1.1 cc rejects this.  */
7990  char const *const *ccp;
7991  char **p;
7992  /* NEC SVR4.0.2 mips cc rejects this.  */
7993  struct point {int x, y;};
7994  static struct point const zero = {0,0};
7995  /* AIX XL C 1.02.0.0 rejects this.
7996     It does not let you subtract one const X* pointer from another in
7997     an arm of an if-expression whose if-part is not a constant
7998     expression */
7999  const char *g = "string";
8000  ccp = &g + (g ? g-g : 0);
8001  /* HPUX 7.0 cc rejects these. */
8002  ++ccp;
8003  p = (char**) ccp;
8004  ccp = (char const *const *) p;
8005  { /* SCO 3.2v4 cc rejects this.  */
8006    char *t;
8007    char const *s = 0 ? (char *) 0 : (char const *) 0;
8008
8009    *t++ = 0;
8010  }
8011  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8012    int x[] = {25, 17};
8013    const int *foo = &x[0];
8014    ++foo;
8015  }
8016  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8017    typedef const int *iptr;
8018    iptr p = 0;
8019    ++p;
8020  }
8021  { /* AIX XL C 1.02.0.0 rejects this saying
8022       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8023    struct s { int j; const int *ap[3]; };
8024    struct s *b; b->j = 5;
8025  }
8026  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8027    const int foo = 10;
8028  }
8029#endif
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext
8036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037  (eval $ac_compile) 2>&5
8038  ac_status=$?
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); } &&
8041         { ac_try='test -s conftest.$ac_objext'
8042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043  (eval $ac_try) 2>&5
8044  ac_status=$?
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); }; }; then
8047  ac_cv_c_const=yes
8048else
8049  echo "$as_me: failed program was:" >&5
8050sed 's/^/| /' conftest.$ac_ext >&5
8051
8052ac_cv_c_const=no
8053fi
8054rm -f conftest.$ac_objext conftest.$ac_ext
8055fi
8056echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8057echo "${ECHO_T}$ac_cv_c_const" >&6
8058if test $ac_cv_c_const = no; then
8059
8060cat >>confdefs.h <<\_ACEOF
8061#define const
8062_ACEOF
8063
8064fi
8065
8066echo "$as_me:$LINENO: checking for size_t" >&5
8067echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8068if test "${ac_cv_type_size_t+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  cat >conftest.$ac_ext <<_ACEOF
8072#line $LINENO "configure"
8073/* confdefs.h.  */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h.  */
8078$ac_includes_default
8079int
8080main ()
8081{
8082if ((size_t *) 0)
8083  return 0;
8084if (sizeof (size_t))
8085  return 0;
8086  ;
8087  return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext
8091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8092  (eval $ac_compile) 2>&5
8093  ac_status=$?
8094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095  (exit $ac_status); } &&
8096         { ac_try='test -s conftest.$ac_objext'
8097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098  (eval $ac_try) 2>&5
8099  ac_status=$?
8100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101  (exit $ac_status); }; }; then
8102  ac_cv_type_size_t=yes
8103else
8104  echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
8107ac_cv_type_size_t=no
8108fi
8109rm -f conftest.$ac_objext conftest.$ac_ext
8110fi
8111echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8112echo "${ECHO_T}$ac_cv_type_size_t" >&6
8113if test $ac_cv_type_size_t = yes; then
8114  :
8115else
8116
8117cat >>confdefs.h <<_ACEOF
8118#define size_t unsigned
8119_ACEOF
8120
8121fi
8122
8123
8124echo "$as_me:$LINENO: checking for unsigned long int" >&5
8125echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6
8126if test "${ac_cv_type_unsigned_long_int+set}" = set; then
8127  echo $ECHO_N "(cached) $ECHO_C" >&6
8128else
8129  cat >conftest.$ac_ext <<_ACEOF
8130#line $LINENO "configure"
8131/* confdefs.h.  */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h.  */
8136$ac_includes_default
8137int
8138main ()
8139{
8140if ((unsigned long int *) 0)
8141  return 0;
8142if (sizeof (unsigned long int))
8143  return 0;
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148rm -f conftest.$ac_objext
8149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8150  (eval $ac_compile) 2>&5
8151  ac_status=$?
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); } &&
8154         { ac_try='test -s conftest.$ac_objext'
8155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156  (eval $ac_try) 2>&5
8157  ac_status=$?
8158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159  (exit $ac_status); }; }; then
8160  ac_cv_type_unsigned_long_int=yes
8161else
8162  echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165ac_cv_type_unsigned_long_int=no
8166fi
8167rm -f conftest.$ac_objext conftest.$ac_ext
8168fi
8169echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
8170echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6
8171
8172echo "$as_me:$LINENO: checking size of unsigned long int" >&5
8173echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6
8174if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177  if test "$ac_cv_type_unsigned_long_int" = yes; then
8178  # The cast to unsigned long works around a bug in the HP C Compiler
8179  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8180  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8181  # This bug is HP SR number 8606223364.
8182  if test "$cross_compiling" = yes; then
8183  # Depending upon the size, compute the lo and hi bounds.
8184cat >conftest.$ac_ext <<_ACEOF
8185#line $LINENO "configure"
8186/* confdefs.h.  */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h.  */
8191$ac_includes_default
8192int
8193main ()
8194{
8195static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= 0)];
8196test_array [0] = 0
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204  (eval $ac_compile) 2>&5
8205  ac_status=$?
8206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207  (exit $ac_status); } &&
8208         { ac_try='test -s conftest.$ac_objext'
8209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210  (eval $ac_try) 2>&5
8211  ac_status=$?
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); }; }; then
8214  ac_lo=0 ac_mid=0
8215  while :; do
8216    cat >conftest.$ac_ext <<_ACEOF
8217#line $LINENO "configure"
8218/* confdefs.h.  */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h.  */
8223$ac_includes_default
8224int
8225main ()
8226{
8227static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
8228test_array [0] = 0
8229
8230  ;
8231  return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext
8235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236  (eval $ac_compile) 2>&5
8237  ac_status=$?
8238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239  (exit $ac_status); } &&
8240         { ac_try='test -s conftest.$ac_objext'
8241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242  (eval $ac_try) 2>&5
8243  ac_status=$?
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); }; }; then
8246  ac_hi=$ac_mid; break
8247else
8248  echo "$as_me: failed program was:" >&5
8249sed 's/^/| /' conftest.$ac_ext >&5
8250
8251ac_lo=`expr $ac_mid + 1`
8252                    if test $ac_lo -le $ac_mid; then
8253                      ac_lo= ac_hi=
8254                      break
8255                    fi
8256                    ac_mid=`expr 2 '*' $ac_mid + 1`
8257fi
8258rm -f conftest.$ac_objext conftest.$ac_ext
8259  done
8260else
8261  echo "$as_me: failed program was:" >&5
8262sed 's/^/| /' conftest.$ac_ext >&5
8263
8264cat >conftest.$ac_ext <<_ACEOF
8265#line $LINENO "configure"
8266/* confdefs.h.  */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h.  */
8271$ac_includes_default
8272int
8273main ()
8274{
8275static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) < 0)];
8276test_array [0] = 0
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282rm -f conftest.$ac_objext
8283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284  (eval $ac_compile) 2>&5
8285  ac_status=$?
8286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287  (exit $ac_status); } &&
8288         { ac_try='test -s conftest.$ac_objext'
8289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290  (eval $ac_try) 2>&5
8291  ac_status=$?
8292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293  (exit $ac_status); }; }; then
8294  ac_hi=-1 ac_mid=-1
8295  while :; do
8296    cat >conftest.$ac_ext <<_ACEOF
8297#line $LINENO "configure"
8298/* confdefs.h.  */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h.  */
8303$ac_includes_default
8304int
8305main ()
8306{
8307static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= $ac_mid)];
8308test_array [0] = 0
8309
8310  ;
8311  return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext
8315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316  (eval $ac_compile) 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); } &&
8320         { ac_try='test -s conftest.$ac_objext'
8321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322  (eval $ac_try) 2>&5
8323  ac_status=$?
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); }; }; then
8326  ac_lo=$ac_mid; break
8327else
8328  echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331ac_hi=`expr '(' $ac_mid ')' - 1`
8332                       if test $ac_mid -le $ac_hi; then
8333                         ac_lo= ac_hi=
8334                         break
8335                       fi
8336                       ac_mid=`expr 2 '*' $ac_mid`
8337fi
8338rm -f conftest.$ac_objext conftest.$ac_ext
8339  done
8340else
8341  echo "$as_me: failed program was:" >&5
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
8344ac_lo= ac_hi=
8345fi
8346rm -f conftest.$ac_objext conftest.$ac_ext
8347fi
8348rm -f conftest.$ac_objext conftest.$ac_ext
8349# Binary search between lo and hi bounds.
8350while test "x$ac_lo" != "x$ac_hi"; do
8351  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8352  cat >conftest.$ac_ext <<_ACEOF
8353#line $LINENO "configure"
8354/* confdefs.h.  */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h.  */
8359$ac_includes_default
8360int
8361main ()
8362{
8363static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
8364test_array [0] = 0
8365
8366  ;
8367  return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext
8371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8372  (eval $ac_compile) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); } &&
8376         { ac_try='test -s conftest.$ac_objext'
8377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378  (eval $ac_try) 2>&5
8379  ac_status=$?
8380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381  (exit $ac_status); }; }; then
8382  ac_hi=$ac_mid
8383else
8384  echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387ac_lo=`expr '(' $ac_mid ')' + 1`
8388fi
8389rm -f conftest.$ac_objext conftest.$ac_ext
8390done
8391case $ac_lo in
8392?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
8393'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
8394See \`config.log' for more details." >&5
8395echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
8396See \`config.log' for more details." >&2;}
8397   { (exit 1); exit 1; }; } ;;
8398esac
8399else
8400  if test "$cross_compiling" = yes; then
8401  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8402See \`config.log' for more details." >&5
8403echo "$as_me: error: cannot run test program while cross compiling
8404See \`config.log' for more details." >&2;}
8405   { (exit 1); exit 1; }; }
8406else
8407  cat >conftest.$ac_ext <<_ACEOF
8408#line $LINENO "configure"
8409/* confdefs.h.  */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h.  */
8414$ac_includes_default
8415long longval () { return (long) (sizeof (unsigned long int)); }
8416unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
8417#include <stdio.h>
8418#include <stdlib.h>
8419int
8420main ()
8421{
8422
8423  FILE *f = fopen ("conftest.val", "w");
8424  if (! f)
8425    exit (1);
8426  if (((long) (sizeof (unsigned long int))) < 0)
8427    {
8428      long i = longval ();
8429      if (i != ((long) (sizeof (unsigned long int))))
8430	exit (1);
8431      fprintf (f, "%ld\n", i);
8432    }
8433  else
8434    {
8435      unsigned long i = ulongval ();
8436      if (i != ((long) (sizeof (unsigned long int))))
8437	exit (1);
8438      fprintf (f, "%lu\n", i);
8439    }
8440  exit (ferror (f) || fclose (f) != 0);
8441
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446rm -f conftest$ac_exeext
8447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448  (eval $ac_link) 2>&5
8449  ac_status=$?
8450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453  (eval $ac_try) 2>&5
8454  ac_status=$?
8455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456  (exit $ac_status); }; }; then
8457  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
8458else
8459  echo "$as_me: program exited with status $ac_status" >&5
8460echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463( exit $ac_status )
8464{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
8465See \`config.log' for more details." >&5
8466echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
8467See \`config.log' for more details." >&2;}
8468   { (exit 1); exit 1; }; }
8469fi
8470rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8471fi
8472fi
8473rm -f conftest.val
8474else
8475  ac_cv_sizeof_unsigned_long_int=0
8476fi
8477fi
8478echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
8479echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
8480cat >>confdefs.h <<_ACEOF
8481#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
8482_ACEOF
8483
8484
8485echo "$as_me:$LINENO: checking for long int" >&5
8486echo $ECHO_N "checking for long int... $ECHO_C" >&6
8487if test "${ac_cv_type_long_int+set}" = set; then
8488  echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490  cat >conftest.$ac_ext <<_ACEOF
8491#line $LINENO "configure"
8492/* confdefs.h.  */
8493_ACEOF
8494cat confdefs.h >>conftest.$ac_ext
8495cat >>conftest.$ac_ext <<_ACEOF
8496/* end confdefs.h.  */
8497$ac_includes_default
8498int
8499main ()
8500{
8501if ((long int *) 0)
8502  return 0;
8503if (sizeof (long int))
8504  return 0;
8505  ;
8506  return 0;
8507}
8508_ACEOF
8509rm -f conftest.$ac_objext
8510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511  (eval $ac_compile) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); } &&
8515         { ac_try='test -s conftest.$ac_objext'
8516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517  (eval $ac_try) 2>&5
8518  ac_status=$?
8519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520  (exit $ac_status); }; }; then
8521  ac_cv_type_long_int=yes
8522else
8523  echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526ac_cv_type_long_int=no
8527fi
8528rm -f conftest.$ac_objext conftest.$ac_ext
8529fi
8530echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
8531echo "${ECHO_T}$ac_cv_type_long_int" >&6
8532
8533echo "$as_me:$LINENO: checking size of long int" >&5
8534echo $ECHO_N "checking size of long int... $ECHO_C" >&6
8535if test "${ac_cv_sizeof_long_int+set}" = set; then
8536  echo $ECHO_N "(cached) $ECHO_C" >&6
8537else
8538  if test "$ac_cv_type_long_int" = yes; then
8539  # The cast to unsigned long works around a bug in the HP C Compiler
8540  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8541  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8542  # This bug is HP SR number 8606223364.
8543  if test "$cross_compiling" = yes; then
8544  # Depending upon the size, compute the lo and hi bounds.
8545cat >conftest.$ac_ext <<_ACEOF
8546#line $LINENO "configure"
8547/* confdefs.h.  */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h.  */
8552$ac_includes_default
8553int
8554main ()
8555{
8556static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
8557test_array [0] = 0
8558
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565  (eval $ac_compile) 2>&5
8566  ac_status=$?
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); } &&
8569         { ac_try='test -s conftest.$ac_objext'
8570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571  (eval $ac_try) 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575  ac_lo=0 ac_mid=0
8576  while :; do
8577    cat >conftest.$ac_ext <<_ACEOF
8578#line $LINENO "configure"
8579/* confdefs.h.  */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h.  */
8584$ac_includes_default
8585int
8586main ()
8587{
8588static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
8589test_array [0] = 0
8590
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595rm -f conftest.$ac_objext
8596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597  (eval $ac_compile) 2>&5
8598  ac_status=$?
8599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600  (exit $ac_status); } &&
8601         { ac_try='test -s conftest.$ac_objext'
8602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603  (eval $ac_try) 2>&5
8604  ac_status=$?
8605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606  (exit $ac_status); }; }; then
8607  ac_hi=$ac_mid; break
8608else
8609  echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
8612ac_lo=`expr $ac_mid + 1`
8613                    if test $ac_lo -le $ac_mid; then
8614                      ac_lo= ac_hi=
8615                      break
8616                    fi
8617                    ac_mid=`expr 2 '*' $ac_mid + 1`
8618fi
8619rm -f conftest.$ac_objext conftest.$ac_ext
8620  done
8621else
8622  echo "$as_me: failed program was:" >&5
8623sed 's/^/| /' conftest.$ac_ext >&5
8624
8625cat >conftest.$ac_ext <<_ACEOF
8626#line $LINENO "configure"
8627/* confdefs.h.  */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
8631/* end confdefs.h.  */
8632$ac_includes_default
8633int
8634main ()
8635{
8636static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
8637test_array [0] = 0
8638
8639  ;
8640  return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext
8644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645  (eval $ac_compile) 2>&5
8646  ac_status=$?
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); } &&
8649         { ac_try='test -s conftest.$ac_objext'
8650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651  (eval $ac_try) 2>&5
8652  ac_status=$?
8653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654  (exit $ac_status); }; }; then
8655  ac_hi=-1 ac_mid=-1
8656  while :; do
8657    cat >conftest.$ac_ext <<_ACEOF
8658#line $LINENO "configure"
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 (long int))) >= $ac_mid)];
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>&5
8678  ac_status=$?
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); } &&
8681         { ac_try='test -s conftest.$ac_objext'
8682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683  (eval $ac_try) 2>&5
8684  ac_status=$?
8685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686  (exit $ac_status); }; }; then
8687  ac_lo=$ac_mid; break
8688else
8689  echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692ac_hi=`expr '(' $ac_mid ')' - 1`
8693                       if test $ac_mid -le $ac_hi; then
8694                         ac_lo= ac_hi=
8695                         break
8696                       fi
8697                       ac_mid=`expr 2 '*' $ac_mid`
8698fi
8699rm -f conftest.$ac_objext conftest.$ac_ext
8700  done
8701else
8702  echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705ac_lo= ac_hi=
8706fi
8707rm -f conftest.$ac_objext conftest.$ac_ext
8708fi
8709rm -f conftest.$ac_objext conftest.$ac_ext
8710# Binary search between lo and hi bounds.
8711while test "x$ac_lo" != "x$ac_hi"; do
8712  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8713  cat >conftest.$ac_ext <<_ACEOF
8714#line $LINENO "configure"
8715/* confdefs.h.  */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h.  */
8720$ac_includes_default
8721int
8722main ()
8723{
8724static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
8725test_array [0] = 0
8726
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext
8732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8733  (eval $ac_compile) 2>&5
8734  ac_status=$?
8735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); } &&
8737         { ac_try='test -s conftest.$ac_objext'
8738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739  (eval $ac_try) 2>&5
8740  ac_status=$?
8741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742  (exit $ac_status); }; }; then
8743  ac_hi=$ac_mid
8744else
8745  echo "$as_me: failed program was:" >&5
8746sed 's/^/| /' conftest.$ac_ext >&5
8747
8748ac_lo=`expr '(' $ac_mid ')' + 1`
8749fi
8750rm -f conftest.$ac_objext conftest.$ac_ext
8751done
8752case $ac_lo in
8753?*) ac_cv_sizeof_long_int=$ac_lo;;
8754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
8755See \`config.log' for more details." >&5
8756echo "$as_me: error: cannot compute sizeof (long int), 77
8757See \`config.log' for more details." >&2;}
8758   { (exit 1); exit 1; }; } ;;
8759esac
8760else
8761  if test "$cross_compiling" = yes; then
8762  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8763See \`config.log' for more details." >&5
8764echo "$as_me: error: cannot run test program while cross compiling
8765See \`config.log' for more details." >&2;}
8766   { (exit 1); exit 1; }; }
8767else
8768  cat >conftest.$ac_ext <<_ACEOF
8769#line $LINENO "configure"
8770/* confdefs.h.  */
8771_ACEOF
8772cat confdefs.h >>conftest.$ac_ext
8773cat >>conftest.$ac_ext <<_ACEOF
8774/* end confdefs.h.  */
8775$ac_includes_default
8776long longval () { return (long) (sizeof (long int)); }
8777unsigned long ulongval () { return (long) (sizeof (long int)); }
8778#include <stdio.h>
8779#include <stdlib.h>
8780int
8781main ()
8782{
8783
8784  FILE *f = fopen ("conftest.val", "w");
8785  if (! f)
8786    exit (1);
8787  if (((long) (sizeof (long int))) < 0)
8788    {
8789      long i = longval ();
8790      if (i != ((long) (sizeof (long int))))
8791	exit (1);
8792      fprintf (f, "%ld\n", i);
8793    }
8794  else
8795    {
8796      unsigned long i = ulongval ();
8797      if (i != ((long) (sizeof (long int))))
8798	exit (1);
8799      fprintf (f, "%lu\n", i);
8800    }
8801  exit (ferror (f) || fclose (f) != 0);
8802
8803  ;
8804  return 0;
8805}
8806_ACEOF
8807rm -f conftest$ac_exeext
8808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809  (eval $ac_link) 2>&5
8810  ac_status=$?
8811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814  (eval $ac_try) 2>&5
8815  ac_status=$?
8816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817  (exit $ac_status); }; }; then
8818  ac_cv_sizeof_long_int=`cat conftest.val`
8819else
8820  echo "$as_me: program exited with status $ac_status" >&5
8821echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824( exit $ac_status )
8825{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
8826See \`config.log' for more details." >&5
8827echo "$as_me: error: cannot compute sizeof (long int), 77
8828See \`config.log' for more details." >&2;}
8829   { (exit 1); exit 1; }; }
8830fi
8831rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8832fi
8833fi
8834rm -f conftest.val
8835else
8836  ac_cv_sizeof_long_int=0
8837fi
8838fi
8839echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
8840echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
8841cat >>confdefs.h <<_ACEOF
8842#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8843_ACEOF
8844
8845
8846echo "$as_me:$LINENO: checking for unsigned int" >&5
8847echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
8848if test "${ac_cv_type_unsigned_int+set}" = set; then
8849  echo $ECHO_N "(cached) $ECHO_C" >&6
8850else
8851  cat >conftest.$ac_ext <<_ACEOF
8852#line $LINENO "configure"
8853/* confdefs.h.  */
8854_ACEOF
8855cat confdefs.h >>conftest.$ac_ext
8856cat >>conftest.$ac_ext <<_ACEOF
8857/* end confdefs.h.  */
8858$ac_includes_default
8859int
8860main ()
8861{
8862if ((unsigned int *) 0)
8863  return 0;
8864if (sizeof (unsigned int))
8865  return 0;
8866  ;
8867  return 0;
8868}
8869_ACEOF
8870rm -f conftest.$ac_objext
8871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872  (eval $ac_compile) 2>&5
8873  ac_status=$?
8874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875  (exit $ac_status); } &&
8876         { ac_try='test -s conftest.$ac_objext'
8877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878  (eval $ac_try) 2>&5
8879  ac_status=$?
8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881  (exit $ac_status); }; }; then
8882  ac_cv_type_unsigned_int=yes
8883else
8884  echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887ac_cv_type_unsigned_int=no
8888fi
8889rm -f conftest.$ac_objext conftest.$ac_ext
8890fi
8891echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
8892echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
8893
8894echo "$as_me:$LINENO: checking size of unsigned int" >&5
8895echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
8896if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
8897  echo $ECHO_N "(cached) $ECHO_C" >&6
8898else
8899  if test "$ac_cv_type_unsigned_int" = yes; then
8900  # The cast to unsigned long works around a bug in the HP C Compiler
8901  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8902  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8903  # This bug is HP SR number 8606223364.
8904  if test "$cross_compiling" = yes; then
8905  # Depending upon the size, compute the lo and hi bounds.
8906cat >conftest.$ac_ext <<_ACEOF
8907#line $LINENO "configure"
8908/* confdefs.h.  */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h.  */
8913$ac_includes_default
8914int
8915main ()
8916{
8917static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
8918test_array [0] = 0
8919
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext
8925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926  (eval $ac_compile) 2>&5
8927  ac_status=$?
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); } &&
8930         { ac_try='test -s conftest.$ac_objext'
8931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932  (eval $ac_try) 2>&5
8933  ac_status=$?
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); }; }; then
8936  ac_lo=0 ac_mid=0
8937  while :; do
8938    cat >conftest.$ac_ext <<_ACEOF
8939#line $LINENO "configure"
8940/* confdefs.h.  */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h.  */
8945$ac_includes_default
8946int
8947main ()
8948{
8949static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
8950test_array [0] = 0
8951
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956rm -f conftest.$ac_objext
8957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958  (eval $ac_compile) 2>&5
8959  ac_status=$?
8960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961  (exit $ac_status); } &&
8962         { ac_try='test -s conftest.$ac_objext'
8963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964  (eval $ac_try) 2>&5
8965  ac_status=$?
8966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967  (exit $ac_status); }; }; then
8968  ac_hi=$ac_mid; break
8969else
8970  echo "$as_me: failed program was:" >&5
8971sed 's/^/| /' conftest.$ac_ext >&5
8972
8973ac_lo=`expr $ac_mid + 1`
8974                    if test $ac_lo -le $ac_mid; then
8975                      ac_lo= ac_hi=
8976                      break
8977                    fi
8978                    ac_mid=`expr 2 '*' $ac_mid + 1`
8979fi
8980rm -f conftest.$ac_objext conftest.$ac_ext
8981  done
8982else
8983  echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
8986cat >conftest.$ac_ext <<_ACEOF
8987#line $LINENO "configure"
8988/* confdefs.h.  */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h.  */
8993$ac_includes_default
8994int
8995main ()
8996{
8997static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
8998test_array [0] = 0
8999
9000  ;
9001  return 0;
9002}
9003_ACEOF
9004rm -f conftest.$ac_objext
9005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006  (eval $ac_compile) 2>&5
9007  ac_status=$?
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); } &&
9010         { ac_try='test -s conftest.$ac_objext'
9011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012  (eval $ac_try) 2>&5
9013  ac_status=$?
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); }; }; then
9016  ac_hi=-1 ac_mid=-1
9017  while :; do
9018    cat >conftest.$ac_ext <<_ACEOF
9019#line $LINENO "configure"
9020/* confdefs.h.  */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h.  */
9025$ac_includes_default
9026int
9027main ()
9028{
9029static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
9030test_array [0] = 0
9031
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext
9037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038  (eval $ac_compile) 2>&5
9039  ac_status=$?
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); } &&
9042         { ac_try='test -s conftest.$ac_objext'
9043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044  (eval $ac_try) 2>&5
9045  ac_status=$?
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); }; }; then
9048  ac_lo=$ac_mid; break
9049else
9050  echo "$as_me: failed program was:" >&5
9051sed 's/^/| /' conftest.$ac_ext >&5
9052
9053ac_hi=`expr '(' $ac_mid ')' - 1`
9054                       if test $ac_mid -le $ac_hi; then
9055                         ac_lo= ac_hi=
9056                         break
9057                       fi
9058                       ac_mid=`expr 2 '*' $ac_mid`
9059fi
9060rm -f conftest.$ac_objext conftest.$ac_ext
9061  done
9062else
9063  echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
9066ac_lo= ac_hi=
9067fi
9068rm -f conftest.$ac_objext conftest.$ac_ext
9069fi
9070rm -f conftest.$ac_objext conftest.$ac_ext
9071# Binary search between lo and hi bounds.
9072while test "x$ac_lo" != "x$ac_hi"; do
9073  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9074  cat >conftest.$ac_ext <<_ACEOF
9075#line $LINENO "configure"
9076/* confdefs.h.  */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h.  */
9081$ac_includes_default
9082int
9083main ()
9084{
9085static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
9086test_array [0] = 0
9087
9088  ;
9089  return 0;
9090}
9091_ACEOF
9092rm -f conftest.$ac_objext
9093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094  (eval $ac_compile) 2>&5
9095  ac_status=$?
9096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097  (exit $ac_status); } &&
9098         { ac_try='test -s conftest.$ac_objext'
9099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100  (eval $ac_try) 2>&5
9101  ac_status=$?
9102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103  (exit $ac_status); }; }; then
9104  ac_hi=$ac_mid
9105else
9106  echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109ac_lo=`expr '(' $ac_mid ')' + 1`
9110fi
9111rm -f conftest.$ac_objext conftest.$ac_ext
9112done
9113case $ac_lo in
9114?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
9115'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
9116See \`config.log' for more details." >&5
9117echo "$as_me: error: cannot compute sizeof (unsigned int), 77
9118See \`config.log' for more details." >&2;}
9119   { (exit 1); exit 1; }; } ;;
9120esac
9121else
9122  if test "$cross_compiling" = yes; then
9123  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9124See \`config.log' for more details." >&5
9125echo "$as_me: error: cannot run test program while cross compiling
9126See \`config.log' for more details." >&2;}
9127   { (exit 1); exit 1; }; }
9128else
9129  cat >conftest.$ac_ext <<_ACEOF
9130#line $LINENO "configure"
9131/* confdefs.h.  */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h.  */
9136$ac_includes_default
9137long longval () { return (long) (sizeof (unsigned int)); }
9138unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
9139#include <stdio.h>
9140#include <stdlib.h>
9141int
9142main ()
9143{
9144
9145  FILE *f = fopen ("conftest.val", "w");
9146  if (! f)
9147    exit (1);
9148  if (((long) (sizeof (unsigned int))) < 0)
9149    {
9150      long i = longval ();
9151      if (i != ((long) (sizeof (unsigned int))))
9152	exit (1);
9153      fprintf (f, "%ld\n", i);
9154    }
9155  else
9156    {
9157      unsigned long i = ulongval ();
9158      if (i != ((long) (sizeof (unsigned int))))
9159	exit (1);
9160      fprintf (f, "%lu\n", i);
9161    }
9162  exit (ferror (f) || fclose (f) != 0);
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168rm -f conftest$ac_exeext
9169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170  (eval $ac_link) 2>&5
9171  ac_status=$?
9172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175  (eval $ac_try) 2>&5
9176  ac_status=$?
9177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178  (exit $ac_status); }; }; then
9179  ac_cv_sizeof_unsigned_int=`cat conftest.val`
9180else
9181  echo "$as_me: program exited with status $ac_status" >&5
9182echo "$as_me: failed program was:" >&5
9183sed 's/^/| /' conftest.$ac_ext >&5
9184
9185( exit $ac_status )
9186{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
9187See \`config.log' for more details." >&5
9188echo "$as_me: error: cannot compute sizeof (unsigned int), 77
9189See \`config.log' for more details." >&2;}
9190   { (exit 1); exit 1; }; }
9191fi
9192rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9193fi
9194fi
9195rm -f conftest.val
9196else
9197  ac_cv_sizeof_unsigned_int=0
9198fi
9199fi
9200echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
9201echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
9202cat >>confdefs.h <<_ACEOF
9203#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
9204_ACEOF
9205
9206
9207echo "$as_me:$LINENO: checking for int" >&5
9208echo $ECHO_N "checking for int... $ECHO_C" >&6
9209if test "${ac_cv_type_int+set}" = set; then
9210  echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212  cat >conftest.$ac_ext <<_ACEOF
9213#line $LINENO "configure"
9214/* confdefs.h.  */
9215_ACEOF
9216cat confdefs.h >>conftest.$ac_ext
9217cat >>conftest.$ac_ext <<_ACEOF
9218/* end confdefs.h.  */
9219$ac_includes_default
9220int
9221main ()
9222{
9223if ((int *) 0)
9224  return 0;
9225if (sizeof (int))
9226  return 0;
9227  ;
9228  return 0;
9229}
9230_ACEOF
9231rm -f conftest.$ac_objext
9232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233  (eval $ac_compile) 2>&5
9234  ac_status=$?
9235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236  (exit $ac_status); } &&
9237         { ac_try='test -s conftest.$ac_objext'
9238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239  (eval $ac_try) 2>&5
9240  ac_status=$?
9241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242  (exit $ac_status); }; }; then
9243  ac_cv_type_int=yes
9244else
9245  echo "$as_me: failed program was:" >&5
9246sed 's/^/| /' conftest.$ac_ext >&5
9247
9248ac_cv_type_int=no
9249fi
9250rm -f conftest.$ac_objext conftest.$ac_ext
9251fi
9252echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9253echo "${ECHO_T}$ac_cv_type_int" >&6
9254
9255echo "$as_me:$LINENO: checking size of int" >&5
9256echo $ECHO_N "checking size of int... $ECHO_C" >&6
9257if test "${ac_cv_sizeof_int+set}" = set; then
9258  echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260  if test "$ac_cv_type_int" = yes; then
9261  # The cast to unsigned long works around a bug in the HP C Compiler
9262  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9263  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9264  # This bug is HP SR number 8606223364.
9265  if test "$cross_compiling" = yes; then
9266  # Depending upon the size, compute the lo and hi bounds.
9267cat >conftest.$ac_ext <<_ACEOF
9268#line $LINENO "configure"
9269/* confdefs.h.  */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h.  */
9274$ac_includes_default
9275int
9276main ()
9277{
9278static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9279test_array [0] = 0
9280
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext
9286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287  (eval $ac_compile) 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); } &&
9291         { ac_try='test -s conftest.$ac_objext'
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_lo=0 ac_mid=0
9298  while :; do
9299    cat >conftest.$ac_ext <<_ACEOF
9300#line $LINENO "configure"
9301/* confdefs.h.  */
9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
9305/* end confdefs.h.  */
9306$ac_includes_default
9307int
9308main ()
9309{
9310static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9311test_array [0] = 0
9312
9313  ;
9314  return 0;
9315}
9316_ACEOF
9317rm -f conftest.$ac_objext
9318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319  (eval $ac_compile) 2>&5
9320  ac_status=$?
9321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322  (exit $ac_status); } &&
9323         { ac_try='test -s conftest.$ac_objext'
9324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325  (eval $ac_try) 2>&5
9326  ac_status=$?
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); }; }; then
9329  ac_hi=$ac_mid; break
9330else
9331  echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
9334ac_lo=`expr $ac_mid + 1`
9335                    if test $ac_lo -le $ac_mid; then
9336                      ac_lo= ac_hi=
9337                      break
9338                    fi
9339                    ac_mid=`expr 2 '*' $ac_mid + 1`
9340fi
9341rm -f conftest.$ac_objext conftest.$ac_ext
9342  done
9343else
9344  echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347cat >conftest.$ac_ext <<_ACEOF
9348#line $LINENO "configure"
9349/* confdefs.h.  */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h.  */
9354$ac_includes_default
9355int
9356main ()
9357{
9358static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9359test_array [0] = 0
9360
9361  ;
9362  return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext
9366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367  (eval $ac_compile) 2>&5
9368  ac_status=$?
9369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370  (exit $ac_status); } &&
9371         { ac_try='test -s conftest.$ac_objext'
9372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373  (eval $ac_try) 2>&5
9374  ac_status=$?
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); }; }; then
9377  ac_hi=-1 ac_mid=-1
9378  while :; do
9379    cat >conftest.$ac_ext <<_ACEOF
9380#line $LINENO "configure"
9381/* confdefs.h.  */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h.  */
9386$ac_includes_default
9387int
9388main ()
9389{
9390static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9391test_array [0] = 0
9392
9393  ;
9394  return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext
9398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399  (eval $ac_compile) 2>&5
9400  ac_status=$?
9401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402  (exit $ac_status); } &&
9403         { ac_try='test -s conftest.$ac_objext'
9404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405  (eval $ac_try) 2>&5
9406  ac_status=$?
9407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408  (exit $ac_status); }; }; then
9409  ac_lo=$ac_mid; break
9410else
9411  echo "$as_me: failed program was:" >&5
9412sed 's/^/| /' conftest.$ac_ext >&5
9413
9414ac_hi=`expr '(' $ac_mid ')' - 1`
9415                       if test $ac_mid -le $ac_hi; then
9416                         ac_lo= ac_hi=
9417                         break
9418                       fi
9419                       ac_mid=`expr 2 '*' $ac_mid`
9420fi
9421rm -f conftest.$ac_objext conftest.$ac_ext
9422  done
9423else
9424  echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427ac_lo= ac_hi=
9428fi
9429rm -f conftest.$ac_objext conftest.$ac_ext
9430fi
9431rm -f conftest.$ac_objext conftest.$ac_ext
9432# Binary search between lo and hi bounds.
9433while test "x$ac_lo" != "x$ac_hi"; do
9434  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9435  cat >conftest.$ac_ext <<_ACEOF
9436#line $LINENO "configure"
9437/* confdefs.h.  */
9438_ACEOF
9439cat confdefs.h >>conftest.$ac_ext
9440cat >>conftest.$ac_ext <<_ACEOF
9441/* end confdefs.h.  */
9442$ac_includes_default
9443int
9444main ()
9445{
9446static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9447test_array [0] = 0
9448
9449  ;
9450  return 0;
9451}
9452_ACEOF
9453rm -f conftest.$ac_objext
9454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455  (eval $ac_compile) 2>&5
9456  ac_status=$?
9457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458  (exit $ac_status); } &&
9459         { ac_try='test -s conftest.$ac_objext'
9460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461  (eval $ac_try) 2>&5
9462  ac_status=$?
9463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464  (exit $ac_status); }; }; then
9465  ac_hi=$ac_mid
9466else
9467  echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470ac_lo=`expr '(' $ac_mid ')' + 1`
9471fi
9472rm -f conftest.$ac_objext conftest.$ac_ext
9473done
9474case $ac_lo in
9475?*) ac_cv_sizeof_int=$ac_lo;;
9476'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9477See \`config.log' for more details." >&5
9478echo "$as_me: error: cannot compute sizeof (int), 77
9479See \`config.log' for more details." >&2;}
9480   { (exit 1); exit 1; }; } ;;
9481esac
9482else
9483  if test "$cross_compiling" = yes; then
9484  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9485See \`config.log' for more details." >&5
9486echo "$as_me: error: cannot run test program while cross compiling
9487See \`config.log' for more details." >&2;}
9488   { (exit 1); exit 1; }; }
9489else
9490  cat >conftest.$ac_ext <<_ACEOF
9491#line $LINENO "configure"
9492/* confdefs.h.  */
9493_ACEOF
9494cat confdefs.h >>conftest.$ac_ext
9495cat >>conftest.$ac_ext <<_ACEOF
9496/* end confdefs.h.  */
9497$ac_includes_default
9498long longval () { return (long) (sizeof (int)); }
9499unsigned long ulongval () { return (long) (sizeof (int)); }
9500#include <stdio.h>
9501#include <stdlib.h>
9502int
9503main ()
9504{
9505
9506  FILE *f = fopen ("conftest.val", "w");
9507  if (! f)
9508    exit (1);
9509  if (((long) (sizeof (int))) < 0)
9510    {
9511      long i = longval ();
9512      if (i != ((long) (sizeof (int))))
9513	exit (1);
9514      fprintf (f, "%ld\n", i);
9515    }
9516  else
9517    {
9518      unsigned long i = ulongval ();
9519      if (i != ((long) (sizeof (int))))
9520	exit (1);
9521      fprintf (f, "%lu\n", i);
9522    }
9523  exit (ferror (f) || fclose (f) != 0);
9524
9525  ;
9526  return 0;
9527}
9528_ACEOF
9529rm -f conftest$ac_exeext
9530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531  (eval $ac_link) 2>&5
9532  ac_status=$?
9533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536  (eval $ac_try) 2>&5
9537  ac_status=$?
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); }; }; then
9540  ac_cv_sizeof_int=`cat conftest.val`
9541else
9542  echo "$as_me: program exited with status $ac_status" >&5
9543echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546( exit $ac_status )
9547{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9548See \`config.log' for more details." >&5
9549echo "$as_me: error: cannot compute sizeof (int), 77
9550See \`config.log' for more details." >&2;}
9551   { (exit 1); exit 1; }; }
9552fi
9553rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9554fi
9555fi
9556rm -f conftest.val
9557else
9558  ac_cv_sizeof_int=0
9559fi
9560fi
9561echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9562echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9563cat >>confdefs.h <<_ACEOF
9564#define SIZEOF_INT $ac_cv_sizeof_int
9565_ACEOF
9566
9567
9568echo "$as_me:$LINENO: checking for unsigned short int" >&5
9569echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6
9570if test "${ac_cv_type_unsigned_short_int+set}" = set; then
9571  echo $ECHO_N "(cached) $ECHO_C" >&6
9572else
9573  cat >conftest.$ac_ext <<_ACEOF
9574#line $LINENO "configure"
9575/* confdefs.h.  */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h.  */
9580$ac_includes_default
9581int
9582main ()
9583{
9584if ((unsigned short int *) 0)
9585  return 0;
9586if (sizeof (unsigned short int))
9587  return 0;
9588  ;
9589  return 0;
9590}
9591_ACEOF
9592rm -f conftest.$ac_objext
9593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9594  (eval $ac_compile) 2>&5
9595  ac_status=$?
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); } &&
9598         { ac_try='test -s conftest.$ac_objext'
9599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600  (eval $ac_try) 2>&5
9601  ac_status=$?
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); }; }; then
9604  ac_cv_type_unsigned_short_int=yes
9605else
9606  echo "$as_me: failed program was:" >&5
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
9609ac_cv_type_unsigned_short_int=no
9610fi
9611rm -f conftest.$ac_objext conftest.$ac_ext
9612fi
9613echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
9614echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6
9615
9616echo "$as_me:$LINENO: checking size of unsigned short int" >&5
9617echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6
9618if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
9619  echo $ECHO_N "(cached) $ECHO_C" >&6
9620else
9621  if test "$ac_cv_type_unsigned_short_int" = yes; then
9622  # The cast to unsigned long works around a bug in the HP C Compiler
9623  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9624  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9625  # This bug is HP SR number 8606223364.
9626  if test "$cross_compiling" = yes; then
9627  # Depending upon the size, compute the lo and hi bounds.
9628cat >conftest.$ac_ext <<_ACEOF
9629#line $LINENO "configure"
9630/* confdefs.h.  */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h.  */
9635$ac_includes_default
9636int
9637main ()
9638{
9639static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)];
9640test_array [0] = 0
9641
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646rm -f conftest.$ac_objext
9647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9648  (eval $ac_compile) 2>&5
9649  ac_status=$?
9650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651  (exit $ac_status); } &&
9652         { ac_try='test -s conftest.$ac_objext'
9653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654  (eval $ac_try) 2>&5
9655  ac_status=$?
9656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657  (exit $ac_status); }; }; then
9658  ac_lo=0 ac_mid=0
9659  while :; do
9660    cat >conftest.$ac_ext <<_ACEOF
9661#line $LINENO "configure"
9662/* confdefs.h.  */
9663_ACEOF
9664cat confdefs.h >>conftest.$ac_ext
9665cat >>conftest.$ac_ext <<_ACEOF
9666/* end confdefs.h.  */
9667$ac_includes_default
9668int
9669main ()
9670{
9671static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
9672test_array [0] = 0
9673
9674  ;
9675  return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680  (eval $ac_compile) 2>&5
9681  ac_status=$?
9682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683  (exit $ac_status); } &&
9684         { ac_try='test -s conftest.$ac_objext'
9685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686  (eval $ac_try) 2>&5
9687  ac_status=$?
9688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689  (exit $ac_status); }; }; then
9690  ac_hi=$ac_mid; break
9691else
9692  echo "$as_me: failed program was:" >&5
9693sed 's/^/| /' conftest.$ac_ext >&5
9694
9695ac_lo=`expr $ac_mid + 1`
9696                    if test $ac_lo -le $ac_mid; then
9697                      ac_lo= ac_hi=
9698                      break
9699                    fi
9700                    ac_mid=`expr 2 '*' $ac_mid + 1`
9701fi
9702rm -f conftest.$ac_objext conftest.$ac_ext
9703  done
9704else
9705  echo "$as_me: failed program was:" >&5
9706sed 's/^/| /' conftest.$ac_ext >&5
9707
9708cat >conftest.$ac_ext <<_ACEOF
9709#line $LINENO "configure"
9710/* confdefs.h.  */
9711_ACEOF
9712cat confdefs.h >>conftest.$ac_ext
9713cat >>conftest.$ac_ext <<_ACEOF
9714/* end confdefs.h.  */
9715$ac_includes_default
9716int
9717main ()
9718{
9719static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)];
9720test_array [0] = 0
9721
9722  ;
9723  return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext
9727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728  (eval $ac_compile) 2>&5
9729  ac_status=$?
9730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731  (exit $ac_status); } &&
9732         { ac_try='test -s conftest.$ac_objext'
9733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734  (eval $ac_try) 2>&5
9735  ac_status=$?
9736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737  (exit $ac_status); }; }; then
9738  ac_hi=-1 ac_mid=-1
9739  while :; do
9740    cat >conftest.$ac_ext <<_ACEOF
9741#line $LINENO "configure"
9742/* confdefs.h.  */
9743_ACEOF
9744cat confdefs.h >>conftest.$ac_ext
9745cat >>conftest.$ac_ext <<_ACEOF
9746/* end confdefs.h.  */
9747$ac_includes_default
9748int
9749main ()
9750{
9751static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)];
9752test_array [0] = 0
9753
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758rm -f conftest.$ac_objext
9759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9760  (eval $ac_compile) 2>&5
9761  ac_status=$?
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); } &&
9764         { ac_try='test -s conftest.$ac_objext'
9765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766  (eval $ac_try) 2>&5
9767  ac_status=$?
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); }; }; then
9770  ac_lo=$ac_mid; break
9771else
9772  echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775ac_hi=`expr '(' $ac_mid ')' - 1`
9776                       if test $ac_mid -le $ac_hi; then
9777                         ac_lo= ac_hi=
9778                         break
9779                       fi
9780                       ac_mid=`expr 2 '*' $ac_mid`
9781fi
9782rm -f conftest.$ac_objext conftest.$ac_ext
9783  done
9784else
9785  echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
9788ac_lo= ac_hi=
9789fi
9790rm -f conftest.$ac_objext conftest.$ac_ext
9791fi
9792rm -f conftest.$ac_objext conftest.$ac_ext
9793# Binary search between lo and hi bounds.
9794while test "x$ac_lo" != "x$ac_hi"; do
9795  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9796  cat >conftest.$ac_ext <<_ACEOF
9797#line $LINENO "configure"
9798/* confdefs.h.  */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h.  */
9803$ac_includes_default
9804int
9805main ()
9806{
9807static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
9808test_array [0] = 0
9809
9810  ;
9811  return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext
9815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816  (eval $ac_compile) 2>&5
9817  ac_status=$?
9818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819  (exit $ac_status); } &&
9820         { ac_try='test -s conftest.$ac_objext'
9821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822  (eval $ac_try) 2>&5
9823  ac_status=$?
9824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825  (exit $ac_status); }; }; then
9826  ac_hi=$ac_mid
9827else
9828  echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831ac_lo=`expr '(' $ac_mid ')' + 1`
9832fi
9833rm -f conftest.$ac_objext conftest.$ac_ext
9834done
9835case $ac_lo in
9836?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
9837'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
9838See \`config.log' for more details." >&5
9839echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
9840See \`config.log' for more details." >&2;}
9841   { (exit 1); exit 1; }; } ;;
9842esac
9843else
9844  if test "$cross_compiling" = yes; then
9845  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9846See \`config.log' for more details." >&5
9847echo "$as_me: error: cannot run test program while cross compiling
9848See \`config.log' for more details." >&2;}
9849   { (exit 1); exit 1; }; }
9850else
9851  cat >conftest.$ac_ext <<_ACEOF
9852#line $LINENO "configure"
9853/* confdefs.h.  */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
9857/* end confdefs.h.  */
9858$ac_includes_default
9859long longval () { return (long) (sizeof (unsigned short int)); }
9860unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
9861#include <stdio.h>
9862#include <stdlib.h>
9863int
9864main ()
9865{
9866
9867  FILE *f = fopen ("conftest.val", "w");
9868  if (! f)
9869    exit (1);
9870  if (((long) (sizeof (unsigned short int))) < 0)
9871    {
9872      long i = longval ();
9873      if (i != ((long) (sizeof (unsigned short int))))
9874	exit (1);
9875      fprintf (f, "%ld\n", i);
9876    }
9877  else
9878    {
9879      unsigned long i = ulongval ();
9880      if (i != ((long) (sizeof (unsigned short int))))
9881	exit (1);
9882      fprintf (f, "%lu\n", i);
9883    }
9884  exit (ferror (f) || fclose (f) != 0);
9885
9886  ;
9887  return 0;
9888}
9889_ACEOF
9890rm -f conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892  (eval $ac_link) 2>&5
9893  ac_status=$?
9894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897  (eval $ac_try) 2>&5
9898  ac_status=$?
9899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); }; }; then
9901  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
9902else
9903  echo "$as_me: program exited with status $ac_status" >&5
9904echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907( exit $ac_status )
9908{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
9909See \`config.log' for more details." >&5
9910echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
9911See \`config.log' for more details." >&2;}
9912   { (exit 1); exit 1; }; }
9913fi
9914rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9915fi
9916fi
9917rm -f conftest.val
9918else
9919  ac_cv_sizeof_unsigned_short_int=0
9920fi
9921fi
9922echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
9923echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
9924cat >>confdefs.h <<_ACEOF
9925#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
9926_ACEOF
9927
9928
9929echo "$as_me:$LINENO: checking for short int" >&5
9930echo $ECHO_N "checking for short int... $ECHO_C" >&6
9931if test "${ac_cv_type_short_int+set}" = set; then
9932  echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934  cat >conftest.$ac_ext <<_ACEOF
9935#line $LINENO "configure"
9936/* confdefs.h.  */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h.  */
9941$ac_includes_default
9942int
9943main ()
9944{
9945if ((short int *) 0)
9946  return 0;
9947if (sizeof (short int))
9948  return 0;
9949  ;
9950  return 0;
9951}
9952_ACEOF
9953rm -f conftest.$ac_objext
9954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955  (eval $ac_compile) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); } &&
9959         { ac_try='test -s conftest.$ac_objext'
9960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961  (eval $ac_try) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; }; then
9965  ac_cv_type_short_int=yes
9966else
9967  echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970ac_cv_type_short_int=no
9971fi
9972rm -f conftest.$ac_objext conftest.$ac_ext
9973fi
9974echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
9975echo "${ECHO_T}$ac_cv_type_short_int" >&6
9976
9977echo "$as_me:$LINENO: checking size of short int" >&5
9978echo $ECHO_N "checking size of short int... $ECHO_C" >&6
9979if test "${ac_cv_sizeof_short_int+set}" = set; then
9980  echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982  if test "$ac_cv_type_short_int" = yes; then
9983  # The cast to unsigned long works around a bug in the HP C Compiler
9984  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9985  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9986  # This bug is HP SR number 8606223364.
9987  if test "$cross_compiling" = yes; then
9988  # Depending upon the size, compute the lo and hi bounds.
9989cat >conftest.$ac_ext <<_ACEOF
9990#line $LINENO "configure"
9991/* confdefs.h.  */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h.  */
9996$ac_includes_default
9997int
9998main ()
9999{
10000static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
10001test_array [0] = 0
10002
10003  ;
10004  return 0;
10005}
10006_ACEOF
10007rm -f conftest.$ac_objext
10008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10009  (eval $ac_compile) 2>&5
10010  ac_status=$?
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); } &&
10013         { ac_try='test -s conftest.$ac_objext'
10014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015  (eval $ac_try) 2>&5
10016  ac_status=$?
10017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); }; }; then
10019  ac_lo=0 ac_mid=0
10020  while :; do
10021    cat >conftest.$ac_ext <<_ACEOF
10022#line $LINENO "configure"
10023/* confdefs.h.  */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h.  */
10028$ac_includes_default
10029int
10030main ()
10031{
10032static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
10033test_array [0] = 0
10034
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041  (eval $ac_compile) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); } &&
10045         { ac_try='test -s conftest.$ac_objext'
10046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047  (eval $ac_try) 2>&5
10048  ac_status=$?
10049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050  (exit $ac_status); }; }; then
10051  ac_hi=$ac_mid; break
10052else
10053  echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
10056ac_lo=`expr $ac_mid + 1`
10057                    if test $ac_lo -le $ac_mid; then
10058                      ac_lo= ac_hi=
10059                      break
10060                    fi
10061                    ac_mid=`expr 2 '*' $ac_mid + 1`
10062fi
10063rm -f conftest.$ac_objext conftest.$ac_ext
10064  done
10065else
10066  echo "$as_me: failed program was:" >&5
10067sed 's/^/| /' conftest.$ac_ext >&5
10068
10069cat >conftest.$ac_ext <<_ACEOF
10070#line $LINENO "configure"
10071/* confdefs.h.  */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h.  */
10076$ac_includes_default
10077int
10078main ()
10079{
10080static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
10081test_array [0] = 0
10082
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext
10088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089  (eval $ac_compile) 2>&5
10090  ac_status=$?
10091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092  (exit $ac_status); } &&
10093         { ac_try='test -s conftest.$ac_objext'
10094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095  (eval $ac_try) 2>&5
10096  ac_status=$?
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); }; }; then
10099  ac_hi=-1 ac_mid=-1
10100  while :; do
10101    cat >conftest.$ac_ext <<_ACEOF
10102#line $LINENO "configure"
10103/* confdefs.h.  */
10104_ACEOF
10105cat confdefs.h >>conftest.$ac_ext
10106cat >>conftest.$ac_ext <<_ACEOF
10107/* end confdefs.h.  */
10108$ac_includes_default
10109int
10110main ()
10111{
10112static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
10113test_array [0] = 0
10114
10115  ;
10116  return 0;
10117}
10118_ACEOF
10119rm -f conftest.$ac_objext
10120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121  (eval $ac_compile) 2>&5
10122  ac_status=$?
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); } &&
10125         { ac_try='test -s conftest.$ac_objext'
10126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127  (eval $ac_try) 2>&5
10128  ac_status=$?
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); }; }; then
10131  ac_lo=$ac_mid; break
10132else
10133  echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
10136ac_hi=`expr '(' $ac_mid ')' - 1`
10137                       if test $ac_mid -le $ac_hi; then
10138                         ac_lo= ac_hi=
10139                         break
10140                       fi
10141                       ac_mid=`expr 2 '*' $ac_mid`
10142fi
10143rm -f conftest.$ac_objext conftest.$ac_ext
10144  done
10145else
10146  echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149ac_lo= ac_hi=
10150fi
10151rm -f conftest.$ac_objext conftest.$ac_ext
10152fi
10153rm -f conftest.$ac_objext conftest.$ac_ext
10154# Binary search between lo and hi bounds.
10155while test "x$ac_lo" != "x$ac_hi"; do
10156  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10157  cat >conftest.$ac_ext <<_ACEOF
10158#line $LINENO "configure"
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164$ac_includes_default
10165int
10166main ()
10167{
10168static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
10169test_array [0] = 0
10170
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext
10176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177  (eval $ac_compile) 2>&5
10178  ac_status=$?
10179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180  (exit $ac_status); } &&
10181         { ac_try='test -s conftest.$ac_objext'
10182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183  (eval $ac_try) 2>&5
10184  ac_status=$?
10185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186  (exit $ac_status); }; }; then
10187  ac_hi=$ac_mid
10188else
10189  echo "$as_me: failed program was:" >&5
10190sed 's/^/| /' conftest.$ac_ext >&5
10191
10192ac_lo=`expr '(' $ac_mid ')' + 1`
10193fi
10194rm -f conftest.$ac_objext conftest.$ac_ext
10195done
10196case $ac_lo in
10197?*) ac_cv_sizeof_short_int=$ac_lo;;
10198'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
10199See \`config.log' for more details." >&5
10200echo "$as_me: error: cannot compute sizeof (short int), 77
10201See \`config.log' for more details." >&2;}
10202   { (exit 1); exit 1; }; } ;;
10203esac
10204else
10205  if test "$cross_compiling" = yes; then
10206  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10207See \`config.log' for more details." >&5
10208echo "$as_me: error: cannot run test program while cross compiling
10209See \`config.log' for more details." >&2;}
10210   { (exit 1); exit 1; }; }
10211else
10212  cat >conftest.$ac_ext <<_ACEOF
10213#line $LINENO "configure"
10214/* confdefs.h.  */
10215_ACEOF
10216cat confdefs.h >>conftest.$ac_ext
10217cat >>conftest.$ac_ext <<_ACEOF
10218/* end confdefs.h.  */
10219$ac_includes_default
10220long longval () { return (long) (sizeof (short int)); }
10221unsigned long ulongval () { return (long) (sizeof (short int)); }
10222#include <stdio.h>
10223#include <stdlib.h>
10224int
10225main ()
10226{
10227
10228  FILE *f = fopen ("conftest.val", "w");
10229  if (! f)
10230    exit (1);
10231  if (((long) (sizeof (short int))) < 0)
10232    {
10233      long i = longval ();
10234      if (i != ((long) (sizeof (short int))))
10235	exit (1);
10236      fprintf (f, "%ld\n", i);
10237    }
10238  else
10239    {
10240      unsigned long i = ulongval ();
10241      if (i != ((long) (sizeof (short int))))
10242	exit (1);
10243      fprintf (f, "%lu\n", i);
10244    }
10245  exit (ferror (f) || fclose (f) != 0);
10246
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251rm -f conftest$ac_exeext
10252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10253  (eval $ac_link) 2>&5
10254  ac_status=$?
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258  (eval $ac_try) 2>&5
10259  ac_status=$?
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); }; }; then
10262  ac_cv_sizeof_short_int=`cat conftest.val`
10263else
10264  echo "$as_me: program exited with status $ac_status" >&5
10265echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268( exit $ac_status )
10269{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
10270See \`config.log' for more details." >&5
10271echo "$as_me: error: cannot compute sizeof (short int), 77
10272See \`config.log' for more details." >&2;}
10273   { (exit 1); exit 1; }; }
10274fi
10275rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10276fi
10277fi
10278rm -f conftest.val
10279else
10280  ac_cv_sizeof_short_int=0
10281fi
10282fi
10283echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
10284echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
10285cat >>confdefs.h <<_ACEOF
10286#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
10287_ACEOF
10288
10289
10290echo "$as_me:$LINENO: checking for unsigned char" >&5
10291echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
10292if test "${ac_cv_type_unsigned_char+set}" = set; then
10293  echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295  cat >conftest.$ac_ext <<_ACEOF
10296#line $LINENO "configure"
10297/* confdefs.h.  */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h.  */
10302$ac_includes_default
10303int
10304main ()
10305{
10306if ((unsigned char *) 0)
10307  return 0;
10308if (sizeof (unsigned char))
10309  return 0;
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext
10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316  (eval $ac_compile) 2>&5
10317  ac_status=$?
10318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319  (exit $ac_status); } &&
10320         { ac_try='test -s conftest.$ac_objext'
10321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322  (eval $ac_try) 2>&5
10323  ac_status=$?
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); }; }; then
10326  ac_cv_type_unsigned_char=yes
10327else
10328  echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331ac_cv_type_unsigned_char=no
10332fi
10333rm -f conftest.$ac_objext conftest.$ac_ext
10334fi
10335echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
10336echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
10337
10338echo "$as_me:$LINENO: checking size of unsigned char" >&5
10339echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
10340if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
10341  echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343  if test "$ac_cv_type_unsigned_char" = yes; then
10344  # The cast to unsigned long works around a bug in the HP C Compiler
10345  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10346  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10347  # This bug is HP SR number 8606223364.
10348  if test "$cross_compiling" = yes; then
10349  # Depending upon the size, compute the lo and hi bounds.
10350cat >conftest.$ac_ext <<_ACEOF
10351#line $LINENO "configure"
10352/* confdefs.h.  */
10353_ACEOF
10354cat confdefs.h >>conftest.$ac_ext
10355cat >>conftest.$ac_ext <<_ACEOF
10356/* end confdefs.h.  */
10357$ac_includes_default
10358int
10359main ()
10360{
10361static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
10362test_array [0] = 0
10363
10364  ;
10365  return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext
10369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10370  (eval $ac_compile) 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); } &&
10374         { ac_try='test -s conftest.$ac_objext'
10375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376  (eval $ac_try) 2>&5
10377  ac_status=$?
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); }; }; then
10380  ac_lo=0 ac_mid=0
10381  while :; do
10382    cat >conftest.$ac_ext <<_ACEOF
10383#line $LINENO "configure"
10384/* confdefs.h.  */
10385_ACEOF
10386cat confdefs.h >>conftest.$ac_ext
10387cat >>conftest.$ac_ext <<_ACEOF
10388/* end confdefs.h.  */
10389$ac_includes_default
10390int
10391main ()
10392{
10393static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
10394test_array [0] = 0
10395
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext
10401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402  (eval $ac_compile) 2>&5
10403  ac_status=$?
10404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405  (exit $ac_status); } &&
10406         { ac_try='test -s conftest.$ac_objext'
10407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408  (eval $ac_try) 2>&5
10409  ac_status=$?
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); }; }; then
10412  ac_hi=$ac_mid; break
10413else
10414  echo "$as_me: failed program was:" >&5
10415sed 's/^/| /' conftest.$ac_ext >&5
10416
10417ac_lo=`expr $ac_mid + 1`
10418                    if test $ac_lo -le $ac_mid; then
10419                      ac_lo= ac_hi=
10420                      break
10421                    fi
10422                    ac_mid=`expr 2 '*' $ac_mid + 1`
10423fi
10424rm -f conftest.$ac_objext conftest.$ac_ext
10425  done
10426else
10427  echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430cat >conftest.$ac_ext <<_ACEOF
10431#line $LINENO "configure"
10432/* confdefs.h.  */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h.  */
10437$ac_includes_default
10438int
10439main ()
10440{
10441static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
10442test_array [0] = 0
10443
10444  ;
10445  return 0;
10446}
10447_ACEOF
10448rm -f conftest.$ac_objext
10449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450  (eval $ac_compile) 2>&5
10451  ac_status=$?
10452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); } &&
10454         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10460  ac_hi=-1 ac_mid=-1
10461  while :; do
10462    cat >conftest.$ac_ext <<_ACEOF
10463#line $LINENO "configure"
10464/* confdefs.h.  */
10465_ACEOF
10466cat confdefs.h >>conftest.$ac_ext
10467cat >>conftest.$ac_ext <<_ACEOF
10468/* end confdefs.h.  */
10469$ac_includes_default
10470int
10471main ()
10472{
10473static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
10474test_array [0] = 0
10475
10476  ;
10477  return 0;
10478}
10479_ACEOF
10480rm -f conftest.$ac_objext
10481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482  (eval $ac_compile) 2>&5
10483  ac_status=$?
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); } &&
10486         { ac_try='test -s conftest.$ac_objext'
10487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488  (eval $ac_try) 2>&5
10489  ac_status=$?
10490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491  (exit $ac_status); }; }; then
10492  ac_lo=$ac_mid; break
10493else
10494  echo "$as_me: failed program was:" >&5
10495sed 's/^/| /' conftest.$ac_ext >&5
10496
10497ac_hi=`expr '(' $ac_mid ')' - 1`
10498                       if test $ac_mid -le $ac_hi; then
10499                         ac_lo= ac_hi=
10500                         break
10501                       fi
10502                       ac_mid=`expr 2 '*' $ac_mid`
10503fi
10504rm -f conftest.$ac_objext conftest.$ac_ext
10505  done
10506else
10507  echo "$as_me: failed program was:" >&5
10508sed 's/^/| /' conftest.$ac_ext >&5
10509
10510ac_lo= ac_hi=
10511fi
10512rm -f conftest.$ac_objext conftest.$ac_ext
10513fi
10514rm -f conftest.$ac_objext conftest.$ac_ext
10515# Binary search between lo and hi bounds.
10516while test "x$ac_lo" != "x$ac_hi"; do
10517  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10518  cat >conftest.$ac_ext <<_ACEOF
10519#line $LINENO "configure"
10520/* confdefs.h.  */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h.  */
10525$ac_includes_default
10526int
10527main ()
10528{
10529static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
10530test_array [0] = 0
10531
10532  ;
10533  return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext
10537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538  (eval $ac_compile) 2>&5
10539  ac_status=$?
10540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541  (exit $ac_status); } &&
10542         { ac_try='test -s conftest.$ac_objext'
10543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544  (eval $ac_try) 2>&5
10545  ac_status=$?
10546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547  (exit $ac_status); }; }; then
10548  ac_hi=$ac_mid
10549else
10550  echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553ac_lo=`expr '(' $ac_mid ')' + 1`
10554fi
10555rm -f conftest.$ac_objext conftest.$ac_ext
10556done
10557case $ac_lo in
10558?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
10559'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
10560See \`config.log' for more details." >&5
10561echo "$as_me: error: cannot compute sizeof (unsigned char), 77
10562See \`config.log' for more details." >&2;}
10563   { (exit 1); exit 1; }; } ;;
10564esac
10565else
10566  if test "$cross_compiling" = yes; then
10567  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10568See \`config.log' for more details." >&5
10569echo "$as_me: error: cannot run test program while cross compiling
10570See \`config.log' for more details." >&2;}
10571   { (exit 1); exit 1; }; }
10572else
10573  cat >conftest.$ac_ext <<_ACEOF
10574#line $LINENO "configure"
10575/* confdefs.h.  */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h.  */
10580$ac_includes_default
10581long longval () { return (long) (sizeof (unsigned char)); }
10582unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
10583#include <stdio.h>
10584#include <stdlib.h>
10585int
10586main ()
10587{
10588
10589  FILE *f = fopen ("conftest.val", "w");
10590  if (! f)
10591    exit (1);
10592  if (((long) (sizeof (unsigned char))) < 0)
10593    {
10594      long i = longval ();
10595      if (i != ((long) (sizeof (unsigned char))))
10596	exit (1);
10597      fprintf (f, "%ld\n", i);
10598    }
10599  else
10600    {
10601      unsigned long i = ulongval ();
10602      if (i != ((long) (sizeof (unsigned char))))
10603	exit (1);
10604      fprintf (f, "%lu\n", i);
10605    }
10606  exit (ferror (f) || fclose (f) != 0);
10607
10608  ;
10609  return 0;
10610}
10611_ACEOF
10612rm -f conftest$ac_exeext
10613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10614  (eval $ac_link) 2>&5
10615  ac_status=$?
10616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619  (eval $ac_try) 2>&5
10620  ac_status=$?
10621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622  (exit $ac_status); }; }; then
10623  ac_cv_sizeof_unsigned_char=`cat conftest.val`
10624else
10625  echo "$as_me: program exited with status $ac_status" >&5
10626echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
10629( exit $ac_status )
10630{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
10631See \`config.log' for more details." >&5
10632echo "$as_me: error: cannot compute sizeof (unsigned char), 77
10633See \`config.log' for more details." >&2;}
10634   { (exit 1); exit 1; }; }
10635fi
10636rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10637fi
10638fi
10639rm -f conftest.val
10640else
10641  ac_cv_sizeof_unsigned_char=0
10642fi
10643fi
10644echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
10645echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
10646cat >>confdefs.h <<_ACEOF
10647#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
10648_ACEOF
10649
10650
10651echo "$as_me:$LINENO: checking for signed char" >&5
10652echo $ECHO_N "checking for signed char... $ECHO_C" >&6
10653if test "${ac_cv_type_signed_char+set}" = set; then
10654  echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656  cat >conftest.$ac_ext <<_ACEOF
10657#line $LINENO "configure"
10658/* confdefs.h.  */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h.  */
10663$ac_includes_default
10664int
10665main ()
10666{
10667if ((signed char *) 0)
10668  return 0;
10669if (sizeof (signed char))
10670  return 0;
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675rm -f conftest.$ac_objext
10676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10677  (eval $ac_compile) 2>&5
10678  ac_status=$?
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); } &&
10681         { ac_try='test -s conftest.$ac_objext'
10682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683  (eval $ac_try) 2>&5
10684  ac_status=$?
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); }; }; then
10687  ac_cv_type_signed_char=yes
10688else
10689  echo "$as_me: failed program was:" >&5
10690sed 's/^/| /' conftest.$ac_ext >&5
10691
10692ac_cv_type_signed_char=no
10693fi
10694rm -f conftest.$ac_objext conftest.$ac_ext
10695fi
10696echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
10697echo "${ECHO_T}$ac_cv_type_signed_char" >&6
10698
10699echo "$as_me:$LINENO: checking size of signed char" >&5
10700echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
10701if test "${ac_cv_sizeof_signed_char+set}" = set; then
10702  echo $ECHO_N "(cached) $ECHO_C" >&6
10703else
10704  if test "$ac_cv_type_signed_char" = yes; then
10705  # The cast to unsigned long works around a bug in the HP C Compiler
10706  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10707  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10708  # This bug is HP SR number 8606223364.
10709  if test "$cross_compiling" = yes; then
10710  # Depending upon the size, compute the lo and hi bounds.
10711cat >conftest.$ac_ext <<_ACEOF
10712#line $LINENO "configure"
10713/* confdefs.h.  */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h.  */
10718$ac_includes_default
10719int
10720main ()
10721{
10722static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)];
10723test_array [0] = 0
10724
10725  ;
10726  return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext
10730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10731  (eval $ac_compile) 2>&5
10732  ac_status=$?
10733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734  (exit $ac_status); } &&
10735         { ac_try='test -s conftest.$ac_objext'
10736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737  (eval $ac_try) 2>&5
10738  ac_status=$?
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); }; }; then
10741  ac_lo=0 ac_mid=0
10742  while :; do
10743    cat >conftest.$ac_ext <<_ACEOF
10744#line $LINENO "configure"
10745/* confdefs.h.  */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h.  */
10750$ac_includes_default
10751int
10752main ()
10753{
10754static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
10755test_array [0] = 0
10756
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761rm -f conftest.$ac_objext
10762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763  (eval $ac_compile) 2>&5
10764  ac_status=$?
10765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766  (exit $ac_status); } &&
10767         { ac_try='test -s conftest.$ac_objext'
10768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769  (eval $ac_try) 2>&5
10770  ac_status=$?
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); }; }; then
10773  ac_hi=$ac_mid; break
10774else
10775  echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778ac_lo=`expr $ac_mid + 1`
10779                    if test $ac_lo -le $ac_mid; then
10780                      ac_lo= ac_hi=
10781                      break
10782                    fi
10783                    ac_mid=`expr 2 '*' $ac_mid + 1`
10784fi
10785rm -f conftest.$ac_objext conftest.$ac_ext
10786  done
10787else
10788  echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791cat >conftest.$ac_ext <<_ACEOF
10792#line $LINENO "configure"
10793/* confdefs.h.  */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h.  */
10798$ac_includes_default
10799int
10800main ()
10801{
10802static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)];
10803test_array [0] = 0
10804
10805  ;
10806  return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext
10810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811  (eval $ac_compile) 2>&5
10812  ac_status=$?
10813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814  (exit $ac_status); } &&
10815         { ac_try='test -s conftest.$ac_objext'
10816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817  (eval $ac_try) 2>&5
10818  ac_status=$?
10819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820  (exit $ac_status); }; }; then
10821  ac_hi=-1 ac_mid=-1
10822  while :; do
10823    cat >conftest.$ac_ext <<_ACEOF
10824#line $LINENO "configure"
10825/* confdefs.h.  */
10826_ACEOF
10827cat confdefs.h >>conftest.$ac_ext
10828cat >>conftest.$ac_ext <<_ACEOF
10829/* end confdefs.h.  */
10830$ac_includes_default
10831int
10832main ()
10833{
10834static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)];
10835test_array [0] = 0
10836
10837  ;
10838  return 0;
10839}
10840_ACEOF
10841rm -f conftest.$ac_objext
10842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10843  (eval $ac_compile) 2>&5
10844  ac_status=$?
10845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846  (exit $ac_status); } &&
10847         { ac_try='test -s conftest.$ac_objext'
10848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849  (eval $ac_try) 2>&5
10850  ac_status=$?
10851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852  (exit $ac_status); }; }; then
10853  ac_lo=$ac_mid; break
10854else
10855  echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858ac_hi=`expr '(' $ac_mid ')' - 1`
10859                       if test $ac_mid -le $ac_hi; then
10860                         ac_lo= ac_hi=
10861                         break
10862                       fi
10863                       ac_mid=`expr 2 '*' $ac_mid`
10864fi
10865rm -f conftest.$ac_objext conftest.$ac_ext
10866  done
10867else
10868  echo "$as_me: failed program was:" >&5
10869sed 's/^/| /' conftest.$ac_ext >&5
10870
10871ac_lo= ac_hi=
10872fi
10873rm -f conftest.$ac_objext conftest.$ac_ext
10874fi
10875rm -f conftest.$ac_objext conftest.$ac_ext
10876# Binary search between lo and hi bounds.
10877while test "x$ac_lo" != "x$ac_hi"; do
10878  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10879  cat >conftest.$ac_ext <<_ACEOF
10880#line $LINENO "configure"
10881/* confdefs.h.  */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h.  */
10886$ac_includes_default
10887int
10888main ()
10889{
10890static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)];
10891test_array [0] = 0
10892
10893  ;
10894  return 0;
10895}
10896_ACEOF
10897rm -f conftest.$ac_objext
10898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899  (eval $ac_compile) 2>&5
10900  ac_status=$?
10901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902  (exit $ac_status); } &&
10903         { ac_try='test -s conftest.$ac_objext'
10904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905  (eval $ac_try) 2>&5
10906  ac_status=$?
10907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908  (exit $ac_status); }; }; then
10909  ac_hi=$ac_mid
10910else
10911  echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914ac_lo=`expr '(' $ac_mid ')' + 1`
10915fi
10916rm -f conftest.$ac_objext conftest.$ac_ext
10917done
10918case $ac_lo in
10919?*) ac_cv_sizeof_signed_char=$ac_lo;;
10920'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
10921See \`config.log' for more details." >&5
10922echo "$as_me: error: cannot compute sizeof (signed char), 77
10923See \`config.log' for more details." >&2;}
10924   { (exit 1); exit 1; }; } ;;
10925esac
10926else
10927  if test "$cross_compiling" = yes; then
10928  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10929See \`config.log' for more details." >&5
10930echo "$as_me: error: cannot run test program while cross compiling
10931See \`config.log' for more details." >&2;}
10932   { (exit 1); exit 1; }; }
10933else
10934  cat >conftest.$ac_ext <<_ACEOF
10935#line $LINENO "configure"
10936/* confdefs.h.  */
10937_ACEOF
10938cat confdefs.h >>conftest.$ac_ext
10939cat >>conftest.$ac_ext <<_ACEOF
10940/* end confdefs.h.  */
10941$ac_includes_default
10942long longval () { return (long) (sizeof (signed char)); }
10943unsigned long ulongval () { return (long) (sizeof (signed char)); }
10944#include <stdio.h>
10945#include <stdlib.h>
10946int
10947main ()
10948{
10949
10950  FILE *f = fopen ("conftest.val", "w");
10951  if (! f)
10952    exit (1);
10953  if (((long) (sizeof (signed char))) < 0)
10954    {
10955      long i = longval ();
10956      if (i != ((long) (sizeof (signed char))))
10957	exit (1);
10958      fprintf (f, "%ld\n", i);
10959    }
10960  else
10961    {
10962      unsigned long i = ulongval ();
10963      if (i != ((long) (sizeof (signed char))))
10964	exit (1);
10965      fprintf (f, "%lu\n", i);
10966    }
10967  exit (ferror (f) || fclose (f) != 0);
10968
10969  ;
10970  return 0;
10971}
10972_ACEOF
10973rm -f conftest$ac_exeext
10974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975  (eval $ac_link) 2>&5
10976  ac_status=$?
10977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980  (eval $ac_try) 2>&5
10981  ac_status=$?
10982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983  (exit $ac_status); }; }; then
10984  ac_cv_sizeof_signed_char=`cat conftest.val`
10985else
10986  echo "$as_me: program exited with status $ac_status" >&5
10987echo "$as_me: failed program was:" >&5
10988sed 's/^/| /' conftest.$ac_ext >&5
10989
10990( exit $ac_status )
10991{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77
10992See \`config.log' for more details." >&5
10993echo "$as_me: error: cannot compute sizeof (signed char), 77
10994See \`config.log' for more details." >&2;}
10995   { (exit 1); exit 1; }; }
10996fi
10997rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10998fi
10999fi
11000rm -f conftest.val
11001else
11002  ac_cv_sizeof_signed_char=0
11003fi
11004fi
11005echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
11006echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
11007cat >>confdefs.h <<_ACEOF
11008#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
11009_ACEOF
11010
11011
11012
11013if test "$ac_cv_sizeof_unsigned_int" = 4;
11014then
11015
11016cat >>confdefs.h <<\_ACEOF
11017#define TYPE_UWORD32 unsigned int
11018_ACEOF
11019
11020else
11021if test "$ac_cv_sizeof_unsigned_long_int" = 4;
11022then
11023
11024cat >>confdefs.h <<\_ACEOF
11025#define TYPE_UWORD32 unsigned long int
11026_ACEOF
11027
11028else
11029	{ { echo "$as_me:$LINENO: error: There is no unsigned integer type with a size of 32 bits on your system. Cannot compile." >&5
11030echo "$as_me: error: There is no unsigned integer type with a size of 32 bits on your system. Cannot compile." >&2;}
11031   { (exit 1); exit 1; }; }
11032fi
11033fi
11034
11035if test "$ac_cv_sizeof_int" = 4;
11036then
11037
11038cat >>confdefs.h <<\_ACEOF
11039#define TYPE_SWORD32 int
11040_ACEOF
11041
11042else
11043if test "$ac_cv_sizeof_long_int" = 4;
11044then
11045
11046cat >>confdefs.h <<\_ACEOF
11047#define TYPE_SWORD32 long int
11048_ACEOF
11049
11050else
11051	{ { echo "$as_me:$LINENO: error: There is no signed integer type with a size of 32 bits on your system. Cannot compile." >&5
11052echo "$as_me: error: There is no signed integer type with a size of 32 bits on your system. Cannot compile." >&2;}
11053   { (exit 1); exit 1; }; }
11054fi
11055fi
11056
11057if test "$ac_cv_sizeof_unsigned_short_int" = 2;
11058then
11059
11060cat >>confdefs.h <<\_ACEOF
11061#define TYPE_UWORD16 unsigned short int
11062_ACEOF
11063
11064else
11065if test "$ac_cv_sizeof_unsigned_int" = 2;
11066then
11067
11068cat >>confdefs.h <<\_ACEOF
11069#define TYPE_UWORD16 unsigned int
11070_ACEOF
11071
11072else
11073	{ { echo "$as_me:$LINENO: error: There is no unsigned integer type with a size of 16 bits on your system. Cannot compile." >&5
11074echo "$as_me: error: There is no unsigned integer type with a size of 16 bits on your system. Cannot compile." >&2;}
11075   { (exit 1); exit 1; }; }
11076fi
11077fi
11078
11079if test "$ac_cv_sizeof_short_int" = 2;
11080then
11081
11082cat >>confdefs.h <<\_ACEOF
11083#define TYPE_SWORD16 short int
11084_ACEOF
11085
11086else
11087if test "$ac_cv_sizeof_int" = 2;
11088then
11089
11090cat >>confdefs.h <<\_ACEOF
11091#define TYPE_SWORD16 int
11092_ACEOF
11093
11094else
11095	{ { echo "$as_me:$LINENO: error: There is no signed integer type with a size of 16 bits on your system. Cannot compile." >&5
11096echo "$as_me: error: There is no signed integer type with a size of 16 bits on your system. Cannot compile." >&2;}
11097   { (exit 1); exit 1; }; }
11098fi
11099fi
11100
11101if test "$ac_cv_sizeof_unsigned_char" = 1;
11102then
11103
11104cat >>confdefs.h <<\_ACEOF
11105#define TYPE_BYTE unsigned char
11106_ACEOF
11107
11108else
11109	{ { echo "$as_me:$LINENO: error: There is no unsigned character type with a size of 8 bits on your system. Cannot compile." >&5
11110echo "$as_me: error: There is no unsigned character type with a size of 8 bits on your system. Cannot compile." >&2;}
11111   { (exit 1); exit 1; }; }
11112fi
11113
11114if test "$ac_cv_sizeof_signed_char" = 1;
11115then
11116
11117cat >>confdefs.h <<\_ACEOF
11118#define TYPE_SBYTE signed char
11119_ACEOF
11120
11121else
11122	{ { echo "$as_me:$LINENO: error: There is no signed character type with a size of 8 bits on your system. Cannot compile." >&5
11123echo "$as_me: error: There is no signed character type with a size of 8 bits on your system. Cannot compile." >&2;}
11124   { (exit 1); exit 1; }; }
11125fi
11126
11127# Extract the first word of ""doxygen"", so it can be a program name with args.
11128set dummy "doxygen"; ac_word=$2
11129echo "$as_me:$LINENO: checking for $ac_word" >&5
11130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11131if test "${ac_cv_prog_ac_cv_prog_doxygen+set}" = set; then
11132  echo $ECHO_N "(cached) $ECHO_C" >&6
11133else
11134  if test -n "$ac_cv_prog_doxygen"; then
11135  ac_cv_prog_ac_cv_prog_doxygen="$ac_cv_prog_doxygen" # Let the user override the test.
11136else
11137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138for as_dir in $PATH
11139do
11140  IFS=$as_save_IFS
11141  test -z "$as_dir" && as_dir=.
11142  for ac_exec_ext in '' $ac_executable_extensions; do
11143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11144    ac_cv_prog_ac_cv_prog_doxygen="yes"
11145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11146    break 2
11147  fi
11148done
11149done
11150
11151  test -z "$ac_cv_prog_ac_cv_prog_doxygen" && ac_cv_prog_ac_cv_prog_doxygen="no"
11152fi
11153fi
11154ac_cv_prog_doxygen=$ac_cv_prog_ac_cv_prog_doxygen
11155if test -n "$ac_cv_prog_doxygen"; then
11156  echo "$as_me:$LINENO: result: $ac_cv_prog_doxygen" >&5
11157echo "${ECHO_T}$ac_cv_prog_doxygen" >&6
11158else
11159  echo "$as_me:$LINENO: result: no" >&5
11160echo "${ECHO_T}no" >&6
11161fi
11162
11163
11164
11165if test "$ac_cv_prog_doxygen" = yes; then
11166  HAVE_DOXYGEN_TRUE=
11167  HAVE_DOXYGEN_FALSE='#'
11168else
11169  HAVE_DOXYGEN_TRUE='#'
11170  HAVE_DOXYGEN_FALSE=
11171fi
11172
11173
11174# Extract the first word of ""perl"", so it can be a program name with args.
11175set dummy "perl"; ac_word=$2
11176echo "$as_me:$LINENO: checking for $ac_word" >&5
11177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11178if test "${ac_cv_prog_ac_cv_prog_perl+set}" = set; then
11179  echo $ECHO_N "(cached) $ECHO_C" >&6
11180else
11181  if test -n "$ac_cv_prog_perl"; then
11182  ac_cv_prog_ac_cv_prog_perl="$ac_cv_prog_perl" # Let the user override the test.
11183else
11184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185for as_dir in $PATH
11186do
11187  IFS=$as_save_IFS
11188  test -z "$as_dir" && as_dir=.
11189  for ac_exec_ext in '' $ac_executable_extensions; do
11190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191    ac_cv_prog_ac_cv_prog_perl="yes"
11192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11193    break 2
11194  fi
11195done
11196done
11197
11198  test -z "$ac_cv_prog_ac_cv_prog_perl" && ac_cv_prog_ac_cv_prog_perl="no"
11199fi
11200fi
11201ac_cv_prog_perl=$ac_cv_prog_ac_cv_prog_perl
11202if test -n "$ac_cv_prog_perl"; then
11203  echo "$as_me:$LINENO: result: $ac_cv_prog_perl" >&5
11204echo "${ECHO_T}$ac_cv_prog_perl" >&6
11205else
11206  echo "$as_me:$LINENO: result: no" >&5
11207echo "${ECHO_T}no" >&6
11208fi
11209
11210
11211
11212if test "$ac_cv_prog_perl" = yes; then
11213  HAVE_PERL_TRUE=
11214  HAVE_PERL_FALSE='#'
11215else
11216  HAVE_PERL_TRUE='#'
11217  HAVE_PERL_FALSE=
11218fi
11219
11220
11221echo "$as_me:$LINENO: checking for /dev/urandom" >&5
11222echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6
11223if test "${ac_cv_file__dev_urandom+set}" = set; then
11224  echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226  test "$cross_compiling" = yes &&
11227  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11228echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11229   { (exit 1); exit 1; }; }
11230if test -r "/dev/urandom"; then
11231  ac_cv_file__dev_urandom=yes
11232else
11233  ac_cv_file__dev_urandom=no
11234fi
11235fi
11236echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5
11237echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6
11238if test $ac_cv_file__dev_urandom = yes; then
11239
11240cat >>confdefs.h <<\_ACEOF
11241#define HAVE_DEV_URANDOM 1
11242_ACEOF
11243
11244fi
11245
11246echo "$as_me:$LINENO: checking for /dev/random" >&5
11247echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6
11248if test "${ac_cv_file__dev_random+set}" = set; then
11249  echo $ECHO_N "(cached) $ECHO_C" >&6
11250else
11251  test "$cross_compiling" = yes &&
11252  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11253echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11254   { (exit 1); exit 1; }; }
11255if test -r "/dev/random"; then
11256  ac_cv_file__dev_random=yes
11257else
11258  ac_cv_file__dev_random=no
11259fi
11260fi
11261echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5
11262echo "${ECHO_T}$ac_cv_file__dev_random" >&6
11263if test $ac_cv_file__dev_random = yes; then
11264
11265cat >>confdefs.h <<\_ACEOF
11266#define HAVE_DEV_RANDOM 1
11267_ACEOF
11268
11269fi
11270
11271
11272
11273for ac_func in vprintf
11274do
11275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11276echo "$as_me:$LINENO: checking for $ac_func" >&5
11277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11278if eval "test \"\${$as_ac_var+set}\" = set"; then
11279  echo $ECHO_N "(cached) $ECHO_C" >&6
11280else
11281  cat >conftest.$ac_ext <<_ACEOF
11282#line $LINENO "configure"
11283/* confdefs.h.  */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h.  */
11288/* System header to define __stub macros and hopefully few prototypes,
11289    which can conflict with char $ac_func (); below.
11290    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11291    <limits.h> exists even on freestanding compilers.  */
11292#ifdef __STDC__
11293# include <limits.h>
11294#else
11295# include <assert.h>
11296#endif
11297/* Override any gcc2 internal prototype to avoid an error.  */
11298#ifdef __cplusplus
11299extern "C"
11300{
11301#endif
11302/* We use char because int might match the return type of a gcc2
11303   builtin and then its argument prototype would still apply.  */
11304char $ac_func ();
11305/* The GNU C library defines this for functions which it implements
11306    to always fail with ENOSYS.  Some functions are actually named
11307    something starting with __ and the normal name is an alias.  */
11308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11309choke me
11310#else
11311char (*f) () = $ac_func;
11312#endif
11313#ifdef __cplusplus
11314}
11315#endif
11316
11317int
11318main ()
11319{
11320return f != $ac_func;
11321  ;
11322  return 0;
11323}
11324_ACEOF
11325rm -f conftest.$ac_objext conftest$ac_exeext
11326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327  (eval $ac_link) 2>&5
11328  ac_status=$?
11329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330  (exit $ac_status); } &&
11331         { ac_try='test -s conftest$ac_exeext'
11332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333  (eval $ac_try) 2>&5
11334  ac_status=$?
11335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336  (exit $ac_status); }; }; then
11337  eval "$as_ac_var=yes"
11338else
11339  echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
11342eval "$as_ac_var=no"
11343fi
11344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11345fi
11346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11347echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11348if test `eval echo '${'$as_ac_var'}'` = yes; then
11349  cat >>confdefs.h <<_ACEOF
11350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11351_ACEOF
11352
11353echo "$as_me:$LINENO: checking for _doprnt" >&5
11354echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11355if test "${ac_cv_func__doprnt+set}" = set; then
11356  echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358  cat >conftest.$ac_ext <<_ACEOF
11359#line $LINENO "configure"
11360/* confdefs.h.  */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h.  */
11365/* System header to define __stub macros and hopefully few prototypes,
11366    which can conflict with char _doprnt (); below.
11367    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11368    <limits.h> exists even on freestanding compilers.  */
11369#ifdef __STDC__
11370# include <limits.h>
11371#else
11372# include <assert.h>
11373#endif
11374/* Override any gcc2 internal prototype to avoid an error.  */
11375#ifdef __cplusplus
11376extern "C"
11377{
11378#endif
11379/* We use char because int might match the return type of a gcc2
11380   builtin and then its argument prototype would still apply.  */
11381char _doprnt ();
11382/* The GNU C library defines this for functions which it implements
11383    to always fail with ENOSYS.  Some functions are actually named
11384    something starting with __ and the normal name is an alias.  */
11385#if defined (__stub__doprnt) || defined (__stub____doprnt)
11386choke me
11387#else
11388char (*f) () = _doprnt;
11389#endif
11390#ifdef __cplusplus
11391}
11392#endif
11393
11394int
11395main ()
11396{
11397return f != _doprnt;
11398  ;
11399  return 0;
11400}
11401_ACEOF
11402rm -f conftest.$ac_objext conftest$ac_exeext
11403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11404  (eval $ac_link) 2>&5
11405  ac_status=$?
11406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407  (exit $ac_status); } &&
11408         { ac_try='test -s conftest$ac_exeext'
11409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410  (eval $ac_try) 2>&5
11411  ac_status=$?
11412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413  (exit $ac_status); }; }; then
11414  ac_cv_func__doprnt=yes
11415else
11416  echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419ac_cv_func__doprnt=no
11420fi
11421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11422fi
11423echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11424echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11425if test $ac_cv_func__doprnt = yes; then
11426
11427cat >>confdefs.h <<\_ACEOF
11428#define HAVE_DOPRNT 1
11429_ACEOF
11430
11431fi
11432
11433fi
11434done
11435
11436
11437
11438
11439
11440for ac_func in tcgetattr tcsetattr strtoul
11441do
11442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11443echo "$as_me:$LINENO: checking for $ac_func" >&5
11444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11445if eval "test \"\${$as_ac_var+set}\" = set"; then
11446  echo $ECHO_N "(cached) $ECHO_C" >&6
11447else
11448  cat >conftest.$ac_ext <<_ACEOF
11449#line $LINENO "configure"
11450/* confdefs.h.  */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h.  */
11455/* System header to define __stub macros and hopefully few prototypes,
11456    which can conflict with char $ac_func (); below.
11457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458    <limits.h> exists even on freestanding compilers.  */
11459#ifdef __STDC__
11460# include <limits.h>
11461#else
11462# include <assert.h>
11463#endif
11464/* Override any gcc2 internal prototype to avoid an error.  */
11465#ifdef __cplusplus
11466extern "C"
11467{
11468#endif
11469/* We use char because int might match the return type of a gcc2
11470   builtin and then its argument prototype would still apply.  */
11471char $ac_func ();
11472/* The GNU C library defines this for functions which it implements
11473    to always fail with ENOSYS.  Some functions are actually named
11474    something starting with __ and the normal name is an alias.  */
11475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11476choke me
11477#else
11478char (*f) () = $ac_func;
11479#endif
11480#ifdef __cplusplus
11481}
11482#endif
11483
11484int
11485main ()
11486{
11487return f != $ac_func;
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext conftest$ac_exeext
11493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494  (eval $ac_link) 2>&5
11495  ac_status=$?
11496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497  (exit $ac_status); } &&
11498         { ac_try='test -s conftest$ac_exeext'
11499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500  (eval $ac_try) 2>&5
11501  ac_status=$?
11502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503  (exit $ac_status); }; }; then
11504  eval "$as_ac_var=yes"
11505else
11506  echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509eval "$as_ac_var=no"
11510fi
11511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11512fi
11513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11515if test `eval echo '${'$as_ac_var'}'` = yes; then
11516  cat >>confdefs.h <<_ACEOF
11517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518_ACEOF
11519
11520fi
11521done
11522
11523
11524case "${target}" in
11525	*-cygwin*)
11526
11527cat >>confdefs.h <<\_ACEOF
11528#define WIN32 1
11529_ACEOF
11530
11531	;;
11532esac
11533
11534
11535echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
11536echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
11537if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
11538  echo $ECHO_N "(cached) $ECHO_C" >&6
11539else
11540  ac_check_lib_save_LIBS=$LIBS
11541LIBS="-lz  $LIBS"
11542cat >conftest.$ac_ext <<_ACEOF
11543#line $LINENO "configure"
11544/* confdefs.h.  */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h.  */
11549
11550/* Override any gcc2 internal prototype to avoid an error.  */
11551#ifdef __cplusplus
11552extern "C"
11553#endif
11554/* We use char because int might match the return type of a gcc2
11555   builtin and then its argument prototype would still apply.  */
11556char zlibVersion ();
11557int
11558main ()
11559{
11560zlibVersion ();
11561  ;
11562  return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext conftest$ac_exeext
11566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567  (eval $ac_link) 2>&5
11568  ac_status=$?
11569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570  (exit $ac_status); } &&
11571         { ac_try='test -s conftest$ac_exeext'
11572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573  (eval $ac_try) 2>&5
11574  ac_status=$?
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); }; }; then
11577  ac_cv_lib_z_zlibVersion=yes
11578else
11579  echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582ac_cv_lib_z_zlibVersion=no
11583fi
11584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11585LIBS=$ac_check_lib_save_LIBS
11586fi
11587echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
11588echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
11589if test $ac_cv_lib_z_zlibVersion = yes; then
11590  cat >>confdefs.h <<_ACEOF
11591#define HAVE_LIBZ 1
11592_ACEOF
11593
11594  LIBS="-lz $LIBS"
11595
11596fi
11597
11598if test "${ac_cv_header_zlib_h+set}" = set; then
11599  echo "$as_me:$LINENO: checking for zlib.h" >&5
11600echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
11601if test "${ac_cv_header_zlib_h+set}" = set; then
11602  echo $ECHO_N "(cached) $ECHO_C" >&6
11603fi
11604echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11605echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
11606else
11607  # Is the header compilable?
11608echo "$as_me:$LINENO: checking zlib.h usability" >&5
11609echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
11610cat >conftest.$ac_ext <<_ACEOF
11611#line $LINENO "configure"
11612/* confdefs.h.  */
11613_ACEOF
11614cat confdefs.h >>conftest.$ac_ext
11615cat >>conftest.$ac_ext <<_ACEOF
11616/* end confdefs.h.  */
11617$ac_includes_default
11618#include <zlib.h>
11619_ACEOF
11620rm -f conftest.$ac_objext
11621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622  (eval $ac_compile) 2>&5
11623  ac_status=$?
11624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625  (exit $ac_status); } &&
11626         { ac_try='test -s conftest.$ac_objext'
11627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628  (eval $ac_try) 2>&5
11629  ac_status=$?
11630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631  (exit $ac_status); }; }; then
11632  ac_header_compiler=yes
11633else
11634  echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
11637ac_header_compiler=no
11638fi
11639rm -f conftest.$ac_objext conftest.$ac_ext
11640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641echo "${ECHO_T}$ac_header_compiler" >&6
11642
11643# Is the header present?
11644echo "$as_me:$LINENO: checking zlib.h presence" >&5
11645echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
11646cat >conftest.$ac_ext <<_ACEOF
11647#line $LINENO "configure"
11648/* confdefs.h.  */
11649_ACEOF
11650cat confdefs.h >>conftest.$ac_ext
11651cat >>conftest.$ac_ext <<_ACEOF
11652/* end confdefs.h.  */
11653#include <zlib.h>
11654_ACEOF
11655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11656  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11657  ac_status=$?
11658  grep -v '^ *+' conftest.er1 >conftest.err
11659  rm -f conftest.er1
11660  cat conftest.err >&5
11661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662  (exit $ac_status); } >/dev/null; then
11663  if test -s conftest.err; then
11664    ac_cpp_err=$ac_c_preproc_warn_flag
11665  else
11666    ac_cpp_err=
11667  fi
11668else
11669  ac_cpp_err=yes
11670fi
11671if test -z "$ac_cpp_err"; then
11672  ac_header_preproc=yes
11673else
11674  echo "$as_me: failed program was:" >&5
11675sed 's/^/| /' conftest.$ac_ext >&5
11676
11677  ac_header_preproc=no
11678fi
11679rm -f conftest.err conftest.$ac_ext
11680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681echo "${ECHO_T}$ac_header_preproc" >&6
11682
11683# So?  What about this header?
11684case $ac_header_compiler:$ac_header_preproc in
11685  yes:no )
11686    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11687echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11689echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11690    (
11691      cat <<\_ASBOX
11692## ------------------------------------ ##
11693## Report this to bug-autoconf@gnu.org. ##
11694## ------------------------------------ ##
11695_ASBOX
11696    ) |
11697      sed "s/^/$as_me: WARNING:     /" >&2
11698    ;;
11699  no:yes )
11700    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11701echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11702    { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11703echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11704    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11705echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11706    (
11707      cat <<\_ASBOX
11708## ------------------------------------ ##
11709## Report this to bug-autoconf@gnu.org. ##
11710## ------------------------------------ ##
11711_ASBOX
11712    ) |
11713      sed "s/^/$as_me: WARNING:     /" >&2
11714    ;;
11715esac
11716echo "$as_me:$LINENO: checking for zlib.h" >&5
11717echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
11718if test "${ac_cv_header_zlib_h+set}" = set; then
11719  echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721  ac_cv_header_zlib_h=$ac_header_preproc
11722fi
11723echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11724echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
11725
11726fi
11727
11728
11729
11730
11731echo "$as_me:$LINENO: checking for mhash_init in -lmhash" >&5
11732echo $ECHO_N "checking for mhash_init in -lmhash... $ECHO_C" >&6
11733if test "${ac_cv_lib_mhash_mhash_init+set}" = set; then
11734  echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
11736  ac_check_lib_save_LIBS=$LIBS
11737LIBS="-lmhash  $LIBS"
11738cat >conftest.$ac_ext <<_ACEOF
11739#line $LINENO "configure"
11740/* confdefs.h.  */
11741_ACEOF
11742cat confdefs.h >>conftest.$ac_ext
11743cat >>conftest.$ac_ext <<_ACEOF
11744/* end confdefs.h.  */
11745
11746/* Override any gcc2 internal prototype to avoid an error.  */
11747#ifdef __cplusplus
11748extern "C"
11749#endif
11750/* We use char because int might match the return type of a gcc2
11751   builtin and then its argument prototype would still apply.  */
11752char mhash_init ();
11753int
11754main ()
11755{
11756mhash_init ();
11757  ;
11758  return 0;
11759}
11760_ACEOF
11761rm -f conftest.$ac_objext conftest$ac_exeext
11762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763  (eval $ac_link) 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); } &&
11767         { ac_try='test -s conftest$ac_exeext'
11768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769  (eval $ac_try) 2>&5
11770  ac_status=$?
11771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772  (exit $ac_status); }; }; then
11773  ac_cv_lib_mhash_mhash_init=yes
11774else
11775  echo "$as_me: failed program was:" >&5
11776sed 's/^/| /' conftest.$ac_ext >&5
11777
11778ac_cv_lib_mhash_mhash_init=no
11779fi
11780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11781LIBS=$ac_check_lib_save_LIBS
11782fi
11783echo "$as_me:$LINENO: result: $ac_cv_lib_mhash_mhash_init" >&5
11784echo "${ECHO_T}$ac_cv_lib_mhash_mhash_init" >&6
11785if test $ac_cv_lib_mhash_mhash_init = yes; then
11786  cat >>confdefs.h <<_ACEOF
11787#define HAVE_LIBMHASH 1
11788_ACEOF
11789
11790  LIBS="-lmhash $LIBS"
11791
11792fi
11793
11794if test "${ac_cv_header_mhash_h+set}" = set; then
11795  echo "$as_me:$LINENO: checking for mhash.h" >&5
11796echo $ECHO_N "checking for mhash.h... $ECHO_C" >&6
11797if test "${ac_cv_header_mhash_h+set}" = set; then
11798  echo $ECHO_N "(cached) $ECHO_C" >&6
11799fi
11800echo "$as_me:$LINENO: result: $ac_cv_header_mhash_h" >&5
11801echo "${ECHO_T}$ac_cv_header_mhash_h" >&6
11802else
11803  # Is the header compilable?
11804echo "$as_me:$LINENO: checking mhash.h usability" >&5
11805echo $ECHO_N "checking mhash.h usability... $ECHO_C" >&6
11806cat >conftest.$ac_ext <<_ACEOF
11807#line $LINENO "configure"
11808/* confdefs.h.  */
11809_ACEOF
11810cat confdefs.h >>conftest.$ac_ext
11811cat >>conftest.$ac_ext <<_ACEOF
11812/* end confdefs.h.  */
11813$ac_includes_default
11814#include <mhash.h>
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818  (eval $ac_compile) 2>&5
11819  ac_status=$?
11820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821  (exit $ac_status); } &&
11822         { ac_try='test -s conftest.$ac_objext'
11823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824  (eval $ac_try) 2>&5
11825  ac_status=$?
11826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827  (exit $ac_status); }; }; then
11828  ac_header_compiler=yes
11829else
11830  echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833ac_header_compiler=no
11834fi
11835rm -f conftest.$ac_objext conftest.$ac_ext
11836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837echo "${ECHO_T}$ac_header_compiler" >&6
11838
11839# Is the header present?
11840echo "$as_me:$LINENO: checking mhash.h presence" >&5
11841echo $ECHO_N "checking mhash.h presence... $ECHO_C" >&6
11842cat >conftest.$ac_ext <<_ACEOF
11843#line $LINENO "configure"
11844/* confdefs.h.  */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h.  */
11849#include <mhash.h>
11850_ACEOF
11851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11852  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11853  ac_status=$?
11854  grep -v '^ *+' conftest.er1 >conftest.err
11855  rm -f conftest.er1
11856  cat conftest.err >&5
11857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858  (exit $ac_status); } >/dev/null; then
11859  if test -s conftest.err; then
11860    ac_cpp_err=$ac_c_preproc_warn_flag
11861  else
11862    ac_cpp_err=
11863  fi
11864else
11865  ac_cpp_err=yes
11866fi
11867if test -z "$ac_cpp_err"; then
11868  ac_header_preproc=yes
11869else
11870  echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873  ac_header_preproc=no
11874fi
11875rm -f conftest.err conftest.$ac_ext
11876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877echo "${ECHO_T}$ac_header_preproc" >&6
11878
11879# So?  What about this header?
11880case $ac_header_compiler:$ac_header_preproc in
11881  yes:no )
11882    { echo "$as_me:$LINENO: WARNING: mhash.h: accepted by the compiler, rejected by the preprocessor!" >&5
11883echo "$as_me: WARNING: mhash.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884    { echo "$as_me:$LINENO: WARNING: mhash.h: proceeding with the preprocessor's result" >&5
11885echo "$as_me: WARNING: mhash.h: proceeding with the preprocessor's result" >&2;}
11886    (
11887      cat <<\_ASBOX
11888## ------------------------------------ ##
11889## Report this to bug-autoconf@gnu.org. ##
11890## ------------------------------------ ##
11891_ASBOX
11892    ) |
11893      sed "s/^/$as_me: WARNING:     /" >&2
11894    ;;
11895  no:yes )
11896    { echo "$as_me:$LINENO: WARNING: mhash.h: present but cannot be compiled" >&5
11897echo "$as_me: WARNING: mhash.h: present but cannot be compiled" >&2;}
11898    { echo "$as_me:$LINENO: WARNING: mhash.h: check for missing prerequisite headers?" >&5
11899echo "$as_me: WARNING: mhash.h: check for missing prerequisite headers?" >&2;}
11900    { echo "$as_me:$LINENO: WARNING: mhash.h: proceeding with the preprocessor's result" >&5
11901echo "$as_me: WARNING: mhash.h: proceeding with the preprocessor's result" >&2;}
11902    (
11903      cat <<\_ASBOX
11904## ------------------------------------ ##
11905## Report this to bug-autoconf@gnu.org. ##
11906## ------------------------------------ ##
11907_ASBOX
11908    ) |
11909      sed "s/^/$as_me: WARNING:     /" >&2
11910    ;;
11911esac
11912echo "$as_me:$LINENO: checking for mhash.h" >&5
11913echo $ECHO_N "checking for mhash.h... $ECHO_C" >&6
11914if test "${ac_cv_header_mhash_h+set}" = set; then
11915  echo $ECHO_N "(cached) $ECHO_C" >&6
11916else
11917  ac_cv_header_mhash_h=$ac_header_preproc
11918fi
11919echo "$as_me:$LINENO: result: $ac_cv_header_mhash_h" >&5
11920echo "${ECHO_T}$ac_cv_header_mhash_h" >&6
11921
11922fi
11923
11924
11925
11926
11927echo "$as_me:$LINENO: checking for mcrypt_generic in -lmcrypt" >&5
11928echo $ECHO_N "checking for mcrypt_generic in -lmcrypt... $ECHO_C" >&6
11929if test "${ac_cv_lib_mcrypt_mcrypt_generic+set}" = set; then
11930  echo $ECHO_N "(cached) $ECHO_C" >&6
11931else
11932  ac_check_lib_save_LIBS=$LIBS
11933LIBS="-lmcrypt  $LIBS"
11934cat >conftest.$ac_ext <<_ACEOF
11935#line $LINENO "configure"
11936/* confdefs.h.  */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h.  */
11941
11942/* Override any gcc2 internal prototype to avoid an error.  */
11943#ifdef __cplusplus
11944extern "C"
11945#endif
11946/* We use char because int might match the return type of a gcc2
11947   builtin and then its argument prototype would still apply.  */
11948char mcrypt_generic ();
11949int
11950main ()
11951{
11952mcrypt_generic ();
11953  ;
11954  return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
11958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959  (eval $ac_link) 2>&5
11960  ac_status=$?
11961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962  (exit $ac_status); } &&
11963         { ac_try='test -s conftest$ac_exeext'
11964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965  (eval $ac_try) 2>&5
11966  ac_status=$?
11967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968  (exit $ac_status); }; }; then
11969  ac_cv_lib_mcrypt_mcrypt_generic=yes
11970else
11971  echo "$as_me: failed program was:" >&5
11972sed 's/^/| /' conftest.$ac_ext >&5
11973
11974ac_cv_lib_mcrypt_mcrypt_generic=no
11975fi
11976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11977LIBS=$ac_check_lib_save_LIBS
11978fi
11979echo "$as_me:$LINENO: result: $ac_cv_lib_mcrypt_mcrypt_generic" >&5
11980echo "${ECHO_T}$ac_cv_lib_mcrypt_mcrypt_generic" >&6
11981if test $ac_cv_lib_mcrypt_mcrypt_generic = yes; then
11982  cat >>confdefs.h <<_ACEOF
11983#define HAVE_LIBMCRYPT 1
11984_ACEOF
11985
11986  LIBS="-lmcrypt $LIBS"
11987
11988fi
11989
11990if test "${ac_cv_header_mcrypt_h+set}" = set; then
11991  echo "$as_me:$LINENO: checking for mcrypt.h" >&5
11992echo $ECHO_N "checking for mcrypt.h... $ECHO_C" >&6
11993if test "${ac_cv_header_mcrypt_h+set}" = set; then
11994  echo $ECHO_N "(cached) $ECHO_C" >&6
11995fi
11996echo "$as_me:$LINENO: result: $ac_cv_header_mcrypt_h" >&5
11997echo "${ECHO_T}$ac_cv_header_mcrypt_h" >&6
11998else
11999  # Is the header compilable?
12000echo "$as_me:$LINENO: checking mcrypt.h usability" >&5
12001echo $ECHO_N "checking mcrypt.h usability... $ECHO_C" >&6
12002cat >conftest.$ac_ext <<_ACEOF
12003#line $LINENO "configure"
12004/* confdefs.h.  */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h.  */
12009$ac_includes_default
12010#include <mcrypt.h>
12011_ACEOF
12012rm -f conftest.$ac_objext
12013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014  (eval $ac_compile) 2>&5
12015  ac_status=$?
12016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017  (exit $ac_status); } &&
12018         { ac_try='test -s conftest.$ac_objext'
12019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020  (eval $ac_try) 2>&5
12021  ac_status=$?
12022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023  (exit $ac_status); }; }; then
12024  ac_header_compiler=yes
12025else
12026  echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029ac_header_compiler=no
12030fi
12031rm -f conftest.$ac_objext conftest.$ac_ext
12032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12033echo "${ECHO_T}$ac_header_compiler" >&6
12034
12035# Is the header present?
12036echo "$as_me:$LINENO: checking mcrypt.h presence" >&5
12037echo $ECHO_N "checking mcrypt.h presence... $ECHO_C" >&6
12038cat >conftest.$ac_ext <<_ACEOF
12039#line $LINENO "configure"
12040/* confdefs.h.  */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h.  */
12045#include <mcrypt.h>
12046_ACEOF
12047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12048  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12049  ac_status=$?
12050  grep -v '^ *+' conftest.er1 >conftest.err
12051  rm -f conftest.er1
12052  cat conftest.err >&5
12053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054  (exit $ac_status); } >/dev/null; then
12055  if test -s conftest.err; then
12056    ac_cpp_err=$ac_c_preproc_warn_flag
12057  else
12058    ac_cpp_err=
12059  fi
12060else
12061  ac_cpp_err=yes
12062fi
12063if test -z "$ac_cpp_err"; then
12064  ac_header_preproc=yes
12065else
12066  echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069  ac_header_preproc=no
12070fi
12071rm -f conftest.err conftest.$ac_ext
12072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12073echo "${ECHO_T}$ac_header_preproc" >&6
12074
12075# So?  What about this header?
12076case $ac_header_compiler:$ac_header_preproc in
12077  yes:no )
12078    { echo "$as_me:$LINENO: WARNING: mcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12079echo "$as_me: WARNING: mcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12080    { echo "$as_me:$LINENO: WARNING: mcrypt.h: proceeding with the preprocessor's result" >&5
12081echo "$as_me: WARNING: mcrypt.h: proceeding with the preprocessor's result" >&2;}
12082    (
12083      cat <<\_ASBOX
12084## ------------------------------------ ##
12085## Report this to bug-autoconf@gnu.org. ##
12086## ------------------------------------ ##
12087_ASBOX
12088    ) |
12089      sed "s/^/$as_me: WARNING:     /" >&2
12090    ;;
12091  no:yes )
12092    { echo "$as_me:$LINENO: WARNING: mcrypt.h: present but cannot be compiled" >&5
12093echo "$as_me: WARNING: mcrypt.h: present but cannot be compiled" >&2;}
12094    { echo "$as_me:$LINENO: WARNING: mcrypt.h: check for missing prerequisite headers?" >&5
12095echo "$as_me: WARNING: mcrypt.h: check for missing prerequisite headers?" >&2;}
12096    { echo "$as_me:$LINENO: WARNING: mcrypt.h: proceeding with the preprocessor's result" >&5
12097echo "$as_me: WARNING: mcrypt.h: proceeding with the preprocessor's result" >&2;}
12098    (
12099      cat <<\_ASBOX
12100## ------------------------------------ ##
12101## Report this to bug-autoconf@gnu.org. ##
12102## ------------------------------------ ##
12103_ASBOX
12104    ) |
12105      sed "s/^/$as_me: WARNING:     /" >&2
12106    ;;
12107esac
12108echo "$as_me:$LINENO: checking for mcrypt.h" >&5
12109echo $ECHO_N "checking for mcrypt.h... $ECHO_C" >&6
12110if test "${ac_cv_header_mcrypt_h+set}" = set; then
12111  echo $ECHO_N "(cached) $ECHO_C" >&6
12112else
12113  ac_cv_header_mcrypt_h=$ac_header_preproc
12114fi
12115echo "$as_me:$LINENO: result: $ac_cv_header_mcrypt_h" >&5
12116echo "${ECHO_T}$ac_cv_header_mcrypt_h" >&6
12117
12118fi
12119
12120
12121
12122
12123echo "$as_me:$LINENO: checking for jpeg_read_coefficients in -ljpeg" >&5
12124echo $ECHO_N "checking for jpeg_read_coefficients in -ljpeg... $ECHO_C" >&6
12125if test "${ac_cv_lib_jpeg_jpeg_read_coefficients+set}" = set; then
12126  echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128  ac_check_lib_save_LIBS=$LIBS
12129LIBS="-ljpeg  $LIBS"
12130cat >conftest.$ac_ext <<_ACEOF
12131#line $LINENO "configure"
12132/* confdefs.h.  */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h.  */
12137
12138/* Override any gcc2 internal prototype to avoid an error.  */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142/* We use char because int might match the return type of a gcc2
12143   builtin and then its argument prototype would still apply.  */
12144char jpeg_read_coefficients ();
12145int
12146main ()
12147{
12148jpeg_read_coefficients ();
12149  ;
12150  return 0;
12151}
12152_ACEOF
12153rm -f conftest.$ac_objext conftest$ac_exeext
12154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155  (eval $ac_link) 2>&5
12156  ac_status=$?
12157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158  (exit $ac_status); } &&
12159         { ac_try='test -s conftest$ac_exeext'
12160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161  (eval $ac_try) 2>&5
12162  ac_status=$?
12163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164  (exit $ac_status); }; }; then
12165  ac_cv_lib_jpeg_jpeg_read_coefficients=yes
12166else
12167  echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170ac_cv_lib_jpeg_jpeg_read_coefficients=no
12171fi
12172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12173LIBS=$ac_check_lib_save_LIBS
12174fi
12175echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_coefficients" >&5
12176echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_coefficients" >&6
12177if test $ac_cv_lib_jpeg_jpeg_read_coefficients = yes; then
12178  cat >>confdefs.h <<_ACEOF
12179#define HAVE_LIBJPEG 1
12180_ACEOF
12181
12182  LIBS="-ljpeg $LIBS"
12183
12184fi
12185
12186if test "${ac_cv_header_jpeglib_h+set}" = set; then
12187  echo "$as_me:$LINENO: checking for jpeglib.h" >&5
12188echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
12189if test "${ac_cv_header_jpeglib_h+set}" = set; then
12190  echo $ECHO_N "(cached) $ECHO_C" >&6
12191fi
12192echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
12193echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
12194else
12195  # Is the header compilable?
12196echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
12197echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
12198cat >conftest.$ac_ext <<_ACEOF
12199#line $LINENO "configure"
12200/* confdefs.h.  */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h.  */
12205$ac_includes_default
12206#include <jpeglib.h>
12207_ACEOF
12208rm -f conftest.$ac_objext
12209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210  (eval $ac_compile) 2>&5
12211  ac_status=$?
12212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213  (exit $ac_status); } &&
12214         { ac_try='test -s conftest.$ac_objext'
12215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216  (eval $ac_try) 2>&5
12217  ac_status=$?
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); }; }; then
12220  ac_header_compiler=yes
12221else
12222  echo "$as_me: failed program was:" >&5
12223sed 's/^/| /' conftest.$ac_ext >&5
12224
12225ac_header_compiler=no
12226fi
12227rm -f conftest.$ac_objext conftest.$ac_ext
12228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229echo "${ECHO_T}$ac_header_compiler" >&6
12230
12231# Is the header present?
12232echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
12233echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
12234cat >conftest.$ac_ext <<_ACEOF
12235#line $LINENO "configure"
12236/* confdefs.h.  */
12237_ACEOF
12238cat confdefs.h >>conftest.$ac_ext
12239cat >>conftest.$ac_ext <<_ACEOF
12240/* end confdefs.h.  */
12241#include <jpeglib.h>
12242_ACEOF
12243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12245  ac_status=$?
12246  grep -v '^ *+' conftest.er1 >conftest.err
12247  rm -f conftest.er1
12248  cat conftest.err >&5
12249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250  (exit $ac_status); } >/dev/null; then
12251  if test -s conftest.err; then
12252    ac_cpp_err=$ac_c_preproc_warn_flag
12253  else
12254    ac_cpp_err=
12255  fi
12256else
12257  ac_cpp_err=yes
12258fi
12259if test -z "$ac_cpp_err"; then
12260  ac_header_preproc=yes
12261else
12262  echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265  ac_header_preproc=no
12266fi
12267rm -f conftest.err conftest.$ac_ext
12268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269echo "${ECHO_T}$ac_header_preproc" >&6
12270
12271# So?  What about this header?
12272case $ac_header_compiler:$ac_header_preproc in
12273  yes:no )
12274    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12275echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
12277echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
12278    (
12279      cat <<\_ASBOX
12280## ------------------------------------ ##
12281## Report this to bug-autoconf@gnu.org. ##
12282## ------------------------------------ ##
12283_ASBOX
12284    ) |
12285      sed "s/^/$as_me: WARNING:     /" >&2
12286    ;;
12287  no:yes )
12288    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
12289echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
12290    { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
12291echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
12292    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
12293echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
12294    (
12295      cat <<\_ASBOX
12296## ------------------------------------ ##
12297## Report this to bug-autoconf@gnu.org. ##
12298## ------------------------------------ ##
12299_ASBOX
12300    ) |
12301      sed "s/^/$as_me: WARNING:     /" >&2
12302    ;;
12303esac
12304echo "$as_me:$LINENO: checking for jpeglib.h" >&5
12305echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
12306if test "${ac_cv_header_jpeglib_h+set}" = set; then
12307  echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309  ac_cv_header_jpeglib_h=$ac_header_preproc
12310fi
12311echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
12312echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
12313
12314fi
12315
12316
12317
12318if test "$ac_cv_header_jpeglib_h" = no || test "$ac_cv_lib_jpeg_jpeg_read_coefficients" = no ;
12319then
12320	echo "**********";
12321	echo "libjpeg could not be found on your system. Steghide will be compiled without";
12322	echo "support for jpeg files. You will not be able to read or write jpeg files!";
12323	echo "libjpeg can be downloaded from http://www.ijg.org/";
12324	echo "**********";
12325else
12326
12327cat >>confdefs.h <<\_ACEOF
12328#define USE_LIBJPEG 1
12329_ACEOF
12330
12331fi
12332
12333if test "$ac_cv_header_mcrypt_h" = no || test "$ac_cv_lib_mcrypt_mcrypt_module_open" = no ;
12334then
12335	echo "**********";
12336	echo "libmcrypt could not be found on your system. Steghide will be compiled without";
12337	echo "support for encryption. You will not be able to extract encrypted data!";
12338	echo "libmcrypt can be downloaded from http://mcrypt.sourceforge.net/";
12339	echo "**********";
12340else
12341
12342cat >>confdefs.h <<\_ACEOF
12343#define USE_LIBMCRYPT 1
12344_ACEOF
12345
12346fi
12347
12348if test "$ac_cv_header_zlib_h" = no || test "$ac_cv_lib_z_zlibVersion" = no ;
12349then
12350	echo "**********";
12351	echo "zlib could not be found on your system. Steghide will be compiled without";
12352	echo "the ability to compress and uncompress embedded data!";
12353	echo "zlib can be downloaded from http://www.gzip.org/zlib/";
12354	echo "**********";
12355else
12356
12357cat >>confdefs.h <<\_ACEOF
12358#define USE_ZLIB 1
12359_ACEOF
12360
12361fi
12362
12363if test "$ac_cv_header_mhash_h" = no || test "$ac_cv_lib_mhash_mhash_init" = no ;
12364then
12365	echo "**********";
12366	echo "libmhash could not be found on your system but is needed to compile steghide.";
12367	echo "libmhash can be downloaded from http://mhash.sourceforge.net/.";
12368	echo "**********";
12369	{ { echo "$as_me:$LINENO: error: libmhash not found" >&5
12370echo "$as_me: error: libmhash not found" >&2;}
12371   { (exit 1); exit 1; }; }
12372fi
12373
12374                                                                                                    ac_config_files="$ac_config_files Makefile steghide.spec steghide.doxygen doc/Makefile po/Makefile.in src/Makefile tests/Makefile tests/data/Makefile m4/Makefile intl/Makefile"
12375cat >confcache <<\_ACEOF
12376# This file is a shell script that caches the results of configure
12377# tests run on this system so they can be shared between configure
12378# scripts and configure runs, see configure's option --config-cache.
12379# It is not useful on other systems.  If it contains results you don't
12380# want to keep, you may remove or edit it.
12381#
12382# config.status only pays attention to the cache file if you give it
12383# the --recheck option to rerun configure.
12384#
12385# `ac_cv_env_foo' variables (set or unset) will be overridden when
12386# loading this file, other *unset* `ac_cv_foo' will be assigned the
12387# following values.
12388
12389_ACEOF
12390
12391# The following way of writing the cache mishandles newlines in values,
12392# but we know of no workaround that is simple, portable, and efficient.
12393# So, don't put newlines in cache variables' values.
12394# Ultrix sh set writes to stderr and can't be redirected directly,
12395# and sets the high bit in the cache file unless we assign to the vars.
12396{
12397  (set) 2>&1 |
12398    case `(ac_space=' '; set | grep ac_space) 2>&1` in
12399    *ac_space=\ *)
12400      # `set' does not quote correctly, so add quotes (double-quote
12401      # substitution turns \\\\ into \\, and sed turns \\ into \).
12402      sed -n \
12403        "s/'/'\\\\''/g;
12404    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12405      ;;
12406    *)
12407      # `set' quotes correctly as required by POSIX, so do not add quotes.
12408      sed -n \
12409        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12410      ;;
12411    esac;
12412} |
12413  sed '
12414     t clear
12415     : clear
12416     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12417     t end
12418     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12419     : end' >>confcache
12420if diff $cache_file confcache >/dev/null 2>&1; then :; else
12421  if test -w $cache_file; then
12422    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12423    cat confcache >$cache_file
12424  else
12425    echo "not updating unwritable cache $cache_file"
12426  fi
12427fi
12428rm -f confcache
12429
12430test "x$prefix" = xNONE && prefix=$ac_default_prefix
12431# Let make expand exec_prefix.
12432test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12433
12434# VPATH may cause trouble with some makes, so we remove $(srcdir),
12435# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12436# trailing colons and then remove the whole line if VPATH becomes empty
12437# (actually we leave an empty line to preserve line numbers).
12438if test "x$srcdir" = x.; then
12439  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
12440s/:*\$(srcdir):*/:/;
12441s/:*\${srcdir}:*/:/;
12442s/:*@srcdir@:*/:/;
12443s/^\([^=]*=[ 	]*\):*/\1/;
12444s/:*$//;
12445s/^[^=]*=[ 	]*$//;
12446}'
12447fi
12448
12449DEFS=-DHAVE_CONFIG_H
12450
12451ac_libobjs=
12452ac_ltlibobjs=
12453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12454  # 1. Remove the extension, and $U if already installed.
12455  ac_i=`echo "$ac_i" |
12456         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12457  # 2. Add them.
12458  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12459  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12460done
12461LIBOBJS=$ac_libobjs
12462
12463LTLIBOBJS=$ac_ltlibobjs
12464
12465
12466if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12467  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12468Usually this means the macro was only invoked conditionally." >&5
12469echo "$as_me: error: conditional \"AMDEP\" was never defined.
12470Usually this means the macro was only invoked conditionally." >&2;}
12471   { (exit 1); exit 1; }; }
12472fi
12473if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12474  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
12475Usually this means the macro was only invoked conditionally." >&5
12476echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
12477Usually this means the macro was only invoked conditionally." >&2;}
12478   { (exit 1); exit 1; }; }
12479fi
12480if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12481  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12482Usually this means the macro was only invoked conditionally." >&5
12483echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12484Usually this means the macro was only invoked conditionally." >&2;}
12485   { (exit 1); exit 1; }; }
12486fi
12487if test -z "${USE_INTLDIR_TRUE}" && test -z "${USE_INTLDIR_FALSE}"; then
12488  { { echo "$as_me:$LINENO: error: conditional \"USE_INTLDIR\" was never defined.
12489Usually this means the macro was only invoked conditionally." >&5
12490echo "$as_me: error: conditional \"USE_INTLDIR\" was never defined.
12491Usually this means the macro was only invoked conditionally." >&2;}
12492   { (exit 1); exit 1; }; }
12493fi
12494if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12495  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
12496Usually this means the macro was only invoked conditionally." >&5
12497echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
12498Usually this means the macro was only invoked conditionally." >&2;}
12499   { (exit 1); exit 1; }; }
12500fi
12501if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
12502  { { echo "$as_me:$LINENO: error: conditional \"HAVE_PERL\" was never defined.
12503Usually this means the macro was only invoked conditionally." >&5
12504echo "$as_me: error: conditional \"HAVE_PERL\" was never defined.
12505Usually this means the macro was only invoked conditionally." >&2;}
12506   { (exit 1); exit 1; }; }
12507fi
12508
12509: ${CONFIG_STATUS=./config.status}
12510ac_clean_files_save=$ac_clean_files
12511ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12512{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12513echo "$as_me: creating $CONFIG_STATUS" >&6;}
12514cat >$CONFIG_STATUS <<_ACEOF
12515#! $SHELL
12516# Generated by $as_me.
12517# Run this file to recreate the current configuration.
12518# Compiler output produced by configure, useful for debugging
12519# configure, is in config.log if it exists.
12520
12521debug=false
12522ac_cs_recheck=false
12523ac_cs_silent=false
12524SHELL=\${CONFIG_SHELL-$SHELL}
12525_ACEOF
12526
12527cat >>$CONFIG_STATUS <<\_ACEOF
12528## --------------------- ##
12529## M4sh Initialization.  ##
12530## --------------------- ##
12531
12532# Be Bourne compatible
12533if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12534  emulate sh
12535  NULLCMD=:
12536  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12537  # is contrary to our usage.  Disable this feature.
12538  alias -g '${1+"$@"}'='"$@"'
12539elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12540  set -o posix
12541fi
12542
12543# Support unset when possible.
12544if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12545  as_unset=unset
12546else
12547  as_unset=false
12548fi
12549
12550
12551# Work around bugs in pre-3.0 UWIN ksh.
12552$as_unset ENV MAIL MAILPATH
12553PS1='$ '
12554PS2='> '
12555PS4='+ '
12556
12557# NLS nuisances.
12558for as_var in \
12559  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12560  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12561  LC_TELEPHONE LC_TIME
12562do
12563  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12564    eval $as_var=C; export $as_var
12565  else
12566    $as_unset $as_var
12567  fi
12568done
12569
12570# Required to use basename.
12571if expr a : '\(a\)' >/dev/null 2>&1; then
12572  as_expr=expr
12573else
12574  as_expr=false
12575fi
12576
12577if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12578  as_basename=basename
12579else
12580  as_basename=false
12581fi
12582
12583
12584# Name of the executable.
12585as_me=`$as_basename "$0" ||
12586$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12587	 X"$0" : 'X\(//\)$' \| \
12588	 X"$0" : 'X\(/\)$' \| \
12589	 .     : '\(.\)' 2>/dev/null ||
12590echo X/"$0" |
12591    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12592  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
12593  	  /^X\/\(\/\).*/{ s//\1/; q; }
12594  	  s/.*/./; q'`
12595
12596
12597# PATH needs CR, and LINENO needs CR and PATH.
12598# Avoid depending upon Character Ranges.
12599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12602as_cr_digits='0123456789'
12603as_cr_alnum=$as_cr_Letters$as_cr_digits
12604
12605# The user is always right.
12606if test "${PATH_SEPARATOR+set}" != set; then
12607  echo "#! /bin/sh" >conf$$.sh
12608  echo  "exit 0"   >>conf$$.sh
12609  chmod +x conf$$.sh
12610  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12611    PATH_SEPARATOR=';'
12612  else
12613    PATH_SEPARATOR=:
12614  fi
12615  rm -f conf$$.sh
12616fi
12617
12618
12619  as_lineno_1=$LINENO
12620  as_lineno_2=$LINENO
12621  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12622  test "x$as_lineno_1" != "x$as_lineno_2" &&
12623  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12624  # Find who we are.  Look in the path if we contain no path at all
12625  # relative or not.
12626  case $0 in
12627    *[\\/]* ) as_myself=$0 ;;
12628    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631  IFS=$as_save_IFS
12632  test -z "$as_dir" && as_dir=.
12633  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12634done
12635
12636       ;;
12637  esac
12638  # We did not find ourselves, most probably we were run as `sh COMMAND'
12639  # in which case we are not to be found in the path.
12640  if test "x$as_myself" = x; then
12641    as_myself=$0
12642  fi
12643  if test ! -f "$as_myself"; then
12644    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12645echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12646   { (exit 1); exit 1; }; }
12647  fi
12648  case $CONFIG_SHELL in
12649  '')
12650    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12652do
12653  IFS=$as_save_IFS
12654  test -z "$as_dir" && as_dir=.
12655  for as_base in sh bash ksh sh5; do
12656	 case $as_dir in
12657	 /*)
12658	   if ("$as_dir/$as_base" -c '
12659  as_lineno_1=$LINENO
12660  as_lineno_2=$LINENO
12661  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12662  test "x$as_lineno_1" != "x$as_lineno_2" &&
12663  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12664	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12665	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12666	     CONFIG_SHELL=$as_dir/$as_base
12667	     export CONFIG_SHELL
12668	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12669	   fi;;
12670	 esac
12671       done
12672done
12673;;
12674  esac
12675
12676  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12677  # uniformly replaced by the line number.  The first 'sed' inserts a
12678  # line-number line before each line; the second 'sed' does the real
12679  # work.  The second script uses 'N' to pair each line-number line
12680  # with the numbered line, and appends trailing '-' during
12681  # substitution so that $LINENO is not a special case at line end.
12682  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12683  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12684  sed '=' <$as_myself |
12685    sed '
12686      N
12687      s,$,-,
12688      : loop
12689      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12690      t loop
12691      s,-$,,
12692      s,^['$as_cr_digits']*\n,,
12693    ' >$as_me.lineno &&
12694  chmod +x $as_me.lineno ||
12695    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12696echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12697   { (exit 1); exit 1; }; }
12698
12699  # Don't try to exec as it changes $[0], causing all sort of problems
12700  # (the dirname of $[0] is not the place where we might find the
12701  # original and so on.  Autoconf is especially sensible to this).
12702  . ./$as_me.lineno
12703  # Exit status is that of the last command.
12704  exit
12705}
12706
12707
12708case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12709  *c*,-n*) ECHO_N= ECHO_C='
12710' ECHO_T='	' ;;
12711  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12712  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12713esac
12714
12715if expr a : '\(a\)' >/dev/null 2>&1; then
12716  as_expr=expr
12717else
12718  as_expr=false
12719fi
12720
12721rm -f conf$$ conf$$.exe conf$$.file
12722echo >conf$$.file
12723if ln -s conf$$.file conf$$ 2>/dev/null; then
12724  # We could just check for DJGPP; but this test a) works b) is more generic
12725  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12726  if test -f conf$$.exe; then
12727    # Don't use ln at all; we don't have any links
12728    as_ln_s='cp -p'
12729  else
12730    as_ln_s='ln -s'
12731  fi
12732elif ln conf$$.file conf$$ 2>/dev/null; then
12733  as_ln_s=ln
12734else
12735  as_ln_s='cp -p'
12736fi
12737rm -f conf$$ conf$$.exe conf$$.file
12738
12739if mkdir -p . 2>/dev/null; then
12740  as_mkdir_p=:
12741else
12742  as_mkdir_p=false
12743fi
12744
12745as_executable_p="test -f"
12746
12747# Sed expression to map a string onto a valid CPP name.
12748as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12749
12750# Sed expression to map a string onto a valid variable name.
12751as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12752
12753
12754# IFS
12755# We need space, tab and new line, in precisely that order.
12756as_nl='
12757'
12758IFS=" 	$as_nl"
12759
12760# CDPATH.
12761$as_unset CDPATH
12762
12763exec 6>&1
12764
12765# Open the log real soon, to keep \$[0] and so on meaningful, and to
12766# report actual input values of CONFIG_FILES etc. instead of their
12767# values after options handling.  Logging --version etc. is OK.
12768exec 5>>config.log
12769{
12770  echo
12771  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12772## Running $as_me. ##
12773_ASBOX
12774} >&5
12775cat >&5 <<_CSEOF
12776
12777This file was extended by $as_me, which was
12778generated by GNU Autoconf 2.57.  Invocation command line was
12779
12780  CONFIG_FILES    = $CONFIG_FILES
12781  CONFIG_HEADERS  = $CONFIG_HEADERS
12782  CONFIG_LINKS    = $CONFIG_LINKS
12783  CONFIG_COMMANDS = $CONFIG_COMMANDS
12784  $ $0 $@
12785
12786_CSEOF
12787echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12788echo >&5
12789_ACEOF
12790
12791# Files that config.status was made for.
12792if test -n "$ac_config_files"; then
12793  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12794fi
12795
12796if test -n "$ac_config_headers"; then
12797  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12798fi
12799
12800if test -n "$ac_config_links"; then
12801  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12802fi
12803
12804if test -n "$ac_config_commands"; then
12805  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12806fi
12807
12808cat >>$CONFIG_STATUS <<\_ACEOF
12809
12810ac_cs_usage="\
12811\`$as_me' instantiates files from templates according to the
12812current configuration.
12813
12814Usage: $0 [OPTIONS] [FILE]...
12815
12816  -h, --help       print this help, then exit
12817  -V, --version    print version number, then exit
12818  -q, --quiet      do not print progress messages
12819  -d, --debug      don't remove temporary files
12820      --recheck    update $as_me by reconfiguring in the same conditions
12821  --file=FILE[:TEMPLATE]
12822                   instantiate the configuration file FILE
12823  --header=FILE[:TEMPLATE]
12824                   instantiate the configuration header FILE
12825
12826Configuration files:
12827$config_files
12828
12829Configuration headers:
12830$config_headers
12831
12832Configuration commands:
12833$config_commands
12834
12835Report bugs to <bug-autoconf@gnu.org>."
12836_ACEOF
12837
12838cat >>$CONFIG_STATUS <<_ACEOF
12839ac_cs_version="\\
12840config.status
12841configured by $0, generated by GNU Autoconf 2.57,
12842  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12843
12844Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12845Free Software Foundation, Inc.
12846This config.status script is free software; the Free Software Foundation
12847gives unlimited permission to copy, distribute and modify it."
12848srcdir=$srcdir
12849INSTALL="$INSTALL"
12850_ACEOF
12851
12852cat >>$CONFIG_STATUS <<\_ACEOF
12853# If no file are specified by the user, then we need to provide default
12854# value.  By we need to know if files were specified by the user.
12855ac_need_defaults=:
12856while test $# != 0
12857do
12858  case $1 in
12859  --*=*)
12860    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12861    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12862    ac_shift=:
12863    ;;
12864  -*)
12865    ac_option=$1
12866    ac_optarg=$2
12867    ac_shift=shift
12868    ;;
12869  *) # This is not an option, so the user has probably given explicit
12870     # arguments.
12871     ac_option=$1
12872     ac_need_defaults=false;;
12873  esac
12874
12875  case $ac_option in
12876  # Handling of the options.
12877_ACEOF
12878cat >>$CONFIG_STATUS <<\_ACEOF
12879  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12880    ac_cs_recheck=: ;;
12881  --version | --vers* | -V )
12882    echo "$ac_cs_version"; exit 0 ;;
12883  --he | --h)
12884    # Conflict between --help and --header
12885    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12886Try \`$0 --help' for more information." >&5
12887echo "$as_me: error: ambiguous option: $1
12888Try \`$0 --help' for more information." >&2;}
12889   { (exit 1); exit 1; }; };;
12890  --help | --hel | -h )
12891    echo "$ac_cs_usage"; exit 0 ;;
12892  --debug | --d* | -d )
12893    debug=: ;;
12894  --file | --fil | --fi | --f )
12895    $ac_shift
12896    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12897    ac_need_defaults=false;;
12898  --header | --heade | --head | --hea )
12899    $ac_shift
12900    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12901    ac_need_defaults=false;;
12902  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12903  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12904    ac_cs_silent=: ;;
12905
12906  # This is an error.
12907  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12908Try \`$0 --help' for more information." >&5
12909echo "$as_me: error: unrecognized option: $1
12910Try \`$0 --help' for more information." >&2;}
12911   { (exit 1); exit 1; }; } ;;
12912
12913  *) ac_config_targets="$ac_config_targets $1" ;;
12914
12915  esac
12916  shift
12917done
12918
12919ac_configure_extra_args=
12920
12921if $ac_cs_silent; then
12922  exec 6>/dev/null
12923  ac_configure_extra_args="$ac_configure_extra_args --silent"
12924fi
12925
12926_ACEOF
12927cat >>$CONFIG_STATUS <<_ACEOF
12928if \$ac_cs_recheck; then
12929  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12930  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12931fi
12932
12933_ACEOF
12934
12935cat >>$CONFIG_STATUS <<_ACEOF
12936#
12937# INIT-COMMANDS section.
12938#
12939
12940AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12941# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12942    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12943    # from automake.
12944    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
12945    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12946    LINGUAS="${LINGUAS-%UNSET%}"
12947
12948
12949_ACEOF
12950
12951
12952
12953cat >>$CONFIG_STATUS <<\_ACEOF
12954for ac_config_target in $ac_config_targets
12955do
12956  case "$ac_config_target" in
12957  # Handling of arguments.
12958  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12959  "steghide.spec" ) CONFIG_FILES="$CONFIG_FILES steghide.spec" ;;
12960  "steghide.doxygen" ) CONFIG_FILES="$CONFIG_FILES steghide.doxygen" ;;
12961  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12962  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12963  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12964  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12965  "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
12966  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
12967  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12968  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12969  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12970  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12971  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12972echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12973   { (exit 1); exit 1; }; };;
12974  esac
12975done
12976
12977# If the user did not use the arguments to specify the items to instantiate,
12978# then the envvar interface is used.  Set only those that are not.
12979# We use the long form for the default assignment because of an extremely
12980# bizarre bug on SunOS 4.1.3.
12981if $ac_need_defaults; then
12982  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12983  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12984  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12985fi
12986
12987# Have a temporary directory for convenience.  Make it in the build tree
12988# simply because there is no reason to put it here, and in addition,
12989# creating and moving files from /tmp can sometimes cause problems.
12990# Create a temporary directory, and hook for its removal unless debugging.
12991$debug ||
12992{
12993  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12994  trap '{ (exit 1); exit 1; }' 1 2 13 15
12995}
12996
12997# Create a (secure) tmp directory for tmp files.
12998
12999{
13000  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13001  test -n "$tmp" && test -d "$tmp"
13002}  ||
13003{
13004  tmp=./confstat$$-$RANDOM
13005  (umask 077 && mkdir $tmp)
13006} ||
13007{
13008   echo "$me: cannot create a temporary directory in ." >&2
13009   { (exit 1); exit 1; }
13010}
13011
13012_ACEOF
13013
13014cat >>$CONFIG_STATUS <<_ACEOF
13015
13016#
13017# CONFIG_FILES section.
13018#
13019
13020# No need to generate the scripts if there are no CONFIG_FILES.
13021# This happens for instance when ./config.status config.h
13022if test -n "\$CONFIG_FILES"; then
13023  # Protect against being on the right side of a sed subst in config.status.
13024  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13025   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13026s,@SHELL@,$SHELL,;t t
13027s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13028s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13029s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13030s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13031s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13032s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13033s,@exec_prefix@,$exec_prefix,;t t
13034s,@prefix@,$prefix,;t t
13035s,@program_transform_name@,$program_transform_name,;t t
13036s,@bindir@,$bindir,;t t
13037s,@sbindir@,$sbindir,;t t
13038s,@libexecdir@,$libexecdir,;t t
13039s,@datadir@,$datadir,;t t
13040s,@sysconfdir@,$sysconfdir,;t t
13041s,@sharedstatedir@,$sharedstatedir,;t t
13042s,@localstatedir@,$localstatedir,;t t
13043s,@libdir@,$libdir,;t t
13044s,@includedir@,$includedir,;t t
13045s,@oldincludedir@,$oldincludedir,;t t
13046s,@infodir@,$infodir,;t t
13047s,@mandir@,$mandir,;t t
13048s,@build_alias@,$build_alias,;t t
13049s,@host_alias@,$host_alias,;t t
13050s,@target_alias@,$target_alias,;t t
13051s,@DEFS@,$DEFS,;t t
13052s,@ECHO_C@,$ECHO_C,;t t
13053s,@ECHO_N@,$ECHO_N,;t t
13054s,@ECHO_T@,$ECHO_T,;t t
13055s,@LIBS@,$LIBS,;t t
13056s,@build@,$build,;t t
13057s,@build_cpu@,$build_cpu,;t t
13058s,@build_vendor@,$build_vendor,;t t
13059s,@build_os@,$build_os,;t t
13060s,@host@,$host,;t t
13061s,@host_cpu@,$host_cpu,;t t
13062s,@host_vendor@,$host_vendor,;t t
13063s,@host_os@,$host_os,;t t
13064s,@target@,$target,;t t
13065s,@target_cpu@,$target_cpu,;t t
13066s,@target_vendor@,$target_vendor,;t t
13067s,@target_os@,$target_os,;t t
13068s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13069s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13070s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13071s,@CYGPATH_W@,$CYGPATH_W,;t t
13072s,@PACKAGE@,$PACKAGE,;t t
13073s,@VERSION@,$VERSION,;t t
13074s,@ACLOCAL@,$ACLOCAL,;t t
13075s,@AUTOCONF@,$AUTOCONF,;t t
13076s,@AUTOMAKE@,$AUTOMAKE,;t t
13077s,@AUTOHEADER@,$AUTOHEADER,;t t
13078s,@MAKEINFO@,$MAKEINFO,;t t
13079s,@AMTAR@,$AMTAR,;t t
13080s,@install_sh@,$install_sh,;t t
13081s,@STRIP@,$STRIP,;t t
13082s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13083s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13084s,@AWK@,$AWK,;t t
13085s,@SET_MAKE@,$SET_MAKE,;t t
13086s,@CXX@,$CXX,;t t
13087s,@CXXFLAGS@,$CXXFLAGS,;t t
13088s,@LDFLAGS@,$LDFLAGS,;t t
13089s,@CPPFLAGS@,$CPPFLAGS,;t t
13090s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13091s,@EXEEXT@,$EXEEXT,;t t
13092s,@OBJEXT@,$OBJEXT,;t t
13093s,@DEPDIR@,$DEPDIR,;t t
13094s,@am__include@,$am__include,;t t
13095s,@am__quote@,$am__quote,;t t
13096s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13097s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13098s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13099s,@CXXDEPMODE@,$CXXDEPMODE,;t t
13100s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
13101s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
13102s,@LN_S@,$LN_S,;t t
13103s,@CC@,$CC,;t t
13104s,@CFLAGS@,$CFLAGS,;t t
13105s,@ac_ct_CC@,$ac_ct_CC,;t t
13106s,@CCDEPMODE@,$CCDEPMODE,;t t
13107s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13108s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13109s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13110s,@MSGFMT@,$MSGFMT,;t t
13111s,@GMSGFMT@,$GMSGFMT,;t t
13112s,@XGETTEXT@,$XGETTEXT,;t t
13113s,@MSGMERGE@,$MSGMERGE,;t t
13114s,@RANLIB@,$RANLIB,;t t
13115s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13116s,@CPP@,$CPP,;t t
13117s,@EGREP@,$EGREP,;t t
13118s,@ALLOCA@,$ALLOCA,;t t
13119s,@GLIBC21@,$GLIBC21,;t t
13120s,@LIBICONV@,$LIBICONV,;t t
13121s,@LTLIBICONV@,$LTLIBICONV,;t t
13122s,@INTLBISON@,$INTLBISON,;t t
13123s,@USE_NLS@,$USE_NLS,;t t
13124s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
13125s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13126s,@CATOBJEXT@,$CATOBJEXT,;t t
13127s,@INTLOBJS@,$INTLOBJS,;t t
13128s,@DATADIRNAME@,$DATADIRNAME,;t t
13129s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13130s,@GENCAT@,$GENCAT,;t t
13131s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
13132s,@INTLLIBS@,$INTLLIBS,;t t
13133s,@LIBINTL@,$LIBINTL,;t t
13134s,@LTLIBINTL@,$LTLIBINTL,;t t
13135s,@POSUB@,$POSUB,;t t
13136s,@USE_INTLDIR_TRUE@,$USE_INTLDIR_TRUE,;t t
13137s,@USE_INTLDIR_FALSE@,$USE_INTLDIR_FALSE,;t t
13138s,@ac_cv_prog_doxygen@,$ac_cv_prog_doxygen,;t t
13139s,@HAVE_DOXYGEN_TRUE@,$HAVE_DOXYGEN_TRUE,;t t
13140s,@HAVE_DOXYGEN_FALSE@,$HAVE_DOXYGEN_FALSE,;t t
13141s,@ac_cv_prog_perl@,$ac_cv_prog_perl,;t t
13142s,@HAVE_PERL_TRUE@,$HAVE_PERL_TRUE,;t t
13143s,@HAVE_PERL_FALSE@,$HAVE_PERL_FALSE,;t t
13144s,@LIBOBJS@,$LIBOBJS,;t t
13145s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13146CEOF
13147
13148_ACEOF
13149
13150  cat >>$CONFIG_STATUS <<\_ACEOF
13151  # Split the substitutions into bite-sized pieces for seds with
13152  # small command number limits, like on Digital OSF/1 and HP-UX.
13153  ac_max_sed_lines=48
13154  ac_sed_frag=1 # Number of current file.
13155  ac_beg=1 # First line for current file.
13156  ac_end=$ac_max_sed_lines # Line after last line for current file.
13157  ac_more_lines=:
13158  ac_sed_cmds=
13159  while $ac_more_lines; do
13160    if test $ac_beg -gt 1; then
13161      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13162    else
13163      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13164    fi
13165    if test ! -s $tmp/subs.frag; then
13166      ac_more_lines=false
13167    else
13168      # The purpose of the label and of the branching condition is to
13169      # speed up the sed processing (if there are no `@' at all, there
13170      # is no need to browse any of the substitutions).
13171      # These are the two extra sed commands mentioned above.
13172      (echo ':t
13173  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13174      if test -z "$ac_sed_cmds"; then
13175  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13176      else
13177  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13178      fi
13179      ac_sed_frag=`expr $ac_sed_frag + 1`
13180      ac_beg=$ac_end
13181      ac_end=`expr $ac_end + $ac_max_sed_lines`
13182    fi
13183  done
13184  if test -z "$ac_sed_cmds"; then
13185    ac_sed_cmds=cat
13186  fi
13187fi # test -n "$CONFIG_FILES"
13188
13189_ACEOF
13190cat >>$CONFIG_STATUS <<\_ACEOF
13191for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13192  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13193  case $ac_file in
13194  - | *:- | *:-:* ) # input from stdin
13195        cat >$tmp/stdin
13196        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13197        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13198  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13199        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13200  * )   ac_file_in=$ac_file.in ;;
13201  esac
13202
13203  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13204  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13205$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13206         X"$ac_file" : 'X\(//\)[^/]' \| \
13207         X"$ac_file" : 'X\(//\)$' \| \
13208         X"$ac_file" : 'X\(/\)' \| \
13209         .     : '\(.\)' 2>/dev/null ||
13210echo X"$ac_file" |
13211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13212  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13213  	  /^X\(\/\/\)$/{ s//\1/; q; }
13214  	  /^X\(\/\).*/{ s//\1/; q; }
13215  	  s/.*/./; q'`
13216  { if $as_mkdir_p; then
13217    mkdir -p "$ac_dir"
13218  else
13219    as_dir="$ac_dir"
13220    as_dirs=
13221    while test ! -d "$as_dir"; do
13222      as_dirs="$as_dir $as_dirs"
13223      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13225         X"$as_dir" : 'X\(//\)[^/]' \| \
13226         X"$as_dir" : 'X\(//\)$' \| \
13227         X"$as_dir" : 'X\(/\)' \| \
13228         .     : '\(.\)' 2>/dev/null ||
13229echo X"$as_dir" |
13230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13231  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13232  	  /^X\(\/\/\)$/{ s//\1/; q; }
13233  	  /^X\(\/\).*/{ s//\1/; q; }
13234  	  s/.*/./; q'`
13235    done
13236    test ! -n "$as_dirs" || mkdir $as_dirs
13237  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13238echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13239   { (exit 1); exit 1; }; }; }
13240
13241  ac_builddir=.
13242
13243if test "$ac_dir" != .; then
13244  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13245  # A "../" for each directory in $ac_dir_suffix.
13246  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13247else
13248  ac_dir_suffix= ac_top_builddir=
13249fi
13250
13251case $srcdir in
13252  .)  # No --srcdir option.  We are building in place.
13253    ac_srcdir=.
13254    if test -z "$ac_top_builddir"; then
13255       ac_top_srcdir=.
13256    else
13257       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13258    fi ;;
13259  [\\/]* | ?:[\\/]* )  # Absolute path.
13260    ac_srcdir=$srcdir$ac_dir_suffix;
13261    ac_top_srcdir=$srcdir ;;
13262  *) # Relative path.
13263    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13264    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13265esac
13266# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13267# absolute.
13268ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13269ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13270ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13271ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13272
13273
13274  case $INSTALL in
13275  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13276  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13277  esac
13278
13279  if test x"$ac_file" != x-; then
13280    { echo "$as_me:$LINENO: creating $ac_file" >&5
13281echo "$as_me: creating $ac_file" >&6;}
13282    rm -f "$ac_file"
13283  fi
13284  # Let's still pretend it is `configure' which instantiates (i.e., don't
13285  # use $as_me), people would be surprised to read:
13286  #    /* config.h.  Generated by config.status.  */
13287  if test x"$ac_file" = x-; then
13288    configure_input=
13289  else
13290    configure_input="$ac_file.  "
13291  fi
13292  configure_input=$configure_input"Generated from `echo $ac_file_in |
13293                                     sed 's,.*/,,'` by configure."
13294
13295  # First look for the input files in the build tree, otherwise in the
13296  # src tree.
13297  ac_file_inputs=`IFS=:
13298    for f in $ac_file_in; do
13299      case $f in
13300      -) echo $tmp/stdin ;;
13301      [\\/$]*)
13302         # Absolute (can't be DOS-style, as IFS=:)
13303         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13304echo "$as_me: error: cannot find input file: $f" >&2;}
13305   { (exit 1); exit 1; }; }
13306         echo $f;;
13307      *) # Relative
13308         if test -f "$f"; then
13309           # Build tree
13310           echo $f
13311         elif test -f "$srcdir/$f"; then
13312           # Source tree
13313           echo $srcdir/$f
13314         else
13315           # /dev/null tree
13316           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13317echo "$as_me: error: cannot find input file: $f" >&2;}
13318   { (exit 1); exit 1; }; }
13319         fi;;
13320      esac
13321    done` || { (exit 1); exit 1; }
13322_ACEOF
13323cat >>$CONFIG_STATUS <<_ACEOF
13324  sed "$ac_vpsub
13325$extrasub
13326_ACEOF
13327cat >>$CONFIG_STATUS <<\_ACEOF
13328:t
13329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13330s,@configure_input@,$configure_input,;t t
13331s,@srcdir@,$ac_srcdir,;t t
13332s,@abs_srcdir@,$ac_abs_srcdir,;t t
13333s,@top_srcdir@,$ac_top_srcdir,;t t
13334s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13335s,@builddir@,$ac_builddir,;t t
13336s,@abs_builddir@,$ac_abs_builddir,;t t
13337s,@top_builddir@,$ac_top_builddir,;t t
13338s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13339s,@INSTALL@,$ac_INSTALL,;t t
13340" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13341  rm -f $tmp/stdin
13342  if test x"$ac_file" != x-; then
13343    mv $tmp/out $ac_file
13344  else
13345    cat $tmp/out
13346    rm -f $tmp/out
13347  fi
13348
13349done
13350_ACEOF
13351cat >>$CONFIG_STATUS <<\_ACEOF
13352
13353#
13354# CONFIG_HEADER section.
13355#
13356
13357# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13358# NAME is the cpp macro being defined and VALUE is the value it is being given.
13359#
13360# ac_d sets the value in "#define NAME VALUE" lines.
13361ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
13362ac_dB='[ 	].*$,\1#\2'
13363ac_dC=' '
13364ac_dD=',;t'
13365# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13366ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
13367ac_uB='$,\1#\2define\3'
13368ac_uC=' '
13369ac_uD=',;t'
13370
13371for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13372  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13373  case $ac_file in
13374  - | *:- | *:-:* ) # input from stdin
13375        cat >$tmp/stdin
13376        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13377        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13378  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13379        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13380  * )   ac_file_in=$ac_file.in ;;
13381  esac
13382
13383  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13384echo "$as_me: creating $ac_file" >&6;}
13385
13386  # First look for the input files in the build tree, otherwise in the
13387  # src tree.
13388  ac_file_inputs=`IFS=:
13389    for f in $ac_file_in; do
13390      case $f in
13391      -) echo $tmp/stdin ;;
13392      [\\/$]*)
13393         # Absolute (can't be DOS-style, as IFS=:)
13394         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13395echo "$as_me: error: cannot find input file: $f" >&2;}
13396   { (exit 1); exit 1; }; }
13397         echo $f;;
13398      *) # Relative
13399         if test -f "$f"; then
13400           # Build tree
13401           echo $f
13402         elif test -f "$srcdir/$f"; then
13403           # Source tree
13404           echo $srcdir/$f
13405         else
13406           # /dev/null tree
13407           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13408echo "$as_me: error: cannot find input file: $f" >&2;}
13409   { (exit 1); exit 1; }; }
13410         fi;;
13411      esac
13412    done` || { (exit 1); exit 1; }
13413  # Remove the trailing spaces.
13414  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
13415
13416_ACEOF
13417
13418# Transform confdefs.h into two sed scripts, `conftest.defines' and
13419# `conftest.undefs', that substitutes the proper values into
13420# config.h.in to produce config.h.  The first handles `#define'
13421# templates, and the second `#undef' templates.
13422# And first: Protect against being on the right side of a sed subst in
13423# config.status.  Protect against being in an unquoted here document
13424# in config.status.
13425rm -f conftest.defines conftest.undefs
13426# Using a here document instead of a string reduces the quoting nightmare.
13427# Putting comments in sed scripts is not portable.
13428#
13429# `end' is used to avoid that the second main sed command (meant for
13430# 0-ary CPP macros) applies to n-ary macro definitions.
13431# See the Autoconf documentation for `clear'.
13432cat >confdef2sed.sed <<\_ACEOF
13433s/[\\&,]/\\&/g
13434s,[\\$`],\\&,g
13435t clear
13436: clear
13437s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13438t end
13439s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13440: end
13441_ACEOF
13442# If some macros were called several times there might be several times
13443# the same #defines, which is useless.  Nevertheless, we may not want to
13444# sort them, since we want the *last* AC-DEFINE to be honored.
13445uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13446sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13447rm -f confdef2sed.sed
13448
13449# This sed command replaces #undef with comments.  This is necessary, for
13450# example, in the case of _POSIX_SOURCE, which is predefined and required
13451# on some systems where configure will not decide to define it.
13452cat >>conftest.undefs <<\_ACEOF
13453s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13454_ACEOF
13455
13456# Break up conftest.defines because some shells have a limit on the size
13457# of here documents, and old seds have small limits too (100 cmds).
13458echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13459echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13460echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13461echo '  :' >>$CONFIG_STATUS
13462rm -f conftest.tail
13463while grep . conftest.defines >/dev/null
13464do
13465  # Write a limited-size here document to $tmp/defines.sed.
13466  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13467  # Speed up: don't consider the non `#define' lines.
13468  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
13469  # Work around the forget-to-reset-the-flag bug.
13470  echo 't clr' >>$CONFIG_STATUS
13471  echo ': clr' >>$CONFIG_STATUS
13472  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13473  echo 'CEOF
13474  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13475  rm -f $tmp/in
13476  mv $tmp/out $tmp/in
13477' >>$CONFIG_STATUS
13478  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13479  rm -f conftest.defines
13480  mv conftest.tail conftest.defines
13481done
13482rm -f conftest.defines
13483echo '  fi # grep' >>$CONFIG_STATUS
13484echo >>$CONFIG_STATUS
13485
13486# Break up conftest.undefs because some shells have a limit on the size
13487# of here documents, and old seds have small limits too (100 cmds).
13488echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13489rm -f conftest.tail
13490while grep . conftest.undefs >/dev/null
13491do
13492  # Write a limited-size here document to $tmp/undefs.sed.
13493  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13494  # Speed up: don't consider the non `#undef'
13495  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
13496  # Work around the forget-to-reset-the-flag bug.
13497  echo 't clr' >>$CONFIG_STATUS
13498  echo ': clr' >>$CONFIG_STATUS
13499  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13500  echo 'CEOF
13501  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13502  rm -f $tmp/in
13503  mv $tmp/out $tmp/in
13504' >>$CONFIG_STATUS
13505  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13506  rm -f conftest.undefs
13507  mv conftest.tail conftest.undefs
13508done
13509rm -f conftest.undefs
13510
13511cat >>$CONFIG_STATUS <<\_ACEOF
13512  # Let's still pretend it is `configure' which instantiates (i.e., don't
13513  # use $as_me), people would be surprised to read:
13514  #    /* config.h.  Generated by config.status.  */
13515  if test x"$ac_file" = x-; then
13516    echo "/* Generated by configure.  */" >$tmp/config.h
13517  else
13518    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13519  fi
13520  cat $tmp/in >>$tmp/config.h
13521  rm -f $tmp/in
13522  if test x"$ac_file" != x-; then
13523    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13524      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13525echo "$as_me: $ac_file is unchanged" >&6;}
13526    else
13527      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13529         X"$ac_file" : 'X\(//\)[^/]' \| \
13530         X"$ac_file" : 'X\(//\)$' \| \
13531         X"$ac_file" : 'X\(/\)' \| \
13532         .     : '\(.\)' 2>/dev/null ||
13533echo X"$ac_file" |
13534    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13535  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13536  	  /^X\(\/\/\)$/{ s//\1/; q; }
13537  	  /^X\(\/\).*/{ s//\1/; q; }
13538  	  s/.*/./; q'`
13539      { if $as_mkdir_p; then
13540    mkdir -p "$ac_dir"
13541  else
13542    as_dir="$ac_dir"
13543    as_dirs=
13544    while test ! -d "$as_dir"; do
13545      as_dirs="$as_dir $as_dirs"
13546      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13548         X"$as_dir" : 'X\(//\)[^/]' \| \
13549         X"$as_dir" : 'X\(//\)$' \| \
13550         X"$as_dir" : 'X\(/\)' \| \
13551         .     : '\(.\)' 2>/dev/null ||
13552echo X"$as_dir" |
13553    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13554  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13555  	  /^X\(\/\/\)$/{ s//\1/; q; }
13556  	  /^X\(\/\).*/{ s//\1/; q; }
13557  	  s/.*/./; q'`
13558    done
13559    test ! -n "$as_dirs" || mkdir $as_dirs
13560  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13561echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13562   { (exit 1); exit 1; }; }; }
13563
13564      rm -f $ac_file
13565      mv $tmp/config.h $ac_file
13566    fi
13567  else
13568    cat $tmp/config.h
13569    rm -f $tmp/config.h
13570  fi
13571_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
13572echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13573$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13574         X$ac_file : 'X\(//\)[^/]' \| \
13575         X$ac_file : 'X\(//\)$' \| \
13576         X$ac_file : 'X\(/\)' \| \
13577         .     : '\(.\)' 2>/dev/null ||
13578echo X$ac_file |
13579    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13580  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13581  	  /^X\(\/\/\)$/{ s//\1/; q; }
13582  	  /^X\(\/\).*/{ s//\1/; q; }
13583  	  s/.*/./; q'`/stamp-h$_am_stamp_count
13584done
13585_ACEOF
13586cat >>$CONFIG_STATUS <<\_ACEOF
13587
13588#
13589# CONFIG_COMMANDS section.
13590#
13591for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13592  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13593  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13594  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13595$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13596         X"$ac_dest" : 'X\(//\)[^/]' \| \
13597         X"$ac_dest" : 'X\(//\)$' \| \
13598         X"$ac_dest" : 'X\(/\)' \| \
13599         .     : '\(.\)' 2>/dev/null ||
13600echo X"$ac_dest" |
13601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13602  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13603  	  /^X\(\/\/\)$/{ s//\1/; q; }
13604  	  /^X\(\/\).*/{ s//\1/; q; }
13605  	  s/.*/./; q'`
13606  ac_builddir=.
13607
13608if test "$ac_dir" != .; then
13609  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13610  # A "../" for each directory in $ac_dir_suffix.
13611  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13612else
13613  ac_dir_suffix= ac_top_builddir=
13614fi
13615
13616case $srcdir in
13617  .)  # No --srcdir option.  We are building in place.
13618    ac_srcdir=.
13619    if test -z "$ac_top_builddir"; then
13620       ac_top_srcdir=.
13621    else
13622       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13623    fi ;;
13624  [\\/]* | ?:[\\/]* )  # Absolute path.
13625    ac_srcdir=$srcdir$ac_dir_suffix;
13626    ac_top_srcdir=$srcdir ;;
13627  *) # Relative path.
13628    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13629    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13630esac
13631# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13632# absolute.
13633ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13634ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13635ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13636ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13637
13638
13639  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13640echo "$as_me: executing $ac_dest commands" >&6;}
13641  case $ac_dest in
13642    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13643  # Strip MF so we end up with the name of the file.
13644  mf=`echo "$mf" | sed -e 's/:.*$//'`
13645  # Check whether this is an Automake generated Makefile or not.
13646  # We used to match only the files named `Makefile.in', but
13647  # some people rename them; so instead we look at the file content.
13648  # Grep'ing the first line is not enough: some people post-process
13649  # each Makefile.in and add a new line on top of each file to say so.
13650  # So let's grep whole file.
13651  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13652    dirpart=`(dirname "$mf") 2>/dev/null ||
13653$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13654         X"$mf" : 'X\(//\)[^/]' \| \
13655         X"$mf" : 'X\(//\)$' \| \
13656         X"$mf" : 'X\(/\)' \| \
13657         .     : '\(.\)' 2>/dev/null ||
13658echo X"$mf" |
13659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13660  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13661  	  /^X\(\/\/\)$/{ s//\1/; q; }
13662  	  /^X\(\/\).*/{ s//\1/; q; }
13663  	  s/.*/./; q'`
13664  else
13665    continue
13666  fi
13667  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13668  # Extract the definition of DEP_FILES from the Makefile without
13669  # running `make'.
13670  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13671  test -z "$DEPDIR" && continue
13672  # When using ansi2knr, U may be empty or an underscore; expand it
13673  U=`sed -n -e '/^U = / s///p' < "$mf"`
13674  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13675  # We invoke sed twice because it is the simplest approach to
13676  # changing $(DEPDIR) to its actual value in the expansion.
13677  for file in `sed -n -e '
13678    /^DEP_FILES = .*\\\\$/ {
13679      s/^DEP_FILES = //
13680      :loop
13681	s/\\\\$//
13682	p
13683	n
13684	/\\\\$/ b loop
13685      p
13686    }
13687    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13688       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13689    # Make sure the directory exists.
13690    test -f "$dirpart/$file" && continue
13691    fdir=`(dirname "$file") 2>/dev/null ||
13692$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13693         X"$file" : 'X\(//\)[^/]' \| \
13694         X"$file" : 'X\(//\)$' \| \
13695         X"$file" : 'X\(/\)' \| \
13696         .     : '\(.\)' 2>/dev/null ||
13697echo X"$file" |
13698    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13699  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13700  	  /^X\(\/\/\)$/{ s//\1/; q; }
13701  	  /^X\(\/\).*/{ s//\1/; q; }
13702  	  s/.*/./; q'`
13703    { if $as_mkdir_p; then
13704    mkdir -p $dirpart/$fdir
13705  else
13706    as_dir=$dirpart/$fdir
13707    as_dirs=
13708    while test ! -d "$as_dir"; do
13709      as_dirs="$as_dir $as_dirs"
13710      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13711$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13712         X"$as_dir" : 'X\(//\)[^/]' \| \
13713         X"$as_dir" : 'X\(//\)$' \| \
13714         X"$as_dir" : 'X\(/\)' \| \
13715         .     : '\(.\)' 2>/dev/null ||
13716echo X"$as_dir" |
13717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13719  	  /^X\(\/\/\)$/{ s//\1/; q; }
13720  	  /^X\(\/\).*/{ s//\1/; q; }
13721  	  s/.*/./; q'`
13722    done
13723    test ! -n "$as_dirs" || mkdir $as_dirs
13724  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13725echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13726   { (exit 1); exit 1; }; }; }
13727
13728    # echo "creating $dirpart/$file"
13729    echo '# dummy' > "$dirpart/$file"
13730  done
13731done
13732 ;;
13733    default-1 )
13734    for ac_file in $CONFIG_FILES; do
13735      # Support "outfile[:infile[:infile...]]"
13736      case "$ac_file" in
13737        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13738      esac
13739      # PO directories have a Makefile.in generated from Makefile.in.in.
13740      case "$ac_file" in */Makefile.in)
13741        # Adjust a relative srcdir.
13742        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13743        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13744        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13745        # In autoconf-2.13 it is called $ac_given_srcdir.
13746        # In autoconf-2.50 it is called $srcdir.
13747        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13748        case "$ac_given_srcdir" in
13749          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13750          /*) top_srcdir="$ac_given_srcdir" ;;
13751          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13752        esac
13753        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13754          rm -f "$ac_dir/POTFILES"
13755          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13756          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13757          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13758          # on $ac_dir but don't depend on user-specified configuration
13759          # parameters.
13760          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13761            # The LINGUAS file contains the set of available languages.
13762            if test -n "$ALL_LINGUAS"; then
13763              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13764            fi
13765            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13766            # Hide the ALL_LINGUAS assigment from automake.
13767            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13768          fi
13769          case "$ac_given_srcdir" in
13770            .) srcdirpre= ;;
13771            *) srcdirpre='$(srcdir)/' ;;
13772          esac
13773          POFILES=
13774          GMOFILES=
13775          UPDATEPOFILES=
13776          DUMMYPOFILES=
13777          for lang in $ALL_LINGUAS; do
13778            POFILES="$POFILES $srcdirpre$lang.po"
13779            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13780            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13781            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13782          done
13783          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13784          # environment variable.
13785          INST_LINGUAS=
13786          if test -n "$ALL_LINGUAS"; then
13787            for presentlang in $ALL_LINGUAS; do
13788              useit=no
13789              if test "%UNSET%" != "$LINGUAS"; then
13790                desiredlanguages="$LINGUAS"
13791              else
13792                desiredlanguages="$ALL_LINGUAS"
13793              fi
13794              for desiredlang in $desiredlanguages; do
13795                # Use the presentlang catalog if desiredlang is
13796                #   a. equal to presentlang, or
13797                #   b. a variant of presentlang (because in this case,
13798                #      presentlang can be used as a fallback for messages
13799                #      which are not translated in the desiredlang catalog).
13800                case "$desiredlang" in
13801                  "$presentlang"*) useit=yes;;
13802                esac
13803              done
13804              if test $useit = yes; then
13805                INST_LINGUAS="$INST_LINGUAS $presentlang"
13806              fi
13807            done
13808          fi
13809          CATALOGS=
13810          if test -n "$INST_LINGUAS"; then
13811            for lang in $INST_LINGUAS; do
13812              CATALOGS="$CATALOGS $lang.gmo"
13813            done
13814          fi
13815          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13816          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13817          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13818            if test -f "$f"; then
13819              case "$f" in
13820                *.orig | *.bak | *~) ;;
13821                *) cat "$f" >> "$ac_dir/Makefile" ;;
13822              esac
13823            fi
13824          done
13825        fi
13826        ;;
13827      esac
13828    done ;;
13829  esac
13830done
13831_ACEOF
13832
13833cat >>$CONFIG_STATUS <<\_ACEOF
13834
13835{ (exit 0); exit 0; }
13836_ACEOF
13837chmod +x $CONFIG_STATUS
13838ac_clean_files=$ac_clean_files_save
13839
13840
13841# configure is writing to config.log, and then calls config.status.
13842# config.status does its own redirection, appending to config.log.
13843# Unfortunately, on DOS this fails, as config.log is still kept open
13844# by configure, so config.status won't be able to write to it; its
13845# output is simply discarded.  So we exec the FD to /dev/null,
13846# effectively closing config.log, so it can be properly (re)opened and
13847# appended to by config.status.  When coming back to configure, we
13848# need to make the FD available again.
13849if test "$no_create" != yes; then
13850  ac_cs_success=:
13851  ac_config_status_args=
13852  test "$silent" = yes &&
13853    ac_config_status_args="$ac_config_status_args --quiet"
13854  exec 5>/dev/null
13855  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13856  exec 5>>config.log
13857  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13858  # would make configure fail if this is the last instruction.
13859  $ac_cs_success || { (exit 1); exit 1; }
13860fi
13861
13862