name change
[privoxy.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.42 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26   emulate sh
27   NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29   set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36   as_expr=expr
37 else
38   as_expr=false
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44   # We could just check for DJGPP; but this test a) works b) is more generic
45   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46   if test -f conf$$.exe; then
47     # Don't use ln at all; we don't have any links
48     as_ln_s='cp -p'
49   else
50     as_ln_s='ln -s'
51   fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53   as_ln_s=ln
54 else
55   as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63   as_unset=unset
64 else
65   as_unset=false
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS="   $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete.  It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
107
108 ac_unique_file="jcc.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 #  include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 #  include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 #  include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194   # If the previous option needs an argument, assign it.
195   if test -n "$ac_prev"; then
196     eval "$ac_prev=\$ac_option"
197     ac_prev=
198     continue
199   fi
200
201   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203   # Accept the important Cygnus configure options, so we can diagnose typos.
204
205   case $ac_option in
206
207   -bindir | --bindir | --bindi | --bind | --bin | --bi)
208     ac_prev=bindir ;;
209   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210     bindir=$ac_optarg ;;
211
212   -build | --build | --buil | --bui | --bu)
213     ac_prev=build_alias ;;
214   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215     build_alias=$ac_optarg ;;
216
217   -cache-file | --cache-file | --cache-fil | --cache-fi \
218   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219     ac_prev=cache_file ;;
220   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222     cache_file=$ac_optarg ;;
223
224   --config-cache | -C)
225     cache_file=config.cache ;;
226
227   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228     ac_prev=datadir ;;
229   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230   | --da=*)
231     datadir=$ac_optarg ;;
232
233   -disable-* | --disable-*)
234     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235     # Reject names that are not valid shell variable names.
236     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238    { (exit 1); exit 1; }; }
239     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240     eval "enable_$ac_feature=no" ;;
241
242   -enable-* | --enable-*)
243     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244     # Reject names that are not valid shell variable names.
245     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247    { (exit 1); exit 1; }; }
248     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249     case $ac_option in
250       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251       *) ac_optarg=yes ;;
252     esac
253     eval "enable_$ac_feature='$ac_optarg'" ;;
254
255   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257   | --exec | --exe | --ex)
258     ac_prev=exec_prefix ;;
259   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261   | --exec=* | --exe=* | --ex=*)
262     exec_prefix=$ac_optarg ;;
263
264   -gas | --gas | --ga | --g)
265     # Obsolete; use --with-gas.
266     with_gas=yes ;;
267
268   -help | --help | --hel | --he | -h)
269     ac_init_help=long ;;
270   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271     ac_init_help=recursive ;;
272   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273     ac_init_help=short ;;
274
275   -host | --host | --hos | --ho)
276     ac_prev=host_alias ;;
277   -host=* | --host=* | --hos=* | --ho=*)
278     host_alias=$ac_optarg ;;
279
280   -includedir | --includedir | --includedi | --included | --include \
281   | --includ | --inclu | --incl | --inc)
282     ac_prev=includedir ;;
283   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284   | --includ=* | --inclu=* | --incl=* | --inc=*)
285     includedir=$ac_optarg ;;
286
287   -infodir | --infodir | --infodi | --infod | --info | --inf)
288     ac_prev=infodir ;;
289   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290     infodir=$ac_optarg ;;
291
292   -libdir | --libdir | --libdi | --libd)
293     ac_prev=libdir ;;
294   -libdir=* | --libdir=* | --libdi=* | --libd=*)
295     libdir=$ac_optarg ;;
296
297   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298   | --libexe | --libex | --libe)
299     ac_prev=libexecdir ;;
300   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301   | --libexe=* | --libex=* | --libe=*)
302     libexecdir=$ac_optarg ;;
303
304   -localstatedir | --localstatedir | --localstatedi | --localstated \
305   | --localstate | --localstat | --localsta | --localst \
306   | --locals | --local | --loca | --loc | --lo)
307     ac_prev=localstatedir ;;
308   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311     localstatedir=$ac_optarg ;;
312
313   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314     ac_prev=mandir ;;
315   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316     mandir=$ac_optarg ;;
317
318   -nfp | --nfp | --nf)
319     # Obsolete; use --without-fp.
320     with_fp=no ;;
321
322   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323   | --no-cr | --no-c)
324     no_create=yes ;;
325
326   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328     no_recursion=yes ;;
329
330   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332   | --oldin | --oldi | --old | --ol | --o)
333     ac_prev=oldincludedir ;;
334   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337     oldincludedir=$ac_optarg ;;
338
339   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340     ac_prev=prefix ;;
341   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342     prefix=$ac_optarg ;;
343
344   -program-prefix | --program-prefix | --program-prefi | --program-pref \
345   | --program-pre | --program-pr | --program-p)
346     ac_prev=program_prefix ;;
347   -program-prefix=* | --program-prefix=* | --program-prefi=* \
348   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349     program_prefix=$ac_optarg ;;
350
351   -program-suffix | --program-suffix | --program-suffi | --program-suff \
352   | --program-suf | --program-su | --program-s)
353     ac_prev=program_suffix ;;
354   -program-suffix=* | --program-suffix=* | --program-suffi=* \
355   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356     program_suffix=$ac_optarg ;;
357
358   -program-transform-name | --program-transform-name \
359   | --program-transform-nam | --program-transform-na \
360   | --program-transform-n | --program-transform- \
361   | --program-transform | --program-transfor \
362   | --program-transfo | --program-transf \
363   | --program-trans | --program-tran \
364   | --progr-tra | --program-tr | --program-t)
365     ac_prev=program_transform_name ;;
366   -program-transform-name=* | --program-transform-name=* \
367   | --program-transform-nam=* | --program-transform-na=* \
368   | --program-transform-n=* | --program-transform-=* \
369   | --program-transform=* | --program-transfor=* \
370   | --program-transfo=* | --program-transf=* \
371   | --program-trans=* | --program-tran=* \
372   | --progr-tra=* | --program-tr=* | --program-t=*)
373     program_transform_name=$ac_optarg ;;
374
375   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376   | -silent | --silent | --silen | --sile | --sil)
377     silent=yes ;;
378
379   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380     ac_prev=sbindir ;;
381   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382   | --sbi=* | --sb=*)
383     sbindir=$ac_optarg ;;
384
385   -sharedstatedir | --sharedstatedir | --sharedstatedi \
386   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387   | --sharedst | --shareds | --shared | --share | --shar \
388   | --sha | --sh)
389     ac_prev=sharedstatedir ;;
390   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393   | --sha=* | --sh=*)
394     sharedstatedir=$ac_optarg ;;
395
396   -site | --site | --sit)
397     ac_prev=site ;;
398   -site=* | --site=* | --sit=*)
399     site=$ac_optarg ;;
400
401   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402     ac_prev=srcdir ;;
403   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404     srcdir=$ac_optarg ;;
405
406   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407   | --syscon | --sysco | --sysc | --sys | --sy)
408     ac_prev=sysconfdir ;;
409   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411     sysconfdir=$ac_optarg ;;
412
413   -target | --target | --targe | --targ | --tar | --ta | --t)
414     ac_prev=target_alias ;;
415   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416     target_alias=$ac_optarg ;;
417
418   -v | -verbose | --verbose | --verbos | --verbo | --verb)
419     verbose=yes ;;
420
421   -version | --version | --versio | --versi | --vers | -V)
422     ac_init_version=: ;;
423
424   -with-* | --with-*)
425     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426     # Reject names that are not valid shell variable names.
427     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428       { echo "$as_me: error: invalid package name: $ac_package" >&2
429    { (exit 1); exit 1; }; }
430     ac_package=`echo $ac_package| sed 's/-/_/g'`
431     case $ac_option in
432       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433       *) ac_optarg=yes ;;
434     esac
435     eval "with_$ac_package='$ac_optarg'" ;;
436
437   -without-* | --without-*)
438     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439     # Reject names that are not valid shell variable names.
440     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441       { echo "$as_me: error: invalid package name: $ac_package" >&2
442    { (exit 1); exit 1; }; }
443     ac_package=`echo $ac_package | sed 's/-/_/g'`
444     eval "with_$ac_package=no" ;;
445
446   --x)
447     # Obsolete; use --with-x.
448     with_x=yes ;;
449
450   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451   | --x-incl | --x-inc | --x-in | --x-i)
452     ac_prev=x_includes ;;
453   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455     x_includes=$ac_optarg ;;
456
457   -x-libraries | --x-libraries | --x-librarie | --x-librari \
458   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459     ac_prev=x_libraries ;;
460   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462     x_libraries=$ac_optarg ;;
463
464   -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466    { (exit 1); exit 1; }; }
467     ;;
468
469   *=*)
470     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471     # Reject names that are not valid shell variable names.
472     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474    { (exit 1); exit 1; }; }
475     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476     eval "$ac_envvar='$ac_optarg'"
477     export $ac_envvar ;;
478
479   *)
480     # FIXME: should be removed in autoconf 3.0.
481     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485     ;;
486
487   esac
488 done
489
490 if test -n "$ac_prev"; then
491   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492   { echo "$as_me: error: missing argument to $ac_option" >&2
493    { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499   eval ac_val=$`echo $ac_var`
500   case $ac_val in
501     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503    { (exit 1); exit 1; }; };;
504   esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509               localstatedir libdir includedir oldincludedir infodir mandir
510 do
511   eval ac_val=$`echo $ac_var`
512   case $ac_val in
513     [\\/$]* | ?:[\\/]* ) ;;
514     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515    { (exit 1); exit 1; }; };;
516   esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527   if test "x$build_alias" = x; then
528     cross_compiling=maybe
529     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530     If a cross compiler is detected then cross compile mode will be used." >&2
531   elif test "x$build_alias" != "x$host_alias"; then
532     cross_compiling=yes
533   fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543   ac_srcdir_defaulted=yes
544   # Try the directory containing this script, then its parent.
545   ac_prog=$0
546   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548   srcdir=$ac_confdir
549   if test ! -r $srcdir/$ac_unique_file; then
550     srcdir=..
551   fi
552 else
553   ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556   if test "$ac_srcdir_defaulted" = yes; then
557     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558    { (exit 1); exit 1; }; }
559   else
560     { echo "$as_me: error: cannot find sources in $srcdir" >&2
561    { (exit 1); exit 1; }; }
562   fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602   # Omit some internal or obsolete options to make the list less imposing.
603   # This message is too long to be a string in the A/UX 3.1 sh.
604   cat <<EOF
605 \`configure' configures this package to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE.  See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615   -h, --help              display this help and exit
616       --help=short        display options specific to this package
617       --help=recursive    display the short help of all the included packages
618   -V, --version           display version information and exit
619   -q, --quiet, --silent   do not print \`checking...' messages
620       --cache-file=FILE   cache test results in FILE [disabled]
621   -C, --config-cache      alias for \`--cache-file=config.cache'
622   -n, --no-create         do not create output files
623       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627   cat <<EOF
628 Installation directories:
629   --prefix=PREFIX         install architecture-independent files in PREFIX
630                           [$ac_default_prefix]
631   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
632                           [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642   --bindir=DIR           user executables [EPREFIX/bin]
643   --sbindir=DIR          system admin executables [EPREFIX/sbin]
644   --libexecdir=DIR       program executables [EPREFIX/libexec]
645   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
646   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
647   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
648   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
649   --libdir=DIR           object code libraries [EPREFIX/lib]
650   --includedir=DIR       C header files [PREFIX/include]
651   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
652   --infodir=DIR          info documentation [PREFIX/info]
653   --mandir=DIR           man documentation [PREFIX/man]
654 EOF
655
656   cat <<\EOF
657
658 System types:
659   --build=BUILD     configure for building on BUILD [guessed]
660   --host=HOST       build programs to run on HOST [BUILD]
661 EOF
662 fi
663
664 if test -n "$ac_init_help"; then
665
666   cat <<\EOF
667
668 Optional Features:
669   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
670   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
671   --enable-mingw32        Use mingw32 for a Windows GUI
672   --disable-pthread       Don't use POSIX threads (pthreads)
673   --disable-toggle         Don't support temporary disable
674   --disable-force          Don't allow single-page disable
675   --disable-fast-redirects Don't support fast redirects
676   --disable-killpopup      Never block popups
677   --disable-stats          Don't keep statistics
678   --disable-ie-images      Don't auto-detect whether a request from MS Internet
679                            Explorer is for an image or HTML.
680   --disable-image-blocking Don't try to figure out whether a request is
681                            for an image or HTML - assume HTML.
682   --disable-acl-files      Prevents the use of ACL files to control access to
683                            the proxy by IP address.
684   --disable-trust-files    Prevents the use of trust files.
685   --disable-jar-files      Prevents the use of jar files to capture cookies.
686   --disable-editor         Prevents the use of the web-based actions file
687                            editor and web-based temporary disable setting.
688   --enable-no-gifs         Use politically correct PNG format instead of GIF
689                            for built-in images. May not work with all browsers.
690   --enable-regex-matching=pcre  Use perl-compatible regex for actionsfile
691                                 pattern matching (default)
692   --enable-regex-matching=gnu   Use gnu style regex for actionsfile pattern
693                                 matching (-> bigger binary)
694   --disable-regex-matching      Don't use regex matching, compare URL
695                                 prefix instead (won't shrink birary)
696   --disable-dynamic-pcre        Use the built-in, static pcre, even if
697                                 libpcre is available
698   --disable-dynamic-pcrs        Use the built-in, static pcrs, even if
699                                 libpcrs is available
700
701 Optional Packages:
702   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
703   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
704   --with-docbook=yes|no|directory
705                            Enable docbook documentation creation
706                            (default = yes, for gnu and linux)
707   --with-db2html=<path/executable>
708                           Set the location of the docbook to html converter
709                           (default = search)
710   --with-debug            Enable debug mode
711
712 Some influential environment variables:
713   CC          C compiler command
714   CFLAGS      C compiler flags
715   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
716               nonstandard directory <lib dir>
717   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
718               headers in a nonstandard directory <include dir>
719   CPP         C preprocessor
720
721 Use these variables to override the choices made by `configure' or to help
722 it to find libraries and programs with nonstandard names/locations.
723
724 EOF
725 fi
726
727 if test "$ac_init_help" = "recursive"; then
728   # If there are subdirs, report their specific --help.
729   ac_popdir=`pwd`
730   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
731     cd $ac_subdir
732     # A "../" for each directory in /$ac_subdir.
733     ac_dots=`echo $ac_subdir |
734              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
735
736     case $srcdir in
737     .) # No --srcdir option.  We are building in place.
738       ac_sub_srcdir=$srcdir ;;
739     [\\/]* | ?:[\\/]* ) # Absolute path.
740       ac_sub_srcdir=$srcdir/$ac_subdir ;;
741     *) # Relative path.
742       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
743     esac
744
745     # Check for guested configure; otherwise get Cygnus style configure.
746     if test -f $ac_sub_srcdir/configure.gnu; then
747       echo
748       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
749     elif test -f $ac_sub_srcdir/configure; then
750       echo
751       $SHELL $ac_sub_srcdir/configure  --help=recursive
752     elif test -f $ac_sub_srcdir/configure.ac ||
753            test -f $ac_sub_srcdir/configure.in; then
754       echo
755       $ac_configure --help
756     else
757       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
758     fi
759     cd $ac_popdir
760   done
761 fi
762
763 test -n "$ac_init_help" && exit 0
764 if $ac_init_version; then
765   cat <<\EOF
766
767 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
768 Free Software Foundation, Inc.
769 This configure script is free software; the Free Software Foundation
770 gives unlimited permission to copy, distribute and modify it.
771 EOF
772   exit 0
773 fi
774 exec 5>config.log
775 cat >&5 <<EOF
776 This file contains any messages produced by compilers while
777 running configure, to aid debugging if configure makes a mistake.
778
779 It was created by $as_me, which was
780 generated by GNU Autoconf 2.52.  Invocation command line was
781
782   $ $0 $@
783
784 EOF
785 {
786 cat <<_ASUNAME
787 ## ---------- ##
788 ## Platform.  ##
789 ## ---------- ##
790
791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
796
797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
798 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
799
800 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
801 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
803 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
804 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
805 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
806 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
807
808 PATH = $PATH
809
810 _ASUNAME
811 } >&5
812
813 cat >&5 <<EOF
814 ## ------------ ##
815 ## Core tests.  ##
816 ## ------------ ##
817
818 EOF
819
820 # Keep a trace of the command line.
821 # Strip out --no-create and --no-recursion so they do not pile up.
822 # Also quote any args containing shell meta-characters.
823 ac_configure_args=
824 ac_sep=
825 for ac_arg
826 do
827   case $ac_arg in
828   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
829   | --no-cr | --no-c) ;;
830   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
831   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
832   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
833     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
834     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
835     ac_sep=" " ;;
836   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
837      ac_sep=" " ;;
838   esac
839   # Get rid of the leading space.
840 done
841
842 # When interrupted or exit'd, cleanup temporary files, and complete
843 # config.log.  We remove comments because anyway the quotes in there
844 # would cause problems or look ugly.
845 trap 'exit_status=$?
846   # Save into config.log some information that might help in debugging.
847   echo >&5
848   echo "## ----------------- ##" >&5
849   echo "## Cache variables.  ##" >&5
850   echo "## ----------------- ##" >&5
851   echo >&5
852   # The following way of writing the cache mishandles newlines in values,
853 {
854   (set) 2>&1 |
855     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
856     *ac_space=\ *)
857       sed -n \
858         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
859           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
860       ;;
861     *)
862       sed -n \
863         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
864       ;;
865     esac;
866 } >&5
867   sed "/^$/d" confdefs.h >conftest.log
868   if test -s conftest.log; then
869     echo >&5
870     echo "## ------------ ##" >&5
871     echo "## confdefs.h.  ##" >&5
872     echo "## ------------ ##" >&5
873     echo >&5
874     cat conftest.log >&5
875   fi
876   (echo; echo) >&5
877   test "$ac_signal" != 0 &&
878     echo "$as_me: caught signal $ac_signal" >&5
879   echo "$as_me: exit $exit_status" >&5
880   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
881     exit $exit_status
882      ' 0
883 for ac_signal in 1 2 13 15; do
884   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
885 done
886 ac_signal=0
887
888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
889 rm -rf conftest* confdefs.h
890 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
891 echo >confdefs.h
892
893 # Let the site file select an alternate cache file if it wants to.
894 # Prefer explicitly selected file to automatically selected ones.
895 if test -z "$CONFIG_SITE"; then
896   if test "x$prefix" != xNONE; then
897     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
898   else
899     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
900   fi
901 fi
902 for ac_site_file in $CONFIG_SITE; do
903   if test -r "$ac_site_file"; then
904     { echo "$as_me:904: loading site script $ac_site_file" >&5
905 echo "$as_me: loading site script $ac_site_file" >&6;}
906     cat "$ac_site_file" >&5
907     . "$ac_site_file"
908   fi
909 done
910
911 if test -r "$cache_file"; then
912   # Some versions of bash will fail to source /dev/null (special
913   # files actually), so we avoid doing that.
914   if test -f "$cache_file"; then
915     { echo "$as_me:915: loading cache $cache_file" >&5
916 echo "$as_me: loading cache $cache_file" >&6;}
917     case $cache_file in
918       [\\/]* | ?:[\\/]* ) . $cache_file;;
919       *)                      . ./$cache_file;;
920     esac
921   fi
922 else
923   { echo "$as_me:923: creating cache $cache_file" >&5
924 echo "$as_me: creating cache $cache_file" >&6;}
925   >$cache_file
926 fi
927
928 # Check that the precious variables saved in the cache have kept the same
929 # value.
930 ac_cache_corrupted=false
931 for ac_var in `(set) 2>&1 |
932                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
933   eval ac_old_set=\$ac_cv_env_${ac_var}_set
934   eval ac_new_set=\$ac_env_${ac_var}_set
935   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
936   eval ac_new_val="\$ac_env_${ac_var}_value"
937   case $ac_old_set,$ac_new_set in
938     set,)
939       { echo "$as_me:939: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
940 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
941       ac_cache_corrupted=: ;;
942     ,set)
943       { echo "$as_me:943: error: \`$ac_var' was not set in the previous run" >&5
944 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
945       ac_cache_corrupted=: ;;
946     ,);;
947     *)
948       if test "x$ac_old_val" != "x$ac_new_val"; then
949         { echo "$as_me:949: error: \`$ac_var' has changed since the previous run:" >&5
950 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
951         { echo "$as_me:951:   former value:  $ac_old_val" >&5
952 echo "$as_me:   former value:  $ac_old_val" >&2;}
953         { echo "$as_me:953:   current value: $ac_new_val" >&5
954 echo "$as_me:   current value: $ac_new_val" >&2;}
955         ac_cache_corrupted=:
956       fi;;
957   esac
958   # Pass precious variables to config.status.  It doesn't matter if
959   # we pass some twice (in addition to the command line arguments).
960   if test "$ac_new_set" = set; then
961     case $ac_new_val in
962     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
964       ac_configure_args="$ac_configure_args '$ac_arg'"
965       ;;
966     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
967        ;;
968     esac
969   fi
970 done
971 if $ac_cache_corrupted; then
972   { echo "$as_me:972: error: changes in the environment can compromise the build" >&5
973 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
974   { { echo "$as_me:974: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
975 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
976    { (exit 1); exit 1; }; }
977 fi
978
979 ac_ext=c
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
984
985 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
986   *c*,-n*) ECHO_N= ECHO_C='
987 ' ECHO_T='      ' ;;
988   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
989   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
990 esac
991 echo "#! $SHELL" >conftest.sh
992 echo  "exit 0"   >>conftest.sh
993 chmod +x conftest.sh
994 if { (echo "$as_me:994: PATH=\".;.\"; conftest.sh") >&5
995   (PATH=".;."; conftest.sh) 2>&5
996   ac_status=$?
997   echo "$as_me:997: \$? = $ac_status" >&5
998   (exit $ac_status); }; then
999   ac_path_separator=';'
1000 else
1001   ac_path_separator=:
1002 fi
1003 PATH_SEPARATOR="$ac_path_separator"
1004 rm -f conftest.sh
1005
1006 ac_config_headers="$ac_config_headers config.h"
1007
1008 ac_aux_dir=
1009 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1010   if test -f $ac_dir/install-sh; then
1011     ac_aux_dir=$ac_dir
1012     ac_install_sh="$ac_aux_dir/install-sh -c"
1013     break
1014   elif test -f $ac_dir/install.sh; then
1015     ac_aux_dir=$ac_dir
1016     ac_install_sh="$ac_aux_dir/install.sh -c"
1017     break
1018   elif test -f $ac_dir/shtool; then
1019     ac_aux_dir=$ac_dir
1020     ac_install_sh="$ac_aux_dir/shtool install -c"
1021     break
1022   fi
1023 done
1024 if test -z "$ac_aux_dir"; then
1025   { { echo "$as_me:1025: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1026 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1027    { (exit 1); exit 1; }; }
1028 fi
1029 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1030 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1031 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1032
1033 # Make sure we can run config.sub.
1034 $ac_config_sub sun4 >/dev/null 2>&1 ||
1035   { { echo "$as_me:1035: error: cannot run $ac_config_sub" >&5
1036 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1037    { (exit 1); exit 1; }; }
1038
1039 echo "$as_me:1039: checking build system type" >&5
1040 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1041 if test "${ac_cv_build+set}" = set; then
1042   echo $ECHO_N "(cached) $ECHO_C" >&6
1043 else
1044   ac_cv_build_alias=$build_alias
1045 test -z "$ac_cv_build_alias" &&
1046   ac_cv_build_alias=`$ac_config_guess`
1047 test -z "$ac_cv_build_alias" &&
1048   { { echo "$as_me:1048: error: cannot guess build type; you must specify one" >&5
1049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1050    { (exit 1); exit 1; }; }
1051 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1052   { { echo "$as_me:1052: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1053 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1054    { (exit 1); exit 1; }; }
1055
1056 fi
1057 echo "$as_me:1057: result: $ac_cv_build" >&5
1058 echo "${ECHO_T}$ac_cv_build" >&6
1059 build=$ac_cv_build
1060 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063
1064 echo "$as_me:1064: checking host system type" >&5
1065 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1066 if test "${ac_cv_host+set}" = set; then
1067   echo $ECHO_N "(cached) $ECHO_C" >&6
1068 else
1069   ac_cv_host_alias=$host_alias
1070 test -z "$ac_cv_host_alias" &&
1071   ac_cv_host_alias=$ac_cv_build_alias
1072 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1073   { { echo "$as_me:1073: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1074 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1075    { (exit 1); exit 1; }; }
1076
1077 fi
1078 echo "$as_me:1078: result: $ac_cv_host" >&5
1079 echo "${ECHO_T}$ac_cv_host" >&6
1080 host=$ac_cv_host
1081 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1082 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1083 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1084
1085 dodk=auto
1086 DKPREFIX=none
1087
1088 # Check whether --with-docbook or --without-docbook was given.
1089 if test "${with_docbook+set}" = set; then
1090   withval="$with_docbook"
1091   case "$with_docbook" in
1092 yes) dodk=yes;;
1093 no) dodk=no;;
1094 *)
1095         dodk=no
1096         DKPREFIX=$withval
1097         ;;
1098 esac
1099
1100 fi;
1101 DB2HTML=false
1102
1103 # Check whether --with-db2html or --without-db2html was given.
1104 if test "${with_db2html+set}" = set; then
1105   withval="$with_db2html"
1106   DB2HTML=$withval
1107
1108 fi;
1109
1110 VERSION_MAJOR=2
1111 VERSION_MINOR=9
1112 VERSION_POINT=12
1113 CODE_STATUS="beta"
1114
1115 cat >>confdefs.h <<EOF
1116 #define VERSION_MAJOR ${VERSION_MAJOR}
1117 EOF
1118
1119 cat >>confdefs.h <<EOF
1120 #define VERSION_MINOR ${VERSION_MINOR}
1121 EOF
1122
1123 cat >>confdefs.h <<EOF
1124 #define VERSION_POINT ${VERSION_POINT}
1125 EOF
1126
1127 cat >>confdefs.h <<EOF
1128 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
1129 EOF
1130
1131 cat >>confdefs.h <<EOF
1132 #define CODE_STATUS "${CODE_STATUS}"
1133 EOF
1134
1135 ac_ext=c
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140 if test -n "$ac_tool_prefix"; then
1141   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146   echo $ECHO_N "(cached) $ECHO_C" >&6
1147 else
1148   if test -n "$CC"; then
1149   ac_cv_prog_CC="$CC" # Let the user override the test.
1150 else
1151   ac_save_IFS=$IFS; IFS=$ac_path_separator
1152 ac_dummy="$PATH"
1153 for ac_dir in $ac_dummy; do
1154   IFS=$ac_save_IFS
1155   test -z "$ac_dir" && ac_dir=.
1156   $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1159 break
1160 done
1161
1162 fi
1163 fi
1164 CC=$ac_cv_prog_CC
1165 if test -n "$CC"; then
1166   echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1168 else
1169   echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1171 fi
1172
1173 fi
1174 if test -z "$ac_cv_prog_CC"; then
1175   ac_ct_CC=$CC
1176   # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc; ac_word=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181   echo $ECHO_N "(cached) $ECHO_C" >&6
1182 else
1183   if test -n "$ac_ct_CC"; then
1184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1185 else
1186   ac_save_IFS=$IFS; IFS=$ac_path_separator
1187 ac_dummy="$PATH"
1188 for ac_dir in $ac_dummy; do
1189   IFS=$ac_save_IFS
1190   test -z "$ac_dir" && ac_dir=.
1191   $as_executable_p "$ac_dir/$ac_word" || continue
1192 ac_cv_prog_ac_ct_CC="gcc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1194 break
1195 done
1196
1197 fi
1198 fi
1199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201   echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1203 else
1204   echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1206 fi
1207
1208   CC=$ac_ct_CC
1209 else
1210   CC="$ac_cv_prog_CC"
1211 fi
1212
1213 if test -z "$CC"; then
1214   if test -n "$ac_tool_prefix"; then
1215   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220   echo $ECHO_N "(cached) $ECHO_C" >&6
1221 else
1222   if test -n "$CC"; then
1223   ac_cv_prog_CC="$CC" # Let the user override the test.
1224 else
1225   ac_save_IFS=$IFS; IFS=$ac_path_separator
1226 ac_dummy="$PATH"
1227 for ac_dir in $ac_dummy; do
1228   IFS=$ac_save_IFS
1229   test -z "$ac_dir" && ac_dir=.
1230   $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1233 break
1234 done
1235
1236 fi
1237 fi
1238 CC=$ac_cv_prog_CC
1239 if test -n "$CC"; then
1240   echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1242 else
1243   echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1245 fi
1246
1247 fi
1248 if test -z "$ac_cv_prog_CC"; then
1249   ac_ct_CC=$CC
1250   # Extract the first word of "cc", so it can be a program name with args.
1251 set dummy cc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255   echo $ECHO_N "(cached) $ECHO_C" >&6
1256 else
1257   if test -n "$ac_ct_CC"; then
1258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1259 else
1260   ac_save_IFS=$IFS; IFS=$ac_path_separator
1261 ac_dummy="$PATH"
1262 for ac_dir in $ac_dummy; do
1263   IFS=$ac_save_IFS
1264   test -z "$ac_dir" && ac_dir=.
1265   $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="cc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1268 break
1269 done
1270
1271 fi
1272 fi
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275   echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1277 else
1278   echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1280 fi
1281
1282   CC=$ac_ct_CC
1283 else
1284   CC="$ac_cv_prog_CC"
1285 fi
1286
1287 fi
1288 if test -z "$CC"; then
1289   # Extract the first word of "cc", so it can be a program name with args.
1290 set dummy cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294   echo $ECHO_N "(cached) $ECHO_C" >&6
1295 else
1296   if test -n "$CC"; then
1297   ac_cv_prog_CC="$CC" # Let the user override the test.
1298 else
1299   ac_prog_rejected=no
1300   ac_save_IFS=$IFS; IFS=$ac_path_separator
1301 ac_dummy="$PATH"
1302 for ac_dir in $ac_dummy; do
1303   IFS=$ac_save_IFS
1304   test -z "$ac_dir" && ac_dir=.
1305   $as_executable_p "$ac_dir/$ac_word" || continue
1306 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1307   ac_prog_rejected=yes
1308   continue
1309 fi
1310 ac_cv_prog_CC="cc"
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1312 break
1313 done
1314
1315 if test $ac_prog_rejected = yes; then
1316   # We found a bogon in the path, so make sure we never use it.
1317   set dummy $ac_cv_prog_CC
1318   shift
1319   if test $# != 0; then
1320     # We chose a different compiler from the bogus one.
1321     # However, it has the same basename, so the bogon will be chosen
1322     # first if we set CC to just the basename; use the full file name.
1323     shift
1324     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1325     shift
1326     ac_cv_prog_CC="$@"
1327   fi
1328 fi
1329 fi
1330 fi
1331 CC=$ac_cv_prog_CC
1332 if test -n "$CC"; then
1333   echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1335 else
1336   echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1338 fi
1339
1340 fi
1341 if test -z "$CC"; then
1342   if test -n "$ac_tool_prefix"; then
1343   for ac_prog in cl
1344   do
1345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1347 echo "$as_me:1347: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350   echo $ECHO_N "(cached) $ECHO_C" >&6
1351 else
1352   if test -n "$CC"; then
1353   ac_cv_prog_CC="$CC" # Let the user override the test.
1354 else
1355   ac_save_IFS=$IFS; IFS=$ac_path_separator
1356 ac_dummy="$PATH"
1357 for ac_dir in $ac_dummy; do
1358   IFS=$ac_save_IFS
1359   test -z "$ac_dir" && ac_dir=.
1360   $as_executable_p "$ac_dir/$ac_word" || continue
1361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1363 break
1364 done
1365
1366 fi
1367 fi
1368 CC=$ac_cv_prog_CC
1369 if test -n "$CC"; then
1370   echo "$as_me:1370: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1372 else
1373   echo "$as_me:1373: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1375 fi
1376
1377     test -n "$CC" && break
1378   done
1379 fi
1380 if test -z "$CC"; then
1381   ac_ct_CC=$CC
1382   for ac_prog in cl
1383 do
1384   # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389   echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391   if test -n "$ac_ct_CC"; then
1392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1393 else
1394   ac_save_IFS=$IFS; IFS=$ac_path_separator
1395 ac_dummy="$PATH"
1396 for ac_dir in $ac_dummy; do
1397   IFS=$ac_save_IFS
1398   test -z "$ac_dir" && ac_dir=.
1399   $as_executable_p "$ac_dir/$ac_word" || continue
1400 ac_cv_prog_ac_ct_CC="$ac_prog"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1402 break
1403 done
1404
1405 fi
1406 fi
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409   echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1411 else
1412   echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1414 fi
1415
1416   test -n "$ac_ct_CC" && break
1417 done
1418
1419   CC=$ac_ct_CC
1420 fi
1421
1422 fi
1423
1424 test -z "$CC" && { { echo "$as_me:1424: error: no acceptable cc found in \$PATH" >&5
1425 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1426    { (exit 1); exit 1; }; }
1427
1428 # Provide some information about the compiler.
1429 echo "$as_me:1429:" \
1430      "checking for C compiler version" >&5
1431 ac_compiler=`set X $ac_compile; echo $2`
1432 { (eval echo "$as_me:1432: \"$ac_compiler --version </dev/null >&5\"") >&5
1433   (eval $ac_compiler --version </dev/null >&5) 2>&5
1434   ac_status=$?
1435   echo "$as_me:1435: \$? = $ac_status" >&5
1436   (exit $ac_status); }
1437 { (eval echo "$as_me:1437: \"$ac_compiler -v </dev/null >&5\"") >&5
1438   (eval $ac_compiler -v </dev/null >&5) 2>&5
1439   ac_status=$?
1440   echo "$as_me:1440: \$? = $ac_status" >&5
1441   (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -V </dev/null >&5\"") >&5
1443   (eval $ac_compiler -V </dev/null >&5) 2>&5
1444   ac_status=$?
1445   echo "$as_me:1445: \$? = $ac_status" >&5
1446   (exit $ac_status); }
1447
1448 cat >conftest.$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1451
1452 int
1453 main ()
1454 {
1455
1456   ;
1457   return 0;
1458 }
1459 _ACEOF
1460 ac_clean_files_save=$ac_clean_files
1461 ac_clean_files="$ac_clean_files a.out a.exe"
1462 # Try to create an executable without -o first, disregard a.out.
1463 # It will help us diagnose broken compilers, and finding out an intuition
1464 # of exeext.
1465 echo "$as_me:1465: checking for C compiler default output" >&5
1466 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1468 if { (eval echo "$as_me:1468: \"$ac_link_default\"") >&5
1469   (eval $ac_link_default) 2>&5
1470   ac_status=$?
1471   echo "$as_me:1471: \$? = $ac_status" >&5
1472   (exit $ac_status); }; then
1473   # Find the output, starting from the most likely.  This scheme is
1474 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1475 # resort.
1476 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1477                 ls a.out conftest 2>/dev/null;
1478                 ls a.* conftest.* 2>/dev/null`; do
1479   case $ac_file in
1480     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1481     a.out ) # We found the default executable, but exeext='' is most
1482             # certainly right.
1483             break;;
1484     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1485           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1486           export ac_cv_exeext
1487           break;;
1488     * ) break;;
1489   esac
1490 done
1491 else
1492   echo "$as_me: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 { { echo "$as_me:1494: error: C compiler cannot create executables" >&5
1495 echo "$as_me: error: C compiler cannot create executables" >&2;}
1496    { (exit 77); exit 77; }; }
1497 fi
1498
1499 ac_exeext=$ac_cv_exeext
1500 echo "$as_me:1500: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1502
1503 # Check the compiler produces executables we can run.  If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:1505: checking whether the C compiler works" >&5
1506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510   if { ac_try='./$ac_file'
1511   { (eval echo "$as_me:1511: \"$ac_try\"") >&5
1512   (eval $ac_try) 2>&5
1513   ac_status=$?
1514   echo "$as_me:1514: \$? = $ac_status" >&5
1515   (exit $ac_status); }; }; then
1516     cross_compiling=no
1517   else
1518     if test "$cross_compiling" = maybe; then
1519         cross_compiling=yes
1520     else
1521         { { echo "$as_me:1521: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&5
1523 echo "$as_me: error: cannot run C compiled programs.
1524 If you meant to cross compile, use \`--host'." >&2;}
1525    { (exit 1); exit 1; }; }
1526     fi
1527   fi
1528 fi
1529 echo "$as_me:1529: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531
1532 rm -f a.out a.exe conftest$ac_cv_exeext
1533 ac_clean_files=$ac_clean_files_save
1534 # Check the compiler produces executables we can run.  If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether we are cross compiling" >&5
1537 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1538 echo "$as_me:1538: result: $cross_compiling" >&5
1539 echo "${ECHO_T}$cross_compiling" >&6
1540
1541 echo "$as_me:1541: checking for executable suffix" >&5
1542 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1543 if { (eval echo "$as_me:1543: \"$ac_link\"") >&5
1544   (eval $ac_link) 2>&5
1545   ac_status=$?
1546   echo "$as_me:1546: \$? = $ac_status" >&5
1547   (exit $ac_status); }; then
1548   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1549 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1550 # work properly (i.e., refer to `conftest.exe'), while it won't with
1551 # `rm'.
1552 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1553   case $ac_file in
1554     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1555     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1556           export ac_cv_exeext
1557           break;;
1558     * ) break;;
1559   esac
1560 done
1561 else
1562   { { echo "$as_me:1562: error: cannot compute EXEEXT: cannot compile and link" >&5
1563 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1564    { (exit 1); exit 1; }; }
1565 fi
1566
1567 rm -f conftest$ac_cv_exeext
1568 echo "$as_me:1568: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1570
1571 rm -f conftest.$ac_ext
1572 EXEEXT=$ac_cv_exeext
1573 ac_exeext=$EXEEXT
1574 echo "$as_me:1574: checking for object suffix" >&5
1575 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1582
1583 int
1584 main ()
1585 {
1586
1587   ;
1588   return 0;
1589 }
1590 _ACEOF
1591 rm -f conftest.o conftest.obj
1592 if { (eval echo "$as_me:1592: \"$ac_compile\"") >&5
1593   (eval $ac_compile) 2>&5
1594   ac_status=$?
1595   echo "$as_me:1595: \$? = $ac_status" >&5
1596   (exit $ac_status); }; then
1597   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1598   case $ac_file in
1599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1600     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1601        break;;
1602   esac
1603 done
1604 else
1605   echo "$as_me: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 { { echo "$as_me:1607: error: cannot compute OBJEXT: cannot compile" >&5
1608 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611
1612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1613 fi
1614 echo "$as_me:1614: result: $ac_cv_objext" >&5
1615 echo "${ECHO_T}$ac_cv_objext" >&6
1616 OBJEXT=$ac_cv_objext
1617 ac_objext=$OBJEXT
1618 echo "$as_me:1618: checking whether we are using the GNU C compiler" >&5
1619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1626
1627 int
1628 main ()
1629 {
1630 #ifndef __GNUC__
1631        choke me
1632 #endif
1633
1634   ;
1635   return 0;
1636 }
1637 _ACEOF
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640   (eval $ac_compile) 2>&5
1641   ac_status=$?
1642   echo "$as_me:1642: \$? = $ac_status" >&5
1643   (exit $ac_status); } &&
1644          { ac_try='test -s conftest.$ac_objext'
1645   { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1646   (eval $ac_try) 2>&5
1647   ac_status=$?
1648   echo "$as_me:1648: \$? = $ac_status" >&5
1649   (exit $ac_status); }; }; then
1650   ac_compiler_gnu=yes
1651 else
1652   echo "$as_me: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1654 ac_compiler_gnu=no
1655 fi
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1658
1659 fi
1660 echo "$as_me:1660: result: $ac_cv_c_compiler_gnu" >&5
1661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1662 GCC=`test $ac_compiler_gnu = yes && echo yes`
1663 ac_test_CFLAGS=${CFLAGS+set}
1664 ac_save_CFLAGS=$CFLAGS
1665 CFLAGS="-g"
1666 echo "$as_me:1666: checking whether $CC accepts -g" >&5
1667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1668 if test "${ac_cv_prog_cc_g+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1674
1675 int
1676 main ()
1677 {
1678
1679   ;
1680   return 0;
1681 }
1682 _ACEOF
1683 rm -f conftest.$ac_objext
1684 if { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
1685   (eval $ac_compile) 2>&5
1686   ac_status=$?
1687   echo "$as_me:1687: \$? = $ac_status" >&5
1688   (exit $ac_status); } &&
1689          { ac_try='test -s conftest.$ac_objext'
1690   { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1691   (eval $ac_try) 2>&5
1692   ac_status=$?
1693   echo "$as_me:1693: \$? = $ac_status" >&5
1694   (exit $ac_status); }; }; then
1695   ac_cv_prog_cc_g=yes
1696 else
1697   echo "$as_me: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 ac_cv_prog_cc_g=no
1700 fi
1701 rm -f conftest.$ac_objext conftest.$ac_ext
1702 fi
1703 echo "$as_me:1703: result: $ac_cv_prog_cc_g" >&5
1704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1705 if test "$ac_test_CFLAGS" = set; then
1706   CFLAGS=$ac_save_CFLAGS
1707 elif test $ac_cv_prog_cc_g = yes; then
1708   if test "$GCC" = yes; then
1709     CFLAGS="-g -O2"
1710   else
1711     CFLAGS="-g"
1712   fi
1713 else
1714   if test "$GCC" = yes; then
1715     CFLAGS="-O2"
1716   else
1717     CFLAGS=
1718   fi
1719 fi
1720 # Some people use a C++ compiler to compile C.  Since we use `exit',
1721 # in C++ we need to declare it.  In case someone uses the same compiler
1722 # for both compiling C and C++ we need to have the C++ compiler decide
1723 # the declaration of exit, since it's the most demanding environment.
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #ifndef __cplusplus
1726   choke me
1727 #endif
1728 _ACEOF
1729 rm -f conftest.$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731   (eval $ac_compile) 2>&5
1732   ac_status=$?
1733   echo "$as_me:1733: \$? = $ac_status" >&5
1734   (exit $ac_status); } &&
1735          { ac_try='test -s conftest.$ac_objext'
1736   { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1737   (eval $ac_try) 2>&5
1738   ac_status=$?
1739   echo "$as_me:1739: \$? = $ac_status" >&5
1740   (exit $ac_status); }; }; then
1741   for ac_declaration in \
1742    ''\
1743    '#include <stdlib.h>' \
1744    'extern "C" void std::exit (int) throw (); using std::exit;' \
1745    'extern "C" void std::exit (int); using std::exit;' \
1746    'extern "C" void exit (int) throw ();' \
1747    'extern "C" void exit (int);' \
1748    'void exit (int);'
1749 do
1750   cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1753 #include <stdlib.h>
1754 $ac_declaration
1755 int
1756 main ()
1757 {
1758 exit (42);
1759   ;
1760   return 0;
1761 }
1762 _ACEOF
1763 rm -f conftest.$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765   (eval $ac_compile) 2>&5
1766   ac_status=$?
1767   echo "$as_me:1767: \$? = $ac_status" >&5
1768   (exit $ac_status); } &&
1769          { ac_try='test -s conftest.$ac_objext'
1770   { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1771   (eval $ac_try) 2>&5
1772   ac_status=$?
1773   echo "$as_me:1773: \$? = $ac_status" >&5
1774   (exit $ac_status); }; }; then
1775   :
1776 else
1777   echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 continue
1780 fi
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782   cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1785 $ac_declaration
1786 int
1787 main ()
1788 {
1789 exit (42);
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796   (eval $ac_compile) 2>&5
1797   ac_status=$?
1798   echo "$as_me:1798: \$? = $ac_status" >&5
1799   (exit $ac_status); } &&
1800          { ac_try='test -s conftest.$ac_objext'
1801   { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1802   (eval $ac_try) 2>&5
1803   ac_status=$?
1804   echo "$as_me:1804: \$? = $ac_status" >&5
1805   (exit $ac_status); }; }; then
1806   break
1807 else
1808   echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 fi
1811 rm -f conftest.$ac_objext conftest.$ac_ext
1812 done
1813 rm -f conftest*
1814 if test -n "$ac_declaration"; then
1815   echo '#ifdef __cplusplus' >>confdefs.h
1816   echo $ac_declaration      >>confdefs.h
1817   echo '#endif'             >>confdefs.h
1818 fi
1819
1820 else
1821   echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 fi
1824 rm -f conftest.$ac_objext conftest.$ac_ext
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830
1831 ac_ext=c
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 echo "$as_me:1836: checking how to run the C preprocessor" >&5
1837 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1838 # On Suns, sometimes $CPP names a directory.
1839 if test -n "$CPP" && test -d "$CPP"; then
1840   CPP=
1841 fi
1842 if test -z "$CPP"; then
1843   if test "${ac_cv_prog_CPP+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846       # Double quotes because CPP needs to be expanded
1847     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1848     do
1849       ac_preproc_ok=false
1850 for ac_c_preproc_warn_flag in '' yes
1851 do
1852   # Use a header file that comes with gcc, so configuring glibc
1853   # with a fresh cross-compiler works.
1854   # On the NeXT, cc -E runs the code through the compiler's parser,
1855   # not just through cpp. "Syntax error" is here to catch this case.
1856   cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1859 #include <assert.h>
1860                      Syntax error
1861 _ACEOF
1862 if { (eval echo "$as_me:1862: \"$ac_cpp conftest.$ac_ext\"") >&5
1863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1864   ac_status=$?
1865   egrep -v '^ *\+' conftest.er1 >conftest.err
1866   rm -f conftest.er1
1867   cat conftest.err >&5
1868   echo "$as_me:1868: \$? = $ac_status" >&5
1869   (exit $ac_status); } >/dev/null; then
1870   if test -s conftest.err; then
1871     ac_cpp_err=$ac_c_preproc_warn_flag
1872   else
1873     ac_cpp_err=
1874   fi
1875 else
1876   ac_cpp_err=yes
1877 fi
1878 if test -z "$ac_cpp_err"; then
1879   :
1880 else
1881   echo "$as_me: failed program was:" >&5
1882   cat conftest.$ac_ext >&5
1883   # Broken: fails on valid input.
1884 continue
1885 fi
1886 rm -f conftest.err conftest.$ac_ext
1887
1888   # OK, works on sane cases.  Now check whether non-existent headers
1889   # can be detected and how.
1890   cat >conftest.$ac_ext <<_ACEOF
1891 #line 1891 "configure"
1892 #include "confdefs.h"
1893 #include <ac_nonexistent.h>
1894 _ACEOF
1895 if { (eval echo "$as_me:1895: \"$ac_cpp conftest.$ac_ext\"") >&5
1896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1897   ac_status=$?
1898   egrep -v '^ *\+' conftest.er1 >conftest.err
1899   rm -f conftest.er1
1900   cat conftest.err >&5
1901   echo "$as_me:1901: \$? = $ac_status" >&5
1902   (exit $ac_status); } >/dev/null; then
1903   if test -s conftest.err; then
1904     ac_cpp_err=$ac_c_preproc_warn_flag
1905   else
1906     ac_cpp_err=
1907   fi
1908 else
1909   ac_cpp_err=yes
1910 fi
1911 if test -z "$ac_cpp_err"; then
1912   # Broken: success on invalid input.
1913 continue
1914 else
1915   echo "$as_me: failed program was:" >&5
1916   cat conftest.$ac_ext >&5
1917   # Passes both tests.
1918 ac_preproc_ok=:
1919 break
1920 fi
1921 rm -f conftest.err conftest.$ac_ext
1922
1923 done
1924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1925 rm -f conftest.err conftest.$ac_ext
1926 if $ac_preproc_ok; then
1927   break
1928 fi
1929
1930     done
1931     ac_cv_prog_CPP=$CPP
1932
1933 fi
1934   CPP=$ac_cv_prog_CPP
1935 else
1936   ac_cv_prog_CPP=$CPP
1937 fi
1938 echo "$as_me:1938: result: $CPP" >&5
1939 echo "${ECHO_T}$CPP" >&6
1940 ac_preproc_ok=false
1941 for ac_c_preproc_warn_flag in '' yes
1942 do
1943   # Use a header file that comes with gcc, so configuring glibc
1944   # with a fresh cross-compiler works.
1945   # On the NeXT, cc -E runs the code through the compiler's parser,
1946   # not just through cpp. "Syntax error" is here to catch this case.
1947   cat >conftest.$ac_ext <<_ACEOF
1948 #line 1948 "configure"
1949 #include "confdefs.h"
1950 #include <assert.h>
1951                      Syntax error
1952 _ACEOF
1953 if { (eval echo "$as_me:1953: \"$ac_cpp conftest.$ac_ext\"") >&5
1954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1955   ac_status=$?
1956   egrep -v '^ *\+' conftest.er1 >conftest.err
1957   rm -f conftest.er1
1958   cat conftest.err >&5
1959   echo "$as_me:1959: \$? = $ac_status" >&5
1960   (exit $ac_status); } >/dev/null; then
1961   if test -s conftest.err; then
1962     ac_cpp_err=$ac_c_preproc_warn_flag
1963   else
1964     ac_cpp_err=
1965   fi
1966 else
1967   ac_cpp_err=yes
1968 fi
1969 if test -z "$ac_cpp_err"; then
1970   :
1971 else
1972   echo "$as_me: failed program was:" >&5
1973   cat conftest.$ac_ext >&5
1974   # Broken: fails on valid input.
1975 continue
1976 fi
1977 rm -f conftest.err conftest.$ac_ext
1978
1979   # OK, works on sane cases.  Now check whether non-existent headers
1980   # can be detected and how.
1981   cat >conftest.$ac_ext <<_ACEOF
1982 #line 1982 "configure"
1983 #include "confdefs.h"
1984 #include <ac_nonexistent.h>
1985 _ACEOF
1986 if { (eval echo "$as_me:1986: \"$ac_cpp conftest.$ac_ext\"") >&5
1987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1988   ac_status=$?
1989   egrep -v '^ *\+' conftest.er1 >conftest.err
1990   rm -f conftest.er1
1991   cat conftest.err >&5
1992   echo "$as_me:1992: \$? = $ac_status" >&5
1993   (exit $ac_status); } >/dev/null; then
1994   if test -s conftest.err; then
1995     ac_cpp_err=$ac_c_preproc_warn_flag
1996   else
1997     ac_cpp_err=
1998   fi
1999 else
2000   ac_cpp_err=yes
2001 fi
2002 if test -z "$ac_cpp_err"; then
2003   # Broken: success on invalid input.
2004 continue
2005 else
2006   echo "$as_me: failed program was:" >&5
2007   cat conftest.$ac_ext >&5
2008   # Passes both tests.
2009 ac_preproc_ok=:
2010 break
2011 fi
2012 rm -f conftest.err conftest.$ac_ext
2013
2014 done
2015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2016 rm -f conftest.err conftest.$ac_ext
2017 if $ac_preproc_ok; then
2018   :
2019 else
2020   { { echo "$as_me:2020: error: C preprocessor \"$CPP\" fails sanity check" >&5
2021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2022    { (exit 1); exit 1; }; }
2023 fi
2024
2025 ac_ext=c
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031 # Extract the first word of "gdb", so it can be a program name with args.
2032 set dummy gdb; ac_word=$2
2033 echo "$as_me:2033: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_GDB+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$GDB"; then
2039   ac_cv_prog_GDB="$GDB" # Let the user override the test.
2040 else
2041   ac_save_IFS=$IFS; IFS=$ac_path_separator
2042 ac_dummy="$PATH"
2043 for ac_dir in $ac_dummy; do
2044   IFS=$ac_save_IFS
2045   test -z "$ac_dir" && ac_dir=.
2046   $as_executable_p "$ac_dir/$ac_word" || continue
2047 ac_cv_prog_GDB="yes"
2048 echo "$as_me:2048: found $ac_dir/$ac_word" >&5
2049 break
2050 done
2051
2052   test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
2053 fi
2054 fi
2055 GDB=$ac_cv_prog_GDB
2056 if test -n "$GDB"; then
2057   echo "$as_me:2057: result: $GDB" >&5
2058 echo "${ECHO_T}$GDB" >&6
2059 else
2060   echo "$as_me:2060: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2062 fi
2063
2064 # Check whether --with-debug or --without-debug was given.
2065 if test "${with_debug+set}" = set; then
2066   withval="$with_debug"
2067
2068                 if test "x$withval" != "xno" ; then
2069                     if test $ac_cv_prog_cc_g = yes; then
2070                       if test "$GCC" = yes; then
2071                         if test "$GDB"; then
2072                           CFLAGS="-ggdb"
2073                         else
2074                           CFLAGS="-g"
2075                         fi
2076                         CFLAGS="$CFLAGS -Wshadow  -Wconversion"
2077                       else
2078                         CFLAGS="-g"
2079                       fi
2080                    fi
2081                 fi
2082
2083 else
2084
2085             if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
2086               if test "$GCC" = yes; then
2087                 CFLAGS="-O2"
2088               else
2089                 CFLAGS=
2090               fi
2091             fi
2092
2093 fi;
2094
2095 if test "$GCC"; then
2096   CFLAGS="-pipe $CFLAGS"
2097 fi
2098
2099 case $host_os in
2100   *mingw32* ) MINGW32=yes;;
2101           * ) MINGW32=no;;
2102 esac
2103
2104 case $host_os in
2105   *cygwin* ) CYGWIN=yes;;
2106          * ) CYGWIN=no;;
2107 esac
2108
2109 if test "$MINGW32" = "yes"; then
2110   target_type=mingw
2111 else
2112   if test "$CYGWIN" = "yes"; then
2113     target_type=cygwin
2114   else
2115     target_type=unix
2116   fi
2117 fi
2118
2119 if test $dodk = auto; then
2120         dodk=no
2121         if test $target_type = unix; then
2122                 case "$host_os" in
2123                 linux* | gnu*)
2124                         dodk=yes
2125                 ;;
2126                 esac
2127         fi
2128 fi
2129
2130 # Check whether --enable-mingw32 or --disable-mingw32 was given.
2131 if test "${enable_mingw32+set}" = set; then
2132   enableval="$enable_mingw32"
2133   if test $enableval = yes; then
2134   target_type=mingw
2135 fi
2136 fi;
2137
2138 if test $target_type = mingw; then
2139   WIN_ONLY=
2140   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
2141   PTHREAD_LIB=-lpthreadGC
2142   echo "Using mingw32 (Win32 GUI)"
2143 else
2144   WIN_ONLY=#
2145   if test $target_type = cygwin; then
2146     SPECIAL_CFLAGS="-mno-win32"
2147     PTHREAD_LIB=
2148     echo "Using Cygnus (Win32 command line)"
2149   else
2150     SPECIAL_CFLAGS=
2151     PTHREAD_LIB=-lpthread
2152   fi
2153 fi
2154
2155 if test $dodk != no; then
2156         for ac_prog in w3m lynx links
2157 do
2158   # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy $ac_prog; ac_word=$2
2160 echo "$as_me:2160: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_WDUMP+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   if test -n "$WDUMP"; then
2166   ac_cv_prog_WDUMP="$WDUMP" # Let the user override the test.
2167 else
2168   ac_save_IFS=$IFS; IFS=$ac_path_separator
2169 ac_dummy="$PATH"
2170 for ac_dir in $ac_dummy; do
2171   IFS=$ac_save_IFS
2172   test -z "$ac_dir" && ac_dir=.
2173   $as_executable_p "$ac_dir/$ac_word" || continue
2174 ac_cv_prog_WDUMP="$ac_prog"
2175 echo "$as_me:2175: found $ac_dir/$ac_word" >&5
2176 break
2177 done
2178
2179 fi
2180 fi
2181 WDUMP=$ac_cv_prog_WDUMP
2182 if test -n "$WDUMP"; then
2183   echo "$as_me:2183: result: $WDUMP" >&5
2184 echo "${ECHO_T}$WDUMP" >&6
2185 else
2186   echo "$as_me:2186: result: no" >&5
2187 echo "${ECHO_T}no" >&6
2188 fi
2189
2190   test -n "$WDUMP" && break
2191 done
2192 test -n "$WDUMP" || WDUMP="false"
2193
2194         if test "$WDUMP" = false; then
2195                 { { echo "$as_me:2195: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" >&5
2196 echo "$as_me: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" >&2;}
2197    { (exit 1); exit 1; }; }
2198         fi
2199         if test $DB2HTML = false; then
2200                                                 DB2HTML=""
2201                 for ac_prog in db2html docbook2html
2202 do
2203   # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy $ac_prog; ac_word=$2
2205 echo "$as_me:2205: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_DB2HTML+set}" = set; then
2208   echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210   if test -n "$DB2HTML"; then
2211   ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
2212 else
2213   ac_save_IFS=$IFS; IFS=$ac_path_separator
2214 ac_dummy="$PATH"
2215 for ac_dir in $ac_dummy; do
2216   IFS=$ac_save_IFS
2217   test -z "$ac_dir" && ac_dir=.
2218   $as_executable_p "$ac_dir/$ac_word" || continue
2219 ac_cv_prog_DB2HTML="$ac_prog"
2220 echo "$as_me:2220: found $ac_dir/$ac_word" >&5
2221 break
2222 done
2223
2224 fi
2225 fi
2226 DB2HTML=$ac_cv_prog_DB2HTML
2227 if test -n "$DB2HTML"; then
2228   echo "$as_me:2228: result: $DB2HTML" >&5
2229 echo "${ECHO_T}$DB2HTML" >&6
2230 else
2231   echo "$as_me:2231: result: no" >&5
2232 echo "${ECHO_T}no" >&6
2233 fi
2234
2235   test -n "$DB2HTML" && break
2236 done
2237 test -n "$DB2HTML" || DB2HTML="false"
2238
2239         fi
2240 fi
2241
2242 for ac_prog in rpm
2243 do
2244   # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 echo "$as_me:2246: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248 if test "${ac_cv_prog_RPMBIN+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   if test -n "$RPMBIN"; then
2252   ac_cv_prog_RPMBIN="$RPMBIN" # Let the user override the test.
2253 else
2254   ac_save_IFS=$IFS; IFS=$ac_path_separator
2255 ac_dummy="$PATH"
2256 for ac_dir in $ac_dummy; do
2257   IFS=$ac_save_IFS
2258   test -z "$ac_dir" && ac_dir=.
2259   $as_executable_p "$ac_dir/$ac_word" || continue
2260 ac_cv_prog_RPMBIN="$ac_prog"
2261 echo "$as_me:2261: found $ac_dir/$ac_word" >&5
2262 break
2263 done
2264
2265 fi
2266 fi
2267 RPMBIN=$ac_cv_prog_RPMBIN
2268 if test -n "$RPMBIN"; then
2269   echo "$as_me:2269: result: $RPMBIN" >&5
2270 echo "${ECHO_T}$RPMBIN" >&6
2271 else
2272   echo "$as_me:2272: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276   test -n "$RPMBIN" && break
2277 done
2278 test -n "$RPMBIN" || RPMBIN="false"
2279
2280 if test $RPMBIN != false; then
2281                 RPM_BASE=`rpm --eval "%{_topdir}"`
2282                 if test "$RPM_BASE" = ""; then
2283                         RPM_BASE=/usr/src/redhat
2284                 fi
2285 fi
2286
2287 for ac_prog in jade openjade
2288 do
2289   # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 echo "$as_me:2291: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_JADEBIN+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   if test -n "$JADEBIN"; then
2297   ac_cv_prog_JADEBIN="$JADEBIN" # Let the user override the test.
2298 else
2299   ac_save_IFS=$IFS; IFS=$ac_path_separator
2300 ac_dummy="$PATH"
2301 for ac_dir in $ac_dummy; do
2302   IFS=$ac_save_IFS
2303   test -z "$ac_dir" && ac_dir=.
2304   $as_executable_p "$ac_dir/$ac_word" || continue
2305 ac_cv_prog_JADEBIN="$ac_prog"
2306 echo "$as_me:2306: found $ac_dir/$ac_word" >&5
2307 break
2308 done
2309
2310 fi
2311 fi
2312 JADEBIN=$ac_cv_prog_JADEBIN
2313 if test -n "$JADEBIN"; then
2314   echo "$as_me:2314: result: $JADEBIN" >&5
2315 echo "${ECHO_T}$JADEBIN" >&6
2316 else
2317   echo "$as_me:2317: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321   test -n "$JADEBIN" && break
2322 done
2323 test -n "$JADEBIN" || JADEBIN="false"
2324
2325 if test $dodk = yes; then
2326   if test $DKPREFIX = none; then
2327     for i in /usr/share/sgml/docbook/dsssl-stylesheets /usr/share/sgml/docbkdsl; do
2328       echo -n "checking for $i/html/docbook.dsl..."
2329       if test -f $i/html/docbook.dsl; then
2330         echo "yes"
2331         DKPREFIX=$i
2332         break
2333       else
2334         echo "no"
2335       fi
2336     done
2337   fi
2338 fi
2339
2340 old_CFLAGS_nospecial=$CFLAGS
2341 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
2342
2343 # Hack to force AutoConf to use the CFLAGS we just set
2344 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
2345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2347
2348 echo "$as_me:2348: checking for pthread.h" >&5
2349 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
2350 if test "${ac_cv_header_pthread_h+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 #line 2354 "configure"
2355 #include "confdefs.h"
2356 #include <pthread.h>
2357 _ACEOF
2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5
2359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2360   ac_status=$?
2361   egrep -v '^ *\+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:2364: \$? = $ac_status" >&5
2365   (exit $ac_status); } >/dev/null; then
2366   if test -s conftest.err; then
2367     ac_cpp_err=$ac_c_preproc_warn_flag
2368   else
2369     ac_cpp_err=
2370   fi
2371 else
2372   ac_cpp_err=yes
2373 fi
2374 if test -z "$ac_cpp_err"; then
2375   ac_cv_header_pthread_h=yes
2376 else
2377   echo "$as_me: failed program was:" >&5
2378   cat conftest.$ac_ext >&5
2379   ac_cv_header_pthread_h=no
2380 fi
2381 rm -f conftest.err conftest.$ac_ext
2382 fi
2383 echo "$as_me:2383: result: $ac_cv_header_pthread_h" >&5
2384 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
2385 if test $ac_cv_header_pthread_h = yes; then
2386   have_pthread=yes
2387 else
2388   have_pthread=no
2389 fi
2390
2391 # Check whether --enable-pthread or --disable-pthread was given.
2392 if test "${enable_pthread+set}" = set; then
2393   enableval="$enable_pthread"
2394   if test $enableval = no; then
2395   # Disable pthreads
2396   have_pthread=no
2397 fi
2398 fi;
2399
2400 if test $have_pthread = yes; then
2401   PTHREAD_ONLY=
2402   cat >>confdefs.h <<\EOF
2403 #define FEATURE_PTHREAD 1
2404 EOF
2405
2406   echo Using POSIX threads
2407   if test "$GCC" = "yes"; then
2408     # Set a GCC specific switch:
2409     if test "$target_type" = "unix"; then
2410       # This compiler switch makes Linux thread-safe
2411       # Don't know about other OS's?  Is this switch
2412       # supported?
2413       PTHREAD_LIB=
2414       SPECIAL_CFLAGS="-pthread"
2415     fi
2416   fi
2417 else
2418   PTHREAD_ONLY=#
2419   echo Using native threads
2420 fi
2421
2422 echo "$as_me:2422: checking for gethostbyname in -lnsl" >&5
2423 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2424 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   ac_check_lib_save_LIBS=$LIBS
2428 LIBS="-lnsl  $LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #line 2430 "configure"
2431 #include "confdefs.h"
2432
2433 /* Override any gcc2 internal prototype to avoid an error.  */
2434 #ifdef __cplusplus
2435 extern "C"
2436 #endif
2437 /* We use char because int might match the return type of a gcc2
2438    builtin and then its argument prototype would still apply.  */
2439 char gethostbyname ();
2440 int
2441 main ()
2442 {
2443 gethostbyname ();
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { (eval echo "$as_me:2449: \"$ac_link\"") >&5
2450   (eval $ac_link) 2>&5
2451   ac_status=$?
2452   echo "$as_me:2452: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -s conftest$ac_exeext'
2455   { (eval echo "$as_me:2455: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:2458: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460   ac_cv_lib_nsl_gethostbyname=yes
2461 else
2462   echo "$as_me: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 ac_cv_lib_nsl_gethostbyname=no
2465 fi
2466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2467 LIBS=$ac_check_lib_save_LIBS
2468 fi
2469 echo "$as_me:2469: result: $ac_cv_lib_nsl_gethostbyname" >&5
2470 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2471 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2472   cat >>confdefs.h <<EOF
2473 #define HAVE_LIBNSL 1
2474 EOF
2475
2476   LIBS="-lnsl $LIBS"
2477
2478 fi
2479
2480 echo "$as_me:2480: checking for gethostbyaddr_r" >&5
2481 echo $ECHO_N "checking for gethostbyaddr_r... $ECHO_C" >&6
2482 if test "${ac_cv_func_gethostbyaddr_r+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   cat >conftest.$ac_ext <<_ACEOF
2486 #line 2486 "configure"
2487 #include "confdefs.h"
2488 /* System header to define __stub macros and hopefully few prototypes,
2489     which can conflict with char gethostbyaddr_r (); below.  */
2490 #include <assert.h>
2491 /* Override any gcc2 internal prototype to avoid an error.  */
2492 #ifdef __cplusplus
2493 extern "C"
2494 #endif
2495 /* We use char because int might match the return type of a gcc2
2496    builtin and then its argument prototype would still apply.  */
2497 char gethostbyaddr_r ();
2498 char (*f) ();
2499
2500 int
2501 main ()
2502 {
2503 /* The GNU C library defines this for functions which it implements
2504     to always fail with ENOSYS.  Some functions are actually named
2505     something starting with __ and the normal name is an alias.  */
2506 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
2507 choke me
2508 #else
2509 f = gethostbyaddr_r;
2510 #endif
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:2517: \"$ac_link\"") >&5
2518   (eval $ac_link) 2>&5
2519   ac_status=$?
2520   echo "$as_me:2520: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest$ac_exeext'
2523   { (eval echo "$as_me:2523: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:2526: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   ac_cv_func_gethostbyaddr_r=yes
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 ac_cv_func_gethostbyaddr_r=no
2533 fi
2534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2535 fi
2536 echo "$as_me:2536: result: $ac_cv_func_gethostbyaddr_r" >&5
2537 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_r" >&6
2538 if test $ac_cv_func_gethostbyaddr_r = yes; then
2539
2540   echo "$as_me:2540: checking signature of gethostbyaddr_r" >&5
2541 echo $ECHO_N "checking signature of gethostbyaddr_r... $ECHO_C" >&6
2542   cat >conftest.$ac_ext <<_ACEOF
2543 #line 2543 "configure"
2544 #include "confdefs.h"
2545
2546 #   include <netdb.h>
2547
2548 int
2549 main ()
2550 {
2551
2552     struct hostent *h, *hp;
2553     char *a, *b;
2554     int l, bl, t, e;
2555     (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:2562: \"$ac_compile\"") >&5
2563   (eval $ac_compile) 2>&5
2564   ac_status=$?
2565   echo "$as_me:2565: \$? = $ac_status" >&5
2566   (exit $ac_status); } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:2568: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:2571: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573
2574     cat >>confdefs.h <<\EOF
2575 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
2576 EOF
2577
2578     echo "$as_me:2578: result: 8 args" >&5
2579 echo "${ECHO_T}8 args" >&6
2580
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584
2585     cat >conftest.$ac_ext <<_ACEOF
2586 #line 2586 "configure"
2587 #include "confdefs.h"
2588
2589 #     include <netdb.h>
2590
2591 int
2592 main ()
2593 {
2594
2595       struct hostent *h;
2596       char *a, *b;
2597       int l, bl, t, e;
2598       (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:2605: \"$ac_compile\"") >&5
2606   (eval $ac_compile) 2>&5
2607   ac_status=$?
2608   echo "$as_me:2608: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (eval echo "$as_me:2611: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:2614: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616
2617       cat >>confdefs.h <<\EOF
2618 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
2619 EOF
2620
2621       echo "$as_me:2621: result: 7 args" >&5
2622 echo "${ECHO_T}7 args" >&6
2623
2624 else
2625   echo "$as_me: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627
2628       cat >conftest.$ac_ext <<_ACEOF
2629 #line 2629 "configure"
2630 #include "confdefs.h"
2631
2632 #       include <netdb.h>
2633
2634 int
2635 main ()
2636 {
2637
2638         struct hostent_data *d;
2639         struct hostent *h;
2640         char a,
2641         int l, t;
2642         (void) gethostbyaddr_r(a, l, t, h, d)
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:2649: \"$ac_compile\"") >&5
2650   (eval $ac_compile) 2>&5
2651   ac_status=$?
2652   echo "$as_me:2652: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          { ac_try='test -s conftest.$ac_objext'
2655   { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:2658: \$? = $ac_status" >&5
2659   (exit $ac_status); }; }; then
2660
2661         cat >>confdefs.h <<\EOF
2662 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
2663 EOF
2664
2665         echo "$as_me:2665: result: 5 args" >&5
2666 echo "${ECHO_T}5 args" >&6
2667
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671
2672         echo "$as_me:2672: result: unrecognised" >&5
2673 echo "${ECHO_T}unrecognised" >&6
2674
2675 fi
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2677
2678 fi
2679 rm -f conftest.$ac_objext conftest.$ac_ext
2680
2681 fi
2682 rm -f conftest.$ac_objext conftest.$ac_ext
2683
2684 else
2685
2686   echo "$as_me:2686: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2688
2689 fi
2690
2691 echo "$as_me:2691: checking for gethostbyname_r" >&5
2692 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
2693 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   cat >conftest.$ac_ext <<_ACEOF
2697 #line 2697 "configure"
2698 #include "confdefs.h"
2699 /* System header to define __stub macros and hopefully few prototypes,
2700     which can conflict with char gethostbyname_r (); below.  */
2701 #include <assert.h>
2702 /* Override any gcc2 internal prototype to avoid an error.  */
2703 #ifdef __cplusplus
2704 extern "C"
2705 #endif
2706 /* We use char because int might match the return type of a gcc2
2707    builtin and then its argument prototype would still apply.  */
2708 char gethostbyname_r ();
2709 char (*f) ();
2710
2711 int
2712 main ()
2713 {
2714 /* The GNU C library defines this for functions which it implements
2715     to always fail with ENOSYS.  Some functions are actually named
2716     something starting with __ and the normal name is an alias.  */
2717 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
2718 choke me
2719 #else
2720 f = gethostbyname_r;
2721 #endif
2722
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext conftest$ac_exeext
2728 if { (eval echo "$as_me:2728: \"$ac_link\"") >&5
2729   (eval $ac_link) 2>&5
2730   ac_status=$?
2731   echo "$as_me:2731: \$? = $ac_status" >&5
2732   (exit $ac_status); } &&
2733          { ac_try='test -s conftest$ac_exeext'
2734   { (eval echo "$as_me:2734: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:2737: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   ac_cv_func_gethostbyname_r=yes
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 ac_cv_func_gethostbyname_r=no
2744 fi
2745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2746 fi
2747 echo "$as_me:2747: result: $ac_cv_func_gethostbyname_r" >&5
2748 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
2749 if test $ac_cv_func_gethostbyname_r = yes; then
2750
2751   echo "$as_me:2751: checking signature of gethostbyname_r" >&5
2752 echo $ECHO_N "checking signature of gethostbyname_r... $ECHO_C" >&6
2753   cat >conftest.$ac_ext <<_ACEOF
2754 #line 2754 "configure"
2755 #include "confdefs.h"
2756
2757 #   include <netdb.h>
2758
2759 int
2760 main ()
2761 {
2762
2763     struct hostent *h, *r;
2764     char *n, *b;
2765     int bl, e;
2766     (void) gethostbyname_r(n, h, b, bl, &r, &e)
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:2773: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>&5
2775   ac_status=$?
2776   echo "$as_me:2776: \$? = $ac_status" >&5
2777   (exit $ac_status); } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:2779: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:2782: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784
2785     cat >>confdefs.h <<\EOF
2786 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
2787 EOF
2788
2789     echo "$as_me:2789: result: 6 args" >&5
2790 echo "${ECHO_T}6 args" >&6
2791
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795
2796     cat >conftest.$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #include "confdefs.h"
2799
2800 #     include <netdb.h>
2801
2802 int
2803 main ()
2804 {
2805
2806       struct hostent *h;
2807       char *n, *b;
2808       int bl, e;
2809       (void) gethostbyname_r(n, h, b, bl, &e)
2810
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
2817   (eval $ac_compile) 2>&5
2818   ac_status=$?
2819   echo "$as_me:2819: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -s conftest.$ac_objext'
2822   { (eval echo "$as_me:2822: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:2825: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827
2828       cat >>confdefs.h <<\EOF
2829 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
2830 EOF
2831
2832       echo "$as_me:2832: result: 5 args" >&5
2833 echo "${ECHO_T}5 args" >&6
2834
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838
2839       cat >conftest.$ac_ext <<_ACEOF
2840 #line 2840 "configure"
2841 #include "confdefs.h"
2842
2843 #       include <netdb.h>
2844
2845 int
2846 main ()
2847 {
2848
2849         struct hostent_data *d;
2850         struct hostent *h;
2851         char *n,
2852         (void) gethostbyname_r(n, h, d)
2853
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
2860   (eval $ac_compile) 2>&5
2861   ac_status=$?
2862   echo "$as_me:2862: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -s conftest.$ac_objext'
2865   { (eval echo "$as_me:2865: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:2868: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870
2871         cat >>confdefs.h <<\EOF
2872 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
2873 EOF
2874
2875         echo "$as_me:2875: result: 3 args" >&5
2876 echo "${ECHO_T}3 args" >&6
2877
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2881
2882         echo "$as_me:2882: result: unrecognised" >&5
2883 echo "${ECHO_T}unrecognised" >&6
2884
2885 fi
2886 rm -f conftest.$ac_objext conftest.$ac_ext
2887
2888 fi
2889 rm -f conftest.$ac_objext conftest.$ac_ext
2890
2891 fi
2892 rm -f conftest.$ac_objext conftest.$ac_ext
2893
2894 else
2895
2896   echo "$as_me:2896: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898
2899 fi
2900
2901 echo "$as_me:2901: checking for gmtime_r" >&5
2902 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
2903 if test "${ac_cv_func_gmtime_r+set}" = set; then
2904   echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906   cat >conftest.$ac_ext <<_ACEOF
2907 #line 2907 "configure"
2908 #include "confdefs.h"
2909 /* System header to define __stub macros and hopefully few prototypes,
2910     which can conflict with char gmtime_r (); below.  */
2911 #include <assert.h>
2912 /* Override any gcc2 internal prototype to avoid an error.  */
2913 #ifdef __cplusplus
2914 extern "C"
2915 #endif
2916 /* We use char because int might match the return type of a gcc2
2917    builtin and then its argument prototype would still apply.  */
2918 char gmtime_r ();
2919 char (*f) ();
2920
2921 int
2922 main ()
2923 {
2924 /* The GNU C library defines this for functions which it implements
2925     to always fail with ENOSYS.  Some functions are actually named
2926     something starting with __ and the normal name is an alias.  */
2927 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
2928 choke me
2929 #else
2930 f = gmtime_r;
2931 #endif
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 rm -f conftest.$ac_objext conftest$ac_exeext
2938 if { (eval echo "$as_me:2938: \"$ac_link\"") >&5
2939   (eval $ac_link) 2>&5
2940   ac_status=$?
2941   echo "$as_me:2941: \$? = $ac_status" >&5
2942   (exit $ac_status); } &&
2943          { ac_try='test -s conftest$ac_exeext'
2944   { (eval echo "$as_me:2944: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:2947: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949   ac_cv_func_gmtime_r=yes
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 ac_cv_func_gmtime_r=no
2954 fi
2955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2956 fi
2957 echo "$as_me:2957: result: $ac_cv_func_gmtime_r" >&5
2958 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
2959 if test $ac_cv_func_gmtime_r = yes; then
2960
2961   echo "$as_me:2961: checking signature of gmtime_r" >&5
2962 echo $ECHO_N "checking signature of gmtime_r... $ECHO_C" >&6
2963   cat >conftest.$ac_ext <<_ACEOF
2964 #line 2964 "configure"
2965 #include "confdefs.h"
2966
2967 #   include <time.h>
2968
2969 int
2970 main ()
2971 {
2972
2973     struct time *t;
2974     struct tm *tm;
2975     (void) gmtime_r(t, tm)
2976
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:2982: \"$ac_compile\"") >&5
2983   (eval $ac_compile) 2>&5
2984   ac_status=$?
2985   echo "$as_me:2985: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (eval echo "$as_me:2988: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:2991: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993
2994     echo "$as_me:2994: result: ok" >&5
2995 echo "${ECHO_T}ok" >&6
2996     cat >>confdefs.h <<\EOF
2997 #define HAVE_GMTIME_R 1
2998 EOF
2999
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003
3004     echo "$as_me:3004: result: unrecognised" >&5
3005 echo "${ECHO_T}unrecognised" >&6
3006
3007 fi
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3009
3010 else
3011
3012   echo "$as_me:3012: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014
3015 fi
3016
3017 echo "$as_me:3017: checking for localtime_r" >&5
3018 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
3019 if test "${ac_cv_func_localtime_r+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 #line 3023 "configure"
3024 #include "confdefs.h"
3025 /* System header to define __stub macros and hopefully few prototypes,
3026     which can conflict with char localtime_r (); below.  */
3027 #include <assert.h>
3028 /* Override any gcc2 internal prototype to avoid an error.  */
3029 #ifdef __cplusplus
3030 extern "C"
3031 #endif
3032 /* We use char because int might match the return type of a gcc2
3033    builtin and then its argument prototype would still apply.  */
3034 char localtime_r ();
3035 char (*f) ();
3036
3037 int
3038 main ()
3039 {
3040 /* The GNU C library defines this for functions which it implements
3041     to always fail with ENOSYS.  Some functions are actually named
3042     something starting with __ and the normal name is an alias.  */
3043 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
3044 choke me
3045 #else
3046 f = localtime_r;
3047 #endif
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext conftest$ac_exeext
3054 if { (eval echo "$as_me:3054: \"$ac_link\"") >&5
3055   (eval $ac_link) 2>&5
3056   ac_status=$?
3057   echo "$as_me:3057: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -s conftest$ac_exeext'
3060   { (eval echo "$as_me:3060: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:3063: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   ac_cv_func_localtime_r=yes
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3069 ac_cv_func_localtime_r=no
3070 fi
3071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3072 fi
3073 echo "$as_me:3073: result: $ac_cv_func_localtime_r" >&5
3074 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
3075 if test $ac_cv_func_localtime_r = yes; then
3076
3077   echo "$as_me:3077: checking signature of localtime_r" >&5
3078 echo $ECHO_N "checking signature of localtime_r... $ECHO_C" >&6
3079   cat >conftest.$ac_ext <<_ACEOF
3080 #line 3080 "configure"
3081 #include "confdefs.h"
3082
3083 #   include <time.h>
3084
3085 int
3086 main ()
3087 {
3088
3089     struct time *t;
3090     struct tm *tm;
3091     (void) localtime_r(t, tm)
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:3098: \"$ac_compile\"") >&5
3099   (eval $ac_compile) 2>&5
3100   ac_status=$?
3101   echo "$as_me:3101: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (eval echo "$as_me:3104: \"$ac_try\"") >&5
3105   (eval $ac_try) 2>&5
3106   ac_status=$?
3107   echo "$as_me:3107: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109
3110     echo "$as_me:3110: result: ok" >&5
3111 echo "${ECHO_T}ok" >&6
3112     cat >>confdefs.h <<\EOF
3113 #define HAVE_LOCALTIME_R 1
3114 EOF
3115
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119
3120     echo "$as_me:3120: result: unrecognised" >&5
3121 echo "${ECHO_T}unrecognised" >&6
3122
3123 fi
3124 rm -f conftest.$ac_objext conftest.$ac_ext
3125
3126 else
3127
3128   echo "$as_me:3128: result: no" >&5
3129 echo "${ECHO_T}no" >&6
3130
3131 fi
3132
3133 SOCKET_LIB=
3134
3135 case "$host" in
3136 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
3137             cat >>confdefs.h <<\EOF
3138 #define __EXTENSIONS__ 1
3139 EOF
3140
3141             if test "$GCC" = "yes"; then
3142               # Set a GCC specific switch:
3143               # This compiler switch makes Solaris thread-safe
3144               PTHREAD_LIB=
3145               SPECIAL_CFLAGS="-pthreads"
3146             else
3147               # What do we do without GCC? Guess this:
3148               SPECIAL_CFLAGS="-D_REENTRANT"
3149             fi
3150 ;;
3151 esac
3152
3153 case "$host" in
3154 *-os2-emx*) SOCKET_LIB=-lsocket
3155 ;;
3156 esac
3157
3158 AMIGAOS_ONLY=#
3159
3160 case "$host" in
3161 *-amigaos) AMIGAOS_ONLY=
3162 ;;
3163 esac
3164
3165 echo "$as_me:3165: checking for ANSI C header files" >&5
3166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3167 if test "${ac_cv_header_stdc+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   cat >conftest.$ac_ext <<_ACEOF
3171 #line 3171 "configure"
3172 #include "confdefs.h"
3173 #include <stdlib.h>
3174 #include <stdarg.h>
3175 #include <string.h>
3176 #include <float.h>
3177
3178 _ACEOF
3179 if { (eval echo "$as_me:3179: \"$ac_cpp conftest.$ac_ext\"") >&5
3180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181   ac_status=$?
3182   egrep -v '^ *\+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:3185: \$? = $ac_status" >&5
3186   (exit $ac_status); } >/dev/null; then
3187   if test -s conftest.err; then
3188     ac_cpp_err=$ac_c_preproc_warn_flag
3189   else
3190     ac_cpp_err=
3191   fi
3192 else
3193   ac_cpp_err=yes
3194 fi
3195 if test -z "$ac_cpp_err"; then
3196   ac_cv_header_stdc=yes
3197 else
3198   echo "$as_me: failed program was:" >&5
3199   cat conftest.$ac_ext >&5
3200   ac_cv_header_stdc=no
3201 fi
3202 rm -f conftest.err conftest.$ac_ext
3203
3204 if test $ac_cv_header_stdc = yes; then
3205   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3206   cat >conftest.$ac_ext <<_ACEOF
3207 #line 3207 "configure"
3208 #include "confdefs.h"
3209 #include <string.h>
3210
3211 _ACEOF
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213   egrep "memchr" >/dev/null 2>&1; then
3214   :
3215 else
3216   ac_cv_header_stdc=no
3217 fi
3218 rm -f conftest*
3219
3220 fi
3221
3222 if test $ac_cv_header_stdc = yes; then
3223   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3224   cat >conftest.$ac_ext <<_ACEOF
3225 #line 3225 "configure"
3226 #include "confdefs.h"
3227 #include <stdlib.h>
3228
3229 _ACEOF
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231   egrep "free" >/dev/null 2>&1; then
3232   :
3233 else
3234   ac_cv_header_stdc=no
3235 fi
3236 rm -f conftest*
3237
3238 fi
3239
3240 if test $ac_cv_header_stdc = yes; then
3241   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3242   if test "$cross_compiling" = yes; then
3243   :
3244 else
3245   cat >conftest.$ac_ext <<_ACEOF
3246 #line 3246 "configure"
3247 #include "confdefs.h"
3248 #include <ctype.h>
3249 #if ((' ' & 0x0FF) == 0x020)
3250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3252 #else
3253 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3254                      || ('j' <= (c) && (c) <= 'r') \
3255                      || ('s' <= (c) && (c) <= 'z'))
3256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3257 #endif
3258
3259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3260 int
3261 main ()
3262 {
3263   int i;
3264   for (i = 0; i < 256; i++)
3265     if (XOR (islower (i), ISLOWER (i))
3266         || toupper (i) != TOUPPER (i))
3267       exit(2);
3268   exit (0);
3269 }
3270 _ACEOF
3271 rm -f conftest$ac_exeext
3272 if { (eval echo "$as_me:3272: \"$ac_link\"") >&5
3273   (eval $ac_link) 2>&5
3274   ac_status=$?
3275   echo "$as_me:3275: \$? = $ac_status" >&5
3276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3277   { (eval echo "$as_me:3277: \"$ac_try\"") >&5
3278   (eval $ac_try) 2>&5
3279   ac_status=$?
3280   echo "$as_me:3280: \$? = $ac_status" >&5
3281   (exit $ac_status); }; }; then
3282   :
3283 else
3284   echo "$as_me: program exited with status $ac_status" >&5
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 ac_cv_header_stdc=no
3288 fi
3289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3290 fi
3291 fi
3292 fi
3293 echo "$as_me:3293: result: $ac_cv_header_stdc" >&5
3294 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3295 if test $ac_cv_header_stdc = yes; then
3296
3297 cat >>confdefs.h <<\EOF
3298 #define STDC_HEADERS 1
3299 EOF
3300
3301 fi
3302
3303 echo "$as_me:3303: checking for $CC option to accept ANSI C" >&5
3304 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3305 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   ac_cv_prog_cc_stdc=no
3309 ac_save_CC=$CC
3310 cat >conftest.$ac_ext <<_ACEOF
3311 #line 3311 "configure"
3312 #include "confdefs.h"
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321      char **p;
3322      int i;
3323 {
3324   return p[i];
3325 }
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3327 {
3328   char *s;
3329   va_list v;
3330   va_start (v,p);
3331   s = g (p, va_arg (v,int));
3332   va_end (v);
3333   return s;
3334 }
3335 int test (int i, double x);
3336 struct s1 {int (*f) (int a);};
3337 struct s2 {int (*f) (double a);};
3338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339 int argc;
3340 char **argv;
3341 int
3342 main ()
3343 {
3344 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 # Don't try gcc -ansi; that turns off useful extensions and
3350 # breaks some systems' header files.
3351 # AIX                   -qlanglvl=ansi
3352 # Ultrix and OSF/1      -std1
3353 # HP-UX 10.20 and later -Ae
3354 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3355 # SVR4                  -Xc -D__EXTENSIONS__
3356 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3357 do
3358   CC="$ac_save_CC $ac_arg"
3359   rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361   (eval $ac_compile) 2>&5
3362   ac_status=$?
3363   echo "$as_me:3363: \$? = $ac_status" >&5
3364   (exit $ac_status); } &&
3365          { ac_try='test -s conftest.$ac_objext'
3366   { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3367   (eval $ac_try) 2>&5
3368   ac_status=$?
3369   echo "$as_me:3369: \$? = $ac_status" >&5
3370   (exit $ac_status); }; }; then
3371   ac_cv_prog_cc_stdc=$ac_arg
3372 break
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3376 fi
3377 rm -f conftest.$ac_objext
3378 done
3379 rm -f conftest.$ac_ext conftest.$ac_objext
3380 CC=$ac_save_CC
3381
3382 fi
3383
3384 case "x$ac_cv_prog_cc_stdc" in
3385   x|xno)
3386     echo "$as_me:3386: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6 ;;
3388   *)
3389     echo "$as_me:3389: result: $ac_cv_prog_cc_stdc" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3391     CC="$CC $ac_cv_prog_cc_stdc" ;;
3392 esac
3393
3394 echo "$as_me:3394: checking for an ANSI C-conforming const" >&5
3395 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3396 if test "${ac_cv_c_const+set}" = set; then
3397   echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399   cat >conftest.$ac_ext <<_ACEOF
3400 #line 3400 "configure"
3401 #include "confdefs.h"
3402
3403 int
3404 main ()
3405 {
3406 /* FIXME: Include the comments suggested by Paul. */
3407 #ifndef __cplusplus
3408   /* Ultrix mips cc rejects this.  */
3409   typedef int charset[2];
3410   const charset x;
3411   /* SunOS 4.1.1 cc rejects this.  */
3412   char const *const *ccp;
3413   char **p;
3414   /* NEC SVR4.0.2 mips cc rejects this.  */
3415   struct point {int x, y;};
3416   static struct point const zero = {0,0};
3417   /* AIX XL C 1.02.0.0 rejects this.
3418      It does not let you subtract one const X* pointer from another in
3419      an arm of an if-expression whose if-part is not a constant
3420      expression */
3421   const char *g = "string";
3422   ccp = &g + (g ? g-g : 0);
3423   /* HPUX 7.0 cc rejects these. */
3424   ++ccp;
3425   p = (char**) ccp;
3426   ccp = (char const *const *) p;
3427   { /* SCO 3.2v4 cc rejects this.  */
3428     char *t;
3429     char const *s = 0 ? (char *) 0 : (char const *) 0;
3430
3431     *t++ = 0;
3432   }
3433   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3434     int x[] = {25, 17};
3435     const int *foo = &x[0];
3436     ++foo;
3437   }
3438   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3439     typedef const int *iptr;
3440     iptr p = 0;
3441     ++p;
3442   }
3443   { /* AIX XL C 1.02.0.0 rejects this saying
3444        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3445     struct s { int j; const int *ap[3]; };
3446     struct s *b; b->j = 5;
3447   }
3448   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3449     const int foo = 10;
3450   }
3451 #endif
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:3458: \"$ac_compile\"") >&5
3459   (eval $ac_compile) 2>&5
3460   ac_status=$?
3461   echo "$as_me:3461: \$? = $ac_status" >&5
3462   (exit $ac_status); } &&
3463          { ac_try='test -s conftest.$ac_objext'
3464   { (eval echo "$as_me:3464: \"$ac_try\"") >&5
3465   (eval $ac_try) 2>&5
3466   ac_status=$?
3467   echo "$as_me:3467: \$? = $ac_status" >&5
3468   (exit $ac_status); }; }; then
3469   ac_cv_c_const=yes
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 ac_cv_c_const=no
3474 fi
3475 rm -f conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 echo "$as_me:3477: result: $ac_cv_c_const" >&5
3478 echo "${ECHO_T}$ac_cv_c_const" >&6
3479 if test $ac_cv_c_const = no; then
3480
3481 cat >>confdefs.h <<\EOF
3482 #define const
3483 EOF
3484
3485 fi
3486
3487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3488
3489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3490                   inttypes.h stdint.h unistd.h
3491 do
3492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3493 echo "$as_me:3493: checking for $ac_header" >&5
3494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   cat >conftest.$ac_ext <<_ACEOF
3499 #line 3499 "configure"
3500 #include "confdefs.h"
3501 $ac_includes_default
3502 #include <$ac_header>
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:3505: \"$ac_compile\"") >&5
3506   (eval $ac_compile) 2>&5
3507   ac_status=$?
3508   echo "$as_me:3508: \$? = $ac_status" >&5
3509   (exit $ac_status); } &&
3510          { ac_try='test -s conftest.$ac_objext'
3511   { (eval echo "$as_me:3511: \"$ac_try\"") >&5
3512   (eval $ac_try) 2>&5
3513   ac_status=$?
3514   echo "$as_me:3514: \$? = $ac_status" >&5
3515   (exit $ac_status); }; }; then
3516   eval "$as_ac_Header=yes"
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 eval "$as_ac_Header=no"
3521 fi
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 fi
3524 echo "$as_me:3524: result: `eval echo '${'$as_ac_Header'}'`" >&5
3525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3527   cat >>confdefs.h <<EOF
3528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3529 EOF
3530
3531 fi
3532 done
3533
3534 echo "$as_me:3534: checking for size_t" >&5
3535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3536 if test "${ac_cv_type_size_t+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   cat >conftest.$ac_ext <<_ACEOF
3540 #line 3540 "configure"
3541 #include "confdefs.h"
3542 $ac_includes_default
3543 int
3544 main ()
3545 {
3546 if ((size_t *) 0)
3547   return 0;
3548 if (sizeof (size_t))
3549   return 0;
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:3555: \"$ac_compile\"") >&5
3556   (eval $ac_compile) 2>&5
3557   ac_status=$?
3558   echo "$as_me:3558: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560          { ac_try='test -s conftest.$ac_objext'
3561   { (eval echo "$as_me:3561: \"$ac_try\"") >&5
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:3564: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566   ac_cv_type_size_t=yes
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 ac_cv_type_size_t=no
3571 fi
3572 rm -f conftest.$ac_objext conftest.$ac_ext
3573 fi
3574 echo "$as_me:3574: result: $ac_cv_type_size_t" >&5
3575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3576 if test $ac_cv_type_size_t = yes; then
3577   :
3578 else
3579
3580 cat >>confdefs.h <<EOF
3581 #define size_t unsigned
3582 EOF
3583
3584 fi
3585
3586 echo "$as_me:3586: checking for int" >&5
3587 echo $ECHO_N "checking for int... $ECHO_C" >&6
3588 if test "${ac_cv_type_int+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 #line 3592 "configure"
3593 #include "confdefs.h"
3594 $ac_includes_default
3595 int
3596 main ()
3597 {
3598 if ((int *) 0)
3599   return 0;
3600 if (sizeof (int))
3601   return 0;
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:3607: \"$ac_compile\"") >&5
3608   (eval $ac_compile) 2>&5
3609   ac_status=$?
3610   echo "$as_me:3610: \$? = $ac_status" >&5
3611   (exit $ac_status); } &&
3612          { ac_try='test -s conftest.$ac_objext'
3613   { (eval echo "$as_me:3613: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:3616: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618   ac_cv_type_int=yes
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 ac_cv_type_int=no
3623 fi
3624 rm -f conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:3626: result: $ac_cv_type_int" >&5
3627 echo "${ECHO_T}$ac_cv_type_int" >&6
3628
3629 echo "$as_me:3629: checking size of int" >&5
3630 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3631 if test "${ac_cv_sizeof_int+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   if test "$ac_cv_type_int" = yes; then
3635   if test "$cross_compiling" = yes; then
3636   # Depending upon the size, compute the lo and hi bounds.
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line 3638 "configure"
3639 #include "confdefs.h"
3640 $ac_includes_default
3641 int
3642 main ()
3643 {
3644 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:3650: \"$ac_compile\"") >&5
3651   (eval $ac_compile) 2>&5
3652   ac_status=$?
3653   echo "$as_me:3653: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655          { ac_try='test -s conftest.$ac_objext'
3656   { (eval echo "$as_me:3656: \"$ac_try\"") >&5
3657   (eval $ac_try) 2>&5
3658   ac_status=$?
3659   echo "$as_me:3659: \$? = $ac_status" >&5
3660   (exit $ac_status); }; }; then
3661   ac_lo=0 ac_mid=0
3662   while :; do
3663     cat >conftest.$ac_ext <<_ACEOF
3664 #line 3664 "configure"
3665 #include "confdefs.h"
3666 $ac_includes_default
3667 int
3668 main ()
3669 {
3670 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:3676: \"$ac_compile\"") >&5
3677   (eval $ac_compile) 2>&5
3678   ac_status=$?
3679   echo "$as_me:3679: \$? = $ac_status" >&5
3680   (exit $ac_status); } &&
3681          { ac_try='test -s conftest.$ac_objext'
3682   { (eval echo "$as_me:3682: \"$ac_try\"") >&5
3683   (eval $ac_try) 2>&5
3684   ac_status=$?
3685   echo "$as_me:3685: \$? = $ac_status" >&5
3686   (exit $ac_status); }; }; then
3687   ac_hi=$ac_mid; break
3688 else
3689   echo "$as_me: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3692 fi
3693 rm -f conftest.$ac_objext conftest.$ac_ext
3694   done
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3698 ac_hi=-1 ac_mid=-1
3699   while :; do
3700     cat >conftest.$ac_ext <<_ACEOF
3701 #line 3701 "configure"
3702 #include "confdefs.h"
3703 $ac_includes_default
3704 int
3705 main ()
3706 {
3707 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:3713: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>&5
3715   ac_status=$?
3716   echo "$as_me:3716: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -s conftest.$ac_objext'
3719   { (eval echo "$as_me:3719: \"$ac_try\"") >&5
3720   (eval $ac_try) 2>&5
3721   ac_status=$?
3722   echo "$as_me:3722: \$? = $ac_status" >&5
3723   (exit $ac_status); }; }; then
3724   ac_lo=$ac_mid; break
3725 else
3726   echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3729 fi
3730 rm -f conftest.$ac_objext conftest.$ac_ext
3731   done
3732 fi
3733 rm -f conftest.$ac_objext conftest.$ac_ext
3734 # Binary search between lo and hi bounds.
3735 while test "x$ac_lo" != "x$ac_hi"; do
3736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3737   cat >conftest.$ac_ext <<_ACEOF
3738 #line 3738 "configure"
3739 #include "confdefs.h"
3740 $ac_includes_default
3741 int
3742 main ()
3743 {
3744 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:3750: \"$ac_compile\"") >&5
3751   (eval $ac_compile) 2>&5
3752   ac_status=$?
3753   echo "$as_me:3753: \$? = $ac_status" >&5
3754   (exit $ac_status); } &&
3755          { ac_try='test -s conftest.$ac_objext'
3756   { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:3759: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761   ac_hi=$ac_mid
3762 else
3763   echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_lo=`expr $ac_mid + 1`
3766 fi
3767 rm -f conftest.$ac_objext conftest.$ac_ext
3768 done
3769 ac_cv_sizeof_int=$ac_lo
3770 else
3771   if test "$cross_compiling" = yes; then
3772   { { echo "$as_me:3772: error: cannot run test program while cross compiling" >&5
3773 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3774    { (exit 1); exit 1; }; }
3775 else
3776   cat >conftest.$ac_ext <<_ACEOF
3777 #line 3777 "configure"
3778 #include "confdefs.h"
3779 $ac_includes_default
3780 int
3781 main ()
3782 {
3783 FILE *f = fopen ("conftest.val", "w");
3784 if (!f)
3785   exit (1);
3786 fprintf (f, "%d", (sizeof (int)));
3787 fclose (f);
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest$ac_exeext
3793 if { (eval echo "$as_me:3793: \"$ac_link\"") >&5
3794   (eval $ac_link) 2>&5
3795   ac_status=$?
3796   echo "$as_me:3796: \$? = $ac_status" >&5
3797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3798   { (eval echo "$as_me:3798: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:3801: \$? = $ac_status" >&5
3802   (exit $ac_status); }; }; then
3803   ac_cv_sizeof_int=`cat conftest.val`
3804 else
3805   echo "$as_me: program exited with status $ac_status" >&5
3806 echo "$as_me: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3808 fi
3809 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 fi
3812 rm -f conftest.val
3813 else
3814   ac_cv_sizeof_int=0
3815 fi
3816 fi
3817 echo "$as_me:3817: result: $ac_cv_sizeof_int" >&5
3818 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3819 cat >>confdefs.h <<EOF
3820 #define SIZEOF_INT $ac_cv_sizeof_int
3821 EOF
3822
3823 echo "$as_me:3823: checking for char *" >&5
3824 echo $ECHO_N "checking for char *... $ECHO_C" >&6
3825 if test "${ac_cv_type_char_p+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   cat >conftest.$ac_ext <<_ACEOF
3829 #line 3829 "configure"
3830 #include "confdefs.h"
3831 $ac_includes_default
3832 int
3833 main ()
3834 {
3835 if ((char * *) 0)
3836   return 0;
3837 if (sizeof (char *))
3838   return 0;
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:3844: \"$ac_compile\"") >&5
3845   (eval $ac_compile) 2>&5
3846   ac_status=$?
3847   echo "$as_me:3847: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -s conftest.$ac_objext'
3850   { (eval echo "$as_me:3850: \"$ac_try\"") >&5
3851   (eval $ac_try) 2>&5
3852   ac_status=$?
3853   echo "$as_me:3853: \$? = $ac_status" >&5
3854   (exit $ac_status); }; }; then
3855   ac_cv_type_char_p=yes
3856 else
3857   echo "$as_me: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3859 ac_cv_type_char_p=no
3860 fi
3861 rm -f conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 echo "$as_me:3863: result: $ac_cv_type_char_p" >&5
3864 echo "${ECHO_T}$ac_cv_type_char_p" >&6
3865
3866 echo "$as_me:3866: checking size of char *" >&5
3867 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
3868 if test "${ac_cv_sizeof_char_p+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   if test "$ac_cv_type_char_p" = yes; then
3872   if test "$cross_compiling" = yes; then
3873   # Depending upon the size, compute the lo and hi bounds.
3874 cat >conftest.$ac_ext <<_ACEOF
3875 #line 3875 "configure"
3876 #include "confdefs.h"
3877 $ac_includes_default
3878 int
3879 main ()
3880 {
3881 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:3887: \"$ac_compile\"") >&5
3888   (eval $ac_compile) 2>&5
3889   ac_status=$?
3890   echo "$as_me:3890: \$? = $ac_status" >&5
3891   (exit $ac_status); } &&
3892          { ac_try='test -s conftest.$ac_objext'
3893   { (eval echo "$as_me:3893: \"$ac_try\"") >&5
3894   (eval $ac_try) 2>&5
3895   ac_status=$?
3896   echo "$as_me:3896: \$? = $ac_status" >&5
3897   (exit $ac_status); }; }; then
3898   ac_lo=0 ac_mid=0
3899   while :; do
3900     cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3903 $ac_includes_default
3904 int
3905 main ()
3906 {
3907 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:3913: \"$ac_compile\"") >&5
3914   (eval $ac_compile) 2>&5
3915   ac_status=$?
3916   echo "$as_me:3916: \$? = $ac_status" >&5
3917   (exit $ac_status); } &&
3918          { ac_try='test -s conftest.$ac_objext'
3919   { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3920   (eval $ac_try) 2>&5
3921   ac_status=$?
3922   echo "$as_me:3922: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   ac_hi=$ac_mid; break
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3929 fi
3930 rm -f conftest.$ac_objext conftest.$ac_ext
3931   done
3932 else
3933   echo "$as_me: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3935 ac_hi=-1 ac_mid=-1
3936   while :; do
3937     cat >conftest.$ac_ext <<_ACEOF
3938 #line 3938 "configure"
3939 #include "confdefs.h"
3940 $ac_includes_default
3941 int
3942 main ()
3943 {
3944 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:3950: \"$ac_compile\"") >&5
3951   (eval $ac_compile) 2>&5
3952   ac_status=$?
3953   echo "$as_me:3953: \$? = $ac_status" >&5
3954   (exit $ac_status); } &&
3955          { ac_try='test -s conftest.$ac_objext'
3956   { (eval echo "$as_me:3956: \"$ac_try\"") >&5
3957   (eval $ac_try) 2>&5
3958   ac_status=$?
3959   echo "$as_me:3959: \$? = $ac_status" >&5
3960   (exit $ac_status); }; }; then
3961   ac_lo=$ac_mid; break
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3966 fi
3967 rm -f conftest.$ac_objext conftest.$ac_ext
3968   done
3969 fi
3970 rm -f conftest.$ac_objext conftest.$ac_ext
3971 # Binary search between lo and hi bounds.
3972 while test "x$ac_lo" != "x$ac_hi"; do
3973   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3974   cat >conftest.$ac_ext <<_ACEOF
3975 #line 3975 "configure"
3976 #include "confdefs.h"
3977 $ac_includes_default
3978 int
3979 main ()
3980 {
3981 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:3987: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>&5
3989   ac_status=$?
3990   echo "$as_me:3990: \$? = $ac_status" >&5
3991   (exit $ac_status); } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:3993: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:3996: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_hi=$ac_mid
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 ac_lo=`expr $ac_mid + 1`
4003 fi
4004 rm -f conftest.$ac_objext conftest.$ac_ext
4005 done
4006 ac_cv_sizeof_char_p=$ac_lo
4007 else
4008   if test "$cross_compiling" = yes; then
4009   { { echo "$as_me:4009: error: cannot run test program while cross compiling" >&5
4010 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4011    { (exit 1); exit 1; }; }
4012 else
4013   cat >conftest.$ac_ext <<_ACEOF
4014 #line 4014 "configure"
4015 #include "confdefs.h"
4016 $ac_includes_default
4017 int
4018 main ()
4019 {
4020 FILE *f = fopen ("conftest.val", "w");
4021 if (!f)
4022   exit (1);
4023 fprintf (f, "%d", (sizeof (char *)));
4024 fclose (f);
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest$ac_exeext
4030 if { (eval echo "$as_me:4030: \"$ac_link\"") >&5
4031   (eval $ac_link) 2>&5
4032   ac_status=$?
4033   echo "$as_me:4033: \$? = $ac_status" >&5
4034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035   { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:4038: \$? = $ac_status" >&5
4039   (exit $ac_status); }; }; then
4040   ac_cv_sizeof_char_p=`cat conftest.val`
4041 else
4042   echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4045 fi
4046 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4047 fi
4048 fi
4049 rm -f conftest.val
4050 else
4051   ac_cv_sizeof_char_p=0
4052 fi
4053 fi
4054 echo "$as_me:4054: result: $ac_cv_sizeof_char_p" >&5
4055 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
4056 cat >>confdefs.h <<EOF
4057 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4058 EOF
4059
4060 echo "$as_me:4060: checking for long" >&5
4061 echo $ECHO_N "checking for long... $ECHO_C" >&6
4062 if test "${ac_cv_type_long+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   cat >conftest.$ac_ext <<_ACEOF
4066 #line 4066 "configure"
4067 #include "confdefs.h"
4068 $ac_includes_default
4069 int
4070 main ()
4071 {
4072 if ((long *) 0)
4073   return 0;
4074 if (sizeof (long))
4075   return 0;
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:4081: \"$ac_compile\"") >&5
4082   (eval $ac_compile) 2>&5
4083   ac_status=$?
4084   echo "$as_me:4084: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -s conftest.$ac_objext'
4087   { (eval echo "$as_me:4087: \"$ac_try\"") >&5
4088   (eval $ac_try) 2>&5
4089   ac_status=$?
4090   echo "$as_me:4090: \$? = $ac_status" >&5
4091   (exit $ac_status); }; }; then
4092   ac_cv_type_long=yes
4093 else
4094   echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 ac_cv_type_long=no
4097 fi
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4099 fi
4100 echo "$as_me:4100: result: $ac_cv_type_long" >&5
4101 echo "${ECHO_T}$ac_cv_type_long" >&6
4102
4103 echo "$as_me:4103: checking size of long" >&5
4104 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4105 if test "${ac_cv_sizeof_long+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   if test "$ac_cv_type_long" = yes; then
4109   if test "$cross_compiling" = yes; then
4110   # Depending upon the size, compute the lo and hi bounds.
4111 cat >conftest.$ac_ext <<_ACEOF
4112 #line 4112 "configure"
4113 #include "confdefs.h"
4114 $ac_includes_default
4115 int
4116 main ()
4117 {
4118 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:4124: \"$ac_compile\"") >&5
4125   (eval $ac_compile) 2>&5
4126   ac_status=$?
4127   echo "$as_me:4127: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -s conftest.$ac_objext'
4130   { (eval echo "$as_me:4130: \"$ac_try\"") >&5
4131   (eval $ac_try) 2>&5
4132   ac_status=$?
4133   echo "$as_me:4133: \$? = $ac_status" >&5
4134   (exit $ac_status); }; }; then
4135   ac_lo=0 ac_mid=0
4136   while :; do
4137     cat >conftest.$ac_ext <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4140 $ac_includes_default
4141 int
4142 main ()
4143 {
4144 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4145   ;
4146   return 0;
4147 }
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:4150: \"$ac_compile\"") >&5
4151   (eval $ac_compile) 2>&5
4152   ac_status=$?
4153   echo "$as_me:4153: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -s conftest.$ac_objext'
4156   { (eval echo "$as_me:4156: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:4159: \$? = $ac_status" >&5
4160   (exit $ac_status); }; }; then
4161   ac_hi=$ac_mid; break
4162 else
4163   echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4166 fi
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4168   done
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4172 ac_hi=-1 ac_mid=-1
4173   while :; do
4174     cat >conftest.$ac_ext <<_ACEOF
4175 #line 4175 "configure"
4176 #include "confdefs.h"
4177 $ac_includes_default
4178 int
4179 main ()
4180 {
4181 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (eval echo "$as_me:4187: \"$ac_compile\"") >&5
4188   (eval $ac_compile) 2>&5
4189   ac_status=$?
4190   echo "$as_me:4190: \$? = $ac_status" >&5
4191   (exit $ac_status); } &&
4192          { ac_try='test -s conftest.$ac_objext'
4193   { (eval echo "$as_me:4193: \"$ac_try\"") >&5
4194   (eval $ac_try) 2>&5
4195   ac_status=$?
4196   echo "$as_me:4196: \$? = $ac_status" >&5
4197   (exit $ac_status); }; }; then
4198   ac_lo=$ac_mid; break
4199 else
4200   echo "$as_me: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4203 fi
4204 rm -f conftest.$ac_objext conftest.$ac_ext
4205   done
4206 fi
4207 rm -f conftest.$ac_objext conftest.$ac_ext
4208 # Binary search between lo and hi bounds.
4209 while test "x$ac_lo" != "x$ac_hi"; do
4210   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4211   cat >conftest.$ac_ext <<_ACEOF
4212 #line 4212 "configure"
4213 #include "confdefs.h"
4214 $ac_includes_default
4215 int
4216 main ()
4217 {
4218 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:4224: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>&5
4226   ac_status=$?
4227   echo "$as_me:4227: \$? = $ac_status" >&5
4228   (exit $ac_status); } &&
4229          { ac_try='test -s conftest.$ac_objext'
4230   { (eval echo "$as_me:4230: \"$ac_try\"") >&5
4231   (eval $ac_try) 2>&5
4232   ac_status=$?
4233   echo "$as_me:4233: \$? = $ac_status" >&5
4234   (exit $ac_status); }; }; then
4235   ac_hi=$ac_mid
4236 else
4237   echo "$as_me: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4239 ac_lo=`expr $ac_mid + 1`
4240 fi
4241 rm -f conftest.$ac_objext conftest.$ac_ext
4242 done
4243 ac_cv_sizeof_long=$ac_lo
4244 else
4245   if test "$cross_compiling" = yes; then
4246   { { echo "$as_me:4246: error: cannot run test program while cross compiling" >&5
4247 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4248    { (exit 1); exit 1; }; }
4249 else
4250   cat >conftest.$ac_ext <<_ACEOF
4251 #line 4251 "configure"
4252 #include "confdefs.h"
4253 $ac_includes_default
4254 int
4255 main ()
4256 {
4257 FILE *f = fopen ("conftest.val", "w");
4258 if (!f)
4259   exit (1);
4260 fprintf (f, "%d", (sizeof (long)));
4261 fclose (f);
4262   ;
4263   return 0;
4264 }
4265 _ACEOF
4266 rm -f conftest$ac_exeext
4267 if { (eval echo "$as_me:4267: \"$ac_link\"") >&5
4268   (eval $ac_link) 2>&5
4269   ac_status=$?
4270   echo "$as_me:4270: \$? = $ac_status" >&5
4271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4272   { (eval echo "$as_me:4272: \"$ac_try\"") >&5
4273   (eval $ac_try) 2>&5
4274   ac_status=$?
4275   echo "$as_me:4275: \$? = $ac_status" >&5
4276   (exit $ac_status); }; }; then
4277   ac_cv_sizeof_long=`cat conftest.val`
4278 else
4279   echo "$as_me: program exited with status $ac_status" >&5
4280 echo "$as_me: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4282 fi
4283 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 fi
4286 rm -f conftest.val
4287 else
4288   ac_cv_sizeof_long=0
4289 fi
4290 fi
4291 echo "$as_me:4291: result: $ac_cv_sizeof_long" >&5
4292 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4293 cat >>confdefs.h <<EOF
4294 #define SIZEOF_LONG $ac_cv_sizeof_long
4295 EOF
4296
4297 echo "$as_me:4297: checking for long long" >&5
4298 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4299 if test "${ac_cv_type_long_long+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   cat >conftest.$ac_ext <<_ACEOF
4303 #line 4303 "configure"
4304 #include "confdefs.h"
4305 $ac_includes_default
4306 int
4307 main ()
4308 {
4309 if ((long long *) 0)
4310   return 0;
4311 if (sizeof (long long))
4312   return 0;
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:4318: \"$ac_compile\"") >&5
4319   (eval $ac_compile) 2>&5
4320   ac_status=$?
4321   echo "$as_me:4321: \$? = $ac_status" >&5
4322   (exit $ac_status); } &&
4323          { ac_try='test -s conftest.$ac_objext'
4324   { (eval echo "$as_me:4324: \"$ac_try\"") >&5
4325   (eval $ac_try) 2>&5
4326   ac_status=$?
4327   echo "$as_me:4327: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   ac_cv_type_long_long=yes
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 ac_cv_type_long_long=no
4334 fi
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4336 fi
4337 echo "$as_me:4337: result: $ac_cv_type_long_long" >&5
4338 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4339
4340 echo "$as_me:4340: checking size of long long" >&5
4341 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
4342 if test "${ac_cv_sizeof_long_long+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   if test "$ac_cv_type_long_long" = yes; then
4346   if test "$cross_compiling" = yes; then
4347   # Depending upon the size, compute the lo and hi bounds.
4348 cat >conftest.$ac_ext <<_ACEOF
4349 #line 4349 "configure"
4350 #include "confdefs.h"
4351 $ac_includes_default
4352 int
4353 main ()
4354 {
4355 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:4361: \"$ac_compile\"") >&5
4362   (eval $ac_compile) 2>&5
4363   ac_status=$?
4364   echo "$as_me:4364: \$? = $ac_status" >&5
4365   (exit $ac_status); } &&
4366          { ac_try='test -s conftest.$ac_objext'
4367   { (eval echo "$as_me:4367: \"$ac_try\"") >&5
4368   (eval $ac_try) 2>&5
4369   ac_status=$?
4370   echo "$as_me:4370: \$? = $ac_status" >&5
4371   (exit $ac_status); }; }; then
4372   ac_lo=0 ac_mid=0
4373   while :; do
4374     cat >conftest.$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4377 $ac_includes_default
4378 int
4379 main ()
4380 {
4381 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>&5
4389   ac_status=$?
4390   echo "$as_me:4390: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          { ac_try='test -s conftest.$ac_objext'
4393   { (eval echo "$as_me:4393: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:4396: \$? = $ac_status" >&5
4397   (exit $ac_status); }; }; then
4398   ac_hi=$ac_mid; break
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4402 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4403 fi
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4405   done
4406 else
4407   echo "$as_me: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4409 ac_hi=-1 ac_mid=-1
4410   while :; do
4411     cat >conftest.$ac_ext <<_ACEOF
4412 #line 4412 "configure"
4413 #include "confdefs.h"
4414 $ac_includes_default
4415 int
4416 main ()
4417 {
4418 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
4419   ;
4420   return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (eval echo "$as_me:4424: \"$ac_compile\"") >&5
4425   (eval $ac_compile) 2>&5
4426   ac_status=$?
4427   echo "$as_me:4427: \$? = $ac_status" >&5
4428   (exit $ac_status); } &&
4429          { ac_try='test -s conftest.$ac_objext'
4430   { (eval echo "$as_me:4430: \"$ac_try\"") >&5
4431   (eval $ac_try) 2>&5
4432   ac_status=$?
4433   echo "$as_me:4433: \$? = $ac_status" >&5
4434   (exit $ac_status); }; }; then
4435   ac_lo=$ac_mid; break
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4440 fi
4441 rm -f conftest.$ac_objext conftest.$ac_ext
4442   done
4443 fi
4444 rm -f conftest.$ac_objext conftest.$ac_ext
4445 # Binary search between lo and hi bounds.
4446 while test "x$ac_lo" != "x$ac_hi"; do
4447   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4448   cat >conftest.$ac_ext <<_ACEOF
4449 #line 4449 "configure"
4450 #include "confdefs.h"
4451 $ac_includes_default
4452 int
4453 main ()
4454 {
4455 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:4461: \"$ac_compile\"") >&5
4462   (eval $ac_compile) 2>&5
4463   ac_status=$?
4464   echo "$as_me:4464: \$? = $ac_status" >&5
4465   (exit $ac_status); } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:4467: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:4470: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_hi=$ac_mid
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 ac_lo=`expr $ac_mid + 1`
4477 fi
4478 rm -f conftest.$ac_objext conftest.$ac_ext
4479 done
4480 ac_cv_sizeof_long_long=$ac_lo
4481 else
4482   if test "$cross_compiling" = yes; then
4483   { { echo "$as_me:4483: error: cannot run test program while cross compiling" >&5
4484 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4485    { (exit 1); exit 1; }; }
4486 else
4487   cat >conftest.$ac_ext <<_ACEOF
4488 #line 4488 "configure"
4489 #include "confdefs.h"
4490 $ac_includes_default
4491 int
4492 main ()
4493 {
4494 FILE *f = fopen ("conftest.val", "w");
4495 if (!f)
4496   exit (1);
4497 fprintf (f, "%d", (sizeof (long long)));
4498 fclose (f);
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 rm -f conftest$ac_exeext
4504 if { (eval echo "$as_me:4504: \"$ac_link\"") >&5
4505   (eval $ac_link) 2>&5
4506   ac_status=$?
4507   echo "$as_me:4507: \$? = $ac_status" >&5
4508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4509   { (eval echo "$as_me:4509: \"$ac_try\"") >&5
4510   (eval $ac_try) 2>&5
4511   ac_status=$?
4512   echo "$as_me:4512: \$? = $ac_status" >&5
4513   (exit $ac_status); }; }; then
4514   ac_cv_sizeof_long_long=`cat conftest.val`
4515 else
4516   echo "$as_me: program exited with status $ac_status" >&5
4517 echo "$as_me: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 fi
4520 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4521 fi
4522 fi
4523 rm -f conftest.val
4524 else
4525   ac_cv_sizeof_long_long=0
4526 fi
4527 fi
4528 echo "$as_me:4528: result: $ac_cv_sizeof_long_long" >&5
4529 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
4530 cat >>confdefs.h <<EOF
4531 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4532 EOF
4533
4534 echo "$as_me:4534: checking for size_t" >&5
4535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4536 if test "${ac_cv_type_size_t+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   cat >conftest.$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4542 $ac_includes_default
4543 int
4544 main ()
4545 {
4546 if ((size_t *) 0)
4547   return 0;
4548 if (sizeof (size_t))
4549   return 0;
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:4555: \"$ac_compile\"") >&5
4556   (eval $ac_compile) 2>&5
4557   ac_status=$?
4558   echo "$as_me:4558: \$? = $ac_status" >&5
4559   (exit $ac_status); } &&
4560          { ac_try='test -s conftest.$ac_objext'
4561   { (eval echo "$as_me:4561: \"$ac_try\"") >&5
4562   (eval $ac_try) 2>&5
4563   ac_status=$?
4564   echo "$as_me:4564: \$? = $ac_status" >&5
4565   (exit $ac_status); }; }; then
4566   ac_cv_type_size_t=yes
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4570 ac_cv_type_size_t=no
4571 fi
4572 rm -f conftest.$ac_objext conftest.$ac_ext
4573 fi
4574 echo "$as_me:4574: result: $ac_cv_type_size_t" >&5
4575 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4576
4577 echo "$as_me:4577: checking size of size_t" >&5
4578 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
4579 if test "${ac_cv_sizeof_size_t+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   if test "$ac_cv_type_size_t" = yes; then
4583   if test "$cross_compiling" = yes; then
4584   # Depending upon the size, compute the lo and hi bounds.
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line 4586 "configure"
4587 #include "confdefs.h"
4588 $ac_includes_default
4589 int
4590 main ()
4591 {
4592 int _array_ [1 - 2 * !((sizeof (size_t)) >= 0)]
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:4598: \"$ac_compile\"") >&5
4599   (eval $ac_compile) 2>&5
4600   ac_status=$?
4601   echo "$as_me:4601: \$? = $ac_status" >&5
4602   (exit $ac_status); } &&
4603          { ac_try='test -s conftest.$ac_objext'
4604   { (eval echo "$as_me:4604: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:4607: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   ac_lo=0 ac_mid=0
4610   while :; do
4611     cat >conftest.$ac_ext <<_ACEOF
4612 #line 4612 "configure"
4613 #include "confdefs.h"
4614 $ac_includes_default
4615 int
4616 main ()
4617 {
4618 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 rm -f conftest.$ac_objext
4624 if { (eval echo "$as_me:4624: \"$ac_compile\"") >&5
4625   (eval $ac_compile) 2>&5
4626   ac_status=$?
4627   echo "$as_me:4627: \$? = $ac_status" >&5
4628   (exit $ac_status); } &&
4629          { ac_try='test -s conftest.$ac_objext'
4630   { (eval echo "$as_me:4630: \"$ac_try\"") >&5
4631   (eval $ac_try) 2>&5
4632   ac_status=$?
4633   echo "$as_me:4633: \$? = $ac_status" >&5
4634   (exit $ac_status); }; }; then
4635   ac_hi=$ac_mid; break
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4640 fi
4641 rm -f conftest.$ac_objext conftest.$ac_ext
4642   done
4643 else
4644   echo "$as_me: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4646 ac_hi=-1 ac_mid=-1
4647   while :; do
4648     cat >conftest.$ac_ext <<_ACEOF
4649 #line 4649 "configure"
4650 #include "confdefs.h"
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 int _array_ [1 - 2 * !((sizeof (size_t)) >= $ac_mid)]
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:4661: \"$ac_compile\"") >&5
4662   (eval $ac_compile) 2>&5
4663   ac_status=$?
4664   echo "$as_me:4664: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -s conftest.$ac_objext'
4667   { (eval echo "$as_me:4667: \"$ac_try\"") >&5
4668   (eval $ac_try) 2>&5
4669   ac_status=$?
4670   echo "$as_me:4670: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   ac_lo=$ac_mid; break
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4677 fi
4678 rm -f conftest.$ac_objext conftest.$ac_ext
4679   done
4680 fi
4681 rm -f conftest.$ac_objext conftest.$ac_ext
4682 # Binary search between lo and hi bounds.
4683 while test "x$ac_lo" != "x$ac_hi"; do
4684   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4685   cat >conftest.$ac_ext <<_ACEOF
4686 #line 4686 "configure"
4687 #include "confdefs.h"
4688 $ac_includes_default
4689 int
4690 main ()
4691 {
4692 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:4698: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>&5
4700   ac_status=$?
4701   echo "$as_me:4701: \$? = $ac_status" >&5
4702   (exit $ac_status); } &&
4703          { ac_try='test -s conftest.$ac_objext'
4704   { (eval echo "$as_me:4704: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:4707: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_hi=$ac_mid
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_lo=`expr $ac_mid + 1`
4714 fi
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4716 done
4717 ac_cv_sizeof_size_t=$ac_lo
4718 else
4719   if test "$cross_compiling" = yes; then
4720   { { echo "$as_me:4720: error: cannot run test program while cross compiling" >&5
4721 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4722    { (exit 1); exit 1; }; }
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 #line 4725 "configure"
4726 #include "confdefs.h"
4727 $ac_includes_default
4728 int
4729 main ()
4730 {
4731 FILE *f = fopen ("conftest.val", "w");
4732 if (!f)
4733   exit (1);
4734 fprintf (f, "%d", (sizeof (size_t)));
4735 fclose (f);
4736   ;
4737   return 0;
4738 }
4739 _ACEOF
4740 rm -f conftest$ac_exeext
4741 if { (eval echo "$as_me:4741: \"$ac_link\"") >&5
4742   (eval $ac_link) 2>&5
4743   ac_status=$?
4744   echo "$as_me:4744: \$? = $ac_status" >&5
4745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746   { (eval echo "$as_me:4746: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:4749: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_cv_sizeof_size_t=`cat conftest.val`
4752 else
4753   echo "$as_me: program exited with status $ac_status" >&5
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 fi
4757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 fi
4760 rm -f conftest.val
4761 else
4762   ac_cv_sizeof_size_t=0
4763 fi
4764 fi
4765 echo "$as_me:4765: result: $ac_cv_sizeof_size_t" >&5
4766 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
4767 cat >>confdefs.h <<EOF
4768 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
4769 EOF
4770
4771 for ac_func in strerror bcopy memmove
4772 do
4773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4774 echo "$as_me:4774: checking for $ac_func" >&5
4775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_var+set}\" = set"; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4782 /* System header to define __stub macros and hopefully few prototypes,
4783     which can conflict with char $ac_func (); below.  */
4784 #include <assert.h>
4785 /* Override any gcc2 internal prototype to avoid an error.  */
4786 #ifdef __cplusplus
4787 extern "C"
4788 #endif
4789 /* We use char because int might match the return type of a gcc2
4790    builtin and then its argument prototype would still apply.  */
4791 char $ac_func ();
4792 char (*f) ();
4793
4794 int
4795 main ()
4796 {
4797 /* The GNU C library defines this for functions which it implements
4798     to always fail with ENOSYS.  Some functions are actually named
4799     something starting with __ and the normal name is an alias.  */
4800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4801 choke me
4802 #else
4803 f = $ac_func;
4804 #endif
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:4811: \"$ac_link\"") >&5
4812   (eval $ac_link) 2>&5
4813   ac_status=$?
4814   echo "$as_me:4814: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -s conftest$ac_exeext'
4817   { (eval echo "$as_me:4817: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:4820: \$? = $ac_status" >&5
4821   (exit $ac_status); }; }; then
4822   eval "$as_ac_var=yes"
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 eval "$as_ac_var=no"
4827 fi
4828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4829 fi
4830 echo "$as_me:4830: result: `eval echo '${'$as_ac_var'}'`" >&5
4831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4832 if test `eval echo '${'$as_ac_var'}'` = yes; then
4833   cat >>confdefs.h <<EOF
4834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4835 EOF
4836
4837 fi
4838 done
4839
4840 echo "$as_me:4840: checking for pcre_compile in -lpcre" >&5
4841 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
4842 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   ac_check_lib_save_LIBS=$LIBS
4846 LIBS="-lpcre  $LIBS"
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line 4848 "configure"
4849 #include "confdefs.h"
4850
4851 /* Override any gcc2 internal prototype to avoid an error.  */
4852 #ifdef __cplusplus
4853 extern "C"
4854 #endif
4855 /* We use char because int might match the return type of a gcc2
4856    builtin and then its argument prototype would still apply.  */
4857 char pcre_compile ();
4858 int
4859 main ()
4860 {
4861 pcre_compile ();
4862   ;
4863   return 0;
4864 }
4865 _ACEOF
4866 rm -f conftest.$ac_objext conftest$ac_exeext
4867 if { (eval echo "$as_me:4867: \"$ac_link\"") >&5
4868   (eval $ac_link) 2>&5
4869   ac_status=$?
4870   echo "$as_me:4870: \$? = $ac_status" >&5
4871   (exit $ac_status); } &&
4872          { ac_try='test -s conftest$ac_exeext'
4873   { (eval echo "$as_me:4873: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:4876: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   ac_cv_lib_pcre_pcre_compile=yes
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 ac_cv_lib_pcre_pcre_compile=no
4883 fi
4884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4885 LIBS=$ac_check_lib_save_LIBS
4886 fi
4887 echo "$as_me:4887: result: $ac_cv_lib_pcre_pcre_compile" >&5
4888 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
4889 if test $ac_cv_lib_pcre_pcre_compile = yes; then
4890   echo "$as_me:4890: checking for pcre.h" >&5
4891 echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
4892 if test "${ac_cv_header_pcre_h+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   cat >conftest.$ac_ext <<_ACEOF
4896 #line 4896 "configure"
4897 #include "confdefs.h"
4898 #include <pcre.h>
4899 _ACEOF
4900 if { (eval echo "$as_me:4900: \"$ac_cpp conftest.$ac_ext\"") >&5
4901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902   ac_status=$?
4903   egrep -v '^ *\+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:4906: \$? = $ac_status" >&5
4907   (exit $ac_status); } >/dev/null; then
4908   if test -s conftest.err; then
4909     ac_cpp_err=$ac_c_preproc_warn_flag
4910   else
4911     ac_cpp_err=
4912   fi
4913 else
4914   ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917   ac_cv_header_pcre_h=yes
4918 else
4919   echo "$as_me: failed program was:" >&5
4920   cat conftest.$ac_ext >&5
4921   ac_cv_header_pcre_h=no
4922 fi
4923 rm -f conftest.err conftest.$ac_ext
4924 fi
4925 echo "$as_me:4925: result: $ac_cv_header_pcre_h" >&5
4926 echo "${ECHO_T}$ac_cv_header_pcre_h" >&6
4927 if test $ac_cv_header_pcre_h = yes; then
4928   have_pcre=yes
4929 else
4930   have_pcre=no
4931 fi
4932
4933 else
4934   have_pcre=no
4935 fi
4936
4937 echo "$as_me:4937: checking for regcomp in -lpcreposix" >&5
4938 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
4939 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   ac_check_lib_save_LIBS=$LIBS
4943 LIBS="-lpcreposix -lpcre $LIBS"
4944 cat >conftest.$ac_ext <<_ACEOF
4945 #line 4945 "configure"
4946 #include "confdefs.h"
4947
4948 /* Override any gcc2 internal prototype to avoid an error.  */
4949 #ifdef __cplusplus
4950 extern "C"
4951 #endif
4952 /* We use char because int might match the return type of a gcc2
4953    builtin and then its argument prototype would still apply.  */
4954 char regcomp ();
4955 int
4956 main ()
4957 {
4958 regcomp ();
4959   ;
4960   return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext conftest$ac_exeext
4964 if { (eval echo "$as_me:4964: \"$ac_link\"") >&5
4965   (eval $ac_link) 2>&5
4966   ac_status=$?
4967   echo "$as_me:4967: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -s conftest$ac_exeext'
4970   { (eval echo "$as_me:4970: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:4973: \$? = $ac_status" >&5
4974   (exit $ac_status); }; }; then
4975   ac_cv_lib_pcreposix_regcomp=yes
4976 else
4977   echo "$as_me: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4979 ac_cv_lib_pcreposix_regcomp=no
4980 fi
4981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4982 LIBS=$ac_check_lib_save_LIBS
4983 fi
4984 echo "$as_me:4984: result: $ac_cv_lib_pcreposix_regcomp" >&5
4985 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
4986 if test $ac_cv_lib_pcreposix_regcomp = yes; then
4987   echo "$as_me:4987: checking for pcreposix.h" >&5
4988 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
4989 if test "${ac_cv_header_pcreposix_h+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   cat >conftest.$ac_ext <<_ACEOF
4993 #line 4993 "configure"
4994 #include "confdefs.h"
4995 #include <pcreposix.h>
4996 _ACEOF
4997 if { (eval echo "$as_me:4997: \"$ac_cpp conftest.$ac_ext\"") >&5
4998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4999   ac_status=$?
5000   egrep -v '^ *\+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:5003: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null; then
5005   if test -s conftest.err; then
5006     ac_cpp_err=$ac_c_preproc_warn_flag
5007   else
5008     ac_cpp_err=
5009   fi
5010 else
5011   ac_cpp_err=yes
5012 fi
5013 if test -z "$ac_cpp_err"; then
5014   ac_cv_header_pcreposix_h=yes
5015 else
5016   echo "$as_me: failed program was:" >&5
5017   cat conftest.$ac_ext >&5
5018   ac_cv_header_pcreposix_h=no
5019 fi
5020 rm -f conftest.err conftest.$ac_ext
5021 fi
5022 echo "$as_me:5022: result: $ac_cv_header_pcreposix_h" >&5
5023 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
5024 if test $ac_cv_header_pcreposix_h = yes; then
5025   have_pcreposix=yes
5026 else
5027   have_pcreposix=no
5028 fi
5029
5030 else
5031   have_pcreposix=no
5032 fi
5033
5034 echo "$as_me:5034: checking for pcrs_compile in -lpcrs" >&5
5035 echo $ECHO_N "checking for pcrs_compile in -lpcrs... $ECHO_C" >&6
5036 if test "${ac_cv_lib_pcrs_pcrs_compile+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   ac_check_lib_save_LIBS=$LIBS
5040 LIBS="-lpcrs  $LIBS"
5041 cat >conftest.$ac_ext <<_ACEOF
5042 #line 5042 "configure"
5043 #include "confdefs.h"
5044
5045 /* Override any gcc2 internal prototype to avoid an error.  */
5046 #ifdef __cplusplus
5047 extern "C"
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050    builtin and then its argument prototype would still apply.  */
5051 char pcrs_compile ();
5052 int
5053 main ()
5054 {
5055 pcrs_compile ();
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest.$ac_objext conftest$ac_exeext
5061 if { (eval echo "$as_me:5061: \"$ac_link\"") >&5
5062   (eval $ac_link) 2>&5
5063   ac_status=$?
5064   echo "$as_me:5064: \$? = $ac_status" >&5
5065   (exit $ac_status); } &&
5066          { ac_try='test -s conftest$ac_exeext'
5067   { (eval echo "$as_me:5067: \"$ac_try\"") >&5
5068   (eval $ac_try) 2>&5
5069   ac_status=$?
5070   echo "$as_me:5070: \$? = $ac_status" >&5
5071   (exit $ac_status); }; }; then
5072   ac_cv_lib_pcrs_pcrs_compile=yes
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076 ac_cv_lib_pcrs_pcrs_compile=no
5077 fi
5078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5080 fi
5081 echo "$as_me:5081: result: $ac_cv_lib_pcrs_pcrs_compile" >&5
5082 echo "${ECHO_T}$ac_cv_lib_pcrs_pcrs_compile" >&6
5083 if test $ac_cv_lib_pcrs_pcrs_compile = yes; then
5084   echo "$as_me:5084: checking for pcrs.h" >&5
5085 echo $ECHO_N "checking for pcrs.h... $ECHO_C" >&6
5086 if test "${ac_cv_header_pcrs_h+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat >conftest.$ac_ext <<_ACEOF
5090 #line 5090 "configure"
5091 #include "confdefs.h"
5092 #include <pcrs.h>
5093 _ACEOF
5094 if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
5095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096   ac_status=$?
5097   egrep -v '^ *\+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:5100: \$? = $ac_status" >&5
5101   (exit $ac_status); } >/dev/null; then
5102   if test -s conftest.err; then
5103     ac_cpp_err=$ac_c_preproc_warn_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   ac_cv_header_pcrs_h=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114   cat conftest.$ac_ext >&5
5115   ac_cv_header_pcrs_h=no
5116 fi
5117 rm -f conftest.err conftest.$ac_ext
5118 fi
5119 echo "$as_me:5119: result: $ac_cv_header_pcrs_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_pcrs_h" >&6
5121 if test $ac_cv_header_pcrs_h = yes; then
5122   have_pcrs=yes
5123 else
5124   have_pcrs=no
5125 fi
5126
5127 else
5128   have_pcrs=no
5129 fi
5130
5131 cat >>confdefs.h <<\EOF
5132 #define __MT__ 1
5133 EOF
5134
5135 # Check whether --enable-toggle or --disable-toggle was given.
5136 if test "${enable_toggle+set}" = set; then
5137   enableval="$enable_toggle"
5138   if test $enableval = yes; then
5139   cat >>confdefs.h <<\EOF
5140 #define FEATURE_TOGGLE 1
5141 EOF
5142
5143 fi
5144 else
5145   cat >>confdefs.h <<\EOF
5146 #define FEATURE_TOGGLE 1
5147 EOF
5148
5149 fi;
5150
5151 # Check whether --enable-force or --disable-force was given.
5152 if test "${enable_force+set}" = set; then
5153   enableval="$enable_force"
5154   if test $enableval = yes; then
5155   cat >>confdefs.h <<\EOF
5156 #define FEATURE_FORCE_LOAD 1
5157 EOF
5158
5159 fi
5160 else
5161   cat >>confdefs.h <<\EOF
5162 #define FEATURE_FORCE_LOAD 1
5163 EOF
5164
5165 fi;
5166
5167 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
5168 if test "${enable_fast_redirects+set}" = set; then
5169   enableval="$enable_fast_redirects"
5170   if test $enableval = yes; then
5171   cat >>confdefs.h <<\EOF
5172 #define FEATURE_FAST_REDIRECTS 1
5173 EOF
5174
5175 fi
5176 else
5177   cat >>confdefs.h <<\EOF
5178 #define FEATURE_FAST_REDIRECTS 1
5179 EOF
5180
5181 fi;
5182
5183 # Check whether --enable-killpopup or --disable-killpopup was given.
5184 if test "${enable_killpopup+set}" = set; then
5185   enableval="$enable_killpopup"
5186   if test $enableval = yes; then
5187   cat >>confdefs.h <<\EOF
5188 #define FEATURE_KILL_POPUPS 1
5189 EOF
5190
5191 fi
5192 else
5193   cat >>confdefs.h <<\EOF
5194 #define FEATURE_KILL_POPUPS 1
5195 EOF
5196
5197 fi;
5198
5199 # Check whether --enable-stats or --disable-stats was given.
5200 if test "${enable_stats+set}" = set; then
5201   enableval="$enable_stats"
5202   if test $enableval = yes; then
5203   cat >>confdefs.h <<\EOF
5204 #define FEATURE_STATISTICS 1
5205 EOF
5206
5207 fi
5208 else
5209   cat >>confdefs.h <<\EOF
5210 #define FEATURE_STATISTICS 1
5211 EOF
5212
5213 fi;
5214
5215 # Check whether --enable-ie-images or --disable-ie-images was given.
5216 if test "${enable_ie_images+set}" = set; then
5217   enableval="$enable_ie_images"
5218   if test $enableval = yes; then
5219   cat >>confdefs.h <<\EOF
5220 #define FEATURE_IMAGE_DETECT_MSIE 1
5221 EOF
5222
5223 fi
5224 else
5225   cat >>confdefs.h <<\EOF
5226 #define FEATURE_IMAGE_DETECT_MSIE 1
5227 EOF
5228
5229 fi;
5230
5231 # Check whether --enable-image-blocking or --disable-image-blocking was given.
5232 if test "${enable_image_blocking+set}" = set; then
5233   enableval="$enable_image_blocking"
5234   if test $enableval = yes; then
5235   cat >>confdefs.h <<\EOF
5236 #define FEATURE_IMAGE_BLOCKING 1
5237 EOF
5238
5239 fi
5240 else
5241   cat >>confdefs.h <<\EOF
5242 #define FEATURE_IMAGE_BLOCKING 1
5243 EOF
5244
5245 fi;
5246
5247 # Check whether --enable-acl-files or --disable-acl-files was given.
5248 if test "${enable_acl_files+set}" = set; then
5249   enableval="$enable_acl_files"
5250   if test $enableval = yes; then
5251   cat >>confdefs.h <<\EOF
5252 #define FEATURE_ACL 1
5253 EOF
5254
5255 fi
5256 else
5257   cat >>confdefs.h <<\EOF
5258 #define FEATURE_ACL 1
5259 EOF
5260
5261 fi;
5262
5263 # Check whether --enable-trust-files or --disable-trust-files was given.
5264 if test "${enable_trust_files+set}" = set; then
5265   enableval="$enable_trust_files"
5266   if test $enableval = yes; then
5267   cat >>confdefs.h <<\EOF
5268 #define FEATURE_TRUST 1
5269 EOF
5270
5271 fi
5272 else
5273   cat >>confdefs.h <<\EOF
5274 #define FEATURE_TRUST 1
5275 EOF
5276
5277 fi;
5278
5279 # Check whether --enable-jar-files or --disable-jar-files was given.
5280 if test "${enable_jar_files+set}" = set; then
5281   enableval="$enable_jar_files"
5282   if test $enableval = yes; then
5283   cat >>confdefs.h <<\EOF
5284 #define FEATURE_COOKIE_JAR 1
5285 EOF
5286
5287 fi
5288 else
5289   cat >>confdefs.h <<\EOF
5290 #define FEATURE_COOKIE_JAR 1
5291 EOF
5292
5293 fi;
5294
5295 # Check whether --enable-editor or --disable-editor was given.
5296 if test "${enable_editor+set}" = set; then
5297   enableval="$enable_editor"
5298   if test $enableval = yes; then
5299   cat >>confdefs.h <<\EOF
5300 #define FEATURE_CGI_EDIT_ACTIONS 1
5301 EOF
5302
5303 fi
5304 else
5305   cat >>confdefs.h <<\EOF
5306 #define FEATURE_CGI_EDIT_ACTIONS 1
5307 EOF
5308
5309 fi;
5310
5311 # Check whether --enable-no-gifs or --disable-no-gifs was given.
5312 if test "${enable_no_gifs+set}" = set; then
5313   enableval="$enable_no_gifs"
5314   if test $enableval = yes; then
5315   cat >>confdefs.h <<\EOF
5316 #define FEATURE_NO_GIFS 1
5317 EOF
5318
5319 fi
5320 fi;
5321
5322 # Check whether --enable-regex-matching or --disable-regex-matching was given.
5323 if test "${enable_regex_matching+set}" = set; then
5324   enableval="$enable_regex_matching"
5325    regex_matching=$enableval
5326 else
5327    regex_matching=pcre
5328 fi;
5329
5330 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
5331 if test "${enable_dynamic_pcre+set}" = set; then
5332   enableval="$enable_dynamic_pcre"
5333    if test $enableval = "no"; then have_pcre=no; fi
5334 fi;
5335
5336 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
5337 if test "${enable_dynamic_pcrs+set}" = set; then
5338   enableval="$enable_dynamic_pcrs"
5339    if test $enableval = "no"; then have_pcrs=no; fi
5340 fi;
5341
5342 # Is the regex URL matching based on libpcreposix, but we
5343 # don't have that library?
5344 #
5345 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
5346   dont_miss_pcreposix=yes
5347 else
5348   dont_miss_pcreposix=no
5349 fi
5350
5351 # If we have libpcre and either we also have pcreposix or
5352 # we don't need pcreposix, then link pcre dynamically; else
5353 # build it and link statically
5354 #
5355 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
5356   echo "using libpcre"
5357   pcre_dyn=yes
5358   STATIC_PCRE_ONLY=#
5359   LIBS="$LIBS -lpcre"
5360 else
5361   echo "using built-in static pcre"
5362   pcre_dyn=no
5363   cat >>confdefs.h <<\EOF
5364 #define STATIC_PCRE 1
5365 EOF
5366
5367   STATIC_PCRE_ONLY=
5368 fi
5369
5370 # If we have libpcrs and pcre is linked dynamically
5371 # then also link pcrs dynamically, else build and link
5372 # pcrs statically
5373 #
5374 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
5375   echo "using libpcrs"
5376   STATIC_PCRS_ONLY=#
5377   LIBS="$LIBS -lpcrs"
5378 else
5379   echo "using built-in static pcrs"
5380   cat >>confdefs.h <<\EOF
5381 #define STATIC_PCRS 1
5382 EOF
5383
5384   STATIC_PCRS_ONLY=
5385 fi
5386
5387 # Which method should be used for URL matching?
5388 # pcre, gnu regex or prefix matching?
5389 #
5390 if test $regex_matching = "gnu"; then
5391   echo "using gnu regex for URL matching"
5392   cat >>confdefs.h <<\EOF
5393 #define REGEX_GNU 1
5394 EOF
5395
5396   GNU_REGEX_ONLY=
5397   PCRE_REGEX_ONLY=#
5398 elif test $regex_matching = "pcre"; then
5399   echo "using pcre regex for URL matching"
5400   cat >>confdefs.h <<\EOF
5401 #define REGEX_PCRE 1
5402 EOF
5403
5404   GNU_REGEX_ONLY=#
5405   PCRE_REGEX_ONLY=
5406   if test $pcre_dyn = "yes"; then
5407     LIBS="$LIBS -lpcreposix"
5408   fi
5409 else
5410   echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
5411   GNU_REGEX_ONLY=#
5412   PCRE_REGEX_ONLY=#
5413 fi
5414
5415 CFLAGS=$old_CFLAGS_nospecial
5416
5417 ac_config_files="$ac_config_files GNUmakefile"
5418 cat >confcache <<\_ACEOF
5419 # This file is a shell script that caches the results of configure
5420 # tests run on this system so they can be shared between configure
5421 # scripts and configure runs, see configure's option --config-cache.
5422 # It is not useful on other systems.  If it contains results you don't
5423 # want to keep, you may remove or edit it.
5424 #
5425 # config.status only pays attention to the cache file if you give it
5426 # the --recheck option to rerun configure.
5427 #
5428 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5430 # following values.
5431
5432 _ACEOF
5433
5434 # The following way of writing the cache mishandles newlines in values,
5435 # but we know of no workaround that is simple, portable, and efficient.
5436 # So, don't put newlines in cache variables' values.
5437 # Ultrix sh set writes to stderr and can't be redirected directly,
5438 # and sets the high bit in the cache file unless we assign to the vars.
5439 {
5440   (set) 2>&1 |
5441     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5442     *ac_space=\ *)
5443       # `set' does not quote correctly, so add quotes (double-quote
5444       # substitution turns \\\\ into \\, and sed turns \\ into \).
5445       sed -n \
5446         "s/'/'\\\\''/g;
5447           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5448       ;;
5449     *)
5450       # `set' quotes correctly as required by POSIX, so do not add quotes.
5451       sed -n \
5452         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5453       ;;
5454     esac;
5455 } |
5456   sed '
5457      t clear
5458      : clear
5459      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5460      t end
5461      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5462      : end' >>confcache
5463 if cmp -s $cache_file confcache; then :; else
5464   if test -w $cache_file; then
5465     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5466     cat confcache >$cache_file
5467   else
5468     echo "not updating unwritable cache $cache_file"
5469   fi
5470 fi
5471 rm -f confcache
5472
5473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5474 # Let make expand exec_prefix.
5475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5476
5477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5479 # trailing colons and then remove the whole line if VPATH becomes empty
5480 # (actually we leave an empty line to preserve line numbers).
5481 if test "x$srcdir" = x.; then
5482   ac_vpsub='/^[         ]*VPATH[        ]*=/{
5483 s/:*\$(srcdir):*/:/;
5484 s/:*\${srcdir}:*/:/;
5485 s/:*@srcdir@:*/:/;
5486 s/^\([^=]*=[    ]*\):*/\1/;
5487 s/:*$//;
5488 s/^[^=]*=[      ]*$//;
5489 }'
5490 fi
5491
5492 DEFS=-DHAVE_CONFIG_H
5493
5494 : ${CONFIG_STATUS=./config.status}
5495 ac_clean_files_save=$ac_clean_files
5496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5497 { echo "$as_me:5497: creating $CONFIG_STATUS" >&5
5498 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5499 cat >$CONFIG_STATUS <<_ACEOF
5500 #! $SHELL
5501 # Generated automatically by configure.
5502 # Run this file to recreate the current configuration.
5503 # Compiler output produced by configure, useful for debugging
5504 # configure, is in config.log if it exists.
5505
5506 debug=false
5507 SHELL=\${CONFIG_SHELL-$SHELL}
5508 ac_cs_invocation="\$0 \$@"
5509
5510 _ACEOF
5511
5512 cat >>$CONFIG_STATUS <<\_ACEOF
5513 # Be Bourne compatible
5514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5515   emulate sh
5516   NULLCMD=:
5517 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5518   set -o posix
5519 fi
5520
5521 # Name of the executable.
5522 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5523
5524 if expr a : '\(a\)' >/dev/null 2>&1; then
5525   as_expr=expr
5526 else
5527   as_expr=false
5528 fi
5529
5530 rm -f conf$$ conf$$.exe conf$$.file
5531 echo >conf$$.file
5532 if ln -s conf$$.file conf$$ 2>/dev/null; then
5533   # We could just check for DJGPP; but this test a) works b) is more generic
5534   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5535   if test -f conf$$.exe; then
5536     # Don't use ln at all; we don't have any links
5537     as_ln_s='cp -p'
5538   else
5539     as_ln_s='ln -s'
5540   fi
5541 elif ln conf$$.file conf$$ 2>/dev/null; then
5542   as_ln_s=ln
5543 else
5544   as_ln_s='cp -p'
5545 fi
5546 rm -f conf$$ conf$$.exe conf$$.file
5547
5548 as_executable_p="test -f"
5549
5550 # Support unset when possible.
5551 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5552   as_unset=unset
5553 else
5554   as_unset=false
5555 fi
5556
5557 # NLS nuisances.
5558 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5559 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5560 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5561 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5562 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5563 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5564 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5565 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5566
5567 # IFS
5568 # We need space, tab and new line, in precisely that order.
5569 as_nl='
5570 '
5571 IFS="   $as_nl"
5572
5573 # CDPATH.
5574 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5575
5576 exec 6>&1
5577
5578 _ACEOF
5579
5580 # Files that config.status was made for.
5581 if test -n "$ac_config_files"; then
5582   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5583 fi
5584
5585 if test -n "$ac_config_headers"; then
5586   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5587 fi
5588
5589 if test -n "$ac_config_links"; then
5590   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5591 fi
5592
5593 if test -n "$ac_config_commands"; then
5594   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5595 fi
5596
5597 cat >>$CONFIG_STATUS <<\EOF
5598
5599 ac_cs_usage="\
5600 \`$as_me' instantiates files from templates according to the
5601 current configuration.
5602
5603 Usage: $0 [OPTIONS] [FILE]...
5604
5605   -h, --help       print this help, then exit
5606   -V, --version    print version number, then exit
5607   -d, --debug      don't remove temporary files
5608       --recheck    update $as_me by reconfiguring in the same conditions
5609   --file=FILE[:TEMPLATE]
5610                    instantiate the configuration file FILE
5611   --header=FILE[:TEMPLATE]
5612                    instantiate the configuration header FILE
5613
5614 Configuration files:
5615 $config_files
5616
5617 Configuration headers:
5618 $config_headers
5619
5620 Report bugs to <bug-autoconf@gnu.org>."
5621 EOF
5622
5623 cat >>$CONFIG_STATUS <<EOF
5624 ac_cs_version="\\
5625 config.status
5626 configured by $0, generated by GNU Autoconf 2.52,
5627   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5628
5629 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5630 Free Software Foundation, Inc.
5631 This config.status script is free software; the Free Software Foundation
5632 gives unlimited permission to copy, distribute and modify it."
5633 srcdir=$srcdir
5634 EOF
5635
5636 cat >>$CONFIG_STATUS <<\EOF
5637 # If no file are specified by the user, then we need to provide default
5638 # value.  By we need to know if files were specified by the user.
5639 ac_need_defaults=:
5640 while test $# != 0
5641 do
5642   case $1 in
5643   --*=*)
5644     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5645     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5646     shift
5647     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5648     shift
5649     ;;
5650   -*);;
5651   *) # This is not an option, so the user has probably given explicit
5652      # arguments.
5653      ac_need_defaults=false;;
5654   esac
5655
5656   case $1 in
5657   # Handling of the options.
5658 EOF
5659 cat >>$CONFIG_STATUS <<EOF
5660   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5661     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5662     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5663 EOF
5664 cat >>$CONFIG_STATUS <<\EOF
5665   --version | --vers* | -V )
5666     echo "$ac_cs_version"; exit 0 ;;
5667   --he | --h)
5668     # Conflict between --help and --header
5669     { { echo "$as_me:5669: error: ambiguous option: $1
5670 Try \`$0 --help' for more information." >&5
5671 echo "$as_me: error: ambiguous option: $1
5672 Try \`$0 --help' for more information." >&2;}
5673    { (exit 1); exit 1; }; };;
5674   --help | --hel | -h )
5675     echo "$ac_cs_usage"; exit 0 ;;
5676   --debug | --d* | -d )
5677     debug=: ;;
5678   --file | --fil | --fi | --f )
5679     shift
5680     CONFIG_FILES="$CONFIG_FILES $1"
5681     ac_need_defaults=false;;
5682   --header | --heade | --head | --hea )
5683     shift
5684     CONFIG_HEADERS="$CONFIG_HEADERS $1"
5685     ac_need_defaults=false;;
5686
5687   # This is an error.
5688   -*) { { echo "$as_me:5688: error: unrecognized option: $1
5689 Try \`$0 --help' for more information." >&5
5690 echo "$as_me: error: unrecognized option: $1
5691 Try \`$0 --help' for more information." >&2;}
5692    { (exit 1); exit 1; }; } ;;
5693
5694   *) ac_config_targets="$ac_config_targets $1" ;;
5695
5696   esac
5697   shift
5698 done
5699
5700 exec 5>>config.log
5701 cat >&5 << _ACEOF
5702
5703 ## ----------------------- ##
5704 ## Running config.status.  ##
5705 ## ----------------------- ##
5706
5707 This file was extended by $as_me 2.52, executed with
5708   CONFIG_FILES    = $CONFIG_FILES
5709   CONFIG_HEADERS  = $CONFIG_HEADERS
5710   CONFIG_LINKS    = $CONFIG_LINKS
5711   CONFIG_COMMANDS = $CONFIG_COMMANDS
5712   > $ac_cs_invocation
5713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5714
5715 _ACEOF
5716 EOF
5717
5718 cat >>$CONFIG_STATUS <<\EOF
5719 for ac_config_target in $ac_config_targets
5720 do
5721   case "$ac_config_target" in
5722   # Handling of arguments.
5723   "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
5724   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5725   *) { { echo "$as_me:5725: error: invalid argument: $ac_config_target" >&5
5726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5727    { (exit 1); exit 1; }; };;
5728   esac
5729 done
5730
5731 # If the user did not use the arguments to specify the items to instantiate,
5732 # then the envvar interface is used.  Set only those that are not.
5733 # We use the long form for the default assignment because of an extremely
5734 # bizarre bug on SunOS 4.1.3.
5735 if $ac_need_defaults; then
5736   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5737   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5738 fi
5739
5740 # Create a temporary directory, and hook for its removal unless debugging.
5741 $debug ||
5742 {
5743   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5744   trap '{ (exit 1); exit 1; }' 1 2 13 15
5745 }
5746
5747 # Create a (secure) tmp directory for tmp files.
5748 : ${TMPDIR=/tmp}
5749 {
5750   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5751   test -n "$tmp" && test -d "$tmp"
5752 }  ||
5753 {
5754   tmp=$TMPDIR/cs$$-$RANDOM
5755   (umask 077 && mkdir $tmp)
5756 } ||
5757 {
5758    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5759    { (exit 1); exit 1; }
5760 }
5761
5762 EOF
5763
5764 cat >>$CONFIG_STATUS <<EOF
5765
5766 #
5767 # CONFIG_FILES section.
5768 #
5769
5770 # No need to generate the scripts if there are no CONFIG_FILES.
5771 # This happens for instance when ./config.status config.h
5772 if test -n "\$CONFIG_FILES"; then
5773   # Protect against being on the right side of a sed subst in config.status.
5774   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5775    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5776 s,@SHELL@,$SHELL,;t t
5777 s,@exec_prefix@,$exec_prefix,;t t
5778 s,@prefix@,$prefix,;t t
5779 s,@program_transform_name@,$program_transform_name,;t t
5780 s,@bindir@,$bindir,;t t
5781 s,@sbindir@,$sbindir,;t t
5782 s,@libexecdir@,$libexecdir,;t t
5783 s,@datadir@,$datadir,;t t
5784 s,@sysconfdir@,$sysconfdir,;t t
5785 s,@sharedstatedir@,$sharedstatedir,;t t
5786 s,@localstatedir@,$localstatedir,;t t
5787 s,@libdir@,$libdir,;t t
5788 s,@includedir@,$includedir,;t t
5789 s,@oldincludedir@,$oldincludedir,;t t
5790 s,@infodir@,$infodir,;t t
5791 s,@mandir@,$mandir,;t t
5792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5797 s,@build_alias@,$build_alias,;t t
5798 s,@host_alias@,$host_alias,;t t
5799 s,@target_alias@,$target_alias,;t t
5800 s,@ECHO_C@,$ECHO_C,;t t
5801 s,@ECHO_N@,$ECHO_N,;t t
5802 s,@ECHO_T@,$ECHO_T,;t t
5803 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5804 s,@DEFS@,$DEFS,;t t
5805 s,@LIBS@,$LIBS,;t t
5806 s,@build@,$build,;t t
5807 s,@build_cpu@,$build_cpu,;t t
5808 s,@build_vendor@,$build_vendor,;t t
5809 s,@build_os@,$build_os,;t t
5810 s,@host@,$host,;t t
5811 s,@host_cpu@,$host_cpu,;t t
5812 s,@host_vendor@,$host_vendor,;t t
5813 s,@host_os@,$host_os,;t t
5814 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
5815 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
5816 s,@VERSION_POINT@,$VERSION_POINT,;t t
5817 s,@CODE_STATUS@,$CODE_STATUS,;t t
5818 s,@CC@,$CC,;t t
5819 s,@CFLAGS@,$CFLAGS,;t t
5820 s,@LDFLAGS@,$LDFLAGS,;t t
5821 s,@CPPFLAGS@,$CPPFLAGS,;t t
5822 s,@ac_ct_CC@,$ac_ct_CC,;t t
5823 s,@EXEEXT@,$EXEEXT,;t t
5824 s,@OBJEXT@,$OBJEXT,;t t
5825 s,@CPP@,$CPP,;t t
5826 s,@GDB@,$GDB,;t t
5827 s,@WIN_ONLY@,$WIN_ONLY,;t t
5828 s,@WDUMP@,$WDUMP,;t t
5829 s,@DB2HTML@,$DB2HTML,;t t
5830 s,@RPMBIN@,$RPMBIN,;t t
5831 s,@RPM_BASE@,$RPM_BASE,;t t
5832 s,@JADEBIN@,$JADEBIN,;t t
5833 s,@DKPREFIX@,$DKPREFIX,;t t
5834 s,@PTHREAD_ONLY@,$PTHREAD_ONLY,;t t
5835 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
5836 s,@AMIGAOS_ONLY@,$AMIGAOS_ONLY,;t t
5837 s,@GNU_REGEX_ONLY@,$GNU_REGEX_ONLY,;t t
5838 s,@PCRE_REGEX_ONLY@,$PCRE_REGEX_ONLY,;t t
5839 s,@STATIC_PCRE_ONLY@,$STATIC_PCRE_ONLY,;t t
5840 s,@STATIC_PCRS_ONLY@,$STATIC_PCRS_ONLY,;t t
5841 s,@SPECIAL_CFLAGS@,$SPECIAL_CFLAGS,;t t
5842 s,@PTHREAD_LIB@,$PTHREAD_LIB,;t t
5843 CEOF
5844
5845 EOF
5846
5847   cat >>$CONFIG_STATUS <<\EOF
5848   # Split the substitutions into bite-sized pieces for seds with
5849   # small command number limits, like on Digital OSF/1 and HP-UX.
5850   ac_max_sed_lines=48
5851   ac_sed_frag=1 # Number of current file.
5852   ac_beg=1 # First line for current file.
5853   ac_end=$ac_max_sed_lines # Line after last line for current file.
5854   ac_more_lines=:
5855   ac_sed_cmds=
5856   while $ac_more_lines; do
5857     if test $ac_beg -gt 1; then
5858       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5859     else
5860       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5861     fi
5862     if test ! -s $tmp/subs.frag; then
5863       ac_more_lines=false
5864     else
5865       # The purpose of the label and of the branching condition is to
5866       # speed up the sed processing (if there are no `@' at all, there
5867       # is no need to browse any of the substitutions).
5868       # These are the two extra sed commands mentioned above.
5869       (echo ':t
5870   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5871       if test -z "$ac_sed_cmds"; then
5872         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5873       else
5874         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5875       fi
5876       ac_sed_frag=`expr $ac_sed_frag + 1`
5877       ac_beg=$ac_end
5878       ac_end=`expr $ac_end + $ac_max_sed_lines`
5879     fi
5880   done
5881   if test -z "$ac_sed_cmds"; then
5882     ac_sed_cmds=cat
5883   fi
5884 fi # test -n "$CONFIG_FILES"
5885
5886 EOF
5887 cat >>$CONFIG_STATUS <<\EOF
5888 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5889   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5890   case $ac_file in
5891   - | *:- | *:-:* ) # input from stdin
5892         cat >$tmp/stdin
5893         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5894         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5895   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5896         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5897   * )   ac_file_in=$ac_file.in ;;
5898   esac
5899
5900   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5901   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5902          X"$ac_file" : 'X\(//\)[^/]' \| \
5903          X"$ac_file" : 'X\(//\)$' \| \
5904          X"$ac_file" : 'X\(/\)' \| \
5905          .     : '\(.\)' 2>/dev/null ||
5906 echo X"$ac_file" |
5907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5908           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5909           /^X\(\/\/\)$/{ s//\1/; q; }
5910           /^X\(\/\).*/{ s//\1/; q; }
5911           s/.*/./; q'`
5912   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5913     { case "$ac_dir" in
5914   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5915   *)                      as_incr_dir=.;;
5916 esac
5917 as_dummy="$ac_dir"
5918 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5919   case $as_mkdir_dir in
5920     # Skip DOS drivespec
5921     ?:) as_incr_dir=$as_mkdir_dir ;;
5922     *)
5923       as_incr_dir=$as_incr_dir/$as_mkdir_dir
5924       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5925     ;;
5926   esac
5927 done; }
5928
5929     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5930     # A "../" for each directory in $ac_dir_suffix.
5931     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5932   else
5933     ac_dir_suffix= ac_dots=
5934   fi
5935
5936   case $srcdir in
5937   .)  ac_srcdir=.
5938       if test -z "$ac_dots"; then
5939          ac_top_srcdir=.
5940       else
5941          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5942       fi ;;
5943   [\\/]* | ?:[\\/]* )
5944       ac_srcdir=$srcdir$ac_dir_suffix;
5945       ac_top_srcdir=$srcdir ;;
5946   *) # Relative path.
5947     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5948     ac_top_srcdir=$ac_dots$srcdir ;;
5949   esac
5950
5951   if test x"$ac_file" != x-; then
5952     { echo "$as_me:5952: creating $ac_file" >&5
5953 echo "$as_me: creating $ac_file" >&6;}
5954     rm -f "$ac_file"
5955   fi
5956   # Let's still pretend it is `configure' which instantiates (i.e., don't
5957   # use $as_me), people would be surprised to read:
5958   #    /* config.h.  Generated automatically by config.status.  */
5959   configure_input="Generated automatically from `echo $ac_file_in |
5960                                                  sed 's,.*/,,'` by configure."
5961
5962   # First look for the input files in the build tree, otherwise in the
5963   # src tree.
5964   ac_file_inputs=`IFS=:
5965     for f in $ac_file_in; do
5966       case $f in
5967       -) echo $tmp/stdin ;;
5968       [\\/$]*)
5969          # Absolute (can't be DOS-style, as IFS=:)
5970          test -f "$f" || { { echo "$as_me:5970: error: cannot find input file: $f" >&5
5971 echo "$as_me: error: cannot find input file: $f" >&2;}
5972    { (exit 1); exit 1; }; }
5973          echo $f;;
5974       *) # Relative
5975          if test -f "$f"; then
5976            # Build tree
5977            echo $f
5978          elif test -f "$srcdir/$f"; then
5979            # Source tree
5980            echo $srcdir/$f
5981          else
5982            # /dev/null tree
5983            { { echo "$as_me:5983: error: cannot find input file: $f" >&5
5984 echo "$as_me: error: cannot find input file: $f" >&2;}
5985    { (exit 1); exit 1; }; }
5986          fi;;
5987       esac
5988     done` || { (exit 1); exit 1; }
5989 EOF
5990 cat >>$CONFIG_STATUS <<EOF
5991   sed "$ac_vpsub
5992 $extrasub
5993 EOF
5994 cat >>$CONFIG_STATUS <<\EOF
5995 :t
5996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5997 s,@configure_input@,$configure_input,;t t
5998 s,@srcdir@,$ac_srcdir,;t t
5999 s,@top_srcdir@,$ac_top_srcdir,;t t
6000 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6001   rm -f $tmp/stdin
6002   if test x"$ac_file" != x-; then
6003     mv $tmp/out $ac_file
6004   else
6005     cat $tmp/out
6006     rm -f $tmp/out
6007   fi
6008
6009 done
6010 EOF
6011 cat >>$CONFIG_STATUS <<\EOF
6012
6013 #
6014 # CONFIG_HEADER section.
6015 #
6016
6017 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6018 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6019 #
6020 # ac_d sets the value in "#define NAME VALUE" lines.
6021 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6022 ac_dB='[        ].*$,\1#\2'
6023 ac_dC=' '
6024 ac_dD=',;t'
6025 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6026 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6027 ac_uB='$,\1#\2define\3'
6028 ac_uC=' '
6029 ac_uD=',;t'
6030
6031 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6032   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6033   case $ac_file in
6034   - | *:- | *:-:* ) # input from stdin
6035         cat >$tmp/stdin
6036         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6037         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6038   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6039         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6040   * )   ac_file_in=$ac_file.in ;;
6041   esac
6042
6043   test x"$ac_file" != x- && { echo "$as_me:6043: creating $ac_file" >&5
6044 echo "$as_me: creating $ac_file" >&6;}
6045
6046   # First look for the input files in the build tree, otherwise in the
6047   # src tree.
6048   ac_file_inputs=`IFS=:
6049     for f in $ac_file_in; do
6050       case $f in
6051       -) echo $tmp/stdin ;;
6052       [\\/$]*)
6053          # Absolute (can't be DOS-style, as IFS=:)
6054          test -f "$f" || { { echo "$as_me:6054: error: cannot find input file: $f" >&5
6055 echo "$as_me: error: cannot find input file: $f" >&2;}
6056    { (exit 1); exit 1; }; }
6057          echo $f;;
6058       *) # Relative
6059          if test -f "$f"; then
6060            # Build tree
6061            echo $f
6062          elif test -f "$srcdir/$f"; then
6063            # Source tree
6064            echo $srcdir/$f
6065          else
6066            # /dev/null tree
6067            { { echo "$as_me:6067: error: cannot find input file: $f" >&5
6068 echo "$as_me: error: cannot find input file: $f" >&2;}
6069    { (exit 1); exit 1; }; }
6070          fi;;
6071       esac
6072     done` || { (exit 1); exit 1; }
6073   # Remove the trailing spaces.
6074   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6075
6076 EOF
6077
6078 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6079 # `conftest.undefs', that substitutes the proper values into
6080 # config.h.in to produce config.h.  The first handles `#define'
6081 # templates, and the second `#undef' templates.
6082 # And first: Protect against being on the right side of a sed subst in
6083 # config.status.  Protect against being in an unquoted here document
6084 # in config.status.
6085 rm -f conftest.defines conftest.undefs
6086 # Using a here document instead of a string reduces the quoting nightmare.
6087 # Putting comments in sed scripts is not portable.
6088 #
6089 # `end' is used to avoid that the second main sed command (meant for
6090 # 0-ary CPP macros) applies to n-ary macro definitions.
6091 # See the Autoconf documentation for `clear'.
6092 cat >confdef2sed.sed <<\EOF
6093 s/[\\&,]/\\&/g
6094 s,[\\$`],\\&,g
6095 t clear
6096 : clear
6097 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6098 t end
6099 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6100 : end
6101 EOF
6102 # If some macros were called several times there might be several times
6103 # the same #defines, which is useless.  Nevertheless, we may not want to
6104 # sort them, since we want the *last* AC-DEFINE to be honored.
6105 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6106 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6107 rm -f confdef2sed.sed
6108
6109 # This sed command replaces #undef with comments.  This is necessary, for
6110 # example, in the case of _POSIX_SOURCE, which is predefined and required
6111 # on some systems where configure will not decide to define it.
6112 cat >>conftest.undefs <<\EOF
6113 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6114 EOF
6115
6116 # Break up conftest.defines because some shells have a limit on the size
6117 # of here documents, and old seds have small limits too (100 cmds).
6118 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6119 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6120 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6121 echo '  :' >>$CONFIG_STATUS
6122 rm -f conftest.tail
6123 while grep . conftest.defines >/dev/null
6124 do
6125   # Write a limited-size here document to $tmp/defines.sed.
6126   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6127   # Speed up: don't consider the non `#define' lines.
6128   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6129   # Work around the forget-to-reset-the-flag bug.
6130   echo 't clr' >>$CONFIG_STATUS
6131   echo ': clr' >>$CONFIG_STATUS
6132   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6133   echo 'CEOF
6134   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6135   rm -f $tmp/in
6136   mv $tmp/out $tmp/in
6137 ' >>$CONFIG_STATUS
6138   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6139   rm -f conftest.defines
6140   mv conftest.tail conftest.defines
6141 done
6142 rm -f conftest.defines
6143 echo '  fi # egrep' >>$CONFIG_STATUS
6144 echo >>$CONFIG_STATUS
6145
6146 # Break up conftest.undefs because some shells have a limit on the size
6147 # of here documents, and old seds have small limits too (100 cmds).
6148 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6149 rm -f conftest.tail
6150 while grep . conftest.undefs >/dev/null
6151 do
6152   # Write a limited-size here document to $tmp/undefs.sed.
6153   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6154   # Speed up: don't consider the non `#undef'
6155   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6156   # Work around the forget-to-reset-the-flag bug.
6157   echo 't clr' >>$CONFIG_STATUS
6158   echo ': clr' >>$CONFIG_STATUS
6159   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6160   echo 'CEOF
6161   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6162   rm -f $tmp/in
6163   mv $tmp/out $tmp/in
6164 ' >>$CONFIG_STATUS
6165   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6166   rm -f conftest.undefs
6167   mv conftest.tail conftest.undefs
6168 done
6169 rm -f conftest.undefs
6170
6171 cat >>$CONFIG_STATUS <<\EOF
6172   # Let's still pretend it is `configure' which instantiates (i.e., don't
6173   # use $as_me), people would be surprised to read:
6174   #    /* config.h.  Generated automatically by config.status.  */
6175   if test x"$ac_file" = x-; then
6176     echo "/* Generated automatically by configure.  */" >$tmp/config.h
6177   else
6178     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
6179   fi
6180   cat $tmp/in >>$tmp/config.h
6181   rm -f $tmp/in
6182   if test x"$ac_file" != x-; then
6183     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6184       { echo "$as_me:6184: $ac_file is unchanged" >&5
6185 echo "$as_me: $ac_file is unchanged" >&6;}
6186     else
6187       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6188          X"$ac_file" : 'X\(//\)[^/]' \| \
6189          X"$ac_file" : 'X\(//\)$' \| \
6190          X"$ac_file" : 'X\(/\)' \| \
6191          .     : '\(.\)' 2>/dev/null ||
6192 echo X"$ac_file" |
6193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6194           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6195           /^X\(\/\/\)$/{ s//\1/; q; }
6196           /^X\(\/\).*/{ s//\1/; q; }
6197           s/.*/./; q'`
6198       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6199         { case "$ac_dir" in
6200   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6201   *)                      as_incr_dir=.;;
6202 esac
6203 as_dummy="$ac_dir"
6204 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6205   case $as_mkdir_dir in
6206     # Skip DOS drivespec
6207     ?:) as_incr_dir=$as_mkdir_dir ;;
6208     *)
6209       as_incr_dir=$as_incr_dir/$as_mkdir_dir
6210       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6211     ;;
6212   esac
6213 done; }
6214
6215       fi
6216       rm -f $ac_file
6217       mv $tmp/config.h $ac_file
6218     fi
6219   else
6220     cat $tmp/config.h
6221     rm -f $tmp/config.h
6222   fi
6223 done
6224 EOF
6225
6226 cat >>$CONFIG_STATUS <<\EOF
6227
6228 { (exit 0); exit 0; }
6229 EOF
6230 chmod +x $CONFIG_STATUS
6231 ac_clean_files=$ac_clean_files_save
6232
6233 # configure is writing to config.log, and then calls config.status.
6234 # config.status does its own redirection, appending to config.log.
6235 # Unfortunately, on DOS this fails, as config.log is still kept open
6236 # by configure, so config.status won't be able to write to it; its
6237 # output is simply discarded.  So we exec the FD to /dev/null,
6238 # effectively closing config.log, so it can be properly (re)opened and
6239 # appended to by config.status.  When coming back to configure, we
6240 # need to make the FD available again.
6241 if test "$no_create" != yes; then
6242   ac_cs_success=:
6243   exec 5>/dev/null
6244   $SHELL $CONFIG_STATUS || ac_cs_success=false
6245   exec 5>>config.log
6246   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6247   # would make configure fail if this is the last instruction.
6248   $ac_cs_success || { (exit 1); exit 1; }
6249 fi
6250