Correcting the last change.
[privoxy.git] / configure
1 #! /bin/sh
2
3 # From configure.in Revision: 1.31 
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13 
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16   --with-debug            Enable debug mode"
17 ac_help="$ac_help
18   --enable-mingw32        Use mingw32 for a Windows GUI"
19 ac_help="$ac_help
20   --disable-pthread       Don't use POSIX threads (pthreads)"
21 ac_help="$ac_help
22   --disable-toggle         Don't support temporary disable"
23 ac_help="$ac_help
24   --disable-force          Don't allow single-page disable"
25 ac_help="$ac_help
26   --disable-fast-redirects Don't support fast redirects"
27 ac_help="$ac_help
28   --disable-killpopup      Never block popups"
29 ac_help="$ac_help
30   --disable-stats          Don't keep statistics"
31 ac_help="$ac_help
32   --disable-ie-images      Don't auto-detect whether a request from MS Internet
33                            Explorer is for an image or HTML."
34 ac_help="$ac_help
35   --disable-image-blocking Don't try to figure out whether a request is 
36                            for an image or HTML - assume HTML."
37 ac_help="$ac_help
38   --disable-acl-files      Prevents the use of ACL files to control access to
39                            the proxy by IP address."
40 ac_help="$ac_help
41   --disable-trust-files    Prevents the use of trust files."
42 ac_help="$ac_help
43   --disable-jar-files      Prevents the use of jar files to capture cookies."
44 ac_help="$ac_help
45   --disable-editor         Prevents the use of the web-based actions file
46                            editor and web-based temporary disable setting."
47 ac_help="$ac_help
48   --enable-regex-matching=pcre  Use perl-compatible regex for actionsfile
49                                 pattern matching (default)
50   --enable-regex-matching=gnu   Use gnu style regex for actionsfile pattern
51                                 matching (-> bigger binary)
52   --disable-regex-matching      Don't use regex matching, compare URL
53                                 prefix instead (won't shrink birary)"
54 ac_help="$ac_help
55   --disable-dynamic-pcre        Use the built-in, static pcre, even if
56                                 libpcre is available"
57 ac_help="$ac_help
58   --disable-dynamic-pcrs        Use the built-in, static pcrs, even if
59                                 libpcrs is available"
60
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
64 build=NONE
65 cache_file=./config.cache
66 exec_prefix=NONE
67 host=NONE
68 no_create=
69 nonopt=NONE
70 no_recursion=
71 prefix=NONE
72 program_prefix=NONE
73 program_suffix=NONE
74 program_transform_name=s,x,x,
75 silent=
76 site=
77 srcdir=
78 target=NONE
79 verbose=
80 x_includes=NONE
81 x_libraries=NONE
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
94
95 # Initialize some other variables.
96 subdirs=
97 MFLAGS= MAKEFLAGS=
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
100 ac_max_here_lines=12
101
102 ac_prev=
103 for ac_option
104 do
105
106   # If the previous option needs an argument, assign it.
107   if test -n "$ac_prev"; then
108     eval "$ac_prev=\$ac_option"
109     ac_prev=
110     continue
111   fi
112
113   case "$ac_option" in
114   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115   *) ac_optarg= ;;
116   esac
117
118   # Accept the important Cygnus configure options, so we can diagnose typos.
119
120   case "$ac_option" in
121
122   -bindir | --bindir | --bindi | --bind | --bin | --bi)
123     ac_prev=bindir ;;
124   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125     bindir="$ac_optarg" ;;
126
127   -build | --build | --buil | --bui | --bu)
128     ac_prev=build ;;
129   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130     build="$ac_optarg" ;;
131
132   -cache-file | --cache-file | --cache-fil | --cache-fi \
133   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134     ac_prev=cache_file ;;
135   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137     cache_file="$ac_optarg" ;;
138
139   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140     ac_prev=datadir ;;
141   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142   | --da=*)
143     datadir="$ac_optarg" ;;
144
145   -disable-* | --disable-*)
146     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147     # Reject names that are not valid shell variable names.
148     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150     fi
151     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152     eval "enable_${ac_feature}=no" ;;
153
154   -enable-* | --enable-*)
155     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156     # Reject names that are not valid shell variable names.
157     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159     fi
160     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161     case "$ac_option" in
162       *=*) ;;
163       *) ac_optarg=yes ;;
164     esac
165     eval "enable_${ac_feature}='$ac_optarg'" ;;
166
167   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169   | --exec | --exe | --ex)
170     ac_prev=exec_prefix ;;
171   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173   | --exec=* | --exe=* | --ex=*)
174     exec_prefix="$ac_optarg" ;;
175
176   -gas | --gas | --ga | --g)
177     # Obsolete; use --with-gas.
178     with_gas=yes ;;
179
180   -help | --help | --hel | --he)
181     # Omit some internal or obsolete options to make the list less imposing.
182     # This message is too long to be a string in the A/UX 3.1 sh.
183     cat << EOF
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
186 Configuration:
187   --cache-file=FILE       cache test results in FILE
188   --help                  print this message
189   --no-create             do not create output files
190   --quiet, --silent       do not print \`checking...' messages
191   --version               print the version of autoconf that created configure
192 Directory and file names:
193   --prefix=PREFIX         install architecture-independent files in PREFIX
194                           [$ac_default_prefix]
195   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
196                           [same as prefix]
197   --bindir=DIR            user executables in DIR [EPREFIX/bin]
198   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
199   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
200   --datadir=DIR           read-only architecture-independent data in DIR
201                           [PREFIX/share]
202   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
203   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
204                           [PREFIX/com]
205   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
206   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
207   --includedir=DIR        C header files in DIR [PREFIX/include]
208   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
209   --infodir=DIR           info documentation in DIR [PREFIX/info]
210   --mandir=DIR            man documentation in DIR [PREFIX/man]
211   --srcdir=DIR            find the sources in DIR [configure dir or ..]
212   --program-prefix=PREFIX prepend PREFIX to installed program names
213   --program-suffix=SUFFIX append SUFFIX to installed program names
214   --program-transform-name=PROGRAM
215                           run sed PROGRAM on installed program names
216 EOF
217     cat << EOF
218 Host type:
219   --build=BUILD           configure for building on BUILD [BUILD=HOST]
220   --host=HOST             configure for HOST [guessed]
221   --target=TARGET         configure for TARGET [TARGET=HOST]
222 Features and packages:
223   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
224   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
225   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
226   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
227   --x-includes=DIR        X include files are in DIR
228   --x-libraries=DIR       X library files are in DIR
229 EOF
230     if test -n "$ac_help"; then
231       echo "--enable and --with options recognized:$ac_help"
232     fi
233     exit 0 ;;
234
235   -host | --host | --hos | --ho)
236     ac_prev=host ;;
237   -host=* | --host=* | --hos=* | --ho=*)
238     host="$ac_optarg" ;;
239
240   -includedir | --includedir | --includedi | --included | --include \
241   | --includ | --inclu | --incl | --inc)
242     ac_prev=includedir ;;
243   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244   | --includ=* | --inclu=* | --incl=* | --inc=*)
245     includedir="$ac_optarg" ;;
246
247   -infodir | --infodir | --infodi | --infod | --info | --inf)
248     ac_prev=infodir ;;
249   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250     infodir="$ac_optarg" ;;
251
252   -libdir | --libdir | --libdi | --libd)
253     ac_prev=libdir ;;
254   -libdir=* | --libdir=* | --libdi=* | --libd=*)
255     libdir="$ac_optarg" ;;
256
257   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258   | --libexe | --libex | --libe)
259     ac_prev=libexecdir ;;
260   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261   | --libexe=* | --libex=* | --libe=*)
262     libexecdir="$ac_optarg" ;;
263
264   -localstatedir | --localstatedir | --localstatedi | --localstated \
265   | --localstate | --localstat | --localsta | --localst \
266   | --locals | --local | --loca | --loc | --lo)
267     ac_prev=localstatedir ;;
268   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271     localstatedir="$ac_optarg" ;;
272
273   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274     ac_prev=mandir ;;
275   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276     mandir="$ac_optarg" ;;
277
278   -nfp | --nfp | --nf)
279     # Obsolete; use --without-fp.
280     with_fp=no ;;
281
282   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283   | --no-cr | --no-c)
284     no_create=yes ;;
285
286   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
288     no_recursion=yes ;;
289
290   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292   | --oldin | --oldi | --old | --ol | --o)
293     ac_prev=oldincludedir ;;
294   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297     oldincludedir="$ac_optarg" ;;
298
299   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300     ac_prev=prefix ;;
301   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302     prefix="$ac_optarg" ;;
303
304   -program-prefix | --program-prefix | --program-prefi | --program-pref \
305   | --program-pre | --program-pr | --program-p)
306     ac_prev=program_prefix ;;
307   -program-prefix=* | --program-prefix=* | --program-prefi=* \
308   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309     program_prefix="$ac_optarg" ;;
310
311   -program-suffix | --program-suffix | --program-suffi | --program-suff \
312   | --program-suf | --program-su | --program-s)
313     ac_prev=program_suffix ;;
314   -program-suffix=* | --program-suffix=* | --program-suffi=* \
315   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316     program_suffix="$ac_optarg" ;;
317
318   -program-transform-name | --program-transform-name \
319   | --program-transform-nam | --program-transform-na \
320   | --program-transform-n | --program-transform- \
321   | --program-transform | --program-transfor \
322   | --program-transfo | --program-transf \
323   | --program-trans | --program-tran \
324   | --progr-tra | --program-tr | --program-t)
325     ac_prev=program_transform_name ;;
326   -program-transform-name=* | --program-transform-name=* \
327   | --program-transform-nam=* | --program-transform-na=* \
328   | --program-transform-n=* | --program-transform-=* \
329   | --program-transform=* | --program-transfor=* \
330   | --program-transfo=* | --program-transf=* \
331   | --program-trans=* | --program-tran=* \
332   | --progr-tra=* | --program-tr=* | --program-t=*)
333     program_transform_name="$ac_optarg" ;;
334
335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336   | -silent | --silent | --silen | --sile | --sil)
337     silent=yes ;;
338
339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340     ac_prev=sbindir ;;
341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342   | --sbi=* | --sb=*)
343     sbindir="$ac_optarg" ;;
344
345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347   | --sharedst | --shareds | --shared | --share | --shar \
348   | --sha | --sh)
349     ac_prev=sharedstatedir ;;
350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353   | --sha=* | --sh=*)
354     sharedstatedir="$ac_optarg" ;;
355
356   -site | --site | --sit)
357     ac_prev=site ;;
358   -site=* | --site=* | --sit=*)
359     site="$ac_optarg" ;;
360
361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362     ac_prev=srcdir ;;
363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364     srcdir="$ac_optarg" ;;
365
366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367   | --syscon | --sysco | --sysc | --sys | --sy)
368     ac_prev=sysconfdir ;;
369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371     sysconfdir="$ac_optarg" ;;
372
373   -target | --target | --targe | --targ | --tar | --ta | --t)
374     ac_prev=target ;;
375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376     target="$ac_optarg" ;;
377
378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
379     verbose=yes ;;
380
381   -version | --version | --versio | --versi | --vers)
382     echo "configure generated by autoconf version 2.13"
383     exit 0 ;;
384
385   -with-* | --with-*)
386     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387     # Reject names that are not valid shell variable names.
388     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390     fi
391     ac_package=`echo $ac_package| sed 's/-/_/g'`
392     case "$ac_option" in
393       *=*) ;;
394       *) ac_optarg=yes ;;
395     esac
396     eval "with_${ac_package}='$ac_optarg'" ;;
397
398   -without-* | --without-*)
399     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400     # Reject names that are not valid shell variable names.
401     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403     fi
404     ac_package=`echo $ac_package| sed 's/-/_/g'`
405     eval "with_${ac_package}=no" ;;
406
407   --x)
408     # Obsolete; use --with-x.
409     with_x=yes ;;
410
411   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412   | --x-incl | --x-inc | --x-in | --x-i)
413     ac_prev=x_includes ;;
414   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416     x_includes="$ac_optarg" ;;
417
418   -x-libraries | --x-libraries | --x-librarie | --x-librari \
419   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420     ac_prev=x_libraries ;;
421   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423     x_libraries="$ac_optarg" ;;
424
425   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426     ;;
427
428   *)
429     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430       echo "configure: warning: $ac_option: invalid host type" 1>&2
431     fi
432     if test "x$nonopt" != xNONE; then
433       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434     fi
435     nonopt="$ac_option"
436     ;;
437
438   esac
439 done
440
441 if test -n "$ac_prev"; then
442   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 fi
444
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446
447 # File descriptor usage:
448 # 0 standard input
449 # 1 file creation
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
456   exec 6>/dev/null
457 else
458   exec 6>&1
459 fi
460 exec 5>./config.log
461
462 echo "\
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
465 " 1>&5
466
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
469 ac_configure_args=
470 for ac_arg
471 do
472   case "$ac_arg" in
473   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474   | --no-cr | --no-c) ;;
475   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
480   esac
481 done
482
483 # NLS nuisances.
484 # Only set these to C if already set.  These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
492
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
496 echo > confdefs.h
497
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file=jcc.c
501
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504   ac_srcdir_defaulted=yes
505   # Try the directory containing this script, then its parent.
506   ac_prog=$0
507   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509   srcdir=$ac_confdir
510   if test ! -r $srcdir/$ac_unique_file; then
511     srcdir=..
512   fi
513 else
514   ac_srcdir_defaulted=no
515 fi
516 if test ! -r $srcdir/$ac_unique_file; then
517   if test "$ac_srcdir_defaulted" = yes; then
518     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519   else
520     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521   fi
522 fi
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527   if test "x$prefix" != xNONE; then
528     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529   else
530     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531   fi
532 fi
533 for ac_site_file in $CONFIG_SITE; do
534   if test -r "$ac_site_file"; then
535     echo "loading site script $ac_site_file"
536     . "$ac_site_file"
537   fi
538 done
539
540 if test -r "$cache_file"; then
541   echo "loading cache $cache_file"
542   . $cache_file
543 else
544   echo "creating cache $cache_file"
545   > $cache_file
546 fi
547
548 ac_ext=c
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CPP $CPPFLAGS'
551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cc_cross
554
555 ac_exeext=
556 ac_objext=o
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560     ac_n= ac_c='
561 ' ac_t='        '
562   else
563     ac_n=-n ac_c= ac_t=
564   fi
565 else
566   ac_n= ac_c='\c' ac_t=
567 fi
568
569
570
571 ac_aux_dir=
572 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
573   if test -f $ac_dir/install-sh; then
574     ac_aux_dir=$ac_dir
575     ac_install_sh="$ac_aux_dir/install-sh -c"
576     break
577   elif test -f $ac_dir/install.sh; then
578     ac_aux_dir=$ac_dir
579     ac_install_sh="$ac_aux_dir/install.sh -c"
580     break
581   fi
582 done
583 if test -z "$ac_aux_dir"; then
584   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
585 fi
586 ac_config_guess=$ac_aux_dir/config.guess
587 ac_config_sub=$ac_aux_dir/config.sub
588 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589
590
591 # Make sure we can run config.sub.
592 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
593 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
594 fi
595
596 echo $ac_n "checking host system type""... $ac_c" 1>&6
597 echo "configure:598: checking host system type" >&5
598
599 host_alias=$host
600 case "$host_alias" in
601 NONE)
602   case $nonopt in
603   NONE)
604     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
605     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606     fi ;;
607   *) host_alias=$nonopt ;;
608   esac ;;
609 esac
610
611 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
612 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615 echo "$ac_t""$host" 1>&6
616
617
618
619
620 VERSION_MAJOR=2
621 VERSION_MINOR=9
622 VERSION_POINT=11
623 CODE_STATUS="beta"
624
625
626
627
628
629
630
631
632 cat >> confdefs.h <<EOF
633 #define VERSION_MAJOR ${VERSION_MAJOR}
634 EOF
635
636 cat >> confdefs.h <<EOF
637 #define VERSION_MINOR ${VERSION_MINOR}
638 EOF
639
640 cat >> confdefs.h <<EOF
641 #define VERSION_POINT ${VERSION_POINT}
642 EOF
643
644 cat >> confdefs.h <<EOF
645 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
646 EOF
647
648 cat >> confdefs.h <<EOF
649 #define CODE_STATUS "${CODE_STATUS}"
650 EOF
651
652
653 # Extract the first word of "gcc", so it can be a program name with args.
654 set dummy gcc; ac_word=$2
655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
656 echo "configure:657: checking for $ac_word" >&5
657 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
658   echo $ac_n "(cached) $ac_c" 1>&6
659 else
660   if test -n "$CC"; then
661   ac_cv_prog_CC="$CC" # Let the user override the test.
662 else
663   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
664   ac_dummy="$PATH"
665   for ac_dir in $ac_dummy; do
666     test -z "$ac_dir" && ac_dir=.
667     if test -f $ac_dir/$ac_word; then
668       ac_cv_prog_CC="gcc"
669       break
670     fi
671   done
672   IFS="$ac_save_ifs"
673 fi
674 fi
675 CC="$ac_cv_prog_CC"
676 if test -n "$CC"; then
677   echo "$ac_t""$CC" 1>&6
678 else
679   echo "$ac_t""no" 1>&6
680 fi
681
682 if test -z "$CC"; then
683   # Extract the first word of "cc", so it can be a program name with args.
684 set dummy cc; ac_word=$2
685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
686 echo "configure:687: checking for $ac_word" >&5
687 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688   echo $ac_n "(cached) $ac_c" 1>&6
689 else
690   if test -n "$CC"; then
691   ac_cv_prog_CC="$CC" # Let the user override the test.
692 else
693   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
694   ac_prog_rejected=no
695   ac_dummy="$PATH"
696   for ac_dir in $ac_dummy; do
697     test -z "$ac_dir" && ac_dir=.
698     if test -f $ac_dir/$ac_word; then
699       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
700         ac_prog_rejected=yes
701         continue
702       fi
703       ac_cv_prog_CC="cc"
704       break
705     fi
706   done
707   IFS="$ac_save_ifs"
708 if test $ac_prog_rejected = yes; then
709   # We found a bogon in the path, so make sure we never use it.
710   set dummy $ac_cv_prog_CC
711   shift
712   if test $# -gt 0; then
713     # We chose a different compiler from the bogus one.
714     # However, it has the same basename, so the bogon will be chosen
715     # first if we set CC to just the basename; use the full file name.
716     shift
717     set dummy "$ac_dir/$ac_word" "$@"
718     shift
719     ac_cv_prog_CC="$@"
720   fi
721 fi
722 fi
723 fi
724 CC="$ac_cv_prog_CC"
725 if test -n "$CC"; then
726   echo "$ac_t""$CC" 1>&6
727 else
728   echo "$ac_t""no" 1>&6
729 fi
730
731   if test -z "$CC"; then
732     case "`uname -s`" in
733     *win32* | *WIN32*)
734       # Extract the first word of "cl", so it can be a program name with args.
735 set dummy cl; ac_word=$2
736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
737 echo "configure:738: checking for $ac_word" >&5
738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
739   echo $ac_n "(cached) $ac_c" 1>&6
740 else
741   if test -n "$CC"; then
742   ac_cv_prog_CC="$CC" # Let the user override the test.
743 else
744   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
745   ac_dummy="$PATH"
746   for ac_dir in $ac_dummy; do
747     test -z "$ac_dir" && ac_dir=.
748     if test -f $ac_dir/$ac_word; then
749       ac_cv_prog_CC="cl"
750       break
751     fi
752   done
753   IFS="$ac_save_ifs"
754 fi
755 fi
756 CC="$ac_cv_prog_CC"
757 if test -n "$CC"; then
758   echo "$ac_t""$CC" 1>&6
759 else
760   echo "$ac_t""no" 1>&6
761 fi
762  ;;
763     esac
764   fi
765   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
766 fi
767
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
770
771 ac_ext=c
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
777
778 cat > conftest.$ac_ext << EOF
779
780 #line 781 "configure"
781 #include "confdefs.h"
782
783 main(){return(0);}
784 EOF
785 if { (eval echo configure:786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
786   ac_cv_prog_cc_works=yes
787   # If we can't run a trivial program, we are probably using a cross compiler.
788   if (./conftest; exit) 2>/dev/null; then
789     ac_cv_prog_cc_cross=no
790   else
791     ac_cv_prog_cc_cross=yes
792   fi
793 else
794   echo "configure: failed program was:" >&5
795   cat conftest.$ac_ext >&5
796   ac_cv_prog_cc_works=no
797 fi
798 rm -fr conftest*
799 ac_ext=c
800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
801 ac_cpp='$CPP $CPPFLAGS'
802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
804 cross_compiling=$ac_cv_prog_cc_cross
805
806 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
807 if test $ac_cv_prog_cc_works = no; then
808   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
809 fi
810 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
811 echo "configure:812: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
812 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
813 cross_compiling=$ac_cv_prog_cc_cross
814
815 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
816 echo "configure:817: checking whether we are using GNU C" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
818   echo $ac_n "(cached) $ac_c" 1>&6
819 else
820   cat > conftest.c <<EOF
821 #ifdef __GNUC__
822   yes;
823 #endif
824 EOF
825 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
826   ac_cv_prog_gcc=yes
827 else
828   ac_cv_prog_gcc=no
829 fi
830 fi
831
832 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
833
834 if test $ac_cv_prog_gcc = yes; then
835   GCC=yes
836 else
837   GCC=
838 fi
839
840 ac_test_CFLAGS="${CFLAGS+set}"
841 ac_save_CFLAGS="$CFLAGS"
842 CFLAGS=
843 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
844 echo "configure:845: checking whether ${CC-cc} accepts -g" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
846   echo $ac_n "(cached) $ac_c" 1>&6
847 else
848   echo 'void f(){}' > conftest.c
849 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
850   ac_cv_prog_cc_g=yes
851 else
852   ac_cv_prog_cc_g=no
853 fi
854 rm -f conftest*
855
856 fi
857
858 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
859 if test "$ac_test_CFLAGS" = set; then
860   CFLAGS="$ac_save_CFLAGS"
861 elif test $ac_cv_prog_cc_g = yes; then
862   if test "$GCC" = yes; then
863     CFLAGS="-g -O2"
864   else
865     CFLAGS="-g"
866   fi
867 else
868   if test "$GCC" = yes; then
869     CFLAGS="-O2"
870   else
871     CFLAGS=
872   fi
873 fi
874
875 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
876 echo "configure:877: checking how to run the C preprocessor" >&5
877 # On Suns, sometimes $CPP names a directory.
878 if test -n "$CPP" && test -d "$CPP"; then
879   CPP=
880 fi
881 if test -z "$CPP"; then
882 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
883   echo $ac_n "(cached) $ac_c" 1>&6
884 else
885     # This must be in double quotes, not single quotes, because CPP may get
886   # substituted into the Makefile and "${CC-cc}" will confuse make.
887   CPP="${CC-cc} -E"
888   # On the NeXT, cc -E runs the code through the compiler's parser,
889   # not just through cpp.
890   cat > conftest.$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
893 #include <assert.h>
894 Syntax Error
895 EOF
896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
897 { (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
899 if test -z "$ac_err"; then
900   :
901 else
902   echo "$ac_err" >&5
903   echo "configure: failed program was:" >&5
904   cat conftest.$ac_ext >&5
905   rm -rf conftest*
906   CPP="${CC-cc} -E -traditional-cpp"
907   cat > conftest.$ac_ext <<EOF
908 #line 909 "configure"
909 #include "confdefs.h"
910 #include <assert.h>
911 Syntax Error
912 EOF
913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914 { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916 if test -z "$ac_err"; then
917   :
918 else
919   echo "$ac_err" >&5
920   echo "configure: failed program was:" >&5
921   cat conftest.$ac_ext >&5
922   rm -rf conftest*
923   CPP="${CC-cc} -nologo -E"
924   cat > conftest.$ac_ext <<EOF
925 #line 926 "configure"
926 #include "confdefs.h"
927 #include <assert.h>
928 Syntax Error
929 EOF
930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
931 { (eval echo configure:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
933 if test -z "$ac_err"; then
934   :
935 else
936   echo "$ac_err" >&5
937   echo "configure: failed program was:" >&5
938   cat conftest.$ac_ext >&5
939   rm -rf conftest*
940   CPP=/lib/cpp
941 fi
942 rm -f conftest*
943 fi
944 rm -f conftest*
945 fi
946 rm -f conftest*
947   ac_cv_prog_CPP="$CPP"
948 fi
949   CPP="$ac_cv_prog_CPP"
950 else
951   ac_cv_prog_CPP="$CPP"
952 fi
953 echo "$ac_t""$CPP" 1>&6
954
955
956 # Extract the first word of "gdb", so it can be a program name with args.
957 set dummy gdb; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
961   echo $ac_n "(cached) $ac_c" 1>&6
962 else
963   if test -n "$GDB"; then
964   ac_cv_prog_GDB="$GDB" # Let the user override the test.
965 else
966   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
967   ac_dummy="$PATH"
968   for ac_dir in $ac_dummy; do
969     test -z "$ac_dir" && ac_dir=.
970     if test -f $ac_dir/$ac_word; then
971       ac_cv_prog_GDB="yes"
972       break
973     fi
974   done
975   IFS="$ac_save_ifs"
976   test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
977 fi
978 fi
979 GDB="$ac_cv_prog_GDB"
980 if test -n "$GDB"; then
981   echo "$ac_t""$GDB" 1>&6
982 else
983   echo "$ac_t""no" 1>&6
984 fi
985
986
987
988 # Check whether --with-debug or --without-debug was given.
989 if test "${with_debug+set}" = set; then
990   withval="$with_debug"
991   
992                 if test "x$withval" != "$xno" ; then
993                     if test $ac_cv_prog_cc_g = yes; then
994                       if test "$GCC" = yes; then
995                         if test "$GDB"; then
996                           CFLAGS="-ggdb"
997                         else
998                           CFLAGS="-g"
999                         fi
1000                         CFLAGS="$CFLAGS -Wshadow  -Wconversion"
1001                       else
1002                         CFLAGS="-g"
1003                       fi
1004                    fi
1005                 fi
1006         
1007 else
1008   
1009             if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
1010               if test "$GCC" = yes; then
1011                 CFLAGS="-O2"
1012               else
1013                 CFLAGS=
1014               fi
1015             fi
1016         
1017
1018 fi
1019
1020
1021 if test "$GCC"; then
1022   CFLAGS="-pipe $CFLAGS"
1023 fi
1024
1025
1026
1027 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1028 echo "configure:1029: checking for mingw32 environment" >&5
1029 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1030   echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032   cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035
1036 int main() {
1037 return __MINGW32__;
1038 ; return 0; }
1039 EOF
1040 if { (eval echo configure:1041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1041   rm -rf conftest*
1042   ac_cv_mingw32=yes
1043 else
1044   echo "configure: failed program was:" >&5
1045   cat conftest.$ac_ext >&5
1046   rm -rf conftest*
1047   ac_cv_mingw32=no
1048 fi
1049 rm -f conftest*
1050 rm -f conftest*
1051 fi
1052
1053 echo "$ac_t""$ac_cv_mingw32" 1>&6
1054 MINGW32=
1055 test "$ac_cv_mingw32" = yes && MINGW32=yes
1056 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1057 echo "configure:1058: checking for Cygwin environment" >&5
1058 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1059   echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061   cat > conftest.$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1064
1065 int main() {
1066
1067 #ifndef __CYGWIN__
1068 #define __CYGWIN__ __CYGWIN32__
1069 #endif
1070 return __CYGWIN__;
1071 ; return 0; }
1072 EOF
1073 if { (eval echo configure:1074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1074   rm -rf conftest*
1075   ac_cv_cygwin=yes
1076 else
1077   echo "configure: failed program was:" >&5
1078   cat conftest.$ac_ext >&5
1079   rm -rf conftest*
1080   ac_cv_cygwin=no
1081 fi
1082 rm -f conftest*
1083 rm -f conftest*
1084 fi
1085
1086 echo "$ac_t""$ac_cv_cygwin" 1>&6
1087 CYGWIN=
1088 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1089
1090 if test "$MINGW32" = "yes"; then
1091   target_type=mingw
1092 else
1093   if test "$CYGWIN" = "yes"; then
1094     target_type=cygwin
1095   else
1096     target_type=unix
1097   fi
1098 fi
1099
1100
1101 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1102 if test "${enable_mingw32+set}" = set; then
1103   enableval="$enable_mingw32"
1104   if test $enableval = yes; then
1105   target_type=mingw
1106 fi
1107 fi
1108
1109
1110 if test $target_type = mingw; then
1111   WIN_ONLY=
1112   SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1113   PTHREAD_LIB=-lpthreadGC
1114   echo "Using mingw32 (Win32 GUI)"
1115 else
1116   WIN_ONLY=#
1117   if test $target_type = cygwin; then
1118     SPECIAL_CFLAGS="-mno-win32"
1119     PTHREAD_LIB=
1120     echo "Using Cygnus (Win32 command line)"
1121   else
1122     SPECIAL_CFLAGS=
1123     PTHREAD_LIB=-lpthread
1124   fi
1125 fi
1126
1127
1128 if test $target_type = unix; then
1129         for ac_prog in w3m lynx links
1130 do
1131 # Extract the first word of "$ac_prog", so it can be a program name with args.
1132 set dummy $ac_prog; ac_word=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_WDUMP'+set}'`\" = set"; then
1136   echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138   if test -n "$WDUMP"; then
1139   ac_cv_prog_WDUMP="$WDUMP" # Let the user override the test.
1140 else
1141   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1142   ac_dummy="$PATH"
1143   for ac_dir in $ac_dummy; do
1144     test -z "$ac_dir" && ac_dir=.
1145     if test -f $ac_dir/$ac_word; then
1146       ac_cv_prog_WDUMP="$ac_prog"
1147       break
1148     fi
1149   done
1150   IFS="$ac_save_ifs"
1151 fi
1152 fi
1153 WDUMP="$ac_cv_prog_WDUMP"
1154 if test -n "$WDUMP"; then
1155   echo "$ac_t""$WDUMP" 1>&6
1156 else
1157   echo "$ac_t""no" 1>&6
1158 fi
1159
1160 test -n "$WDUMP" && break
1161 done
1162 test -n "$WDUMP" || WDUMP="false"
1163
1164         if test "$WDUMP" = false; then
1165                 { echo "configure: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" 1>&2; exit 1; }
1166         fi
1167 fi
1168
1169
1170 for ac_prog in rpm
1171 do
1172 # Extract the first word of "$ac_prog", so it can be a program name with args.
1173 set dummy $ac_prog; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_RPMBIN'+set}'`\" = set"; then
1177   echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179   if test -n "$RPMBIN"; then
1180   ac_cv_prog_RPMBIN="$RPMBIN" # Let the user override the test.
1181 else
1182   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1183   ac_dummy="$PATH"
1184   for ac_dir in $ac_dummy; do
1185     test -z "$ac_dir" && ac_dir=.
1186     if test -f $ac_dir/$ac_word; then
1187       ac_cv_prog_RPMBIN="$ac_prog"
1188       break
1189     fi
1190   done
1191   IFS="$ac_save_ifs"
1192 fi
1193 fi
1194 RPMBIN="$ac_cv_prog_RPMBIN"
1195 if test -n "$RPMBIN"; then
1196   echo "$ac_t""$RPMBIN" 1>&6
1197 else
1198   echo "$ac_t""no" 1>&6
1199 fi
1200
1201 test -n "$RPMBIN" && break
1202 done
1203 test -n "$RPMBIN" || RPMBIN="false"
1204
1205 if test $RPMBIN != false; then
1206                 RPM_BASE=`rpm --eval "%{_topdir}"`
1207                 if test "$RPM_BASE" = ""; then
1208                         RPM_BASE=/usr/src/redhat
1209                 fi
1210 fi
1211
1212
1213 old_CFLAGS_nospecial=$CFLAGS
1214 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1215
1216 # Hack to force AutoConf to use the CFLAGS we just set
1217 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220
1221
1222
1223 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1224 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1225 echo "configure:1226: checking for pthread.h" >&5
1226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1232 #include <pthread.h>
1233 EOF
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237 if test -z "$ac_err"; then
1238   rm -rf conftest*
1239   eval "ac_cv_header_$ac_safe=yes"
1240 else
1241   echo "$ac_err" >&5
1242   echo "configure: failed program was:" >&5
1243   cat conftest.$ac_ext >&5
1244   rm -rf conftest*
1245   eval "ac_cv_header_$ac_safe=no"
1246 fi
1247 rm -f conftest*
1248 fi
1249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1250   echo "$ac_t""yes" 1>&6
1251   have_pthread=yes
1252 else
1253   echo "$ac_t""no" 1>&6
1254 have_pthread=no
1255 fi
1256
1257
1258 # Check whether --enable-pthread or --disable-pthread was given.
1259 if test "${enable_pthread+set}" = set; then
1260   enableval="$enable_pthread"
1261   if test $enableval = no; then
1262   # Disable pthreads
1263   have_pthread=no
1264 fi
1265 fi
1266
1267
1268 if test $have_pthread = yes; then
1269   PTHREAD_ONLY=
1270   cat >> confdefs.h <<\EOF
1271 #define FEATURE_PTHREAD 1
1272 EOF
1273
1274   echo Using POSIX threads
1275   if test "$GCC" = "yes"; then
1276     # Set a GCC specific switch:
1277     if test "$target_type" = "unix"; then
1278       # This compiler switch makes Linux thread-safe
1279       # Don't know about other OS's?  Is this switch
1280       # supported?
1281       PTHREAD_LIB=
1282       SPECIAL_CFLAGS="-pthread"
1283     fi
1284   fi
1285 else
1286   PTHREAD_ONLY=#
1287   echo Using native threads
1288 fi
1289
1290
1291
1292
1293 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1294 echo "configure:1295: checking for gethostbyname in -lnsl" >&5
1295 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1297   echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299   ac_save_LIBS="$LIBS"
1300 LIBS="-lnsl  $LIBS"
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 /* Override any gcc2 internal prototype to avoid an error.  */
1305 /* We use char because int might match the return type of a gcc2
1306     builtin and then its argument prototype would still apply.  */
1307 char gethostbyname();
1308
1309 int main() {
1310 gethostbyname()
1311 ; return 0; }
1312 EOF
1313 if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1314   rm -rf conftest*
1315   eval "ac_cv_lib_$ac_lib_var=yes"
1316 else
1317   echo "configure: failed program was:" >&5
1318   cat conftest.$ac_ext >&5
1319   rm -rf conftest*
1320   eval "ac_cv_lib_$ac_lib_var=no"
1321 fi
1322 rm -f conftest*
1323 LIBS="$ac_save_LIBS"
1324
1325 fi
1326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1327   echo "$ac_t""yes" 1>&6
1328     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1329     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1330   cat >> confdefs.h <<EOF
1331 #define $ac_tr_lib 1
1332 EOF
1333
1334   LIBS="-lnsl $LIBS"
1335
1336 else
1337   echo "$ac_t""no" 1>&6
1338 fi
1339
1340
1341 echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6
1342 echo "configure:1343: checking for gethostbyaddr_r" >&5
1343 if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then
1344   echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346   cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1349 /* System header to define __stub macros and hopefully few prototypes,
1350     which can conflict with char gethostbyaddr_r(); below.  */
1351 #include <assert.h>
1352 /* Override any gcc2 internal prototype to avoid an error.  */
1353 /* We use char because int might match the return type of a gcc2
1354     builtin and then its argument prototype would still apply.  */
1355 char gethostbyaddr_r();
1356
1357 int main() {
1358
1359 /* The GNU C library defines this for functions which it implements
1360     to always fail with ENOSYS.  Some functions are actually named
1361     something starting with __ and the normal name is an alias.  */
1362 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
1363 choke me
1364 #else
1365 gethostbyaddr_r();
1366 #endif
1367
1368 ; return 0; }
1369 EOF
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1371   rm -rf conftest*
1372   eval "ac_cv_func_gethostbyaddr_r=yes"
1373 else
1374   echo "configure: failed program was:" >&5
1375   cat conftest.$ac_ext >&5
1376   rm -rf conftest*
1377   eval "ac_cv_func_gethostbyaddr_r=no"
1378 fi
1379 rm -f conftest*
1380 fi
1381
1382 if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then
1383   echo "$ac_t""yes" 1>&6
1384   
1385   echo $ac_n "checking signature of gethostbyaddr_r""... $ac_c" 1>&6
1386 echo "configure:1387: checking signature of gethostbyaddr_r" >&5
1387   cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1390
1391 #   include <netdb.h>
1392   
1393 int main() {
1394
1395     struct hostent *h, *hp;
1396     char *a, *b;
1397     int l, bl, t, e;
1398     (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
1399   
1400 ; return 0; }
1401 EOF
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403   rm -rf conftest*
1404   
1405     cat >> confdefs.h <<\EOF
1406 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
1407 EOF
1408
1409     echo "$ac_t""8 args" 1>&6
1410   
1411 else
1412   echo "configure: failed program was:" >&5
1413   cat conftest.$ac_ext >&5
1414   rm -rf conftest*
1415   
1416     cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1419
1420 #     include <netdb.h>
1421     
1422 int main() {
1423
1424       struct hostent *h;
1425       char *a, *b;
1426       int l, bl, t, e;
1427       (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
1428     
1429 ; return 0; }
1430 EOF
1431 if { (eval echo configure:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1432   rm -rf conftest*
1433   
1434       cat >> confdefs.h <<\EOF
1435 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
1436 EOF
1437
1438       echo "$ac_t""7 args" 1>&6
1439     
1440 else
1441   echo "configure: failed program was:" >&5
1442   cat conftest.$ac_ext >&5
1443   rm -rf conftest*
1444   
1445       cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448
1449 #       include <netdb.h>
1450       
1451 int main() {
1452
1453         struct hostent_data *d;
1454         struct hostent *h;
1455         char a,
1456         int l, t;
1457         (void) gethostbyaddr_r(a, l, t, h, d)
1458       
1459 ; return 0; }
1460 EOF
1461 if { (eval echo configure:1462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1462   rm -rf conftest*
1463   
1464         cat >> confdefs.h <<\EOF
1465 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
1466 EOF
1467
1468         echo "$ac_t""5 args" 1>&6
1469       
1470 else
1471   echo "configure: failed program was:" >&5
1472   cat conftest.$ac_ext >&5
1473   rm -rf conftest*
1474   
1475         echo "$ac_t""unrecognised" 1>&6
1476       
1477 fi
1478 rm -f conftest*
1479     
1480 fi
1481 rm -f conftest*
1482   
1483 fi
1484 rm -f conftest*
1485
1486 else
1487   echo "$ac_t""no" 1>&6
1488
1489   echo "$ac_t""no" 1>&6
1490
1491 fi
1492
1493
1494 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
1495 echo "configure:1496: checking for gethostbyname_r" >&5
1496 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
1497   echo $ac_n "(cached) $ac_c" 1>&6
1498 else
1499   cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 /* System header to define __stub macros and hopefully few prototypes,
1503     which can conflict with char gethostbyname_r(); below.  */
1504 #include <assert.h>
1505 /* Override any gcc2 internal prototype to avoid an error.  */
1506 /* We use char because int might match the return type of a gcc2
1507     builtin and then its argument prototype would still apply.  */
1508 char gethostbyname_r();
1509
1510 int main() {
1511
1512 /* The GNU C library defines this for functions which it implements
1513     to always fail with ENOSYS.  Some functions are actually named
1514     something starting with __ and the normal name is an alias.  */
1515 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
1516 choke me
1517 #else
1518 gethostbyname_r();
1519 #endif
1520
1521 ; return 0; }
1522 EOF
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524   rm -rf conftest*
1525   eval "ac_cv_func_gethostbyname_r=yes"
1526 else
1527   echo "configure: failed program was:" >&5
1528   cat conftest.$ac_ext >&5
1529   rm -rf conftest*
1530   eval "ac_cv_func_gethostbyname_r=no"
1531 fi
1532 rm -f conftest*
1533 fi
1534
1535 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
1536   echo "$ac_t""yes" 1>&6
1537   
1538   echo $ac_n "checking signature of gethostbyname_r""... $ac_c" 1>&6
1539 echo "configure:1540: checking signature of gethostbyname_r" >&5
1540   cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543
1544 #   include <netdb.h>
1545   
1546 int main() {
1547
1548     struct hostent *h, *r;
1549     char *n, *b;
1550     int bl, e;
1551     (void) gethostbyname_r(n, h, b, bl, &r, &e)
1552   
1553 ; return 0; }
1554 EOF
1555 if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1556   rm -rf conftest*
1557   
1558     cat >> confdefs.h <<\EOF
1559 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
1560 EOF
1561
1562     echo "$ac_t""6 args" 1>&6
1563   
1564 else
1565   echo "configure: failed program was:" >&5
1566   cat conftest.$ac_ext >&5
1567   rm -rf conftest*
1568   
1569     cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1572
1573 #     include <netdb.h>
1574     
1575 int main() {
1576
1577       struct hostent *h;
1578       char *n, *b;
1579       int bl, e;
1580       (void) gethostbyname_r(n, h, b, bl, &e)
1581     
1582 ; return 0; }
1583 EOF
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585   rm -rf conftest*
1586   
1587       cat >> confdefs.h <<\EOF
1588 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
1589 EOF
1590
1591       echo "$ac_t""5 args" 1>&6
1592     
1593 else
1594   echo "configure: failed program was:" >&5
1595   cat conftest.$ac_ext >&5
1596   rm -rf conftest*
1597   
1598       cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601
1602 #       include <netdb.h>
1603       
1604 int main() {
1605
1606         struct hostent_data *d;
1607         struct hostent *h;
1608         char *n,
1609         (void) gethostbyname_r(n, h, d)
1610       
1611 ; return 0; }
1612 EOF
1613 if { (eval echo configure:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614   rm -rf conftest*
1615   
1616         cat >> confdefs.h <<\EOF
1617 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
1618 EOF
1619
1620         echo "$ac_t""3 args" 1>&6
1621       
1622 else
1623   echo "configure: failed program was:" >&5
1624   cat conftest.$ac_ext >&5
1625   rm -rf conftest*
1626   
1627         echo "$ac_t""unrecognised" 1>&6
1628       
1629 fi
1630 rm -f conftest*
1631     
1632 fi
1633 rm -f conftest*
1634   
1635 fi
1636 rm -f conftest*
1637
1638 else
1639   echo "$ac_t""no" 1>&6
1640
1641   echo "$ac_t""no" 1>&6
1642
1643 fi
1644
1645
1646 echo $ac_n "checking for gmtime_r""... $ac_c" 1>&6
1647 echo "configure:1648: checking for gmtime_r" >&5
1648 if eval "test \"`echo '$''{'ac_cv_func_gmtime_r'+set}'`\" = set"; then
1649   echo $ac_n "(cached) $ac_c" 1>&6
1650 else
1651   cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 /* System header to define __stub macros and hopefully few prototypes,
1655     which can conflict with char gmtime_r(); below.  */
1656 #include <assert.h>
1657 /* Override any gcc2 internal prototype to avoid an error.  */
1658 /* We use char because int might match the return type of a gcc2
1659     builtin and then its argument prototype would still apply.  */
1660 char gmtime_r();
1661
1662 int main() {
1663
1664 /* The GNU C library defines this for functions which it implements
1665     to always fail with ENOSYS.  Some functions are actually named
1666     something starting with __ and the normal name is an alias.  */
1667 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
1668 choke me
1669 #else
1670 gmtime_r();
1671 #endif
1672
1673 ; return 0; }
1674 EOF
1675 if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1676   rm -rf conftest*
1677   eval "ac_cv_func_gmtime_r=yes"
1678 else
1679   echo "configure: failed program was:" >&5
1680   cat conftest.$ac_ext >&5
1681   rm -rf conftest*
1682   eval "ac_cv_func_gmtime_r=no"
1683 fi
1684 rm -f conftest*
1685 fi
1686
1687 if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then
1688   echo "$ac_t""yes" 1>&6
1689   
1690   echo $ac_n "checking signature of gmtime_r""... $ac_c" 1>&6
1691 echo "configure:1692: checking signature of gmtime_r" >&5
1692   cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695
1696 #   include <time.h>
1697   
1698 int main() {
1699
1700     struct time *t;
1701     struct tm *tm;
1702     (void) gmtime_r(t, tm)
1703   
1704 ; return 0; }
1705 EOF
1706 if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1707   rm -rf conftest*
1708   
1709     echo "$ac_t""ok" 1>&6
1710     cat >> confdefs.h <<\EOF
1711 #define HAVE_GMTIME_R 1
1712 EOF
1713
1714   
1715 else
1716   echo "configure: failed program was:" >&5
1717   cat conftest.$ac_ext >&5
1718   rm -rf conftest*
1719   
1720     echo "$ac_t""unrecognised" 1>&6
1721   
1722 fi
1723 rm -f conftest*
1724
1725 else
1726   echo "$ac_t""no" 1>&6
1727
1728   echo "$ac_t""no" 1>&6
1729
1730 fi
1731
1732
1733 echo $ac_n "checking for localtime_r""... $ac_c" 1>&6
1734 echo "configure:1735: checking for localtime_r" >&5
1735 if eval "test \"`echo '$''{'ac_cv_func_localtime_r'+set}'`\" = set"; then
1736   echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738   cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1741 /* System header to define __stub macros and hopefully few prototypes,
1742     which can conflict with char localtime_r(); below.  */
1743 #include <assert.h>
1744 /* Override any gcc2 internal prototype to avoid an error.  */
1745 /* We use char because int might match the return type of a gcc2
1746     builtin and then its argument prototype would still apply.  */
1747 char localtime_r();
1748
1749 int main() {
1750
1751 /* The GNU C library defines this for functions which it implements
1752     to always fail with ENOSYS.  Some functions are actually named
1753     something starting with __ and the normal name is an alias.  */
1754 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
1755 choke me
1756 #else
1757 localtime_r();
1758 #endif
1759
1760 ; return 0; }
1761 EOF
1762 if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763   rm -rf conftest*
1764   eval "ac_cv_func_localtime_r=yes"
1765 else
1766   echo "configure: failed program was:" >&5
1767   cat conftest.$ac_ext >&5
1768   rm -rf conftest*
1769   eval "ac_cv_func_localtime_r=no"
1770 fi
1771 rm -f conftest*
1772 fi
1773
1774 if eval "test \"`echo '$ac_cv_func_'localtime_r`\" = yes"; then
1775   echo "$ac_t""yes" 1>&6
1776   
1777   echo $ac_n "checking signature of localtime_r""... $ac_c" 1>&6
1778 echo "configure:1779: checking signature of localtime_r" >&5
1779   cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782
1783 #   include <time.h>
1784   
1785 int main() {
1786
1787     struct time *t;
1788     struct tm *tm;
1789     (void) localtime_r(t, tm)
1790   
1791 ; return 0; }
1792 EOF
1793 if { (eval echo configure:1794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1794   rm -rf conftest*
1795   
1796     echo "$ac_t""ok" 1>&6
1797     cat >> confdefs.h <<\EOF
1798 #define HAVE_LOCALTIME_R 1
1799 EOF
1800
1801   
1802 else
1803   echo "configure: failed program was:" >&5
1804   cat conftest.$ac_ext >&5
1805   rm -rf conftest*
1806   
1807     echo "$ac_t""unrecognised" 1>&6
1808   
1809 fi
1810 rm -f conftest*
1811
1812 else
1813   echo "$ac_t""no" 1>&6
1814
1815   echo "$ac_t""no" 1>&6
1816
1817 fi
1818
1819
1820
1821
1822 SOCKET_LIB=
1823
1824 case "$host" in
1825 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1826             cat >> confdefs.h <<\EOF
1827 #define __EXTENSIONS__ 1
1828 EOF
1829
1830             if test "$GCC" = "yes"; then
1831               # Set a GCC specific switch:
1832               # This compiler switch makes Solaris thread-safe
1833               PTHREAD_LIB=
1834               SPECIAL_CFLAGS="-pthreads"
1835             else
1836               # What do we do without GCC? Guess this:
1837               SPECIAL_CFLAGS="-D_REENTRANT"
1838             fi
1839 ;;
1840 esac
1841
1842
1843
1844
1845 case "$host" in
1846 *-os2-emx*) SOCKET_LIB=-lsocket
1847 ;;
1848 esac
1849
1850
1851
1852
1853 AMIGAOS_ONLY=#
1854
1855 case "$host" in
1856 *-amigaos) AMIGAOS_ONLY=
1857 ;;
1858 esac
1859
1860
1861
1862
1863
1864
1865 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1866 echo "configure:1867: checking for executable suffix" >&5
1867 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1868   echo $ac_n "(cached) $ac_c" 1>&6
1869 else
1870   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1871   ac_cv_exeext=.exe
1872 else
1873   rm -f conftest*
1874   echo 'int main () { return 0; }' > conftest.$ac_ext
1875   ac_cv_exeext=
1876   if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1877     for file in conftest.*; do
1878       case $file in
1879       *.c | *.o | *.obj) ;;
1880       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1881       esac
1882     done
1883   else
1884     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1885   fi
1886   rm -f conftest*
1887   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1888 fi
1889 fi
1890
1891 EXEEXT=""
1892 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1893 echo "$ac_t""${ac_cv_exeext}" 1>&6
1894 ac_exeext=$EXEEXT
1895
1896 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1897 echo "configure:1898: checking for object suffix" >&5
1898 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1899   echo $ac_n "(cached) $ac_c" 1>&6
1900 else
1901   rm -f conftest*
1902 echo 'int i = 1;' > conftest.$ac_ext
1903 if { (eval echo configure:1904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1904   for ac_file in conftest.*; do
1905     case $ac_file in
1906     *.c) ;;
1907     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1908     esac
1909   done
1910 else
1911   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1912 fi
1913 rm -f conftest*
1914 fi
1915
1916 echo "$ac_t""$ac_cv_objext" 1>&6
1917 OBJEXT=$ac_cv_objext
1918 ac_objext=$ac_cv_objext
1919
1920 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1921 echo "configure:1922: checking for ANSI C header files" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1923   echo $ac_n "(cached) $ac_c" 1>&6
1924 else
1925   cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1928 #include <stdlib.h>
1929 #include <stdarg.h>
1930 #include <string.h>
1931 #include <float.h>
1932 EOF
1933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1934 { (eval echo configure:1935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1936 if test -z "$ac_err"; then
1937   rm -rf conftest*
1938   ac_cv_header_stdc=yes
1939 else
1940   echo "$ac_err" >&5
1941   echo "configure: failed program was:" >&5
1942   cat conftest.$ac_ext >&5
1943   rm -rf conftest*
1944   ac_cv_header_stdc=no
1945 fi
1946 rm -f conftest*
1947
1948 if test $ac_cv_header_stdc = yes; then
1949   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <string.h>
1954 EOF
1955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1956   egrep "memchr" >/dev/null 2>&1; then
1957   :
1958 else
1959   rm -rf conftest*
1960   ac_cv_header_stdc=no
1961 fi
1962 rm -f conftest*
1963
1964 fi
1965
1966 if test $ac_cv_header_stdc = yes; then
1967   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 #include <stdlib.h>
1972 EOF
1973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1974   egrep "free" >/dev/null 2>&1; then
1975   :
1976 else
1977   rm -rf conftest*
1978   ac_cv_header_stdc=no
1979 fi
1980 rm -f conftest*
1981
1982 fi
1983
1984 if test $ac_cv_header_stdc = yes; then
1985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1986 if test "$cross_compiling" = yes; then
1987   :
1988 else
1989   cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 #include <ctype.h>
1993 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1994 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1996 int main () { int i; for (i = 0; i < 256; i++)
1997 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1998 exit (0); }
1999
2000 EOF
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2002 then
2003   :
2004 else
2005   echo "configure: failed program was:" >&5
2006   cat conftest.$ac_ext >&5
2007   rm -fr conftest*
2008   ac_cv_header_stdc=no
2009 fi
2010 rm -fr conftest*
2011 fi
2012
2013 fi
2014 fi
2015
2016 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2017 if test $ac_cv_header_stdc = yes; then
2018   cat >> confdefs.h <<\EOF
2019 #define STDC_HEADERS 1
2020 EOF
2021
2022 fi
2023
2024 echo $ac_n "checking for working const""... $ac_c" 1>&6
2025 echo "configure:2026: checking for working const" >&5
2026 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2027   echo $ac_n "(cached) $ac_c" 1>&6
2028 else
2029   cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032
2033 int main() {
2034
2035 /* Ultrix mips cc rejects this.  */
2036 typedef int charset[2]; const charset x;
2037 /* SunOS 4.1.1 cc rejects this.  */
2038 char const *const *ccp;
2039 char **p;
2040 /* NEC SVR4.0.2 mips cc rejects this.  */
2041 struct point {int x, y;};
2042 static struct point const zero = {0,0};
2043 /* AIX XL C 1.02.0.0 rejects this.
2044    It does not let you subtract one const X* pointer from another in an arm
2045    of an if-expression whose if-part is not a constant expression */
2046 const char *g = "string";
2047 ccp = &g + (g ? g-g : 0);
2048 /* HPUX 7.0 cc rejects these. */
2049 ++ccp;
2050 p = (char**) ccp;
2051 ccp = (char const *const *) p;
2052 { /* SCO 3.2v4 cc rejects this.  */
2053   char *t;
2054   char const *s = 0 ? (char *) 0 : (char const *) 0;
2055
2056   *t++ = 0;
2057 }
2058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2059   int x[] = {25, 17};
2060   const int *foo = &x[0];
2061   ++foo;
2062 }
2063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2064   typedef const int *iptr;
2065   iptr p = 0;
2066   ++p;
2067 }
2068 { /* AIX XL C 1.02.0.0 rejects this saying
2069      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2070   struct s { int j; const int *ap[3]; };
2071   struct s *b; b->j = 5;
2072 }
2073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2074   const int foo = 10;
2075 }
2076
2077 ; return 0; }
2078 EOF
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080   rm -rf conftest*
2081   ac_cv_c_const=yes
2082 else
2083   echo "configure: failed program was:" >&5
2084   cat conftest.$ac_ext >&5
2085   rm -rf conftest*
2086   ac_cv_c_const=no
2087 fi
2088 rm -f conftest*
2089 fi
2090
2091 echo "$ac_t""$ac_cv_c_const" 1>&6
2092 if test $ac_cv_c_const = no; then
2093   cat >> confdefs.h <<\EOF
2094 #define const 
2095 EOF
2096
2097 fi
2098
2099 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2100 echo "configure:2101: checking for size_t" >&5
2101 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2102   echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104   cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #include <sys/types.h>
2108 #if STDC_HEADERS
2109 #include <stdlib.h>
2110 #include <stddef.h>
2111 #endif
2112 EOF
2113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2114   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2115   rm -rf conftest*
2116   ac_cv_type_size_t=yes
2117 else
2118   rm -rf conftest*
2119   ac_cv_type_size_t=no
2120 fi
2121 rm -f conftest*
2122
2123 fi
2124 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2125 if test $ac_cv_type_size_t = no; then
2126   cat >> confdefs.h <<\EOF
2127 #define size_t unsigned
2128 EOF
2129
2130 fi
2131
2132 echo $ac_n "checking size of int""... $ac_c" 1>&6
2133 echo "configure:2134: checking size of int" >&5
2134 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2135   echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137   if test "$cross_compiling" = yes; then
2138   ac_cv_sizeof_int=4
2139 else
2140   cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 #include <stdio.h>
2144 main()
2145 {
2146   FILE *f=fopen("conftestval", "w");
2147   if (!f) exit(1);
2148   fprintf(f, "%d\n", sizeof(int));
2149   exit(0);
2150 }
2151 EOF
2152 if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2153 then
2154   ac_cv_sizeof_int=`cat conftestval`
2155 else
2156   echo "configure: failed program was:" >&5
2157   cat conftest.$ac_ext >&5
2158   rm -fr conftest*
2159   ac_cv_sizeof_int=0
2160 fi
2161 rm -fr conftest*
2162 fi
2163
2164 fi
2165 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2166 cat >> confdefs.h <<EOF
2167 #define SIZEOF_INT $ac_cv_sizeof_int
2168 EOF
2169
2170
2171 echo $ac_n "checking size of char *""... $ac_c" 1>&6
2172 echo "configure:2173: checking size of char *" >&5
2173 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
2174   echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176   if test "$cross_compiling" = yes; then
2177   ac_cv_sizeof_char_p=4
2178 else
2179   cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <stdio.h>
2183 main()
2184 {
2185   FILE *f=fopen("conftestval", "w");
2186   if (!f) exit(1);
2187   fprintf(f, "%d\n", sizeof(char *));
2188   exit(0);
2189 }
2190 EOF
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2192 then
2193   ac_cv_sizeof_char_p=`cat conftestval`
2194 else
2195   echo "configure: failed program was:" >&5
2196   cat conftest.$ac_ext >&5
2197   rm -fr conftest*
2198   ac_cv_sizeof_char_p=0
2199 fi
2200 rm -fr conftest*
2201 fi
2202
2203 fi
2204 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
2205 cat >> confdefs.h <<EOF
2206 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2207 EOF
2208
2209
2210 echo $ac_n "checking size of long""... $ac_c" 1>&6
2211 echo "configure:2212: checking size of long" >&5
2212 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2213   echo $ac_n "(cached) $ac_c" 1>&6
2214 else
2215   if test "$cross_compiling" = yes; then
2216   ac_cv_sizeof_long=4
2217 else
2218   cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 #include <stdio.h>
2222 main()
2223 {
2224   FILE *f=fopen("conftestval", "w");
2225   if (!f) exit(1);
2226   fprintf(f, "%d\n", sizeof(long));
2227   exit(0);
2228 }
2229 EOF
2230 if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2231 then
2232   ac_cv_sizeof_long=`cat conftestval`
2233 else
2234   echo "configure: failed program was:" >&5
2235   cat conftest.$ac_ext >&5
2236   rm -fr conftest*
2237   ac_cv_sizeof_long=0
2238 fi
2239 rm -fr conftest*
2240 fi
2241
2242 fi
2243 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2244 cat >> confdefs.h <<EOF
2245 #define SIZEOF_LONG $ac_cv_sizeof_long
2246 EOF
2247
2248
2249 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2250 echo "configure:2251: checking size of long long" >&5
2251 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2252   echo $ac_n "(cached) $ac_c" 1>&6
2253 else
2254   if test "$cross_compiling" = yes; then
2255   ac_cv_sizeof_long_long=8
2256 else
2257   cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 #include <stdio.h>
2261 main()
2262 {
2263   FILE *f=fopen("conftestval", "w");
2264   if (!f) exit(1);
2265   fprintf(f, "%d\n", sizeof(long long));
2266   exit(0);
2267 }
2268 EOF
2269 if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2270 then
2271   ac_cv_sizeof_long_long=`cat conftestval`
2272 else
2273   echo "configure: failed program was:" >&5
2274   cat conftest.$ac_ext >&5
2275   rm -fr conftest*
2276   ac_cv_sizeof_long_long=0
2277 fi
2278 rm -fr conftest*
2279 fi
2280
2281 fi
2282 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2283 cat >> confdefs.h <<EOF
2284 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2285 EOF
2286
2287
2288 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2289 echo "configure:2290: checking size of size_t" >&5
2290 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2291   echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293   if test "$cross_compiling" = yes; then
2294   ac_cv_sizeof_size_t=4
2295 else
2296   cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 #include <stdio.h>
2300 main()
2301 {
2302   FILE *f=fopen("conftestval", "w");
2303   if (!f) exit(1);
2304   fprintf(f, "%d\n", sizeof(size_t));
2305   exit(0);
2306 }
2307 EOF
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2309 then
2310   ac_cv_sizeof_size_t=`cat conftestval`
2311 else
2312   echo "configure: failed program was:" >&5
2313   cat conftest.$ac_ext >&5
2314   rm -fr conftest*
2315   ac_cv_sizeof_size_t=0
2316 fi
2317 rm -fr conftest*
2318 fi
2319
2320 fi
2321 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2322 cat >> confdefs.h <<EOF
2323 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2324 EOF
2325
2326
2327
2328
2329 for ac_func in strerror bcopy memmove
2330 do
2331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_func" >&5
2333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2334   echo $ac_n "(cached) $ac_c" 1>&6
2335 else
2336   cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 /* System header to define __stub macros and hopefully few prototypes,
2340     which can conflict with char $ac_func(); below.  */
2341 #include <assert.h>
2342 /* Override any gcc2 internal prototype to avoid an error.  */
2343 /* We use char because int might match the return type of a gcc2
2344     builtin and then its argument prototype would still apply.  */
2345 char $ac_func();
2346
2347 int main() {
2348
2349 /* The GNU C library defines this for functions which it implements
2350     to always fail with ENOSYS.  Some functions are actually named
2351     something starting with __ and the normal name is an alias.  */
2352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2353 choke me
2354 #else
2355 $ac_func();
2356 #endif
2357
2358 ; return 0; }
2359 EOF
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2361   rm -rf conftest*
2362   eval "ac_cv_func_$ac_func=yes"
2363 else
2364   echo "configure: failed program was:" >&5
2365   cat conftest.$ac_ext >&5
2366   rm -rf conftest*
2367   eval "ac_cv_func_$ac_func=no"
2368 fi
2369 rm -f conftest*
2370 fi
2371
2372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2373   echo "$ac_t""yes" 1>&6
2374     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2375   cat >> confdefs.h <<EOF
2376 #define $ac_tr_func 1
2377 EOF
2378  
2379 else
2380   echo "$ac_t""no" 1>&6
2381 fi
2382 done
2383
2384
2385
2386 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
2387 echo "configure:2388: checking for pcre_compile in -lpcre" >&5
2388 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
2389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2390   echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2392   ac_save_LIBS="$LIBS"
2393 LIBS="-lpcre  $LIBS"
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 /* Override any gcc2 internal prototype to avoid an error.  */
2398 /* We use char because int might match the return type of a gcc2
2399     builtin and then its argument prototype would still apply.  */
2400 char pcre_compile();
2401
2402 int main() {
2403 pcre_compile()
2404 ; return 0; }
2405 EOF
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2407   rm -rf conftest*
2408   eval "ac_cv_lib_$ac_lib_var=yes"
2409 else
2410   echo "configure: failed program was:" >&5
2411   cat conftest.$ac_ext >&5
2412   rm -rf conftest*
2413   eval "ac_cv_lib_$ac_lib_var=no"
2414 fi
2415 rm -f conftest*
2416 LIBS="$ac_save_LIBS"
2417
2418 fi
2419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2420   echo "$ac_t""yes" 1>&6
2421   ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
2422 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
2423 echo "configure:2424: checking for pcre.h" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2425   echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427   cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 #include <pcre.h>
2431 EOF
2432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2435 if test -z "$ac_err"; then
2436   rm -rf conftest*
2437   eval "ac_cv_header_$ac_safe=yes"
2438 else
2439   echo "$ac_err" >&5
2440   echo "configure: failed program was:" >&5
2441   cat conftest.$ac_ext >&5
2442   rm -rf conftest*
2443   eval "ac_cv_header_$ac_safe=no"
2444 fi
2445 rm -f conftest*
2446 fi
2447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2448   echo "$ac_t""yes" 1>&6
2449   have_pcre=yes
2450 else
2451   echo "$ac_t""no" 1>&6
2452 have_pcre=no
2453 fi
2454
2455 else
2456   echo "$ac_t""no" 1>&6
2457 have_pcre=no
2458 fi
2459
2460 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
2461 echo "configure:2462: checking for regcomp in -lpcreposix" >&5
2462 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464   echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466   ac_save_LIBS="$LIBS"
2467 LIBS="-lpcreposix -lpcre $LIBS"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error.  */
2472 /* We use char because int might match the return type of a gcc2
2473     builtin and then its argument prototype would still apply.  */
2474 char regcomp();
2475
2476 int main() {
2477 regcomp()
2478 ; return 0; }
2479 EOF
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2481   rm -rf conftest*
2482   eval "ac_cv_lib_$ac_lib_var=yes"
2483 else
2484   echo "configure: failed program was:" >&5
2485   cat conftest.$ac_ext >&5
2486   rm -rf conftest*
2487   eval "ac_cv_lib_$ac_lib_var=no"
2488 fi
2489 rm -f conftest*
2490 LIBS="$ac_save_LIBS"
2491
2492 fi
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494   echo "$ac_t""yes" 1>&6
2495   ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
2496 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
2497 echo "configure:2498: checking for pcreposix.h" >&5
2498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2499   echo $ac_n "(cached) $ac_c" 1>&6
2500 else
2501   cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <pcreposix.h>
2505 EOF
2506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2507 { (eval echo configure:2508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2509 if test -z "$ac_err"; then
2510   rm -rf conftest*
2511   eval "ac_cv_header_$ac_safe=yes"
2512 else
2513   echo "$ac_err" >&5
2514   echo "configure: failed program was:" >&5
2515   cat conftest.$ac_ext >&5
2516   rm -rf conftest*
2517   eval "ac_cv_header_$ac_safe=no"
2518 fi
2519 rm -f conftest*
2520 fi
2521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2522   echo "$ac_t""yes" 1>&6
2523   have_pcreposix=yes
2524 else
2525   echo "$ac_t""no" 1>&6
2526 have_pcreposix=no
2527 fi
2528
2529 else
2530   echo "$ac_t""no" 1>&6
2531 have_pcreposix=no
2532 fi
2533
2534 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
2535 echo "configure:2536: checking for pcrs_compile in -lpcrs" >&5
2536 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
2537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2538   echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540   ac_save_LIBS="$LIBS"
2541 LIBS="-lpcrs  $LIBS"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 /* Override any gcc2 internal prototype to avoid an error.  */
2546 /* We use char because int might match the return type of a gcc2
2547     builtin and then its argument prototype would still apply.  */
2548 char pcrs_compile();
2549
2550 int main() {
2551 pcrs_compile()
2552 ; return 0; }
2553 EOF
2554 if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555   rm -rf conftest*
2556   eval "ac_cv_lib_$ac_lib_var=yes"
2557 else
2558   echo "configure: failed program was:" >&5
2559   cat conftest.$ac_ext >&5
2560   rm -rf conftest*
2561   eval "ac_cv_lib_$ac_lib_var=no"
2562 fi
2563 rm -f conftest*
2564 LIBS="$ac_save_LIBS"
2565
2566 fi
2567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2568   echo "$ac_t""yes" 1>&6
2569   ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
2570 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
2571 echo "configure:2572: checking for pcrs.h" >&5
2572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2573   echo $ac_n "(cached) $ac_c" 1>&6
2574 else
2575   cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <pcrs.h>
2579 EOF
2580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2581 { (eval echo configure:2582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2583 if test -z "$ac_err"; then
2584   rm -rf conftest*
2585   eval "ac_cv_header_$ac_safe=yes"
2586 else
2587   echo "$ac_err" >&5
2588   echo "configure: failed program was:" >&5
2589   cat conftest.$ac_ext >&5
2590   rm -rf conftest*
2591   eval "ac_cv_header_$ac_safe=no"
2592 fi
2593 rm -f conftest*
2594 fi
2595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2596   echo "$ac_t""yes" 1>&6
2597   have_pcrs=yes
2598 else
2599   echo "$ac_t""no" 1>&6
2600 have_pcrs=no
2601 fi
2602
2603 else
2604   echo "$ac_t""no" 1>&6
2605 have_pcrs=no
2606 fi
2607
2608
2609
2610
2611 cat >> confdefs.h <<\EOF
2612 #define __MT__ 1
2613 EOF
2614
2615
2616
2617 # Check whether --enable-toggle or --disable-toggle was given.
2618 if test "${enable_toggle+set}" = set; then
2619   enableval="$enable_toggle"
2620   if test $enableval = yes; then
2621   cat >> confdefs.h <<\EOF
2622 #define FEATURE_TOGGLE 1
2623 EOF
2624
2625 fi
2626 else
2627   cat >> confdefs.h <<\EOF
2628 #define FEATURE_TOGGLE 1
2629 EOF
2630
2631 fi
2632
2633
2634 # Check whether --enable-force or --disable-force was given.
2635 if test "${enable_force+set}" = set; then
2636   enableval="$enable_force"
2637   if test $enableval = yes; then
2638   cat >> confdefs.h <<\EOF
2639 #define FEATURE_FORCE_LOAD 1
2640 EOF
2641
2642 fi
2643 else
2644   cat >> confdefs.h <<\EOF
2645 #define FEATURE_FORCE_LOAD 1
2646 EOF
2647
2648 fi
2649
2650
2651 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2652 if test "${enable_fast_redirects+set}" = set; then
2653   enableval="$enable_fast_redirects"
2654   if test $enableval = yes; then
2655   cat >> confdefs.h <<\EOF
2656 #define FEATURE_FAST_REDIRECTS 1
2657 EOF
2658
2659 fi
2660 else
2661   cat >> confdefs.h <<\EOF
2662 #define FEATURE_FAST_REDIRECTS 1
2663 EOF
2664
2665 fi
2666
2667
2668 # Check whether --enable-killpopup or --disable-killpopup was given.
2669 if test "${enable_killpopup+set}" = set; then
2670   enableval="$enable_killpopup"
2671   if test $enableval = yes; then
2672   cat >> confdefs.h <<\EOF
2673 #define FEATURE_KILL_POPUPS 1
2674 EOF
2675
2676 fi
2677 else
2678   cat >> confdefs.h <<\EOF
2679 #define FEATURE_KILL_POPUPS 1
2680 EOF
2681
2682 fi
2683
2684
2685 # Check whether --enable-stats or --disable-stats was given.
2686 if test "${enable_stats+set}" = set; then
2687   enableval="$enable_stats"
2688   if test $enableval = yes; then
2689   cat >> confdefs.h <<\EOF
2690 #define FEATURE_STATISTICS 1
2691 EOF
2692
2693 fi
2694 else
2695   cat >> confdefs.h <<\EOF
2696 #define FEATURE_STATISTICS 1
2697 EOF
2698
2699 fi
2700
2701
2702 # Check whether --enable-ie-images or --disable-ie-images was given.
2703 if test "${enable_ie_images+set}" = set; then
2704   enableval="$enable_ie_images"
2705   if test $enableval = yes; then
2706   cat >> confdefs.h <<\EOF
2707 #define FEATURE_IMAGE_DETECT_MSIE 1
2708 EOF
2709
2710 fi
2711 else
2712   cat >> confdefs.h <<\EOF
2713 #define FEATURE_IMAGE_DETECT_MSIE 1
2714 EOF
2715
2716 fi
2717
2718
2719 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2720 if test "${enable_image_blocking+set}" = set; then
2721   enableval="$enable_image_blocking"
2722   if test $enableval = yes; then
2723   cat >> confdefs.h <<\EOF
2724 #define FEATURE_IMAGE_BLOCKING 1
2725 EOF
2726
2727 fi
2728 else
2729   cat >> confdefs.h <<\EOF
2730 #define FEATURE_IMAGE_BLOCKING 1
2731 EOF
2732
2733 fi
2734
2735
2736 # Check whether --enable-acl-files or --disable-acl-files was given.
2737 if test "${enable_acl_files+set}" = set; then
2738   enableval="$enable_acl_files"
2739   if test $enableval = yes; then
2740   cat >> confdefs.h <<\EOF
2741 #define FEATURE_ACL 1
2742 EOF
2743
2744 fi
2745 else
2746   cat >> confdefs.h <<\EOF
2747 #define FEATURE_ACL 1
2748 EOF
2749
2750 fi
2751
2752
2753 # Check whether --enable-trust-files or --disable-trust-files was given.
2754 if test "${enable_trust_files+set}" = set; then
2755   enableval="$enable_trust_files"
2756   if test $enableval = yes; then
2757   cat >> confdefs.h <<\EOF
2758 #define FEATURE_TRUST 1
2759 EOF
2760
2761 fi
2762 else
2763   cat >> confdefs.h <<\EOF
2764 #define FEATURE_TRUST 1
2765 EOF
2766
2767 fi
2768
2769
2770 # Check whether --enable-jar-files or --disable-jar-files was given.
2771 if test "${enable_jar_files+set}" = set; then
2772   enableval="$enable_jar_files"
2773   if test $enableval = yes; then
2774   cat >> confdefs.h <<\EOF
2775 #define FEATURE_COOKIE_JAR 1
2776 EOF
2777
2778 fi
2779 else
2780   cat >> confdefs.h <<\EOF
2781 #define FEATURE_COOKIE_JAR 1
2782 EOF
2783
2784 fi
2785
2786
2787 # Check whether --enable-editor or --disable-editor was given.
2788 if test "${enable_editor+set}" = set; then
2789   enableval="$enable_editor"
2790   if test $enableval = yes; then
2791   cat >> confdefs.h <<\EOF
2792 #define FEATURE_CGI_EDIT_ACTIONS 1
2793 EOF
2794
2795 fi
2796 else
2797   cat >> confdefs.h <<\EOF
2798 #define FEATURE_CGI_EDIT_ACTIONS 1
2799 EOF
2800
2801 fi
2802
2803
2804
2805 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2806 if test "${enable_regex_matching+set}" = set; then
2807   enableval="$enable_regex_matching"
2808    regex_matching=$enableval 
2809 else
2810    regex_matching=pcre 
2811 fi
2812
2813
2814 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2815 if test "${enable_dynamic_pcre+set}" = set; then
2816   enableval="$enable_dynamic_pcre"
2817    if test $enableval = "no"; then have_pcre=no; fi 
2818 fi
2819
2820
2821 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2822 if test "${enable_dynamic_pcrs+set}" = set; then
2823   enableval="$enable_dynamic_pcrs"
2824    if test $enableval = "no"; then have_pcrs=no; fi 
2825 fi
2826
2827
2828
2829 # Is the regex URL matching based on libpcreposix, but we
2830 # don't have that library?
2831 #
2832 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2833   dont_miss_pcreposix=yes
2834 else
2835   dont_miss_pcreposix=no
2836 fi
2837
2838 # If we have libpcre and either we also have pcreposix or
2839 # we don't need pcreposix, then link pcre dynamically; else
2840 # build it and link statically
2841 #
2842 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2843   echo "using libpcre"
2844   pcre_dyn=yes
2845   STATIC_PCRE_ONLY=#
2846   LIBS="$LIBS -lpcre"
2847 else
2848   echo "using built-in static pcre"
2849   pcre_dyn=no
2850   cat >> confdefs.h <<\EOF
2851 #define STATIC_PCRE 1
2852 EOF
2853
2854   STATIC_PCRE_ONLY=
2855 fi
2856
2857 # If we have libpcrs and pcre is linked dynamically
2858 # then also link pcrs dynamically, else build and link
2859 # pcrs statically
2860 #
2861 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2862   echo "using libpcrs"
2863   STATIC_PCRS_ONLY=#
2864   LIBS="$LIBS -lpcrs"
2865 else
2866   echo "using built-in static pcrs"
2867   cat >> confdefs.h <<\EOF
2868 #define STATIC_PCRS 1
2869 EOF
2870
2871   STATIC_PCRS_ONLY=
2872 fi
2873
2874 # Which method should be used for URL matching?
2875 # pcre, gnu regex or prefix matching?
2876 #
2877 if test $regex_matching = "gnu"; then
2878   echo "using gnu regex for URL matching"
2879   cat >> confdefs.h <<\EOF
2880 #define REGEX_GNU 1
2881 EOF
2882
2883   GNU_REGEX_ONLY=
2884   PCRE_REGEX_ONLY=#
2885 elif test $regex_matching = "pcre"; then
2886   echo "using pcre regex for URL matching"
2887   cat >> confdefs.h <<\EOF
2888 #define REGEX_PCRE 1
2889 EOF
2890
2891   GNU_REGEX_ONLY=#
2892   PCRE_REGEX_ONLY=
2893   if test $pcre_dyn = "yes"; then
2894     LIBS="$LIBS -lpcreposix"
2895   fi
2896 else
2897   echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2898   GNU_REGEX_ONLY=#
2899   PCRE_REGEX_ONLY=#
2900 fi
2901
2902
2903
2904
2905
2906
2907
2908 CFLAGS=$old_CFLAGS_nospecial
2909
2910
2911
2912
2913 trap '' 1 2 15
2914 cat > confcache <<\EOF
2915 # This file is a shell script that caches the results of configure
2916 # tests run on this system so they can be shared between configure
2917 # scripts and configure runs.  It is not useful on other systems.
2918 # If it contains results you don't want to keep, you may remove or edit it.
2919 #
2920 # By default, configure uses ./config.cache as the cache file,
2921 # creating it if it does not exist already.  You can give configure
2922 # the --cache-file=FILE option to use a different cache file; that is
2923 # what configure does when it calls configure scripts in
2924 # subdirectories, so they share the cache.
2925 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2926 # config.status only pays attention to the cache file if you give it the
2927 # --recheck option to rerun configure.
2928 #
2929 EOF
2930 # The following way of writing the cache mishandles newlines in values,
2931 # but we know of no workaround that is simple, portable, and efficient.
2932 # So, don't put newlines in cache variables' values.
2933 # Ultrix sh set writes to stderr and can't be redirected directly,
2934 # and sets the high bit in the cache file unless we assign to the vars.
2935 (set) 2>&1 |
2936   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2937   *ac_space=\ *)
2938     # `set' does not quote correctly, so add quotes (double-quote substitution
2939     # turns \\\\ into \\, and sed turns \\ into \).
2940     sed -n \
2941       -e "s/'/'\\\\''/g" \
2942       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2943     ;;
2944   *)
2945     # `set' quotes correctly as required by POSIX, so do not add quotes.
2946     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2947     ;;
2948   esac >> confcache
2949 if cmp -s $cache_file confcache; then
2950   :
2951 else
2952   if test -w $cache_file; then
2953     echo "updating cache $cache_file"
2954     cat confcache > $cache_file
2955   else
2956     echo "not updating unwritable cache $cache_file"
2957   fi
2958 fi
2959 rm -f confcache
2960
2961 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2962
2963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2964 # Let make expand exec_prefix.
2965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2966
2967 # Any assignment to VPATH causes Sun make to only execute
2968 # the first set of double-colon rules, so remove it if not needed.
2969 # If there is a colon in the path, we need to keep it.
2970 if test "x$srcdir" = x.; then
2971   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2972 fi
2973
2974 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2975
2976 DEFS=-DHAVE_CONFIG_H
2977
2978 # Without the "./", some shells look in PATH for config.status.
2979 : ${CONFIG_STATUS=./config.status}
2980
2981 echo creating $CONFIG_STATUS
2982 rm -f $CONFIG_STATUS
2983 cat > $CONFIG_STATUS <<EOF
2984 #! /bin/sh
2985 # Generated automatically by configure.
2986 # Run this file to recreate the current configuration.
2987 # This directory was configured as follows,
2988 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2989 #
2990 # $0 $ac_configure_args
2991 #
2992 # Compiler output produced by configure, useful for debugging
2993 # configure, is in ./config.log if it exists.
2994
2995 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2996 for ac_option
2997 do
2998   case "\$ac_option" in
2999   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3000     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3001     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3002   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3003     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3004     exit 0 ;;
3005   -help | --help | --hel | --he | --h)
3006     echo "\$ac_cs_usage"; exit 0 ;;
3007   *) echo "\$ac_cs_usage"; exit 1 ;;
3008   esac
3009 done
3010
3011 ac_given_srcdir=$srcdir
3012
3013 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3014 EOF
3015 cat >> $CONFIG_STATUS <<EOF
3016
3017 # Protect against being on the right side of a sed subst in config.status.
3018 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3019  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3020 $ac_vpsub
3021 $extrasub
3022 s%@SHELL@%$SHELL%g
3023 s%@CFLAGS@%$CFLAGS%g
3024 s%@CPPFLAGS@%$CPPFLAGS%g
3025 s%@CXXFLAGS@%$CXXFLAGS%g
3026 s%@FFLAGS@%$FFLAGS%g
3027 s%@DEFS@%$DEFS%g
3028 s%@LDFLAGS@%$LDFLAGS%g
3029 s%@LIBS@%$LIBS%g
3030 s%@exec_prefix@%$exec_prefix%g
3031 s%@prefix@%$prefix%g
3032 s%@program_transform_name@%$program_transform_name%g
3033 s%@bindir@%$bindir%g
3034 s%@sbindir@%$sbindir%g
3035 s%@libexecdir@%$libexecdir%g
3036 s%@datadir@%$datadir%g
3037 s%@sysconfdir@%$sysconfdir%g
3038 s%@sharedstatedir@%$sharedstatedir%g
3039 s%@localstatedir@%$localstatedir%g
3040 s%@libdir@%$libdir%g
3041 s%@includedir@%$includedir%g
3042 s%@oldincludedir@%$oldincludedir%g
3043 s%@infodir@%$infodir%g
3044 s%@mandir@%$mandir%g
3045 s%@host@%$host%g
3046 s%@host_alias@%$host_alias%g
3047 s%@host_cpu@%$host_cpu%g
3048 s%@host_vendor@%$host_vendor%g
3049 s%@host_os@%$host_os%g
3050 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
3051 s%@VERSION_MINOR@%$VERSION_MINOR%g
3052 s%@VERSION_POINT@%$VERSION_POINT%g
3053 s%@CODE_STATUS@%$CODE_STATUS%g
3054 s%@CC@%$CC%g
3055 s%@CPP@%$CPP%g
3056 s%@GDB@%$GDB%g
3057 s%@WIN_ONLY@%$WIN_ONLY%g
3058 s%@WDUMP@%$WDUMP%g
3059 s%@RPMBIN@%$RPMBIN%g
3060 s%@RPM_BASE@%$RPM_BASE%g
3061 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
3062 s%@SOCKET_LIB@%$SOCKET_LIB%g
3063 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
3064 s%@EXEEXT@%$EXEEXT%g
3065 s%@OBJEXT@%$OBJEXT%g
3066 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
3067 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
3068 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
3069 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
3070 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
3071 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
3072
3073 CEOF
3074 EOF
3075
3076 cat >> $CONFIG_STATUS <<\EOF
3077
3078 # Split the substitutions into bite-sized pieces for seds with
3079 # small command number limits, like on Digital OSF/1 and HP-UX.
3080 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3081 ac_file=1 # Number of current file.
3082 ac_beg=1 # First line for current file.
3083 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3084 ac_more_lines=:
3085 ac_sed_cmds=""
3086 while $ac_more_lines; do
3087   if test $ac_beg -gt 1; then
3088     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3089   else
3090     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3091   fi
3092   if test ! -s conftest.s$ac_file; then
3093     ac_more_lines=false
3094     rm -f conftest.s$ac_file
3095   else
3096     if test -z "$ac_sed_cmds"; then
3097       ac_sed_cmds="sed -f conftest.s$ac_file"
3098     else
3099       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3100     fi
3101     ac_file=`expr $ac_file + 1`
3102     ac_beg=$ac_end
3103     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3104   fi
3105 done
3106 if test -z "$ac_sed_cmds"; then
3107   ac_sed_cmds=cat
3108 fi
3109 EOF
3110
3111 cat >> $CONFIG_STATUS <<EOF
3112
3113 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
3114 EOF
3115 cat >> $CONFIG_STATUS <<\EOF
3116 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3117   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3118   case "$ac_file" in
3119   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3120        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3121   *) ac_file_in="${ac_file}.in" ;;
3122   esac
3123
3124   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3125
3126   # Remove last slash and all that follows it.  Not all systems have dirname.
3127   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3128   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3129     # The file is in a subdirectory.
3130     test ! -d "$ac_dir" && mkdir "$ac_dir"
3131     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3132     # A "../" for each directory in $ac_dir_suffix.
3133     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3134   else
3135     ac_dir_suffix= ac_dots=
3136   fi
3137
3138   case "$ac_given_srcdir" in
3139   .)  srcdir=.
3140       if test -z "$ac_dots"; then top_srcdir=.
3141       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3142   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3143   *) # Relative path.
3144     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3145     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3146   esac
3147
3148
3149   echo creating "$ac_file"
3150   rm -f "$ac_file"
3151   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3152   case "$ac_file" in
3153   *Makefile*) ac_comsub="1i\\
3154 # $configure_input" ;;
3155   *) ac_comsub= ;;
3156   esac
3157
3158   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3159   sed -e "$ac_comsub
3160 s%@configure_input@%$configure_input%g
3161 s%@srcdir@%$srcdir%g
3162 s%@top_srcdir@%$top_srcdir%g
3163 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3164 fi; done
3165 rm -f conftest.s*
3166
3167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3169 #
3170 # ac_d sets the value in "#define NAME VALUE" lines.
3171 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3172 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3173 ac_dC='\3'
3174 ac_dD='%g'
3175 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3176 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3177 ac_uB='\([      ]\)%\1#\2define\3'
3178 ac_uC=' '
3179 ac_uD='\4%g'
3180 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3181 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3182 ac_eB='$%\1#\2define\3'
3183 ac_eC=' '
3184 ac_eD='%g'
3185
3186 if test "${CONFIG_HEADERS+set}" != set; then
3187 EOF
3188 cat >> $CONFIG_STATUS <<EOF
3189   CONFIG_HEADERS="config.h"
3190 EOF
3191 cat >> $CONFIG_STATUS <<\EOF
3192 fi
3193 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3194   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3195   case "$ac_file" in
3196   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3197        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3198   *) ac_file_in="${ac_file}.in" ;;
3199   esac
3200
3201   echo creating $ac_file
3202
3203   rm -f conftest.frag conftest.in conftest.out
3204   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3205   cat $ac_file_inputs > conftest.in
3206
3207 EOF
3208
3209 # Transform confdefs.h into a sed script conftest.vals that substitutes
3210 # the proper values into config.h.in to produce config.h.  And first:
3211 # Protect against being on the right side of a sed subst in config.status.
3212 # Protect against being in an unquoted here document in config.status.
3213 rm -f conftest.vals
3214 cat > conftest.hdr <<\EOF
3215 s/[\\&%]/\\&/g
3216 s%[\\$`]%\\&%g
3217 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3218 s%ac_d%ac_u%gp
3219 s%ac_u%ac_e%gp
3220 EOF
3221 sed -n -f conftest.hdr confdefs.h > conftest.vals
3222 rm -f conftest.hdr
3223
3224 # This sed command replaces #undef with comments.  This is necessary, for
3225 # example, in the case of _POSIX_SOURCE, which is predefined and required
3226 # on some systems where configure will not decide to define it.
3227 cat >> conftest.vals <<\EOF
3228 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3229 EOF
3230
3231 # Break up conftest.vals because some shells have a limit on
3232 # the size of here documents, and old seds have small limits too.
3233
3234 rm -f conftest.tail
3235 while :
3236 do
3237   ac_lines=`grep -c . conftest.vals`
3238   # grep -c gives empty output for an empty file on some AIX systems.
3239   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3240   # Write a limited-size here document to conftest.frag.
3241   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3242   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3243   echo 'CEOF
3244   sed -f conftest.frag conftest.in > conftest.out
3245   rm -f conftest.in
3246   mv conftest.out conftest.in
3247 ' >> $CONFIG_STATUS
3248   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3249   rm -f conftest.vals
3250   mv conftest.tail conftest.vals
3251 done
3252 rm -f conftest.vals
3253
3254 cat >> $CONFIG_STATUS <<\EOF
3255   rm -f conftest.frag conftest.h
3256   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3257   cat conftest.in >> conftest.h
3258   rm -f conftest.in
3259   if cmp -s $ac_file conftest.h 2>/dev/null; then
3260     echo "$ac_file is unchanged"
3261     rm -f conftest.h
3262   else
3263     # Remove last slash and all that follows it.  Not all systems have dirname.
3264       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3265       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3266       # The file is in a subdirectory.
3267       test ! -d "$ac_dir" && mkdir "$ac_dir"
3268     fi
3269     rm -f $ac_file
3270     mv conftest.h $ac_file
3271   fi
3272 fi; done
3273
3274 EOF
3275 cat >> $CONFIG_STATUS <<EOF
3276
3277 EOF
3278 cat >> $CONFIG_STATUS <<\EOF
3279
3280 exit 0
3281 EOF
3282 chmod +x $CONFIG_STATUS
3283 rm -fr confdefs* $ac_clean_files
3284 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3285