Support for FEATURE_CGI_EDIT_ACTIONS
[privoxy.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.19 .
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-regex-matching=pcre  Use perl-compatible regex for actionsfile
689                                 pattern matching (default)
690   --enable-regex-matching=gnu   Use gnu style regex for actionsfile pattern
691                                 matching (-> bigger binary)
692   --disable-regex-matching      Don't use regex matching, compare URL
693                                 prefix instead (won't shrink birary)
694   --disable-dynamic-pcre        Use the built-in, static pcre, even if
695                                 libpcre is available
696   --disable-dynamic-pcrs        Use the built-in, static pcrs, even if
697                                 libpcrs is available
698
699 Optional Packages:
700   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
701   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
702   --with-debug            Enable debug mode
703
704 Some influential environment variables:
705   CC          C compiler command
706   CFLAGS      C compiler flags
707   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
708               nonstandard directory <lib dir>
709   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
710               headers in a nonstandard directory <include dir>
711   CPP         C preprocessor
712
713 Use these variables to override the choices made by `configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
715
716 EOF
717 fi
718
719 if test "$ac_init_help" = "recursive"; then
720   # If there are subdirs, report their specific --help.
721   ac_popdir=`pwd`
722   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723     cd $ac_subdir
724     # A "../" for each directory in /$ac_subdir.
725     ac_dots=`echo $ac_subdir |
726              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
727
728     case $srcdir in
729     .) # No --srcdir option.  We are building in place.
730       ac_sub_srcdir=$srcdir ;;
731     [\\/]* | ?:[\\/]* ) # Absolute path.
732       ac_sub_srcdir=$srcdir/$ac_subdir ;;
733     *) # Relative path.
734       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735     esac
736
737     # Check for guested configure; otherwise get Cygnus style configure.
738     if test -f $ac_sub_srcdir/configure.gnu; then
739       echo
740       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
741     elif test -f $ac_sub_srcdir/configure; then
742       echo
743       $SHELL $ac_sub_srcdir/configure  --help=recursive
744     elif test -f $ac_sub_srcdir/configure.ac ||
745            test -f $ac_sub_srcdir/configure.in; then
746       echo
747       $ac_configure --help
748     else
749       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
750     fi
751     cd $ac_popdir
752   done
753 fi
754
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
757   cat <<\EOF
758
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
763 EOF
764   exit 0
765 fi
766 exec 5>config.log
767 cat >&5 <<EOF
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
770
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52.  Invocation command line was
773
774   $ $0 $@
775
776 EOF
777 {
778 cat <<_ASUNAME
779 ## ---------- ##
780 ## Platform.  ##
781 ## ---------- ##
782
783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788
789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
790 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
791
792 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
793 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
795 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
796 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
797 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
798 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
799
800 PATH = $PATH
801
802 _ASUNAME
803 } >&5
804
805 cat >&5 <<EOF
806 ## ------------ ##
807 ## Core tests.  ##
808 ## ------------ ##
809
810 EOF
811
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
815 ac_configure_args=
816 ac_sep=
817 for ac_arg
818 do
819   case $ac_arg in
820   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821   | --no-cr | --no-c) ;;
822   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
826     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827     ac_sep=" " ;;
828   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829      ac_sep=" " ;;
830   esac
831   # Get rid of the leading space.
832 done
833
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log.  We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
837 trap 'exit_status=$?
838   # Save into config.log some information that might help in debugging.
839   echo >&5
840   echo "## ----------------- ##" >&5
841   echo "## Cache variables.  ##" >&5
842   echo "## ----------------- ##" >&5
843   echo >&5
844   # The following way of writing the cache mishandles newlines in values,
845 {
846   (set) 2>&1 |
847     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848     *ac_space=\ *)
849       sed -n \
850         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
852       ;;
853     *)
854       sed -n \
855         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
856       ;;
857     esac;
858 } >&5
859   sed "/^$/d" confdefs.h >conftest.log
860   if test -s conftest.log; then
861     echo >&5
862     echo "## ------------ ##" >&5
863     echo "## confdefs.h.  ##" >&5
864     echo "## ------------ ##" >&5
865     echo >&5
866     cat conftest.log >&5
867   fi
868   (echo; echo) >&5
869   test "$ac_signal" != 0 &&
870     echo "$as_me: caught signal $ac_signal" >&5
871   echo "$as_me: exit $exit_status" >&5
872   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873     exit $exit_status
874      ' 0
875 for ac_signal in 1 2 13 15; do
876   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
877 done
878 ac_signal=0
879
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 echo >confdefs.h
884
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888   if test "x$prefix" != xNONE; then
889     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890   else
891     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892   fi
893 fi
894 for ac_site_file in $CONFIG_SITE; do
895   if test -r "$ac_site_file"; then
896     { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898     cat "$ac_site_file" >&5
899     . "$ac_site_file"
900   fi
901 done
902
903 if test -r "$cache_file"; then
904   # Some versions of bash will fail to source /dev/null (special
905   # files actually), so we avoid doing that.
906   if test -f "$cache_file"; then
907     { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
909     case $cache_file in
910       [\\/]* | ?:[\\/]* ) . $cache_file;;
911       *)                      . ./$cache_file;;
912     esac
913   fi
914 else
915   { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
917   >$cache_file
918 fi
919
920 # Check that the precious variables saved in the cache have kept the same
921 # value.
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925   eval ac_old_set=\$ac_cv_env_${ac_var}_set
926   eval ac_new_set=\$ac_env_${ac_var}_set
927   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928   eval ac_new_val="\$ac_env_${ac_var}_value"
929   case $ac_old_set,$ac_new_set in
930     set,)
931       { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933       ac_cache_corrupted=: ;;
934     ,set)
935       { echo "$as_me:935: error: \`$ac_var' was not set in the previous run" >&5
936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
937       ac_cache_corrupted=: ;;
938     ,);;
939     *)
940       if test "x$ac_old_val" != "x$ac_new_val"; then
941         { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
943         { echo "$as_me:943:   former value:  $ac_old_val" >&5
944 echo "$as_me:   former value:  $ac_old_val" >&2;}
945         { echo "$as_me:945:   current value: $ac_new_val" >&5
946 echo "$as_me:   current value: $ac_new_val" >&2;}
947         ac_cache_corrupted=:
948       fi;;
949   esac
950   # Pass precious variables to config.status.  It doesn't matter if
951   # we pass some twice (in addition to the command line arguments).
952   if test "$ac_new_set" = set; then
953     case $ac_new_val in
954     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
956       ac_configure_args="$ac_configure_args '$ac_arg'"
957       ;;
958     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
959        ;;
960     esac
961   fi
962 done
963 if $ac_cache_corrupted; then
964   { echo "$as_me:964: error: changes in the environment can compromise the build" >&5
965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
966   { { echo "$as_me:966: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
968    { (exit 1); exit 1; }; }
969 fi
970
971 ac_ext=c
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
976
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978   *c*,-n*) ECHO_N= ECHO_C='
979 ' ECHO_T='      ' ;;
980   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 esac
983 echo "#! $SHELL" >conftest.sh
984 echo  "exit 0"   >>conftest.sh
985 chmod +x conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987   (PATH=".;."; conftest.sh) 2>&5
988   ac_status=$?
989   echo "$as_me:989: \$? = $ac_status" >&5
990   (exit $ac_status); }; then
991   ac_path_separator=';'
992 else
993   ac_path_separator=:
994 fi
995 PATH_SEPARATOR="$ac_path_separator"
996 rm -f conftest.sh
997
998 ac_config_headers="$ac_config_headers config.h"
999
1000 ac_aux_dir=
1001 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1002   if test -f $ac_dir/install-sh; then
1003     ac_aux_dir=$ac_dir
1004     ac_install_sh="$ac_aux_dir/install-sh -c"
1005     break
1006   elif test -f $ac_dir/install.sh; then
1007     ac_aux_dir=$ac_dir
1008     ac_install_sh="$ac_aux_dir/install.sh -c"
1009     break
1010   elif test -f $ac_dir/shtool; then
1011     ac_aux_dir=$ac_dir
1012     ac_install_sh="$ac_aux_dir/shtool install -c"
1013     break
1014   fi
1015 done
1016 if test -z "$ac_aux_dir"; then
1017   { { echo "$as_me:1017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1018 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1019    { (exit 1); exit 1; }; }
1020 fi
1021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1023 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1024
1025 # Make sure we can run config.sub.
1026 $ac_config_sub sun4 >/dev/null 2>&1 ||
1027   { { echo "$as_me:1027: error: cannot run $ac_config_sub" >&5
1028 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1029    { (exit 1); exit 1; }; }
1030
1031 echo "$as_me:1031: checking build system type" >&5
1032 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1033 if test "${ac_cv_build+set}" = set; then
1034   echo $ECHO_N "(cached) $ECHO_C" >&6
1035 else
1036   ac_cv_build_alias=$build_alias
1037 test -z "$ac_cv_build_alias" &&
1038   ac_cv_build_alias=`$ac_config_guess`
1039 test -z "$ac_cv_build_alias" &&
1040   { { echo "$as_me:1040: error: cannot guess build type; you must specify one" >&5
1041 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1042    { (exit 1); exit 1; }; }
1043 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1044   { { echo "$as_me:1044: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1045 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1046    { (exit 1); exit 1; }; }
1047
1048 fi
1049 echo "$as_me:1049: result: $ac_cv_build" >&5
1050 echo "${ECHO_T}$ac_cv_build" >&6
1051 build=$ac_cv_build
1052 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055
1056 echo "$as_me:1056: checking host system type" >&5
1057 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1058 if test "${ac_cv_host+set}" = set; then
1059   echo $ECHO_N "(cached) $ECHO_C" >&6
1060 else
1061   ac_cv_host_alias=$host_alias
1062 test -z "$ac_cv_host_alias" &&
1063   ac_cv_host_alias=$ac_cv_build_alias
1064 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1065   { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1066 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1067    { (exit 1); exit 1; }; }
1068
1069 fi
1070 echo "$as_me:1070: result: $ac_cv_host" >&5
1071 echo "${ECHO_T}$ac_cv_host" >&6
1072 host=$ac_cv_host
1073 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076
1077 VERSION_MAJOR=2
1078 VERSION_MINOR=9
1079 VERSION_POINT=9
1080 CODE_STATUS="\"alpha\""
1081
1082 cat >>confdefs.h <<EOF
1083 #define VERSION_MAJOR ${VERSION_MAJOR}
1084 EOF
1085
1086 cat >>confdefs.h <<EOF
1087 #define VERSION_MINOR ${VERSION_MINOR}
1088 EOF
1089
1090 cat >>confdefs.h <<EOF
1091 #define VERSION_POINT ${VERSION_POINT}
1092 EOF
1093
1094 cat >>confdefs.h <<EOF
1095 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
1096 EOF
1097
1098 cat >>confdefs.h <<EOF
1099 #define CODE_STATUS ${CODE_STATUS}
1100 EOF
1101
1102 ac_ext=c
1103 ac_cpp='$CPP $CPPFLAGS'
1104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1107 if test -n "$ac_tool_prefix"; then
1108   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1110 echo "$as_me:1110: checking for $ac_word" >&5
1111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1112 if test "${ac_cv_prog_CC+set}" = set; then
1113   echo $ECHO_N "(cached) $ECHO_C" >&6
1114 else
1115   if test -n "$CC"; then
1116   ac_cv_prog_CC="$CC" # Let the user override the test.
1117 else
1118   ac_save_IFS=$IFS; IFS=$ac_path_separator
1119 ac_dummy="$PATH"
1120 for ac_dir in $ac_dummy; do
1121   IFS=$ac_save_IFS
1122   test -z "$ac_dir" && ac_dir=.
1123   $as_executable_p "$ac_dir/$ac_word" || continue
1124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1125 echo "$as_me:1125: found $ac_dir/$ac_word" >&5
1126 break
1127 done
1128
1129 fi
1130 fi
1131 CC=$ac_cv_prog_CC
1132 if test -n "$CC"; then
1133   echo "$as_me:1133: result: $CC" >&5
1134 echo "${ECHO_T}$CC" >&6
1135 else
1136   echo "$as_me:1136: result: no" >&5
1137 echo "${ECHO_T}no" >&6
1138 fi
1139
1140 fi
1141 if test -z "$ac_cv_prog_CC"; then
1142   ac_ct_CC=$CC
1143   # Extract the first word of "gcc", so it can be a program name with args.
1144 set dummy gcc; ac_word=$2
1145 echo "$as_me:1145: checking for $ac_word" >&5
1146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1148   echo $ECHO_N "(cached) $ECHO_C" >&6
1149 else
1150   if test -n "$ac_ct_CC"; then
1151   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1152 else
1153   ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 ac_dummy="$PATH"
1155 for ac_dir in $ac_dummy; do
1156   IFS=$ac_save_IFS
1157   test -z "$ac_dir" && ac_dir=.
1158   $as_executable_p "$ac_dir/$ac_word" || continue
1159 ac_cv_prog_ac_ct_CC="gcc"
1160 echo "$as_me:1160: found $ac_dir/$ac_word" >&5
1161 break
1162 done
1163
1164 fi
1165 fi
1166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1167 if test -n "$ac_ct_CC"; then
1168   echo "$as_me:1168: result: $ac_ct_CC" >&5
1169 echo "${ECHO_T}$ac_ct_CC" >&6
1170 else
1171   echo "$as_me:1171: result: no" >&5
1172 echo "${ECHO_T}no" >&6
1173 fi
1174
1175   CC=$ac_ct_CC
1176 else
1177   CC="$ac_cv_prog_CC"
1178 fi
1179
1180 if test -z "$CC"; then
1181   if test -n "$ac_tool_prefix"; then
1182   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1183 set dummy ${ac_tool_prefix}cc; ac_word=$2
1184 echo "$as_me:1184: checking for $ac_word" >&5
1185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1186 if test "${ac_cv_prog_CC+set}" = set; then
1187   echo $ECHO_N "(cached) $ECHO_C" >&6
1188 else
1189   if test -n "$CC"; then
1190   ac_cv_prog_CC="$CC" # Let the user override the test.
1191 else
1192   ac_save_IFS=$IFS; IFS=$ac_path_separator
1193 ac_dummy="$PATH"
1194 for ac_dir in $ac_dummy; do
1195   IFS=$ac_save_IFS
1196   test -z "$ac_dir" && ac_dir=.
1197   $as_executable_p "$ac_dir/$ac_word" || continue
1198 ac_cv_prog_CC="${ac_tool_prefix}cc"
1199 echo "$as_me:1199: found $ac_dir/$ac_word" >&5
1200 break
1201 done
1202
1203 fi
1204 fi
1205 CC=$ac_cv_prog_CC
1206 if test -n "$CC"; then
1207   echo "$as_me:1207: result: $CC" >&5
1208 echo "${ECHO_T}$CC" >&6
1209 else
1210   echo "$as_me:1210: result: no" >&5
1211 echo "${ECHO_T}no" >&6
1212 fi
1213
1214 fi
1215 if test -z "$ac_cv_prog_CC"; then
1216   ac_ct_CC=$CC
1217   # Extract the first word of "cc", so it can be a program name with args.
1218 set dummy cc; ac_word=$2
1219 echo "$as_me:1219: checking for $ac_word" >&5
1220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1222   echo $ECHO_N "(cached) $ECHO_C" >&6
1223 else
1224   if test -n "$ac_ct_CC"; then
1225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1226 else
1227   ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 ac_dummy="$PATH"
1229 for ac_dir in $ac_dummy; do
1230   IFS=$ac_save_IFS
1231   test -z "$ac_dir" && ac_dir=.
1232   $as_executable_p "$ac_dir/$ac_word" || continue
1233 ac_cv_prog_ac_ct_CC="cc"
1234 echo "$as_me:1234: found $ac_dir/$ac_word" >&5
1235 break
1236 done
1237
1238 fi
1239 fi
1240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1241 if test -n "$ac_ct_CC"; then
1242   echo "$as_me:1242: result: $ac_ct_CC" >&5
1243 echo "${ECHO_T}$ac_ct_CC" >&6
1244 else
1245   echo "$as_me:1245: result: no" >&5
1246 echo "${ECHO_T}no" >&6
1247 fi
1248
1249   CC=$ac_ct_CC
1250 else
1251   CC="$ac_cv_prog_CC"
1252 fi
1253
1254 fi
1255 if test -z "$CC"; then
1256   # Extract the first word of "cc", so it can be a program name with args.
1257 set dummy cc; ac_word=$2
1258 echo "$as_me:1258: checking for $ac_word" >&5
1259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1260 if test "${ac_cv_prog_CC+set}" = set; then
1261   echo $ECHO_N "(cached) $ECHO_C" >&6
1262 else
1263   if test -n "$CC"; then
1264   ac_cv_prog_CC="$CC" # Let the user override the test.
1265 else
1266   ac_prog_rejected=no
1267   ac_save_IFS=$IFS; IFS=$ac_path_separator
1268 ac_dummy="$PATH"
1269 for ac_dir in $ac_dummy; do
1270   IFS=$ac_save_IFS
1271   test -z "$ac_dir" && ac_dir=.
1272   $as_executable_p "$ac_dir/$ac_word" || continue
1273 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1274   ac_prog_rejected=yes
1275   continue
1276 fi
1277 ac_cv_prog_CC="cc"
1278 echo "$as_me:1278: found $ac_dir/$ac_word" >&5
1279 break
1280 done
1281
1282 if test $ac_prog_rejected = yes; then
1283   # We found a bogon in the path, so make sure we never use it.
1284   set dummy $ac_cv_prog_CC
1285   shift
1286   if test $# != 0; then
1287     # We chose a different compiler from the bogus one.
1288     # However, it has the same basename, so the bogon will be chosen
1289     # first if we set CC to just the basename; use the full file name.
1290     shift
1291     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1292     shift
1293     ac_cv_prog_CC="$@"
1294   fi
1295 fi
1296 fi
1297 fi
1298 CC=$ac_cv_prog_CC
1299 if test -n "$CC"; then
1300   echo "$as_me:1300: result: $CC" >&5
1301 echo "${ECHO_T}$CC" >&6
1302 else
1303   echo "$as_me:1303: result: no" >&5
1304 echo "${ECHO_T}no" >&6
1305 fi
1306
1307 fi
1308 if test -z "$CC"; then
1309   if test -n "$ac_tool_prefix"; then
1310   for ac_prog in cl
1311   do
1312     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1314 echo "$as_me:1314: checking for $ac_word" >&5
1315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1316 if test "${ac_cv_prog_CC+set}" = set; then
1317   echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319   if test -n "$CC"; then
1320   ac_cv_prog_CC="$CC" # Let the user override the test.
1321 else
1322   ac_save_IFS=$IFS; IFS=$ac_path_separator
1323 ac_dummy="$PATH"
1324 for ac_dir in $ac_dummy; do
1325   IFS=$ac_save_IFS
1326   test -z "$ac_dir" && ac_dir=.
1327   $as_executable_p "$ac_dir/$ac_word" || continue
1328 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1329 echo "$as_me:1329: found $ac_dir/$ac_word" >&5
1330 break
1331 done
1332
1333 fi
1334 fi
1335 CC=$ac_cv_prog_CC
1336 if test -n "$CC"; then
1337   echo "$as_me:1337: result: $CC" >&5
1338 echo "${ECHO_T}$CC" >&6
1339 else
1340   echo "$as_me:1340: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1342 fi
1343
1344     test -n "$CC" && break
1345   done
1346 fi
1347 if test -z "$CC"; then
1348   ac_ct_CC=$CC
1349   for ac_prog in cl
1350 do
1351   # Extract the first word of "$ac_prog", so it can be a program name with args.
1352 set dummy $ac_prog; ac_word=$2
1353 echo "$as_me:1353: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   if test -n "$ac_ct_CC"; then
1359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1360 else
1361   ac_save_IFS=$IFS; IFS=$ac_path_separator
1362 ac_dummy="$PATH"
1363 for ac_dir in $ac_dummy; do
1364   IFS=$ac_save_IFS
1365   test -z "$ac_dir" && ac_dir=.
1366   $as_executable_p "$ac_dir/$ac_word" || continue
1367 ac_cv_prog_ac_ct_CC="$ac_prog"
1368 echo "$as_me:1368: found $ac_dir/$ac_word" >&5
1369 break
1370 done
1371
1372 fi
1373 fi
1374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1375 if test -n "$ac_ct_CC"; then
1376   echo "$as_me:1376: result: $ac_ct_CC" >&5
1377 echo "${ECHO_T}$ac_ct_CC" >&6
1378 else
1379   echo "$as_me:1379: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1381 fi
1382
1383   test -n "$ac_ct_CC" && break
1384 done
1385
1386   CC=$ac_ct_CC
1387 fi
1388
1389 fi
1390
1391 test -z "$CC" && { { echo "$as_me:1391: error: no acceptable cc found in \$PATH" >&5
1392 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1393    { (exit 1); exit 1; }; }
1394
1395 # Provide some information about the compiler.
1396 echo "$as_me:1396:" \
1397      "checking for C compiler version" >&5
1398 ac_compiler=`set X $ac_compile; echo $2`
1399 { (eval echo "$as_me:1399: \"$ac_compiler --version </dev/null >&5\"") >&5
1400   (eval $ac_compiler --version </dev/null >&5) 2>&5
1401   ac_status=$?
1402   echo "$as_me:1402: \$? = $ac_status" >&5
1403   (exit $ac_status); }
1404 { (eval echo "$as_me:1404: \"$ac_compiler -v </dev/null >&5\"") >&5
1405   (eval $ac_compiler -v </dev/null >&5) 2>&5
1406   ac_status=$?
1407   echo "$as_me:1407: \$? = $ac_status" >&5
1408   (exit $ac_status); }
1409 { (eval echo "$as_me:1409: \"$ac_compiler -V </dev/null >&5\"") >&5
1410   (eval $ac_compiler -V </dev/null >&5) 2>&5
1411   ac_status=$?
1412   echo "$as_me:1412: \$? = $ac_status" >&5
1413   (exit $ac_status); }
1414
1415 cat >conftest.$ac_ext <<_ACEOF
1416 #line 1416 "configure"
1417 #include "confdefs.h"
1418
1419 int
1420 main ()
1421 {
1422
1423   ;
1424   return 0;
1425 }
1426 _ACEOF
1427 ac_clean_files_save=$ac_clean_files
1428 ac_clean_files="$ac_clean_files a.out a.exe"
1429 # Try to create an executable without -o first, disregard a.out.
1430 # It will help us diagnose broken compilers, and finding out an intuition
1431 # of exeext.
1432 echo "$as_me:1432: checking for C compiler default output" >&5
1433 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1434 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1435 if { (eval echo "$as_me:1435: \"$ac_link_default\"") >&5
1436   (eval $ac_link_default) 2>&5
1437   ac_status=$?
1438   echo "$as_me:1438: \$? = $ac_status" >&5
1439   (exit $ac_status); }; then
1440   # Find the output, starting from the most likely.  This scheme is
1441 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1442 # resort.
1443 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1444                 ls a.out conftest 2>/dev/null;
1445                 ls a.* conftest.* 2>/dev/null`; do
1446   case $ac_file in
1447     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1448     a.out ) # We found the default executable, but exeext='' is most
1449             # certainly right.
1450             break;;
1451     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1452           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1453           export ac_cv_exeext
1454           break;;
1455     * ) break;;
1456   esac
1457 done
1458 else
1459   echo "$as_me: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1461 { { echo "$as_me:1461: error: C compiler cannot create executables" >&5
1462 echo "$as_me: error: C compiler cannot create executables" >&2;}
1463    { (exit 77); exit 77; }; }
1464 fi
1465
1466 ac_exeext=$ac_cv_exeext
1467 echo "$as_me:1467: result: $ac_file" >&5
1468 echo "${ECHO_T}$ac_file" >&6
1469
1470 # Check the compiler produces executables we can run.  If not, either
1471 # the compiler is broken, or we cross compile.
1472 echo "$as_me:1472: checking whether the C compiler works" >&5
1473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1475 # If not cross compiling, check that we can run a simple program.
1476 if test "$cross_compiling" != yes; then
1477   if { ac_try='./$ac_file'
1478   { (eval echo "$as_me:1478: \"$ac_try\"") >&5
1479   (eval $ac_try) 2>&5
1480   ac_status=$?
1481   echo "$as_me:1481: \$? = $ac_status" >&5
1482   (exit $ac_status); }; }; then
1483     cross_compiling=no
1484   else
1485     if test "$cross_compiling" = maybe; then
1486         cross_compiling=yes
1487     else
1488         { { echo "$as_me:1488: error: cannot run C compiled programs.
1489 If you meant to cross compile, use \`--host'." >&5
1490 echo "$as_me: error: cannot run C compiled programs.
1491 If you meant to cross compile, use \`--host'." >&2;}
1492    { (exit 1); exit 1; }; }
1493     fi
1494   fi
1495 fi
1496 echo "$as_me:1496: result: yes" >&5
1497 echo "${ECHO_T}yes" >&6
1498
1499 rm -f a.out a.exe conftest$ac_cv_exeext
1500 ac_clean_files=$ac_clean_files_save
1501 # Check the compiler produces executables we can run.  If not, either
1502 # the compiler is broken, or we cross compile.
1503 echo "$as_me:1503: checking whether we are cross compiling" >&5
1504 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1505 echo "$as_me:1505: result: $cross_compiling" >&5
1506 echo "${ECHO_T}$cross_compiling" >&6
1507
1508 echo "$as_me:1508: checking for executable suffix" >&5
1509 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1510 if { (eval echo "$as_me:1510: \"$ac_link\"") >&5
1511   (eval $ac_link) 2>&5
1512   ac_status=$?
1513   echo "$as_me:1513: \$? = $ac_status" >&5
1514   (exit $ac_status); }; then
1515   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1516 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1517 # work properly (i.e., refer to `conftest.exe'), while it won't with
1518 # `rm'.
1519 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1520   case $ac_file in
1521     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1522     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1523           export ac_cv_exeext
1524           break;;
1525     * ) break;;
1526   esac
1527 done
1528 else
1529   { { echo "$as_me:1529: error: cannot compute EXEEXT: cannot compile and link" >&5
1530 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1531    { (exit 1); exit 1; }; }
1532 fi
1533
1534 rm -f conftest$ac_cv_exeext
1535 echo "$as_me:1535: result: $ac_cv_exeext" >&5
1536 echo "${ECHO_T}$ac_cv_exeext" >&6
1537
1538 rm -f conftest.$ac_ext
1539 EXEEXT=$ac_cv_exeext
1540 ac_exeext=$EXEEXT
1541 echo "$as_me:1541: checking for object suffix" >&5
1542 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1543 if test "${ac_cv_objext+set}" = set; then
1544   echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546   cat >conftest.$ac_ext <<_ACEOF
1547 #line 1547 "configure"
1548 #include "confdefs.h"
1549
1550 int
1551 main ()
1552 {
1553
1554   ;
1555   return 0;
1556 }
1557 _ACEOF
1558 rm -f conftest.o conftest.obj
1559 if { (eval echo "$as_me:1559: \"$ac_compile\"") >&5
1560   (eval $ac_compile) 2>&5
1561   ac_status=$?
1562   echo "$as_me:1562: \$? = $ac_status" >&5
1563   (exit $ac_status); }; then
1564   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1565   case $ac_file in
1566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1567     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1568        break;;
1569   esac
1570 done
1571 else
1572   echo "$as_me: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 { { echo "$as_me:1574: error: cannot compute OBJEXT: cannot compile" >&5
1575 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578
1579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1580 fi
1581 echo "$as_me:1581: result: $ac_cv_objext" >&5
1582 echo "${ECHO_T}$ac_cv_objext" >&6
1583 OBJEXT=$ac_cv_objext
1584 ac_objext=$OBJEXT
1585 echo "$as_me:1585: checking whether we are using the GNU C compiler" >&5
1586 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1587 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   cat >conftest.$ac_ext <<_ACEOF
1591 #line 1591 "configure"
1592 #include "confdefs.h"
1593
1594 int
1595 main ()
1596 {
1597 #ifndef __GNUC__
1598        choke me
1599 #endif
1600
1601   ;
1602   return 0;
1603 }
1604 _ACEOF
1605 rm -f conftest.$ac_objext
1606 if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5
1607   (eval $ac_compile) 2>&5
1608   ac_status=$?
1609   echo "$as_me:1609: \$? = $ac_status" >&5
1610   (exit $ac_status); } &&
1611          { ac_try='test -s conftest.$ac_objext'
1612   { (eval echo "$as_me:1612: \"$ac_try\"") >&5
1613   (eval $ac_try) 2>&5
1614   ac_status=$?
1615   echo "$as_me:1615: \$? = $ac_status" >&5
1616   (exit $ac_status); }; }; then
1617   ac_compiler_gnu=yes
1618 else
1619   echo "$as_me: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 ac_compiler_gnu=no
1622 fi
1623 rm -f conftest.$ac_objext conftest.$ac_ext
1624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1625
1626 fi
1627 echo "$as_me:1627: result: $ac_cv_c_compiler_gnu" >&5
1628 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1629 GCC=`test $ac_compiler_gnu = yes && echo yes`
1630 ac_test_CFLAGS=${CFLAGS+set}
1631 ac_save_CFLAGS=$CFLAGS
1632 CFLAGS="-g"
1633 echo "$as_me:1633: checking whether $CC accepts -g" >&5
1634 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1635 if test "${ac_cv_prog_cc_g+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   cat >conftest.$ac_ext <<_ACEOF
1639 #line 1639 "configure"
1640 #include "confdefs.h"
1641
1642 int
1643 main ()
1644 {
1645
1646   ;
1647   return 0;
1648 }
1649 _ACEOF
1650 rm -f conftest.$ac_objext
1651 if { (eval echo "$as_me:1651: \"$ac_compile\"") >&5
1652   (eval $ac_compile) 2>&5
1653   ac_status=$?
1654   echo "$as_me:1654: \$? = $ac_status" >&5
1655   (exit $ac_status); } &&
1656          { ac_try='test -s conftest.$ac_objext'
1657   { (eval echo "$as_me:1657: \"$ac_try\"") >&5
1658   (eval $ac_try) 2>&5
1659   ac_status=$?
1660   echo "$as_me:1660: \$? = $ac_status" >&5
1661   (exit $ac_status); }; }; then
1662   ac_cv_prog_cc_g=yes
1663 else
1664   echo "$as_me: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 ac_cv_prog_cc_g=no
1667 fi
1668 rm -f conftest.$ac_objext conftest.$ac_ext
1669 fi
1670 echo "$as_me:1670: result: $ac_cv_prog_cc_g" >&5
1671 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1672 if test "$ac_test_CFLAGS" = set; then
1673   CFLAGS=$ac_save_CFLAGS
1674 elif test $ac_cv_prog_cc_g = yes; then
1675   if test "$GCC" = yes; then
1676     CFLAGS="-g -O2"
1677   else
1678     CFLAGS="-g"
1679   fi
1680 else
1681   if test "$GCC" = yes; then
1682     CFLAGS="-O2"
1683   else
1684     CFLAGS=
1685   fi
1686 fi
1687 # Some people use a C++ compiler to compile C.  Since we use `exit',
1688 # in C++ we need to declare it.  In case someone uses the same compiler
1689 # for both compiling C and C++ we need to have the C++ compiler decide
1690 # the declaration of exit, since it's the most demanding environment.
1691 cat >conftest.$ac_ext <<_ACEOF
1692 #ifndef __cplusplus
1693   choke me
1694 #endif
1695 _ACEOF
1696 rm -f conftest.$ac_objext
1697 if { (eval echo "$as_me:1697: \"$ac_compile\"") >&5
1698   (eval $ac_compile) 2>&5
1699   ac_status=$?
1700   echo "$as_me:1700: \$? = $ac_status" >&5
1701   (exit $ac_status); } &&
1702          { ac_try='test -s conftest.$ac_objext'
1703   { (eval echo "$as_me:1703: \"$ac_try\"") >&5
1704   (eval $ac_try) 2>&5
1705   ac_status=$?
1706   echo "$as_me:1706: \$? = $ac_status" >&5
1707   (exit $ac_status); }; }; then
1708   for ac_declaration in \
1709    ''\
1710    '#include <stdlib.h>' \
1711    'extern "C" void std::exit (int) throw (); using std::exit;' \
1712    'extern "C" void std::exit (int); using std::exit;' \
1713    'extern "C" void exit (int) throw ();' \
1714    'extern "C" void exit (int);' \
1715    'void exit (int);'
1716 do
1717   cat >conftest.$ac_ext <<_ACEOF
1718 #line 1718 "configure"
1719 #include "confdefs.h"
1720 #include <stdlib.h>
1721 $ac_declaration
1722 int
1723 main ()
1724 {
1725 exit (42);
1726   ;
1727   return 0;
1728 }
1729 _ACEOF
1730 rm -f conftest.$ac_objext
1731 if { (eval echo "$as_me:1731: \"$ac_compile\"") >&5
1732   (eval $ac_compile) 2>&5
1733   ac_status=$?
1734   echo "$as_me:1734: \$? = $ac_status" >&5
1735   (exit $ac_status); } &&
1736          { ac_try='test -s conftest.$ac_objext'
1737   { (eval echo "$as_me:1737: \"$ac_try\"") >&5
1738   (eval $ac_try) 2>&5
1739   ac_status=$?
1740   echo "$as_me:1740: \$? = $ac_status" >&5
1741   (exit $ac_status); }; }; then
1742   :
1743 else
1744   echo "$as_me: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 continue
1747 fi
1748 rm -f conftest.$ac_objext conftest.$ac_ext
1749   cat >conftest.$ac_ext <<_ACEOF
1750 #line 1750 "configure"
1751 #include "confdefs.h"
1752 $ac_declaration
1753 int
1754 main ()
1755 {
1756 exit (42);
1757   ;
1758   return 0;
1759 }
1760 _ACEOF
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763   (eval $ac_compile) 2>&5
1764   ac_status=$?
1765   echo "$as_me:1765: \$? = $ac_status" >&5
1766   (exit $ac_status); } &&
1767          { ac_try='test -s conftest.$ac_objext'
1768   { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1769   (eval $ac_try) 2>&5
1770   ac_status=$?
1771   echo "$as_me:1771: \$? = $ac_status" >&5
1772   (exit $ac_status); }; }; then
1773   break
1774 else
1775   echo "$as_me: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 fi
1778 rm -f conftest.$ac_objext conftest.$ac_ext
1779 done
1780 rm -f conftest*
1781 if test -n "$ac_declaration"; then
1782   echo '#ifdef __cplusplus' >>confdefs.h
1783   echo $ac_declaration      >>confdefs.h
1784   echo '#endif'             >>confdefs.h
1785 fi
1786
1787 else
1788   echo "$as_me: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1790 fi
1791 rm -f conftest.$ac_objext conftest.$ac_ext
1792 ac_ext=c
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797
1798 ac_ext=c
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 echo "$as_me:1803: checking how to run the C preprocessor" >&5
1804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1805 # On Suns, sometimes $CPP names a directory.
1806 if test -n "$CPP" && test -d "$CPP"; then
1807   CPP=
1808 fi
1809 if test -z "$CPP"; then
1810   if test "${ac_cv_prog_CPP+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813       # Double quotes because CPP needs to be expanded
1814     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1815     do
1816       ac_preproc_ok=false
1817 for ac_c_preproc_warn_flag in '' yes
1818 do
1819   # Use a header file that comes with gcc, so configuring glibc
1820   # with a fresh cross-compiler works.
1821   # On the NeXT, cc -E runs the code through the compiler's parser,
1822   # not just through cpp. "Syntax error" is here to catch this case.
1823   cat >conftest.$ac_ext <<_ACEOF
1824 #line 1824 "configure"
1825 #include "confdefs.h"
1826 #include <assert.h>
1827                      Syntax error
1828 _ACEOF
1829 if { (eval echo "$as_me:1829: \"$ac_cpp conftest.$ac_ext\"") >&5
1830   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1831   ac_status=$?
1832   egrep -v '^ *\+' conftest.er1 >conftest.err
1833   rm -f conftest.er1
1834   cat conftest.err >&5
1835   echo "$as_me:1835: \$? = $ac_status" >&5
1836   (exit $ac_status); } >/dev/null; then
1837   if test -s conftest.err; then
1838     ac_cpp_err=$ac_c_preproc_warn_flag
1839   else
1840     ac_cpp_err=
1841   fi
1842 else
1843   ac_cpp_err=yes
1844 fi
1845 if test -z "$ac_cpp_err"; then
1846   :
1847 else
1848   echo "$as_me: failed program was:" >&5
1849   cat conftest.$ac_ext >&5
1850   # Broken: fails on valid input.
1851 continue
1852 fi
1853 rm -f conftest.err conftest.$ac_ext
1854
1855   # OK, works on sane cases.  Now check whether non-existent headers
1856   # can be detected and how.
1857   cat >conftest.$ac_ext <<_ACEOF
1858 #line 1858 "configure"
1859 #include "confdefs.h"
1860 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
1880 continue
1881 else
1882   echo "$as_me: failed program was:" >&5
1883   cat conftest.$ac_ext >&5
1884   # Passes both tests.
1885 ac_preproc_ok=:
1886 break
1887 fi
1888 rm -f conftest.err conftest.$ac_ext
1889
1890 done
1891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1892 rm -f conftest.err conftest.$ac_ext
1893 if $ac_preproc_ok; then
1894   break
1895 fi
1896
1897     done
1898     ac_cv_prog_CPP=$CPP
1899
1900 fi
1901   CPP=$ac_cv_prog_CPP
1902 else
1903   ac_cv_prog_CPP=$CPP
1904 fi
1905 echo "$as_me:1905: result: $CPP" >&5
1906 echo "${ECHO_T}$CPP" >&6
1907 ac_preproc_ok=false
1908 for ac_c_preproc_warn_flag in '' yes
1909 do
1910   # Use a header file that comes with gcc, so configuring glibc
1911   # with a fresh cross-compiler works.
1912   # On the NeXT, cc -E runs the code through the compiler's parser,
1913   # not just through cpp. "Syntax error" is here to catch this case.
1914   cat >conftest.$ac_ext <<_ACEOF
1915 #line 1915 "configure"
1916 #include "confdefs.h"
1917 #include <assert.h>
1918                      Syntax error
1919 _ACEOF
1920 if { (eval echo "$as_me:1920: \"$ac_cpp conftest.$ac_ext\"") >&5
1921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1922   ac_status=$?
1923   egrep -v '^ *\+' conftest.er1 >conftest.err
1924   rm -f conftest.er1
1925   cat conftest.err >&5
1926   echo "$as_me:1926: \$? = $ac_status" >&5
1927   (exit $ac_status); } >/dev/null; then
1928   if test -s conftest.err; then
1929     ac_cpp_err=$ac_c_preproc_warn_flag
1930   else
1931     ac_cpp_err=
1932   fi
1933 else
1934   ac_cpp_err=yes
1935 fi
1936 if test -z "$ac_cpp_err"; then
1937   :
1938 else
1939   echo "$as_me: failed program was:" >&5
1940   cat conftest.$ac_ext >&5
1941   # Broken: fails on valid input.
1942 continue
1943 fi
1944 rm -f conftest.err conftest.$ac_ext
1945
1946   # OK, works on sane cases.  Now check whether non-existent headers
1947   # can be detected and how.
1948   cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1951 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
1971 continue
1972 else
1973   echo "$as_me: failed program was:" >&5
1974   cat conftest.$ac_ext >&5
1975   # Passes both tests.
1976 ac_preproc_ok=:
1977 break
1978 fi
1979 rm -f conftest.err conftest.$ac_ext
1980
1981 done
1982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1983 rm -f conftest.err conftest.$ac_ext
1984 if $ac_preproc_ok; then
1985   :
1986 else
1987   { { echo "$as_me:1987: error: C preprocessor \"$CPP\" fails sanity check" >&5
1988 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998 # Extract the first word of "gdb", so it can be a program name with args.
1999 set dummy gdb; ac_word=$2
2000 echo "$as_me:2000: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_GDB+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$GDB"; then
2006   ac_cv_prog_GDB="$GDB" # Let the user override the test.
2007 else
2008   ac_save_IFS=$IFS; IFS=$ac_path_separator
2009 ac_dummy="$PATH"
2010 for ac_dir in $ac_dummy; do
2011   IFS=$ac_save_IFS
2012   test -z "$ac_dir" && ac_dir=.
2013   $as_executable_p "$ac_dir/$ac_word" || continue
2014 ac_cv_prog_GDB="yes"
2015 echo "$as_me:2015: found $ac_dir/$ac_word" >&5
2016 break
2017 done
2018
2019   test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
2020 fi
2021 fi
2022 GDB=$ac_cv_prog_GDB
2023 if test -n "$GDB"; then
2024   echo "$as_me:2024: result: $GDB" >&5
2025 echo "${ECHO_T}$GDB" >&6
2026 else
2027   echo "$as_me:2027: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031 # Check whether --with-debug or --without-debug was given.
2032 if test "${with_debug+set}" = set; then
2033   withval="$with_debug"
2034
2035                 if test "x$withval" != "$xno" ; then
2036                     if test $ac_cv_prog_cc_g = yes; then
2037                       if test "$GCC" = yes; then
2038                         if test "$GDB"; then
2039                           CFLAGS="-ggdb"
2040                         else
2041                           CFLAGS="-g"
2042                         fi
2043                         CFLAGS="$CFLAGS -Wshadow  -Wconversion"
2044                       else
2045                         CFLAGS="-g"
2046                       fi
2047                    fi
2048                    CFLAGS="$CFLAGS -D_DEBUG"
2049                 fi
2050
2051 else
2052
2053             if test "$GCC" = yes; then
2054               CFLAGS="-O2"
2055             else
2056               CFLAGS=
2057             fi
2058
2059 fi;
2060
2061 if test "$GCC"; then
2062   CFLAGS="-pipe $CFLAGS"
2063 fi
2064
2065 case $host_os in
2066   *mingw32* ) MINGW32=yes;;
2067           * ) MINGW32=no;;
2068 esac
2069
2070 case $host_os in
2071   *cygwin* ) CYGWIN=yes;;
2072          * ) CYGWIN=no;;
2073 esac
2074
2075 if test "$MINGW32" = "yes"; then
2076   target_type=mingw
2077 else
2078   if test "$CYGWIN" = "yes"; then
2079     target_type=cygwin
2080   else
2081     target_type=unix
2082   fi
2083 fi
2084
2085 # Check whether --enable-mingw32 or --disable-mingw32 was given.
2086 if test "${enable_mingw32+set}" = set; then
2087   enableval="$enable_mingw32"
2088   if test $enableval = yes; then
2089   target_type=mingw
2090 fi
2091 fi;
2092
2093 if test $target_type = mingw; then
2094   WIN_ONLY=
2095   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
2096   PTHREAD_LIB=-lpthreadGC
2097   echo "Using mingw32 (Win32 GUI)"
2098 else
2099   WIN_ONLY=#
2100   if test $target_type = cygwin; then
2101     SPECIAL_CFLAGS="-mno-win32"
2102     PTHREAD_LIB=
2103     echo "Using Cygnus (Win32 command line)"
2104   else
2105     SPECIAL_CFLAGS=
2106     PTHREAD_LIB=-lpthread
2107   fi
2108 fi
2109
2110 old_CFLAGS_nospecial=$CFLAGS
2111 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
2112
2113 # Hack to force AutoConf to use the CFLAGS we just set
2114 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
2115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2117
2118 echo "$as_me:2118: checking for pthread.h" >&5
2119 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
2120 if test "${ac_cv_header_pthread_h+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   cat >conftest.$ac_ext <<_ACEOF
2124 #line 2124 "configure"
2125 #include "confdefs.h"
2126 #include <pthread.h>
2127 _ACEOF
2128 if { (eval echo "$as_me:2128: \"$ac_cpp conftest.$ac_ext\"") >&5
2129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2130   ac_status=$?
2131   egrep -v '^ *\+' conftest.er1 >conftest.err
2132   rm -f conftest.er1
2133   cat conftest.err >&5
2134   echo "$as_me:2134: \$? = $ac_status" >&5
2135   (exit $ac_status); } >/dev/null; then
2136   if test -s conftest.err; then
2137     ac_cpp_err=$ac_c_preproc_warn_flag
2138   else
2139     ac_cpp_err=
2140   fi
2141 else
2142   ac_cpp_err=yes
2143 fi
2144 if test -z "$ac_cpp_err"; then
2145   ac_cv_header_pthread_h=yes
2146 else
2147   echo "$as_me: failed program was:" >&5
2148   cat conftest.$ac_ext >&5
2149   ac_cv_header_pthread_h=no
2150 fi
2151 rm -f conftest.err conftest.$ac_ext
2152 fi
2153 echo "$as_me:2153: result: $ac_cv_header_pthread_h" >&5
2154 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
2155 if test $ac_cv_header_pthread_h = yes; then
2156   have_pthread=yes
2157 else
2158   have_pthread=no
2159 fi
2160
2161 # Check whether --enable-pthread or --disable-pthread was given.
2162 if test "${enable_pthread+set}" = set; then
2163   enableval="$enable_pthread"
2164   if test $enableval = no; then
2165   # Disable pthreads
2166   have_pthread=no
2167 fi
2168 fi;
2169
2170 if test $have_pthread = yes; then
2171   PTHREAD_ONLY=
2172   cat >>confdefs.h <<\EOF
2173 #define FEATURE_PTHREAD 1
2174 EOF
2175
2176   echo Using POSIX threads
2177   if test "$GCC" = "yes"; then
2178     # Set a GCC specific switch:
2179     if test "$target_type" = "unix"; then
2180       # This compiler switch makes Linux thread-safe
2181       # Don't know about other OS's?  Is this switch
2182       # supported?
2183       PTHREAD_LIB=
2184       SPECIAL_CFLAGS="-pthread"
2185     fi
2186   fi
2187 else
2188   PTHREAD_ONLY=#
2189   echo Using native threads
2190 fi
2191
2192 SOCKET_LIB=
2193
2194 case "$host" in
2195 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
2196             cat >>confdefs.h <<\EOF
2197 #define __EXTENSIONS__ 1
2198 EOF
2199
2200             if test "$GCC" = "yes"; then
2201               # Set a GCC specific switch:
2202               # This compiler switch makes Solaris thread-safe
2203               PTHREAD_LIB=
2204               SPECIAL_CFLAGS="-pthreads"
2205             else
2206               # What do we do without GCC? Guess this:
2207               SPECIAL_CFLAGS="-D_REENTRANT"
2208             fi
2209 ;;
2210 esac
2211
2212 case "$host" in
2213 *-os2-emx*) SOCKET_LIB=-lsocket
2214 ;;
2215 esac
2216
2217 AMIGAOS_ONLY=#
2218
2219 case "$host" in
2220 *-amigaos) AMIGAOS_ONLY=
2221 ;;
2222 esac
2223
2224 echo "$as_me:2224: checking for ANSI C header files" >&5
2225 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2226 if test "${ac_cv_header_stdc+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   cat >conftest.$ac_ext <<_ACEOF
2230 #line 2230 "configure"
2231 #include "confdefs.h"
2232 #include <stdlib.h>
2233 #include <stdarg.h>
2234 #include <string.h>
2235 #include <float.h>
2236
2237 _ACEOF
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2240   ac_status=$?
2241   egrep -v '^ *\+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:2244: \$? = $ac_status" >&5
2245   (exit $ac_status); } >/dev/null; then
2246   if test -s conftest.err; then
2247     ac_cpp_err=$ac_c_preproc_warn_flag
2248   else
2249     ac_cpp_err=
2250   fi
2251 else
2252   ac_cpp_err=yes
2253 fi
2254 if test -z "$ac_cpp_err"; then
2255   ac_cv_header_stdc=yes
2256 else
2257   echo "$as_me: failed program was:" >&5
2258   cat conftest.$ac_ext >&5
2259   ac_cv_header_stdc=no
2260 fi
2261 rm -f conftest.err conftest.$ac_ext
2262
2263 if test $ac_cv_header_stdc = yes; then
2264   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2265   cat >conftest.$ac_ext <<_ACEOF
2266 #line 2266 "configure"
2267 #include "confdefs.h"
2268 #include <string.h>
2269
2270 _ACEOF
2271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2272   egrep "memchr" >/dev/null 2>&1; then
2273   :
2274 else
2275   ac_cv_header_stdc=no
2276 fi
2277 rm -f conftest*
2278
2279 fi
2280
2281 if test $ac_cv_header_stdc = yes; then
2282   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2283   cat >conftest.$ac_ext <<_ACEOF
2284 #line 2284 "configure"
2285 #include "confdefs.h"
2286 #include <stdlib.h>
2287
2288 _ACEOF
2289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2290   egrep "free" >/dev/null 2>&1; then
2291   :
2292 else
2293   ac_cv_header_stdc=no
2294 fi
2295 rm -f conftest*
2296
2297 fi
2298
2299 if test $ac_cv_header_stdc = yes; then
2300   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2301   if test "$cross_compiling" = yes; then
2302   :
2303 else
2304   cat >conftest.$ac_ext <<_ACEOF
2305 #line 2305 "configure"
2306 #include "confdefs.h"
2307 #include <ctype.h>
2308 #if ((' ' & 0x0FF) == 0x020)
2309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2311 #else
2312 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2313                      || ('j' <= (c) && (c) <= 'r') \
2314                      || ('s' <= (c) && (c) <= 'z'))
2315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2316 #endif
2317
2318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2319 int
2320 main ()
2321 {
2322   int i;
2323   for (i = 0; i < 256; i++)
2324     if (XOR (islower (i), ISLOWER (i))
2325         || toupper (i) != TOUPPER (i))
2326       exit(2);
2327   exit (0);
2328 }
2329 _ACEOF
2330 rm -f conftest$ac_exeext
2331 if { (eval echo "$as_me:2331: \"$ac_link\"") >&5
2332   (eval $ac_link) 2>&5
2333   ac_status=$?
2334   echo "$as_me:2334: \$? = $ac_status" >&5
2335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2336   { (eval echo "$as_me:2336: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:2339: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341   :
2342 else
2343   echo "$as_me: program exited with status $ac_status" >&5
2344 echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 ac_cv_header_stdc=no
2347 fi
2348 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 fi
2351 fi
2352 echo "$as_me:2352: result: $ac_cv_header_stdc" >&5
2353 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2354 if test $ac_cv_header_stdc = yes; then
2355
2356 cat >>confdefs.h <<\EOF
2357 #define STDC_HEADERS 1
2358 EOF
2359
2360 fi
2361
2362 echo "$as_me:2362: checking for $CC option to accept ANSI C" >&5
2363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   ac_cv_prog_cc_stdc=no
2368 ac_save_CC=$CC
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line 2370 "configure"
2371 #include "confdefs.h"
2372 #include <stdarg.h>
2373 #include <stdio.h>
2374 #include <sys/types.h>
2375 #include <sys/stat.h>
2376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2377 struct buf { int x; };
2378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2379 static char *e (p, i)
2380      char **p;
2381      int i;
2382 {
2383   return p[i];
2384 }
2385 static char *f (char * (*g) (char **, int), char **p, ...)
2386 {
2387   char *s;
2388   va_list v;
2389   va_start (v,p);
2390   s = g (p, va_arg (v,int));
2391   va_end (v);
2392   return s;
2393 }
2394 int test (int i, double x);
2395 struct s1 {int (*f) (int a);};
2396 struct s2 {int (*f) (double a);};
2397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2398 int argc;
2399 char **argv;
2400 int
2401 main ()
2402 {
2403 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 # Don't try gcc -ansi; that turns off useful extensions and
2409 # breaks some systems' header files.
2410 # AIX                   -qlanglvl=ansi
2411 # Ultrix and OSF/1      -std1
2412 # HP-UX 10.20 and later -Ae
2413 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2414 # SVR4                  -Xc -D__EXTENSIONS__
2415 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2416 do
2417   CC="$ac_save_CC $ac_arg"
2418   rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:2419: \"$ac_compile\"") >&5
2420   (eval $ac_compile) 2>&5
2421   ac_status=$?
2422   echo "$as_me:2422: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -s conftest.$ac_objext'
2425   { (eval echo "$as_me:2425: \"$ac_try\"") >&5
2426   (eval $ac_try) 2>&5
2427   ac_status=$?
2428   echo "$as_me:2428: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430   ac_cv_prog_cc_stdc=$ac_arg
2431 break
2432 else
2433   echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 fi
2436 rm -f conftest.$ac_objext
2437 done
2438 rm -f conftest.$ac_ext conftest.$ac_objext
2439 CC=$ac_save_CC
2440
2441 fi
2442
2443 case "x$ac_cv_prog_cc_stdc" in
2444   x|xno)
2445     echo "$as_me:2445: result: none needed" >&5
2446 echo "${ECHO_T}none needed" >&6 ;;
2447   *)
2448     echo "$as_me:2448: result: $ac_cv_prog_cc_stdc" >&5
2449 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2450     CC="$CC $ac_cv_prog_cc_stdc" ;;
2451 esac
2452
2453 echo "$as_me:2453: checking for an ANSI C-conforming const" >&5
2454 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2455 if test "${ac_cv_c_const+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line 2459 "configure"
2460 #include "confdefs.h"
2461
2462 int
2463 main ()
2464 {
2465 /* FIXME: Include the comments suggested by Paul. */
2466 #ifndef __cplusplus
2467   /* Ultrix mips cc rejects this.  */
2468   typedef int charset[2];
2469   const charset x;
2470   /* SunOS 4.1.1 cc rejects this.  */
2471   char const *const *ccp;
2472   char **p;
2473   /* NEC SVR4.0.2 mips cc rejects this.  */
2474   struct point {int x, y;};
2475   static struct point const zero = {0,0};
2476   /* AIX XL C 1.02.0.0 rejects this.
2477      It does not let you subtract one const X* pointer from another in
2478      an arm of an if-expression whose if-part is not a constant
2479      expression */
2480   const char *g = "string";
2481   ccp = &g + (g ? g-g : 0);
2482   /* HPUX 7.0 cc rejects these. */
2483   ++ccp;
2484   p = (char**) ccp;
2485   ccp = (char const *const *) p;
2486   { /* SCO 3.2v4 cc rejects this.  */
2487     char *t;
2488     char const *s = 0 ? (char *) 0 : (char const *) 0;
2489
2490     *t++ = 0;
2491   }
2492   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2493     int x[] = {25, 17};
2494     const int *foo = &x[0];
2495     ++foo;
2496   }
2497   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2498     typedef const int *iptr;
2499     iptr p = 0;
2500     ++p;
2501   }
2502   { /* AIX XL C 1.02.0.0 rejects this saying
2503        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2504     struct s { int j; const int *ap[3]; };
2505     struct s *b; b->j = 5;
2506   }
2507   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2508     const int foo = 10;
2509   }
2510 #endif
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:2517: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>&5
2519   ac_status=$?
2520   echo "$as_me:2520: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest.$ac_objext'
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_c_const=yes
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 ac_cv_c_const=no
2533 fi
2534 rm -f conftest.$ac_objext conftest.$ac_ext
2535 fi
2536 echo "$as_me:2536: result: $ac_cv_c_const" >&5
2537 echo "${ECHO_T}$ac_cv_c_const" >&6
2538 if test $ac_cv_c_const = no; then
2539
2540 cat >>confdefs.h <<\EOF
2541 #define const
2542 EOF
2543
2544 fi
2545
2546 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2547
2548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2549                   inttypes.h stdint.h unistd.h
2550 do
2551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2552 echo "$as_me:2552: checking for $ac_header" >&5
2553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 #line 2558 "configure"
2559 #include "confdefs.h"
2560 $ac_includes_default
2561 #include <$ac_header>
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:2564: \"$ac_compile\"") >&5
2565   (eval $ac_compile) 2>&5
2566   ac_status=$?
2567   echo "$as_me:2567: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:2570: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:2573: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   eval "$as_ac_Header=yes"
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 eval "$as_ac_Header=no"
2580 fi
2581 rm -f conftest.$ac_objext conftest.$ac_ext
2582 fi
2583 echo "$as_me:2583: result: `eval echo '${'$as_ac_Header'}'`" >&5
2584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2586   cat >>confdefs.h <<EOF
2587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2588 EOF
2589
2590 fi
2591 done
2592
2593 echo "$as_me:2593: checking for size_t" >&5
2594 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2595 if test "${ac_cv_type_size_t+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 #line 2599 "configure"
2600 #include "confdefs.h"
2601 $ac_includes_default
2602 int
2603 main ()
2604 {
2605 if ((size_t *) 0)
2606   return 0;
2607 if (sizeof (size_t))
2608   return 0;
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:2614: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>&5
2616   ac_status=$?
2617   echo "$as_me:2617: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (eval echo "$as_me:2620: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:2623: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_type_size_t=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 ac_cv_type_size_t=no
2630 fi
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2632 fi
2633 echo "$as_me:2633: result: $ac_cv_type_size_t" >&5
2634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2635 if test $ac_cv_type_size_t = yes; then
2636   :
2637 else
2638
2639 cat >>confdefs.h <<EOF
2640 #define size_t unsigned
2641 EOF
2642
2643 fi
2644
2645 echo "$as_me:2645: checking for int" >&5
2646 echo $ECHO_N "checking for int... $ECHO_C" >&6
2647 if test "${ac_cv_type_int+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 #line 2651 "configure"
2652 #include "confdefs.h"
2653 $ac_includes_default
2654 int
2655 main ()
2656 {
2657 if ((int *) 0)
2658   return 0;
2659 if (sizeof (int))
2660   return 0;
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:2666: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>&5
2668   ac_status=$?
2669   echo "$as_me:2669: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:2672: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:2675: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_type_int=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 ac_cv_type_int=no
2682 fi
2683 rm -f conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 echo "$as_me:2685: result: $ac_cv_type_int" >&5
2686 echo "${ECHO_T}$ac_cv_type_int" >&6
2687
2688 echo "$as_me:2688: checking size of int" >&5
2689 echo $ECHO_N "checking size of int... $ECHO_C" >&6
2690 if test "${ac_cv_sizeof_int+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   if test "$ac_cv_type_int" = yes; then
2694   if test "$cross_compiling" = yes; then
2695   # Depending upon the size, compute the lo and hi bounds.
2696 cat >conftest.$ac_ext <<_ACEOF
2697 #line 2697 "configure"
2698 #include "confdefs.h"
2699 $ac_includes_default
2700 int
2701 main ()
2702 {
2703 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:2709: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>&5
2711   ac_status=$?
2712   echo "$as_me:2712: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (eval echo "$as_me:2715: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:2718: \$? = $ac_status" >&5
2719   (exit $ac_status); }; }; then
2720   ac_lo=0 ac_mid=0
2721   while :; do
2722     cat >conftest.$ac_ext <<_ACEOF
2723 #line 2723 "configure"
2724 #include "confdefs.h"
2725 $ac_includes_default
2726 int
2727 main ()
2728 {
2729 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:2735: \"$ac_compile\"") >&5
2736   (eval $ac_compile) 2>&5
2737   ac_status=$?
2738   echo "$as_me:2738: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -s conftest.$ac_objext'
2741   { (eval echo "$as_me:2741: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:2744: \$? = $ac_status" >&5
2745   (exit $ac_status); }; }; then
2746   ac_hi=$ac_mid; break
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2750 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2751 fi
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2753   done
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 ac_hi=-1 ac_mid=-1
2758   while :; do
2759     cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2762 $ac_includes_default
2763 int
2764 main ()
2765 {
2766 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5
2773   (eval $ac_compile) 2>&5
2774   ac_status=$?
2775   echo "$as_me:2775: \$? = $ac_status" >&5
2776   (exit $ac_status); } &&
2777          { ac_try='test -s conftest.$ac_objext'
2778   { (eval echo "$as_me:2778: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:2781: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   ac_lo=$ac_mid; break
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
2788 fi
2789 rm -f conftest.$ac_objext conftest.$ac_ext
2790   done
2791 fi
2792 rm -f conftest.$ac_objext conftest.$ac_ext
2793 # Binary search between lo and hi bounds.
2794 while test "x$ac_lo" != "x$ac_hi"; do
2795   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2796   cat >conftest.$ac_ext <<_ACEOF
2797 #line 2797 "configure"
2798 #include "confdefs.h"
2799 $ac_includes_default
2800 int
2801 main ()
2802 {
2803 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:2809: \"$ac_compile\"") >&5
2810   (eval $ac_compile) 2>&5
2811   ac_status=$?
2812   echo "$as_me:2812: \$? = $ac_status" >&5
2813   (exit $ac_status); } &&
2814          { ac_try='test -s conftest.$ac_objext'
2815   { (eval echo "$as_me:2815: \"$ac_try\"") >&5
2816   (eval $ac_try) 2>&5
2817   ac_status=$?
2818   echo "$as_me:2818: \$? = $ac_status" >&5
2819   (exit $ac_status); }; }; then
2820   ac_hi=$ac_mid
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 ac_lo=`expr $ac_mid + 1`
2825 fi
2826 rm -f conftest.$ac_objext conftest.$ac_ext
2827 done
2828 ac_cv_sizeof_int=$ac_lo
2829 else
2830   if test "$cross_compiling" = yes; then
2831   { { echo "$as_me:2831: error: cannot run test program while cross compiling" >&5
2832 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2833    { (exit 1); exit 1; }; }
2834 else
2835   cat >conftest.$ac_ext <<_ACEOF
2836 #line 2836 "configure"
2837 #include "confdefs.h"
2838 $ac_includes_default
2839 int
2840 main ()
2841 {
2842 FILE *f = fopen ("conftest.val", "w");
2843 if (!f)
2844   exit (1);
2845 fprintf (f, "%d", (sizeof (int)));
2846 fclose (f);
2847   ;
2848   return 0;
2849 }
2850 _ACEOF
2851 rm -f conftest$ac_exeext
2852 if { (eval echo "$as_me:2852: \"$ac_link\"") >&5
2853   (eval $ac_link) 2>&5
2854   ac_status=$?
2855   echo "$as_me:2855: \$? = $ac_status" >&5
2856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2857   { (eval echo "$as_me:2857: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:2860: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862   ac_cv_sizeof_int=`cat conftest.val`
2863 else
2864   echo "$as_me: program exited with status $ac_status" >&5
2865 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 fi
2868 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2869 fi
2870 fi
2871 rm -f conftest.val
2872 else
2873   ac_cv_sizeof_int=0
2874 fi
2875 fi
2876 echo "$as_me:2876: result: $ac_cv_sizeof_int" >&5
2877 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
2878 cat >>confdefs.h <<EOF
2879 #define SIZEOF_INT $ac_cv_sizeof_int
2880 EOF
2881
2882 echo "$as_me:2882: checking for char *" >&5
2883 echo $ECHO_N "checking for char *... $ECHO_C" >&6
2884 if test "${ac_cv_type_char_p+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   cat >conftest.$ac_ext <<_ACEOF
2888 #line 2888 "configure"
2889 #include "confdefs.h"
2890 $ac_includes_default
2891 int
2892 main ()
2893 {
2894 if ((char * *) 0)
2895   return 0;
2896 if (sizeof (char *))
2897   return 0;
2898   ;
2899   return 0;
2900 }
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (eval echo "$as_me:2903: \"$ac_compile\"") >&5
2904   (eval $ac_compile) 2>&5
2905   ac_status=$?
2906   echo "$as_me:2906: \$? = $ac_status" >&5
2907   (exit $ac_status); } &&
2908          { ac_try='test -s conftest.$ac_objext'
2909   { (eval echo "$as_me:2909: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:2912: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   ac_cv_type_char_p=yes
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 ac_cv_type_char_p=no
2919 fi
2920 rm -f conftest.$ac_objext conftest.$ac_ext
2921 fi
2922 echo "$as_me:2922: result: $ac_cv_type_char_p" >&5
2923 echo "${ECHO_T}$ac_cv_type_char_p" >&6
2924
2925 echo "$as_me:2925: checking size of char *" >&5
2926 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
2927 if test "${ac_cv_sizeof_char_p+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   if test "$ac_cv_type_char_p" = yes; then
2931   if test "$cross_compiling" = yes; then
2932   # Depending upon the size, compute the lo and hi bounds.
2933 cat >conftest.$ac_ext <<_ACEOF
2934 #line 2934 "configure"
2935 #include "confdefs.h"
2936 $ac_includes_default
2937 int
2938 main ()
2939 {
2940 int _array_ [1 - 2 * !((sizeof (char *)) >= 0)]
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:2946: \"$ac_compile\"") >&5
2947   (eval $ac_compile) 2>&5
2948   ac_status=$?
2949   echo "$as_me:2949: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -s conftest.$ac_objext'
2952   { (eval echo "$as_me:2952: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:2955: \$? = $ac_status" >&5
2956   (exit $ac_status); }; }; then
2957   ac_lo=0 ac_mid=0
2958   while :; do
2959     cat >conftest.$ac_ext <<_ACEOF
2960 #line 2960 "configure"
2961 #include "confdefs.h"
2962 $ac_includes_default
2963 int
2964 main ()
2965 {
2966 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:2972: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>&5
2974   ac_status=$?
2975   echo "$as_me:2975: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (eval echo "$as_me:2978: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:2981: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   ac_hi=$ac_mid; break
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2987 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
2988 fi
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2990   done
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2994 ac_hi=-1 ac_mid=-1
2995   while :; do
2996     cat >conftest.$ac_ext <<_ACEOF
2997 #line 2997 "configure"
2998 #include "confdefs.h"
2999 $ac_includes_default
3000 int
3001 main ()
3002 {
3003 int _array_ [1 - 2 * !((sizeof (char *)) >= $ac_mid)]
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5
3010   (eval $ac_compile) 2>&5
3011   ac_status=$?
3012   echo "$as_me:3012: \$? = $ac_status" >&5
3013   (exit $ac_status); } &&
3014          { ac_try='test -s conftest.$ac_objext'
3015   { (eval echo "$as_me:3015: \"$ac_try\"") >&5
3016   (eval $ac_try) 2>&5
3017   ac_status=$?
3018   echo "$as_me:3018: \$? = $ac_status" >&5
3019   (exit $ac_status); }; }; then
3020   ac_lo=$ac_mid; break
3021 else
3022   echo "$as_me: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3025 fi
3026 rm -f conftest.$ac_objext conftest.$ac_ext
3027   done
3028 fi
3029 rm -f conftest.$ac_objext conftest.$ac_ext
3030 # Binary search between lo and hi bounds.
3031 while test "x$ac_lo" != "x$ac_hi"; do
3032   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3033   cat >conftest.$ac_ext <<_ACEOF
3034 #line 3034 "configure"
3035 #include "confdefs.h"
3036 $ac_includes_default
3037 int
3038 main ()
3039 {
3040 int _array_ [1 - 2 * !((sizeof (char *)) <= $ac_mid)]
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:3046: \"$ac_compile\"") >&5
3047   (eval $ac_compile) 2>&5
3048   ac_status=$?
3049   echo "$as_me:3049: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (eval echo "$as_me:3052: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:3055: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057   ac_hi=$ac_mid
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 cat conftest.$ac_ext >&5
3061 ac_lo=`expr $ac_mid + 1`
3062 fi
3063 rm -f conftest.$ac_objext conftest.$ac_ext
3064 done
3065 ac_cv_sizeof_char_p=$ac_lo
3066 else
3067   if test "$cross_compiling" = yes; then
3068   { { echo "$as_me:3068: error: cannot run test program while cross compiling" >&5
3069 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3070    { (exit 1); exit 1; }; }
3071 else
3072   cat >conftest.$ac_ext <<_ACEOF
3073 #line 3073 "configure"
3074 #include "confdefs.h"
3075 $ac_includes_default
3076 int
3077 main ()
3078 {
3079 FILE *f = fopen ("conftest.val", "w");
3080 if (!f)
3081   exit (1);
3082 fprintf (f, "%d", (sizeof (char *)));
3083 fclose (f);
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest$ac_exeext
3089 if { (eval echo "$as_me:3089: \"$ac_link\"") >&5
3090   (eval $ac_link) 2>&5
3091   ac_status=$?
3092   echo "$as_me:3092: \$? = $ac_status" >&5
3093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3094   { (eval echo "$as_me:3094: \"$ac_try\"") >&5
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
3097   echo "$as_me:3097: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099   ac_cv_sizeof_char_p=`cat conftest.val`
3100 else
3101   echo "$as_me: program exited with status $ac_status" >&5
3102 echo "$as_me: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 fi
3105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3106 fi
3107 fi
3108 rm -f conftest.val
3109 else
3110   ac_cv_sizeof_char_p=0
3111 fi
3112 fi
3113 echo "$as_me:3113: result: $ac_cv_sizeof_char_p" >&5
3114 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
3115 cat >>confdefs.h <<EOF
3116 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
3117 EOF
3118
3119 echo "$as_me:3119: checking for long" >&5
3120 echo $ECHO_N "checking for long... $ECHO_C" >&6
3121 if test "${ac_cv_type_long+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   cat >conftest.$ac_ext <<_ACEOF
3125 #line 3125 "configure"
3126 #include "confdefs.h"
3127 $ac_includes_default
3128 int
3129 main ()
3130 {
3131 if ((long *) 0)
3132   return 0;
3133 if (sizeof (long))
3134   return 0;
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5
3141   (eval $ac_compile) 2>&5
3142   ac_status=$?
3143   echo "$as_me:3143: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (eval echo "$as_me:3146: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:3149: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   ac_cv_type_long=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 ac_cv_type_long=no
3156 fi
3157 rm -f conftest.$ac_objext conftest.$ac_ext
3158 fi
3159 echo "$as_me:3159: result: $ac_cv_type_long" >&5
3160 echo "${ECHO_T}$ac_cv_type_long" >&6
3161
3162 echo "$as_me:3162: checking size of long" >&5
3163 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3164 if test "${ac_cv_sizeof_long+set}" = set; then
3165   echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167   if test "$ac_cv_type_long" = yes; then
3168   if test "$cross_compiling" = yes; then
3169   # Depending upon the size, compute the lo and hi bounds.
3170 cat >conftest.$ac_ext <<_ACEOF
3171 #line 3171 "configure"
3172 #include "confdefs.h"
3173 $ac_includes_default
3174 int
3175 main ()
3176 {
3177 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (eval echo "$as_me:3183: \"$ac_compile\"") >&5
3184   (eval $ac_compile) 2>&5
3185   ac_status=$?
3186   echo "$as_me:3186: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -s conftest.$ac_objext'
3189   { (eval echo "$as_me:3189: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:3192: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   ac_lo=0 ac_mid=0
3195   while :; do
3196     cat >conftest.$ac_ext <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3199 $ac_includes_default
3200 int
3201 main ()
3202 {
3203 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:3209: \"$ac_compile\"") >&5
3210   (eval $ac_compile) 2>&5
3211   ac_status=$?
3212   echo "$as_me:3212: \$? = $ac_status" >&5
3213   (exit $ac_status); } &&
3214          { ac_try='test -s conftest.$ac_objext'
3215   { (eval echo "$as_me:3215: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:3218: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   ac_hi=$ac_mid; break
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3225 fi
3226 rm -f conftest.$ac_objext conftest.$ac_ext
3227   done
3228 else
3229   echo "$as_me: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3231 ac_hi=-1 ac_mid=-1
3232   while :; do
3233     cat >conftest.$ac_ext <<_ACEOF
3234 #line 3234 "configure"
3235 #include "confdefs.h"
3236 $ac_includes_default
3237 int
3238 main ()
3239 {
3240 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:3246: \"$ac_compile\"") >&5
3247   (eval $ac_compile) 2>&5
3248   ac_status=$?
3249   echo "$as_me:3249: \$? = $ac_status" >&5
3250   (exit $ac_status); } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (eval echo "$as_me:3252: \"$ac_try\"") >&5
3253   (eval $ac_try) 2>&5
3254   ac_status=$?
3255   echo "$as_me:3255: \$? = $ac_status" >&5
3256   (exit $ac_status); }; }; then
3257   ac_lo=$ac_mid; break
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3262 fi
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3264   done
3265 fi
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3267 # Binary search between lo and hi bounds.
3268 while test "x$ac_lo" != "x$ac_hi"; do
3269   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3270   cat >conftest.$ac_ext <<_ACEOF
3271 #line 3271 "configure"
3272 #include "confdefs.h"
3273 $ac_includes_default
3274 int
3275 main ()
3276 {
3277 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:3283: \"$ac_compile\"") >&5
3284   (eval $ac_compile) 2>&5
3285   ac_status=$?
3286   echo "$as_me:3286: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -s conftest.$ac_objext'
3289   { (eval echo "$as_me:3289: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:3292: \$? = $ac_status" >&5
3293   (exit $ac_status); }; }; then
3294   ac_hi=$ac_mid
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3298 ac_lo=`expr $ac_mid + 1`
3299 fi
3300 rm -f conftest.$ac_objext conftest.$ac_ext
3301 done
3302 ac_cv_sizeof_long=$ac_lo
3303 else
3304   if test "$cross_compiling" = yes; then
3305   { { echo "$as_me:3305: error: cannot run test program while cross compiling" >&5
3306 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3307    { (exit 1); exit 1; }; }
3308 else
3309   cat >conftest.$ac_ext <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3312 $ac_includes_default
3313 int
3314 main ()
3315 {
3316 FILE *f = fopen ("conftest.val", "w");
3317 if (!f)
3318   exit (1);
3319 fprintf (f, "%d", (sizeof (long)));
3320 fclose (f);
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest$ac_exeext
3326 if { (eval echo "$as_me:3326: \"$ac_link\"") >&5
3327   (eval $ac_link) 2>&5
3328   ac_status=$?
3329   echo "$as_me:3329: \$? = $ac_status" >&5
3330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3331   { (eval echo "$as_me:3331: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:3334: \$? = $ac_status" >&5
3335   (exit $ac_status); }; }; then
3336   ac_cv_sizeof_long=`cat conftest.val`
3337 else
3338   echo "$as_me: program exited with status $ac_status" >&5
3339 echo "$as_me: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3341 fi
3342 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 fi
3345 rm -f conftest.val
3346 else
3347   ac_cv_sizeof_long=0
3348 fi
3349 fi
3350 echo "$as_me:3350: result: $ac_cv_sizeof_long" >&5
3351 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3352 cat >>confdefs.h <<EOF
3353 #define SIZEOF_LONG $ac_cv_sizeof_long
3354 EOF
3355
3356 echo "$as_me:3356: checking for long long" >&5
3357 echo $ECHO_N "checking for long long... $ECHO_C" >&6
3358 if test "${ac_cv_type_long_long+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   cat >conftest.$ac_ext <<_ACEOF
3362 #line 3362 "configure"
3363 #include "confdefs.h"
3364 $ac_includes_default
3365 int
3366 main ()
3367 {
3368 if ((long long *) 0)
3369   return 0;
3370 if (sizeof (long long))
3371   return 0;
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:3377: \"$ac_compile\"") >&5
3378   (eval $ac_compile) 2>&5
3379   ac_status=$?
3380   echo "$as_me:3380: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -s conftest.$ac_objext'
3383   { (eval echo "$as_me:3383: \"$ac_try\"") >&5
3384   (eval $ac_try) 2>&5
3385   ac_status=$?
3386   echo "$as_me:3386: \$? = $ac_status" >&5
3387   (exit $ac_status); }; }; then
3388   ac_cv_type_long_long=yes
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 ac_cv_type_long_long=no
3393 fi
3394 rm -f conftest.$ac_objext conftest.$ac_ext
3395 fi
3396 echo "$as_me:3396: result: $ac_cv_type_long_long" >&5
3397 echo "${ECHO_T}$ac_cv_type_long_long" >&6
3398
3399 echo "$as_me:3399: checking size of long long" >&5
3400 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3401 if test "${ac_cv_sizeof_long_long+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   if test "$ac_cv_type_long_long" = yes; then
3405   if test "$cross_compiling" = yes; then
3406   # Depending upon the size, compute the lo and hi bounds.
3407 cat >conftest.$ac_ext <<_ACEOF
3408 #line 3408 "configure"
3409 #include "confdefs.h"
3410 $ac_includes_default
3411 int
3412 main ()
3413 {
3414 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:3420: \"$ac_compile\"") >&5
3421   (eval $ac_compile) 2>&5
3422   ac_status=$?
3423   echo "$as_me:3423: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -s conftest.$ac_objext'
3426   { (eval echo "$as_me:3426: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:3429: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_lo=0 ac_mid=0
3432   while :; do
3433     cat >conftest.$ac_ext <<_ACEOF
3434 #line 3434 "configure"
3435 #include "confdefs.h"
3436 $ac_includes_default
3437 int
3438 main ()
3439 {
3440 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5
3447   (eval $ac_compile) 2>&5
3448   ac_status=$?
3449   echo "$as_me:3449: \$? = $ac_status" >&5
3450   (exit $ac_status); } &&
3451          { ac_try='test -s conftest.$ac_objext'
3452   { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:3455: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   ac_hi=$ac_mid; break
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3462 fi
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3464   done
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3468 ac_hi=-1 ac_mid=-1
3469   while :; do
3470     cat >conftest.$ac_ext <<_ACEOF
3471 #line 3471 "configure"
3472 #include "confdefs.h"
3473 $ac_includes_default
3474 int
3475 main ()
3476 {
3477 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.$ac_objext
3483 if { (eval echo "$as_me:3483: \"$ac_compile\"") >&5
3484   (eval $ac_compile) 2>&5
3485   ac_status=$?
3486   echo "$as_me:3486: \$? = $ac_status" >&5
3487   (exit $ac_status); } &&
3488          { ac_try='test -s conftest.$ac_objext'
3489   { (eval echo "$as_me:3489: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:3492: \$? = $ac_status" >&5
3493   (exit $ac_status); }; }; then
3494   ac_lo=$ac_mid; break
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3499 fi
3500 rm -f conftest.$ac_objext conftest.$ac_ext
3501   done
3502 fi
3503 rm -f conftest.$ac_objext conftest.$ac_ext
3504 # Binary search between lo and hi bounds.
3505 while test "x$ac_lo" != "x$ac_hi"; do
3506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3507   cat >conftest.$ac_ext <<_ACEOF
3508 #line 3508 "configure"
3509 #include "confdefs.h"
3510 $ac_includes_default
3511 int
3512 main ()
3513 {
3514 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
3515   ;
3516   return 0;
3517 }
3518 _ACEOF
3519 rm -f conftest.$ac_objext
3520 if { (eval echo "$as_me:3520: \"$ac_compile\"") >&5
3521   (eval $ac_compile) 2>&5
3522   ac_status=$?
3523   echo "$as_me:3523: \$? = $ac_status" >&5
3524   (exit $ac_status); } &&
3525          { ac_try='test -s conftest.$ac_objext'
3526   { (eval echo "$as_me:3526: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:3529: \$? = $ac_status" >&5
3530   (exit $ac_status); }; }; then
3531   ac_hi=$ac_mid
3532 else
3533   echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 ac_lo=`expr $ac_mid + 1`
3536 fi
3537 rm -f conftest.$ac_objext conftest.$ac_ext
3538 done
3539 ac_cv_sizeof_long_long=$ac_lo
3540 else
3541   if test "$cross_compiling" = yes; then
3542   { { echo "$as_me:3542: error: cannot run test program while cross compiling" >&5
3543 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3544    { (exit 1); exit 1; }; }
3545 else
3546   cat >conftest.$ac_ext <<_ACEOF
3547 #line 3547 "configure"
3548 #include "confdefs.h"
3549 $ac_includes_default
3550 int
3551 main ()
3552 {
3553 FILE *f = fopen ("conftest.val", "w");
3554 if (!f)
3555   exit (1);
3556 fprintf (f, "%d", (sizeof (long long)));
3557 fclose (f);
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest$ac_exeext
3563 if { (eval echo "$as_me:3563: \"$ac_link\"") >&5
3564   (eval $ac_link) 2>&5
3565   ac_status=$?
3566   echo "$as_me:3566: \$? = $ac_status" >&5
3567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3568   { (eval echo "$as_me:3568: \"$ac_try\"") >&5
3569   (eval $ac_try) 2>&5
3570   ac_status=$?
3571   echo "$as_me:3571: \$? = $ac_status" >&5
3572   (exit $ac_status); }; }; then
3573   ac_cv_sizeof_long_long=`cat conftest.val`
3574 else
3575   echo "$as_me: program exited with status $ac_status" >&5
3576 echo "$as_me: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 fi
3579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3580 fi
3581 fi
3582 rm -f conftest.val
3583 else
3584   ac_cv_sizeof_long_long=0
3585 fi
3586 fi
3587 echo "$as_me:3587: result: $ac_cv_sizeof_long_long" >&5
3588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3589 cat >>confdefs.h <<EOF
3590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3591 EOF
3592
3593 echo "$as_me:3593: checking for size_t" >&5
3594 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3595 if test "${ac_cv_type_size_t+set}" = set; then
3596   echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598   cat >conftest.$ac_ext <<_ACEOF
3599 #line 3599 "configure"
3600 #include "confdefs.h"
3601 $ac_includes_default
3602 int
3603 main ()
3604 {
3605 if ((size_t *) 0)
3606   return 0;
3607 if (sizeof (size_t))
3608   return 0;
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:3614: \"$ac_compile\"") >&5
3615   (eval $ac_compile) 2>&5
3616   ac_status=$?
3617   echo "$as_me:3617: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          { ac_try='test -s conftest.$ac_objext'
3620   { (eval echo "$as_me:3620: \"$ac_try\"") >&5
3621   (eval $ac_try) 2>&5
3622   ac_status=$?
3623   echo "$as_me:3623: \$? = $ac_status" >&5
3624   (exit $ac_status); }; }; then
3625   ac_cv_type_size_t=yes
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3629 ac_cv_type_size_t=no
3630 fi
3631 rm -f conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 echo "$as_me:3633: result: $ac_cv_type_size_t" >&5
3634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3635
3636 echo "$as_me:3636: checking size of size_t" >&5
3637 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
3638 if test "${ac_cv_sizeof_size_t+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   if test "$ac_cv_type_size_t" = yes; then
3642   if test "$cross_compiling" = yes; then
3643   # Depending upon the size, compute the lo and hi bounds.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 #line 3645 "configure"
3646 #include "confdefs.h"
3647 $ac_includes_default
3648 int
3649 main ()
3650 {
3651 int _array_ [1 - 2 * !((sizeof (size_t)) >= 0)]
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:3657: \"$ac_compile\"") >&5
3658   (eval $ac_compile) 2>&5
3659   ac_status=$?
3660   echo "$as_me:3660: \$? = $ac_status" >&5
3661   (exit $ac_status); } &&
3662          { ac_try='test -s conftest.$ac_objext'
3663   { (eval echo "$as_me:3663: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:3666: \$? = $ac_status" >&5
3667   (exit $ac_status); }; }; then
3668   ac_lo=0 ac_mid=0
3669   while :; do
3670     cat >conftest.$ac_ext <<_ACEOF
3671 #line 3671 "configure"
3672 #include "confdefs.h"
3673 $ac_includes_default
3674 int
3675 main ()
3676 {
3677 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3678   ;
3679   return 0;
3680 }
3681 _ACEOF
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:3683: \"$ac_compile\"") >&5
3684   (eval $ac_compile) 2>&5
3685   ac_status=$?
3686   echo "$as_me:3686: \$? = $ac_status" >&5
3687   (exit $ac_status); } &&
3688          { ac_try='test -s conftest.$ac_objext'
3689   { (eval echo "$as_me:3689: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:3692: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   ac_hi=$ac_mid; break
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3698 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3699 fi
3700 rm -f conftest.$ac_objext conftest.$ac_ext
3701   done
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 ac_hi=-1 ac_mid=-1
3706   while :; do
3707     cat >conftest.$ac_ext <<_ACEOF
3708 #line 3708 "configure"
3709 #include "confdefs.h"
3710 $ac_includes_default
3711 int
3712 main ()
3713 {
3714 int _array_ [1 - 2 * !((sizeof (size_t)) >= $ac_mid)]
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721   (eval $ac_compile) 2>&5
3722   ac_status=$?
3723   echo "$as_me:3723: \$? = $ac_status" >&5
3724   (exit $ac_status); } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:3729: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   ac_lo=$ac_mid; break
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3736 fi
3737 rm -f conftest.$ac_objext conftest.$ac_ext
3738   done
3739 fi
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3741 # Binary search between lo and hi bounds.
3742 while test "x$ac_lo" != "x$ac_hi"; do
3743   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3744   cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3747 $ac_includes_default
3748 int
3749 main ()
3750 {
3751 int _array_ [1 - 2 * !((sizeof (size_t)) <= $ac_mid)]
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (eval echo "$as_me:3757: \"$ac_compile\"") >&5
3758   (eval $ac_compile) 2>&5
3759   ac_status=$?
3760   echo "$as_me:3760: \$? = $ac_status" >&5
3761   (exit $ac_status); } &&
3762          { ac_try='test -s conftest.$ac_objext'
3763   { (eval echo "$as_me:3763: \"$ac_try\"") >&5
3764   (eval $ac_try) 2>&5
3765   ac_status=$?
3766   echo "$as_me:3766: \$? = $ac_status" >&5
3767   (exit $ac_status); }; }; then
3768   ac_hi=$ac_mid
3769 else
3770   echo "$as_me: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 ac_lo=`expr $ac_mid + 1`
3773 fi
3774 rm -f conftest.$ac_objext conftest.$ac_ext
3775 done
3776 ac_cv_sizeof_size_t=$ac_lo
3777 else
3778   if test "$cross_compiling" = yes; then
3779   { { echo "$as_me:3779: error: cannot run test program while cross compiling" >&5
3780 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3781    { (exit 1); exit 1; }; }
3782 else
3783   cat >conftest.$ac_ext <<_ACEOF
3784 #line 3784 "configure"
3785 #include "confdefs.h"
3786 $ac_includes_default
3787 int
3788 main ()
3789 {
3790 FILE *f = fopen ("conftest.val", "w");
3791 if (!f)
3792   exit (1);
3793 fprintf (f, "%d", (sizeof (size_t)));
3794 fclose (f);
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest$ac_exeext
3800 if { (eval echo "$as_me:3800: \"$ac_link\"") >&5
3801   (eval $ac_link) 2>&5
3802   ac_status=$?
3803   echo "$as_me:3803: \$? = $ac_status" >&5
3804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805   { (eval echo "$as_me:3805: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:3808: \$? = $ac_status" >&5
3809   (exit $ac_status); }; }; then
3810   ac_cv_sizeof_size_t=`cat conftest.val`
3811 else
3812   echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 cat conftest.$ac_ext >&5
3815 fi
3816 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 fi
3819 rm -f conftest.val
3820 else
3821   ac_cv_sizeof_size_t=0
3822 fi
3823 fi
3824 echo "$as_me:3824: result: $ac_cv_sizeof_size_t" >&5
3825 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
3826 cat >>confdefs.h <<EOF
3827 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
3828 EOF
3829
3830 for ac_func in strerror bcopy memmove
3831 do
3832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3833 echo "$as_me:3833: checking for $ac_func" >&5
3834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3835 if eval "test \"\${$as_ac_var+set}\" = set"; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 #line 3839 "configure"
3840 #include "confdefs.h"
3841 /* System header to define __stub macros and hopefully few prototypes,
3842     which can conflict with char $ac_func (); below.  */
3843 #include <assert.h>
3844 /* Override any gcc2 internal prototype to avoid an error.  */
3845 #ifdef __cplusplus
3846 extern "C"
3847 #endif
3848 /* We use char because int might match the return type of a gcc2
3849    builtin and then its argument prototype would still apply.  */
3850 char $ac_func ();
3851 char (*f) ();
3852
3853 int
3854 main ()
3855 {
3856 /* The GNU C library defines this for functions which it implements
3857     to always fail with ENOSYS.  Some functions are actually named
3858     something starting with __ and the normal name is an alias.  */
3859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3860 choke me
3861 #else
3862 f = $ac_func;
3863 #endif
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext conftest$ac_exeext
3870 if { (eval echo "$as_me:3870: \"$ac_link\"") >&5
3871   (eval $ac_link) 2>&5
3872   ac_status=$?
3873   echo "$as_me:3873: \$? = $ac_status" >&5
3874   (exit $ac_status); } &&
3875          { ac_try='test -s conftest$ac_exeext'
3876   { (eval echo "$as_me:3876: \"$ac_try\"") >&5
3877   (eval $ac_try) 2>&5
3878   ac_status=$?
3879   echo "$as_me:3879: \$? = $ac_status" >&5
3880   (exit $ac_status); }; }; then
3881   eval "$as_ac_var=yes"
3882 else
3883   echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 eval "$as_ac_var=no"
3886 fi
3887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3888 fi
3889 echo "$as_me:3889: result: `eval echo '${'$as_ac_var'}'`" >&5
3890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3891 if test `eval echo '${'$as_ac_var'}'` = yes; then
3892   cat >>confdefs.h <<EOF
3893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3894 EOF
3895
3896 fi
3897 done
3898
3899 echo "$as_me:3899: checking for pcre_compile in -lpcre" >&5
3900 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
3901 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   ac_check_lib_save_LIBS=$LIBS
3905 LIBS="-lpcre  $LIBS"
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line 3907 "configure"
3908 #include "confdefs.h"
3909
3910 /* Override any gcc2 internal prototype to avoid an error.  */
3911 #ifdef __cplusplus
3912 extern "C"
3913 #endif
3914 /* We use char because int might match the return type of a gcc2
3915    builtin and then its argument prototype would still apply.  */
3916 char pcre_compile ();
3917 int
3918 main ()
3919 {
3920 pcre_compile ();
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:3926: \"$ac_link\"") >&5
3927   (eval $ac_link) 2>&5
3928   ac_status=$?
3929   echo "$as_me:3929: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -s conftest$ac_exeext'
3932   { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:3935: \$? = $ac_status" >&5
3936   (exit $ac_status); }; }; then
3937   ac_cv_lib_pcre_pcre_compile=yes
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 ac_cv_lib_pcre_pcre_compile=no
3942 fi
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:3946: result: $ac_cv_lib_pcre_pcre_compile" >&5
3947 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
3948 if test $ac_cv_lib_pcre_pcre_compile = yes; then
3949   echo "$as_me:3949: checking for pcre.h" >&5
3950 echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
3951 if test "${ac_cv_header_pcre_h+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   cat >conftest.$ac_ext <<_ACEOF
3955 #line 3955 "configure"
3956 #include "confdefs.h"
3957 #include <pcre.h>
3958 _ACEOF
3959 if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext\"") >&5
3960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961   ac_status=$?
3962   egrep -v '^ *\+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
3964   cat conftest.err >&5
3965   echo "$as_me:3965: \$? = $ac_status" >&5
3966   (exit $ac_status); } >/dev/null; then
3967   if test -s conftest.err; then
3968     ac_cpp_err=$ac_c_preproc_warn_flag
3969   else
3970     ac_cpp_err=
3971   fi
3972 else
3973   ac_cpp_err=yes
3974 fi
3975 if test -z "$ac_cpp_err"; then
3976   ac_cv_header_pcre_h=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979   cat conftest.$ac_ext >&5
3980   ac_cv_header_pcre_h=no
3981 fi
3982 rm -f conftest.err conftest.$ac_ext
3983 fi
3984 echo "$as_me:3984: result: $ac_cv_header_pcre_h" >&5
3985 echo "${ECHO_T}$ac_cv_header_pcre_h" >&6
3986 if test $ac_cv_header_pcre_h = yes; then
3987   have_pcre=yes
3988 else
3989   have_pcre=no
3990 fi
3991
3992 else
3993   have_pcre=no
3994 fi
3995
3996 echo "$as_me:3996: checking for regcomp in -lpcreposix" >&5
3997 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
3998 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   ac_check_lib_save_LIBS=$LIBS
4002 LIBS="-lpcreposix -lpcre $LIBS"
4003 cat >conftest.$ac_ext <<_ACEOF
4004 #line 4004 "configure"
4005 #include "confdefs.h"
4006
4007 /* Override any gcc2 internal prototype to avoid an error.  */
4008 #ifdef __cplusplus
4009 extern "C"
4010 #endif
4011 /* We use char because int might match the return type of a gcc2
4012    builtin and then its argument prototype would still apply.  */
4013 char regcomp ();
4014 int
4015 main ()
4016 {
4017 regcomp ();
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext conftest$ac_exeext
4023 if { (eval echo "$as_me:4023: \"$ac_link\"") >&5
4024   (eval $ac_link) 2>&5
4025   ac_status=$?
4026   echo "$as_me:4026: \$? = $ac_status" >&5
4027   (exit $ac_status); } &&
4028          { ac_try='test -s conftest$ac_exeext'
4029   { (eval echo "$as_me:4029: \"$ac_try\"") >&5
4030   (eval $ac_try) 2>&5
4031   ac_status=$?
4032   echo "$as_me:4032: \$? = $ac_status" >&5
4033   (exit $ac_status); }; }; then
4034   ac_cv_lib_pcreposix_regcomp=yes
4035 else
4036   echo "$as_me: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 ac_cv_lib_pcreposix_regcomp=no
4039 fi
4040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4042 fi
4043 echo "$as_me:4043: result: $ac_cv_lib_pcreposix_regcomp" >&5
4044 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
4045 if test $ac_cv_lib_pcreposix_regcomp = yes; then
4046   echo "$as_me:4046: checking for pcreposix.h" >&5
4047 echo $ECHO_N "checking for pcreposix.h... $ECHO_C" >&6
4048 if test "${ac_cv_header_pcreposix_h+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   cat >conftest.$ac_ext <<_ACEOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 #include <pcreposix.h>
4055 _ACEOF
4056 if { (eval echo "$as_me:4056: \"$ac_cpp conftest.$ac_ext\"") >&5
4057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4058   ac_status=$?
4059   egrep -v '^ *\+' conftest.er1 >conftest.err
4060   rm -f conftest.er1
4061   cat conftest.err >&5
4062   echo "$as_me:4062: \$? = $ac_status" >&5
4063   (exit $ac_status); } >/dev/null; then
4064   if test -s conftest.err; then
4065     ac_cpp_err=$ac_c_preproc_warn_flag
4066   else
4067     ac_cpp_err=
4068   fi
4069 else
4070   ac_cpp_err=yes
4071 fi
4072 if test -z "$ac_cpp_err"; then
4073   ac_cv_header_pcreposix_h=yes
4074 else
4075   echo "$as_me: failed program was:" >&5
4076   cat conftest.$ac_ext >&5
4077   ac_cv_header_pcreposix_h=no
4078 fi
4079 rm -f conftest.err conftest.$ac_ext
4080 fi
4081 echo "$as_me:4081: result: $ac_cv_header_pcreposix_h" >&5
4082 echo "${ECHO_T}$ac_cv_header_pcreposix_h" >&6
4083 if test $ac_cv_header_pcreposix_h = yes; then
4084   have_pcreposix=yes
4085 else
4086   have_pcreposix=no
4087 fi
4088
4089 else
4090   have_pcreposix=no
4091 fi
4092
4093 echo "$as_me:4093: checking for pcrs_compile in -lpcrs" >&5
4094 echo $ECHO_N "checking for pcrs_compile in -lpcrs... $ECHO_C" >&6
4095 if test "${ac_cv_lib_pcrs_pcrs_compile+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_check_lib_save_LIBS=$LIBS
4099 LIBS="-lpcrs  $LIBS"
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line 4101 "configure"
4102 #include "confdefs.h"
4103
4104 /* Override any gcc2 internal prototype to avoid an error.  */
4105 #ifdef __cplusplus
4106 extern "C"
4107 #endif
4108 /* We use char because int might match the return type of a gcc2
4109    builtin and then its argument prototype would still apply.  */
4110 char pcrs_compile ();
4111 int
4112 main ()
4113 {
4114 pcrs_compile ();
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:4120: \"$ac_link\"") >&5
4121   (eval $ac_link) 2>&5
4122   ac_status=$?
4123   echo "$as_me:4123: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -s conftest$ac_exeext'
4126   { (eval echo "$as_me:4126: \"$ac_try\"") >&5
4127   (eval $ac_try) 2>&5
4128   ac_status=$?
4129   echo "$as_me:4129: \$? = $ac_status" >&5
4130   (exit $ac_status); }; }; then
4131   ac_cv_lib_pcrs_pcrs_compile=yes
4132 else
4133   echo "$as_me: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 ac_cv_lib_pcrs_pcrs_compile=no
4136 fi
4137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_check_lib_save_LIBS
4139 fi
4140 echo "$as_me:4140: result: $ac_cv_lib_pcrs_pcrs_compile" >&5
4141 echo "${ECHO_T}$ac_cv_lib_pcrs_pcrs_compile" >&6
4142 if test $ac_cv_lib_pcrs_pcrs_compile = yes; then
4143   echo "$as_me:4143: checking for pcrs.h" >&5
4144 echo $ECHO_N "checking for pcrs.h... $ECHO_C" >&6
4145 if test "${ac_cv_header_pcrs_h+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   cat >conftest.$ac_ext <<_ACEOF
4149 #line 4149 "configure"
4150 #include "confdefs.h"
4151 #include <pcrs.h>
4152 _ACEOF
4153 if { (eval echo "$as_me:4153: \"$ac_cpp conftest.$ac_ext\"") >&5
4154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155   ac_status=$?
4156   egrep -v '^ *\+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:4159: \$? = $ac_status" >&5
4160   (exit $ac_status); } >/dev/null; then
4161   if test -s conftest.err; then
4162     ac_cpp_err=$ac_c_preproc_warn_flag
4163   else
4164     ac_cpp_err=
4165   fi
4166 else
4167   ac_cpp_err=yes
4168 fi
4169 if test -z "$ac_cpp_err"; then
4170   ac_cv_header_pcrs_h=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173   cat conftest.$ac_ext >&5
4174   ac_cv_header_pcrs_h=no
4175 fi
4176 rm -f conftest.err conftest.$ac_ext
4177 fi
4178 echo "$as_me:4178: result: $ac_cv_header_pcrs_h" >&5
4179 echo "${ECHO_T}$ac_cv_header_pcrs_h" >&6
4180 if test $ac_cv_header_pcrs_h = yes; then
4181   have_pcrs=yes
4182 else
4183   have_pcrs=no
4184 fi
4185
4186 else
4187   have_pcrs=no
4188 fi
4189
4190 cat >>confdefs.h <<\EOF
4191 #define __MT__ 1
4192 EOF
4193
4194 # Check whether --enable-toggle or --disable-toggle was given.
4195 if test "${enable_toggle+set}" = set; then
4196   enableval="$enable_toggle"
4197   if test $enableval = yes; then
4198   cat >>confdefs.h <<\EOF
4199 #define FEATURE_TOGGLE 1
4200 EOF
4201
4202 fi
4203 else
4204   cat >>confdefs.h <<\EOF
4205 #define FEATURE_TOGGLE 1
4206 EOF
4207
4208 fi;
4209
4210 # Check whether --enable-force or --disable-force was given.
4211 if test "${enable_force+set}" = set; then
4212   enableval="$enable_force"
4213   if test $enableval = yes; then
4214   cat >>confdefs.h <<\EOF
4215 #define FEATURE_FORCE_LOAD 1
4216 EOF
4217
4218 fi
4219 else
4220   cat >>confdefs.h <<\EOF
4221 #define FEATURE_FORCE_LOAD 1
4222 EOF
4223
4224 fi;
4225
4226 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
4227 if test "${enable_fast_redirects+set}" = set; then
4228   enableval="$enable_fast_redirects"
4229   if test $enableval = yes; then
4230   cat >>confdefs.h <<\EOF
4231 #define FEATURE_FAST_REDIRECTS 1
4232 EOF
4233
4234 fi
4235 else
4236   cat >>confdefs.h <<\EOF
4237 #define FEATURE_FAST_REDIRECTS 1
4238 EOF
4239
4240 fi;
4241
4242 # Check whether --enable-killpopup or --disable-killpopup was given.
4243 if test "${enable_killpopup+set}" = set; then
4244   enableval="$enable_killpopup"
4245   if test $enableval = yes; then
4246   cat >>confdefs.h <<\EOF
4247 #define FEATURE_KILL_POPUPS 1
4248 EOF
4249
4250 fi
4251 else
4252   cat >>confdefs.h <<\EOF
4253 #define FEATURE_KILL_POPUPS 1
4254 EOF
4255
4256 fi;
4257
4258 # Check whether --enable-stats or --disable-stats was given.
4259 if test "${enable_stats+set}" = set; then
4260   enableval="$enable_stats"
4261   if test $enableval = yes; then
4262   cat >>confdefs.h <<\EOF
4263 #define FEATURE_STATISTICS 1
4264 EOF
4265
4266 fi
4267 else
4268   cat >>confdefs.h <<\EOF
4269 #define FEATURE_STATISTICS 1
4270 EOF
4271
4272 fi;
4273
4274 # Check whether --enable-ie-images or --disable-ie-images was given.
4275 if test "${enable_ie_images+set}" = set; then
4276   enableval="$enable_ie_images"
4277   if test $enableval = yes; then
4278   cat >>confdefs.h <<\EOF
4279 #define FEATURE_IMAGE_DETECT_MSIE 1
4280 EOF
4281
4282 fi
4283 else
4284   cat >>confdefs.h <<\EOF
4285 #define FEATURE_IMAGE_DETECT_MSIE 1
4286 EOF
4287
4288 fi;
4289
4290 # Check whether --enable-image-blocking or --disable-image-blocking was given.
4291 if test "${enable_image_blocking+set}" = set; then
4292   enableval="$enable_image_blocking"
4293   if test $enableval = yes; then
4294   cat >>confdefs.h <<\EOF
4295 #define FEATURE_IMAGE_BLOCKING 1
4296 EOF
4297
4298 fi
4299 else
4300   cat >>confdefs.h <<\EOF
4301 #define FEATURE_IMAGE_BLOCKING 1
4302 EOF
4303
4304 fi;
4305
4306 # Check whether --enable-acl-files or --disable-acl-files was given.
4307 if test "${enable_acl_files+set}" = set; then
4308   enableval="$enable_acl_files"
4309   if test $enableval = yes; then
4310   cat >>confdefs.h <<\EOF
4311 #define FEATURE_ACL 1
4312 EOF
4313
4314 fi
4315 else
4316   cat >>confdefs.h <<\EOF
4317 #define FEATURE_ACL 1
4318 EOF
4319
4320 fi;
4321
4322 # Check whether --enable-trust-files or --disable-trust-files was given.
4323 if test "${enable_trust_files+set}" = set; then
4324   enableval="$enable_trust_files"
4325   if test $enableval = yes; then
4326   cat >>confdefs.h <<\EOF
4327 #define FEATURE_TRUST 1
4328 EOF
4329
4330 fi
4331 else
4332   cat >>confdefs.h <<\EOF
4333 #define FEATURE_TRUST 1
4334 EOF
4335
4336 fi;
4337
4338 # Check whether --enable-jar-files or --disable-jar-files was given.
4339 if test "${enable_jar_files+set}" = set; then
4340   enableval="$enable_jar_files"
4341   if test $enableval = yes; then
4342   cat >>confdefs.h <<\EOF
4343 #define FEATURE_COOKIE_JAR 1
4344 EOF
4345
4346 fi
4347 else
4348   cat >>confdefs.h <<\EOF
4349 #define FEATURE_COOKIE_JAR 1
4350 EOF
4351
4352 fi;
4353
4354 # Check whether --enable-editor or --disable-editor was given.
4355 if test "${enable_editor+set}" = set; then
4356   enableval="$enable_editor"
4357   if test $enableval = yes; then
4358   cat >>confdefs.h <<\EOF
4359 #define FEATURE_CGI_EDIT_ACTIONS 1
4360 EOF
4361
4362 fi
4363 else
4364   cat >>confdefs.h <<\EOF
4365 #define FEATURE_CGI_EDIT_ACTIONS 1
4366 EOF
4367
4368 fi;
4369
4370 # Check whether --enable-regex-matching or --disable-regex-matching was given.
4371 if test "${enable_regex_matching+set}" = set; then
4372   enableval="$enable_regex_matching"
4373    regex_matching=$enableval
4374 else
4375    regex_matching=pcre
4376 fi;
4377
4378 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
4379 if test "${enable_dynamic_pcre+set}" = set; then
4380   enableval="$enable_dynamic_pcre"
4381    if test $enableval = "no"; then have_pcre=no; fi
4382 fi;
4383
4384 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
4385 if test "${enable_dynamic_pcrs+set}" = set; then
4386   enableval="$enable_dynamic_pcrs"
4387    if test $enableval = "no"; then have_pcrs=no; fi
4388 fi;
4389
4390 # Is the regex URL matching based on libpcreposix, but we
4391 # don't have that library?
4392 #
4393 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
4394   dont_miss_pcreposix=yes
4395 else
4396   dont_miss_pcreposix=no
4397 fi
4398
4399 # If we have libpcre and either we also have pcreposix or
4400 # we don't need pcreposix, then link pcre dynamically; else
4401 # build it and link statically
4402 #
4403 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
4404   echo "using libpcre"
4405   pcre_dyn=yes
4406   STATIC_PCRE_ONLY=#
4407   LIBS="$LIBS -lpcre"
4408 else
4409   echo "using built-in static pcre"
4410   pcre_dyn=no
4411   cat >>confdefs.h <<\EOF
4412 #define STATIC_PCRE 1
4413 EOF
4414
4415   STATIC_PCRE_ONLY=
4416 fi
4417
4418 # If we have libpcrs and pcre is linked dynamically
4419 # then also link pcrs dynamically, else build and link
4420 # pcrs statically
4421 #
4422 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
4423   echo "using libpcrs"
4424   STATIC_PCRS_ONLY=#
4425   LIBS="$LIBS -lpcrs"
4426 else
4427   echo "using built-in static pcrs"
4428   cat >>confdefs.h <<\EOF
4429 #define STATIC_PCRS 1
4430 EOF
4431
4432   STATIC_PCRS_ONLY=
4433 fi
4434
4435 # Which method should be used for URL matching?
4436 # pcre, gnu regex or prefix matching?
4437 #
4438 if test $regex_matching = "gnu"; then
4439   echo "using gnu regex for URL matching"
4440   cat >>confdefs.h <<\EOF
4441 #define REGEX_GNU 1
4442 EOF
4443
4444   GNU_REGEX_ONLY=
4445   PCRE_REGEX_ONLY=#
4446 elif test $regex_matching = "pcre"; then
4447   echo "using pcre regex for URL matching"
4448   cat >>confdefs.h <<\EOF
4449 #define REGEX_PCRE 1
4450 EOF
4451
4452   GNU_REGEX_ONLY=#
4453   PCRE_REGEX_ONLY=
4454   if test $pcre_dyn = "yes"; then
4455     LIBS="$LIBS -lpcreposix"
4456   fi
4457 else
4458   echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
4459   GNU_REGEX_ONLY=#
4460   PCRE_REGEX_ONLY=#
4461 fi
4462
4463 CFLAGS=$old_CFLAGS_nospecial
4464
4465 ac_config_files="$ac_config_files Makefile"
4466 cat >confcache <<\_ACEOF
4467 # This file is a shell script that caches the results of configure
4468 # tests run on this system so they can be shared between configure
4469 # scripts and configure runs, see configure's option --config-cache.
4470 # It is not useful on other systems.  If it contains results you don't
4471 # want to keep, you may remove or edit it.
4472 #
4473 # config.status only pays attention to the cache file if you give it
4474 # the --recheck option to rerun configure.
4475 #
4476 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4478 # following values.
4479
4480 _ACEOF
4481
4482 # The following way of writing the cache mishandles newlines in values,
4483 # but we know of no workaround that is simple, portable, and efficient.
4484 # So, don't put newlines in cache variables' values.
4485 # Ultrix sh set writes to stderr and can't be redirected directly,
4486 # and sets the high bit in the cache file unless we assign to the vars.
4487 {
4488   (set) 2>&1 |
4489     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4490     *ac_space=\ *)
4491       # `set' does not quote correctly, so add quotes (double-quote
4492       # substitution turns \\\\ into \\, and sed turns \\ into \).
4493       sed -n \
4494         "s/'/'\\\\''/g;
4495           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4496       ;;
4497     *)
4498       # `set' quotes correctly as required by POSIX, so do not add quotes.
4499       sed -n \
4500         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4501       ;;
4502     esac;
4503 } |
4504   sed '
4505      t clear
4506      : clear
4507      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4508      t end
4509      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4510      : end' >>confcache
4511 if cmp -s $cache_file confcache; then :; else
4512   if test -w $cache_file; then
4513     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4514     cat confcache >$cache_file
4515   else
4516     echo "not updating unwritable cache $cache_file"
4517   fi
4518 fi
4519 rm -f confcache
4520
4521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4522 # Let make expand exec_prefix.
4523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4524
4525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4527 # trailing colons and then remove the whole line if VPATH becomes empty
4528 # (actually we leave an empty line to preserve line numbers).
4529 if test "x$srcdir" = x.; then
4530   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4531 s/:*\$(srcdir):*/:/;
4532 s/:*\${srcdir}:*/:/;
4533 s/:*@srcdir@:*/:/;
4534 s/^\([^=]*=[    ]*\):*/\1/;
4535 s/:*$//;
4536 s/^[^=]*=[      ]*$//;
4537 }'
4538 fi
4539
4540 DEFS=-DHAVE_CONFIG_H
4541
4542 : ${CONFIG_STATUS=./config.status}
4543 ac_clean_files_save=$ac_clean_files
4544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4545 { echo "$as_me:4545: creating $CONFIG_STATUS" >&5
4546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4547 cat >$CONFIG_STATUS <<_ACEOF
4548 #! $SHELL
4549 # Generated automatically by configure.
4550 # Run this file to recreate the current configuration.
4551 # Compiler output produced by configure, useful for debugging
4552 # configure, is in config.log if it exists.
4553
4554 debug=false
4555 SHELL=\${CONFIG_SHELL-$SHELL}
4556 ac_cs_invocation="\$0 \$@"
4557
4558 _ACEOF
4559
4560 cat >>$CONFIG_STATUS <<\_ACEOF
4561 # Be Bourne compatible
4562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4563   emulate sh
4564   NULLCMD=:
4565 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4566   set -o posix
4567 fi
4568
4569 # Name of the executable.
4570 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4571
4572 if expr a : '\(a\)' >/dev/null 2>&1; then
4573   as_expr=expr
4574 else
4575   as_expr=false
4576 fi
4577
4578 rm -f conf$$ conf$$.exe conf$$.file
4579 echo >conf$$.file
4580 if ln -s conf$$.file conf$$ 2>/dev/null; then
4581   # We could just check for DJGPP; but this test a) works b) is more generic
4582   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4583   if test -f conf$$.exe; then
4584     # Don't use ln at all; we don't have any links
4585     as_ln_s='cp -p'
4586   else
4587     as_ln_s='ln -s'
4588   fi
4589 elif ln conf$$.file conf$$ 2>/dev/null; then
4590   as_ln_s=ln
4591 else
4592   as_ln_s='cp -p'
4593 fi
4594 rm -f conf$$ conf$$.exe conf$$.file
4595
4596 as_executable_p="test -f"
4597
4598 # Support unset when possible.
4599 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4600   as_unset=unset
4601 else
4602   as_unset=false
4603 fi
4604
4605 # NLS nuisances.
4606 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4607 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4608 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4609 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4610 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4611 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4612 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4613 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4614
4615 # IFS
4616 # We need space, tab and new line, in precisely that order.
4617 as_nl='
4618 '
4619 IFS="   $as_nl"
4620
4621 # CDPATH.
4622 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4623
4624 exec 6>&1
4625
4626 _ACEOF
4627
4628 # Files that config.status was made for.
4629 if test -n "$ac_config_files"; then
4630   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4631 fi
4632
4633 if test -n "$ac_config_headers"; then
4634   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4635 fi
4636
4637 if test -n "$ac_config_links"; then
4638   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4639 fi
4640
4641 if test -n "$ac_config_commands"; then
4642   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4643 fi
4644
4645 cat >>$CONFIG_STATUS <<\EOF
4646
4647 ac_cs_usage="\
4648 \`$as_me' instantiates files from templates according to the
4649 current configuration.
4650
4651 Usage: $0 [OPTIONS] [FILE]...
4652
4653   -h, --help       print this help, then exit
4654   -V, --version    print version number, then exit
4655   -d, --debug      don't remove temporary files
4656       --recheck    update $as_me by reconfiguring in the same conditions
4657   --file=FILE[:TEMPLATE]
4658                    instantiate the configuration file FILE
4659   --header=FILE[:TEMPLATE]
4660                    instantiate the configuration header FILE
4661
4662 Configuration files:
4663 $config_files
4664
4665 Configuration headers:
4666 $config_headers
4667
4668 Report bugs to <bug-autoconf@gnu.org>."
4669 EOF
4670
4671 cat >>$CONFIG_STATUS <<EOF
4672 ac_cs_version="\\
4673 config.status
4674 configured by $0, generated by GNU Autoconf 2.52,
4675   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4676
4677 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4678 Free Software Foundation, Inc.
4679 This config.status script is free software; the Free Software Foundation
4680 gives unlimited permission to copy, distribute and modify it."
4681 srcdir=$srcdir
4682 EOF
4683
4684 cat >>$CONFIG_STATUS <<\EOF
4685 # If no file are specified by the user, then we need to provide default
4686 # value.  By we need to know if files were specified by the user.
4687 ac_need_defaults=:
4688 while test $# != 0
4689 do
4690   case $1 in
4691   --*=*)
4692     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4693     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4694     shift
4695     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4696     shift
4697     ;;
4698   -*);;
4699   *) # This is not an option, so the user has probably given explicit
4700      # arguments.
4701      ac_need_defaults=false;;
4702   esac
4703
4704   case $1 in
4705   # Handling of the options.
4706 EOF
4707 cat >>$CONFIG_STATUS <<EOF
4708   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4709     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4710     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4711 EOF
4712 cat >>$CONFIG_STATUS <<\EOF
4713   --version | --vers* | -V )
4714     echo "$ac_cs_version"; exit 0 ;;
4715   --he | --h)
4716     # Conflict between --help and --header
4717     { { echo "$as_me:4717: error: ambiguous option: $1
4718 Try \`$0 --help' for more information." >&5
4719 echo "$as_me: error: ambiguous option: $1
4720 Try \`$0 --help' for more information." >&2;}
4721    { (exit 1); exit 1; }; };;
4722   --help | --hel | -h )
4723     echo "$ac_cs_usage"; exit 0 ;;
4724   --debug | --d* | -d )
4725     debug=: ;;
4726   --file | --fil | --fi | --f )
4727     shift
4728     CONFIG_FILES="$CONFIG_FILES $1"
4729     ac_need_defaults=false;;
4730   --header | --heade | --head | --hea )
4731     shift
4732     CONFIG_HEADERS="$CONFIG_HEADERS $1"
4733     ac_need_defaults=false;;
4734
4735   # This is an error.
4736   -*) { { echo "$as_me:4736: error: unrecognized option: $1
4737 Try \`$0 --help' for more information." >&5
4738 echo "$as_me: error: unrecognized option: $1
4739 Try \`$0 --help' for more information." >&2;}
4740    { (exit 1); exit 1; }; } ;;
4741
4742   *) ac_config_targets="$ac_config_targets $1" ;;
4743
4744   esac
4745   shift
4746 done
4747
4748 exec 5>>config.log
4749 cat >&5 << _ACEOF
4750
4751 ## ----------------------- ##
4752 ## Running config.status.  ##
4753 ## ----------------------- ##
4754
4755 This file was extended by $as_me 2.52, executed with
4756   CONFIG_FILES    = $CONFIG_FILES
4757   CONFIG_HEADERS  = $CONFIG_HEADERS
4758   CONFIG_LINKS    = $CONFIG_LINKS
4759   CONFIG_COMMANDS = $CONFIG_COMMANDS
4760   > $ac_cs_invocation
4761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4762
4763 _ACEOF
4764 EOF
4765
4766 cat >>$CONFIG_STATUS <<\EOF
4767 for ac_config_target in $ac_config_targets
4768 do
4769   case "$ac_config_target" in
4770   # Handling of arguments.
4771   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4772   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4773   *) { { echo "$as_me:4773: error: invalid argument: $ac_config_target" >&5
4774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4775    { (exit 1); exit 1; }; };;
4776   esac
4777 done
4778
4779 # If the user did not use the arguments to specify the items to instantiate,
4780 # then the envvar interface is used.  Set only those that are not.
4781 # We use the long form for the default assignment because of an extremely
4782 # bizarre bug on SunOS 4.1.3.
4783 if $ac_need_defaults; then
4784   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4785   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4786 fi
4787
4788 # Create a temporary directory, and hook for its removal unless debugging.
4789 $debug ||
4790 {
4791   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4792   trap '{ (exit 1); exit 1; }' 1 2 13 15
4793 }
4794
4795 # Create a (secure) tmp directory for tmp files.
4796 : ${TMPDIR=/tmp}
4797 {
4798   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4799   test -n "$tmp" && test -d "$tmp"
4800 }  ||
4801 {
4802   tmp=$TMPDIR/cs$$-$RANDOM
4803   (umask 077 && mkdir $tmp)
4804 } ||
4805 {
4806    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4807    { (exit 1); exit 1; }
4808 }
4809
4810 EOF
4811
4812 cat >>$CONFIG_STATUS <<EOF
4813
4814 #
4815 # CONFIG_FILES section.
4816 #
4817
4818 # No need to generate the scripts if there are no CONFIG_FILES.
4819 # This happens for instance when ./config.status config.h
4820 if test -n "\$CONFIG_FILES"; then
4821   # Protect against being on the right side of a sed subst in config.status.
4822   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4823    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4824 s,@SHELL@,$SHELL,;t t
4825 s,@exec_prefix@,$exec_prefix,;t t
4826 s,@prefix@,$prefix,;t t
4827 s,@program_transform_name@,$program_transform_name,;t t
4828 s,@bindir@,$bindir,;t t
4829 s,@sbindir@,$sbindir,;t t
4830 s,@libexecdir@,$libexecdir,;t t
4831 s,@datadir@,$datadir,;t t
4832 s,@sysconfdir@,$sysconfdir,;t t
4833 s,@sharedstatedir@,$sharedstatedir,;t t
4834 s,@localstatedir@,$localstatedir,;t t
4835 s,@libdir@,$libdir,;t t
4836 s,@includedir@,$includedir,;t t
4837 s,@oldincludedir@,$oldincludedir,;t t
4838 s,@infodir@,$infodir,;t t
4839 s,@mandir@,$mandir,;t t
4840 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4841 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4842 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4843 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4844 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4845 s,@build_alias@,$build_alias,;t t
4846 s,@host_alias@,$host_alias,;t t
4847 s,@target_alias@,$target_alias,;t t
4848 s,@ECHO_C@,$ECHO_C,;t t
4849 s,@ECHO_N@,$ECHO_N,;t t
4850 s,@ECHO_T@,$ECHO_T,;t t
4851 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4852 s,@DEFS@,$DEFS,;t t
4853 s,@LIBS@,$LIBS,;t t
4854 s,@build@,$build,;t t
4855 s,@build_cpu@,$build_cpu,;t t
4856 s,@build_vendor@,$build_vendor,;t t
4857 s,@build_os@,$build_os,;t t
4858 s,@host@,$host,;t t
4859 s,@host_cpu@,$host_cpu,;t t
4860 s,@host_vendor@,$host_vendor,;t t
4861 s,@host_os@,$host_os,;t t
4862 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
4863 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
4864 s,@VERSION_POINT@,$VERSION_POINT,;t t
4865 s,@CC@,$CC,;t t
4866 s,@CFLAGS@,$CFLAGS,;t t
4867 s,@LDFLAGS@,$LDFLAGS,;t t
4868 s,@CPPFLAGS@,$CPPFLAGS,;t t
4869 s,@ac_ct_CC@,$ac_ct_CC,;t t
4870 s,@EXEEXT@,$EXEEXT,;t t
4871 s,@OBJEXT@,$OBJEXT,;t t
4872 s,@CPP@,$CPP,;t t
4873 s,@GDB@,$GDB,;t t
4874 s,@WIN_ONLY@,$WIN_ONLY,;t t
4875 s,@PTHREAD_ONLY@,$PTHREAD_ONLY,;t t
4876 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
4877 s,@AMIGAOS_ONLY@,$AMIGAOS_ONLY,;t t
4878 s,@GNU_REGEX_ONLY@,$GNU_REGEX_ONLY,;t t
4879 s,@PCRE_REGEX_ONLY@,$PCRE_REGEX_ONLY,;t t
4880 s,@STATIC_PCRE_ONLY@,$STATIC_PCRE_ONLY,;t t
4881 s,@STATIC_PCRS_ONLY@,$STATIC_PCRS_ONLY,;t t
4882 s,@SPECIAL_CFLAGS@,$SPECIAL_CFLAGS,;t t
4883 s,@PTHREAD_LIB@,$PTHREAD_LIB,;t t
4884 CEOF
4885
4886 EOF
4887
4888   cat >>$CONFIG_STATUS <<\EOF
4889   # Split the substitutions into bite-sized pieces for seds with
4890   # small command number limits, like on Digital OSF/1 and HP-UX.
4891   ac_max_sed_lines=48
4892   ac_sed_frag=1 # Number of current file.
4893   ac_beg=1 # First line for current file.
4894   ac_end=$ac_max_sed_lines # Line after last line for current file.
4895   ac_more_lines=:
4896   ac_sed_cmds=
4897   while $ac_more_lines; do
4898     if test $ac_beg -gt 1; then
4899       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4900     else
4901       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4902     fi
4903     if test ! -s $tmp/subs.frag; then
4904       ac_more_lines=false
4905     else
4906       # The purpose of the label and of the branching condition is to
4907       # speed up the sed processing (if there are no `@' at all, there
4908       # is no need to browse any of the substitutions).
4909       # These are the two extra sed commands mentioned above.
4910       (echo ':t
4911   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4912       if test -z "$ac_sed_cmds"; then
4913         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4914       else
4915         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4916       fi
4917       ac_sed_frag=`expr $ac_sed_frag + 1`
4918       ac_beg=$ac_end
4919       ac_end=`expr $ac_end + $ac_max_sed_lines`
4920     fi
4921   done
4922   if test -z "$ac_sed_cmds"; then
4923     ac_sed_cmds=cat
4924   fi
4925 fi # test -n "$CONFIG_FILES"
4926
4927 EOF
4928 cat >>$CONFIG_STATUS <<\EOF
4929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4930   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4931   case $ac_file in
4932   - | *:- | *:-:* ) # input from stdin
4933         cat >$tmp/stdin
4934         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4935         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4936   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4938   * )   ac_file_in=$ac_file.in ;;
4939   esac
4940
4941   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4942   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4943          X"$ac_file" : 'X\(//\)[^/]' \| \
4944          X"$ac_file" : 'X\(//\)$' \| \
4945          X"$ac_file" : 'X\(/\)' \| \
4946          .     : '\(.\)' 2>/dev/null ||
4947 echo X"$ac_file" |
4948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4950           /^X\(\/\/\)$/{ s//\1/; q; }
4951           /^X\(\/\).*/{ s//\1/; q; }
4952           s/.*/./; q'`
4953   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4954     { case "$ac_dir" in
4955   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4956   *)                      as_incr_dir=.;;
4957 esac
4958 as_dummy="$ac_dir"
4959 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4960   case $as_mkdir_dir in
4961     # Skip DOS drivespec
4962     ?:) as_incr_dir=$as_mkdir_dir ;;
4963     *)
4964       as_incr_dir=$as_incr_dir/$as_mkdir_dir
4965       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4966     ;;
4967   esac
4968 done; }
4969
4970     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4971     # A "../" for each directory in $ac_dir_suffix.
4972     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4973   else
4974     ac_dir_suffix= ac_dots=
4975   fi
4976
4977   case $srcdir in
4978   .)  ac_srcdir=.
4979       if test -z "$ac_dots"; then
4980          ac_top_srcdir=.
4981       else
4982          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4983       fi ;;
4984   [\\/]* | ?:[\\/]* )
4985       ac_srcdir=$srcdir$ac_dir_suffix;
4986       ac_top_srcdir=$srcdir ;;
4987   *) # Relative path.
4988     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4989     ac_top_srcdir=$ac_dots$srcdir ;;
4990   esac
4991
4992   if test x"$ac_file" != x-; then
4993     { echo "$as_me:4993: creating $ac_file" >&5
4994 echo "$as_me: creating $ac_file" >&6;}
4995     rm -f "$ac_file"
4996   fi
4997   # Let's still pretend it is `configure' which instantiates (i.e., don't
4998   # use $as_me), people would be surprised to read:
4999   #    /* config.h.  Generated automatically by config.status.  */
5000   configure_input="Generated automatically from `echo $ac_file_in |
5001                                                  sed 's,.*/,,'` by configure."
5002
5003   # First look for the input files in the build tree, otherwise in the
5004   # src tree.
5005   ac_file_inputs=`IFS=:
5006     for f in $ac_file_in; do
5007       case $f in
5008       -) echo $tmp/stdin ;;
5009       [\\/$]*)
5010          # Absolute (can't be DOS-style, as IFS=:)
5011          test -f "$f" || { { echo "$as_me:5011: error: cannot find input file: $f" >&5
5012 echo "$as_me: error: cannot find input file: $f" >&2;}
5013    { (exit 1); exit 1; }; }
5014          echo $f;;
5015       *) # Relative
5016          if test -f "$f"; then
5017            # Build tree
5018            echo $f
5019          elif test -f "$srcdir/$f"; then
5020            # Source tree
5021            echo $srcdir/$f
5022          else
5023            # /dev/null tree
5024            { { echo "$as_me:5024: error: cannot find input file: $f" >&5
5025 echo "$as_me: error: cannot find input file: $f" >&2;}
5026    { (exit 1); exit 1; }; }
5027          fi;;
5028       esac
5029     done` || { (exit 1); exit 1; }
5030 EOF
5031 cat >>$CONFIG_STATUS <<EOF
5032   sed "$ac_vpsub
5033 $extrasub
5034 EOF
5035 cat >>$CONFIG_STATUS <<\EOF
5036 :t
5037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5038 s,@configure_input@,$configure_input,;t t
5039 s,@srcdir@,$ac_srcdir,;t t
5040 s,@top_srcdir@,$ac_top_srcdir,;t t
5041 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5042   rm -f $tmp/stdin
5043   if test x"$ac_file" != x-; then
5044     mv $tmp/out $ac_file
5045   else
5046     cat $tmp/out
5047     rm -f $tmp/out
5048   fi
5049
5050 done
5051 EOF
5052 cat >>$CONFIG_STATUS <<\EOF
5053
5054 #
5055 # CONFIG_HEADER section.
5056 #
5057
5058 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5059 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5060 #
5061 # ac_d sets the value in "#define NAME VALUE" lines.
5062 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5063 ac_dB='[        ].*$,\1#\2'
5064 ac_dC=' '
5065 ac_dD=',;t'
5066 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5067 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5068 ac_uB='$,\1#\2define\3'
5069 ac_uC=' '
5070 ac_uD=',;t'
5071
5072 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5073   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5074   case $ac_file in
5075   - | *:- | *:-:* ) # input from stdin
5076         cat >$tmp/stdin
5077         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5078         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5079   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5080         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5081   * )   ac_file_in=$ac_file.in ;;
5082   esac
5083
5084   test x"$ac_file" != x- && { echo "$as_me:5084: creating $ac_file" >&5
5085 echo "$as_me: creating $ac_file" >&6;}
5086
5087   # First look for the input files in the build tree, otherwise in the
5088   # src tree.
5089   ac_file_inputs=`IFS=:
5090     for f in $ac_file_in; do
5091       case $f in
5092       -) echo $tmp/stdin ;;
5093       [\\/$]*)
5094          # Absolute (can't be DOS-style, as IFS=:)
5095          test -f "$f" || { { echo "$as_me:5095: error: cannot find input file: $f" >&5
5096 echo "$as_me: error: cannot find input file: $f" >&2;}
5097    { (exit 1); exit 1; }; }
5098          echo $f;;
5099       *) # Relative
5100          if test -f "$f"; then
5101            # Build tree
5102            echo $f
5103          elif test -f "$srcdir/$f"; then
5104            # Source tree
5105            echo $srcdir/$f
5106          else
5107            # /dev/null tree
5108            { { echo "$as_me:5108: error: cannot find input file: $f" >&5
5109 echo "$as_me: error: cannot find input file: $f" >&2;}
5110    { (exit 1); exit 1; }; }
5111          fi;;
5112       esac
5113     done` || { (exit 1); exit 1; }
5114   # Remove the trailing spaces.
5115   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5116
5117 EOF
5118
5119 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5120 # `conftest.undefs', that substitutes the proper values into
5121 # config.h.in to produce config.h.  The first handles `#define'
5122 # templates, and the second `#undef' templates.
5123 # And first: Protect against being on the right side of a sed subst in
5124 # config.status.  Protect against being in an unquoted here document
5125 # in config.status.
5126 rm -f conftest.defines conftest.undefs
5127 # Using a here document instead of a string reduces the quoting nightmare.
5128 # Putting comments in sed scripts is not portable.
5129 #
5130 # `end' is used to avoid that the second main sed command (meant for
5131 # 0-ary CPP macros) applies to n-ary macro definitions.
5132 # See the Autoconf documentation for `clear'.
5133 cat >confdef2sed.sed <<\EOF
5134 s/[\\&,]/\\&/g
5135 s,[\\$`],\\&,g
5136 t clear
5137 : clear
5138 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5139 t end
5140 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5141 : end
5142 EOF
5143 # If some macros were called several times there might be several times
5144 # the same #defines, which is useless.  Nevertheless, we may not want to
5145 # sort them, since we want the *last* AC-DEFINE to be honored.
5146 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5147 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5148 rm -f confdef2sed.sed
5149
5150 # This sed command replaces #undef with comments.  This is necessary, for
5151 # example, in the case of _POSIX_SOURCE, which is predefined and required
5152 # on some systems where configure will not decide to define it.
5153 cat >>conftest.undefs <<\EOF
5154 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5155 EOF
5156
5157 # Break up conftest.defines because some shells have a limit on the size
5158 # of here documents, and old seds have small limits too (100 cmds).
5159 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5160 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5161 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5162 echo '  :' >>$CONFIG_STATUS
5163 rm -f conftest.tail
5164 while grep . conftest.defines >/dev/null
5165 do
5166   # Write a limited-size here document to $tmp/defines.sed.
5167   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5168   # Speed up: don't consider the non `#define' lines.
5169   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
5170   # Work around the forget-to-reset-the-flag bug.
5171   echo 't clr' >>$CONFIG_STATUS
5172   echo ': clr' >>$CONFIG_STATUS
5173   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5174   echo 'CEOF
5175   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5176   rm -f $tmp/in
5177   mv $tmp/out $tmp/in
5178 ' >>$CONFIG_STATUS
5179   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5180   rm -f conftest.defines
5181   mv conftest.tail conftest.defines
5182 done
5183 rm -f conftest.defines
5184 echo '  fi # egrep' >>$CONFIG_STATUS
5185 echo >>$CONFIG_STATUS
5186
5187 # Break up conftest.undefs because some shells have a limit on the size
5188 # of here documents, and old seds have small limits too (100 cmds).
5189 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5190 rm -f conftest.tail
5191 while grep . conftest.undefs >/dev/null
5192 do
5193   # Write a limited-size here document to $tmp/undefs.sed.
5194   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5195   # Speed up: don't consider the non `#undef'
5196   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5197   # Work around the forget-to-reset-the-flag bug.
5198   echo 't clr' >>$CONFIG_STATUS
5199   echo ': clr' >>$CONFIG_STATUS
5200   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5201   echo 'CEOF
5202   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5203   rm -f $tmp/in
5204   mv $tmp/out $tmp/in
5205 ' >>$CONFIG_STATUS
5206   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5207   rm -f conftest.undefs
5208   mv conftest.tail conftest.undefs
5209 done
5210 rm -f conftest.undefs
5211
5212 cat >>$CONFIG_STATUS <<\EOF
5213   # Let's still pretend it is `configure' which instantiates (i.e., don't
5214   # use $as_me), people would be surprised to read:
5215   #    /* config.h.  Generated automatically by config.status.  */
5216   if test x"$ac_file" = x-; then
5217     echo "/* Generated automatically by configure.  */" >$tmp/config.h
5218   else
5219     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
5220   fi
5221   cat $tmp/in >>$tmp/config.h
5222   rm -f $tmp/in
5223   if test x"$ac_file" != x-; then
5224     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5225       { echo "$as_me:5225: $ac_file is unchanged" >&5
5226 echo "$as_me: $ac_file is unchanged" >&6;}
5227     else
5228       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5229          X"$ac_file" : 'X\(//\)[^/]' \| \
5230          X"$ac_file" : 'X\(//\)$' \| \
5231          X"$ac_file" : 'X\(/\)' \| \
5232          .     : '\(.\)' 2>/dev/null ||
5233 echo X"$ac_file" |
5234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5236           /^X\(\/\/\)$/{ s//\1/; q; }
5237           /^X\(\/\).*/{ s//\1/; q; }
5238           s/.*/./; q'`
5239       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5240         { case "$ac_dir" in
5241   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5242   *)                      as_incr_dir=.;;
5243 esac
5244 as_dummy="$ac_dir"
5245 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5246   case $as_mkdir_dir in
5247     # Skip DOS drivespec
5248     ?:) as_incr_dir=$as_mkdir_dir ;;
5249     *)
5250       as_incr_dir=$as_incr_dir/$as_mkdir_dir
5251       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5252     ;;
5253   esac
5254 done; }
5255
5256       fi
5257       rm -f $ac_file
5258       mv $tmp/config.h $ac_file
5259     fi
5260   else
5261     cat $tmp/config.h
5262     rm -f $tmp/config.h
5263   fi
5264 done
5265 EOF
5266
5267 cat >>$CONFIG_STATUS <<\EOF
5268
5269 { (exit 0); exit 0; }
5270 EOF
5271 chmod +x $CONFIG_STATUS
5272 ac_clean_files=$ac_clean_files_save
5273
5274 # configure is writing to config.log, and then calls config.status.
5275 # config.status does its own redirection, appending to config.log.
5276 # Unfortunately, on DOS this fails, as config.log is still kept open
5277 # by configure, so config.status won't be able to write to it; its
5278 # output is simply discarded.  So we exec the FD to /dev/null,
5279 # effectively closing config.log, so it can be properly (re)opened and
5280 # appended to by config.status.  When coming back to configure, we
5281 # need to make the FD available again.
5282 if test "$no_create" != yes; then
5283   ac_cs_success=:
5284   exec 5>/dev/null
5285   $SHELL $CONFIG_STATUS || ac_cs_success=false
5286   exec 5>>config.log
5287   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5288   # would make configure fail if this is the last instruction.
5289   $ac_cs_success || { (exit 1); exit 1; }
5290 fi
5291