3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-mingw32 Use mingw32 for a Windows GUI"
17 --disable-regex Don't allow regular expressions in the blockfile"
19 --disable-pcre-regex Use old, slow GNU Regex instead of PCRE."
21 --disable-toggle Don't support temporary disable"
23 --disable-pcrs Don't support arbitrary content modification"
25 --disable-force Don't allow blockfle to be bypassed"
27 --disable-fast-redirects Don't support fast redirects"
29 --disable-killpopup Never block popups"
31 --disable-stats Don't keep statistics"
33 --disable-split-proxy-args One big show-proxy-args page, not one per file."
35 --disable-webdav Don't support WebDAV. This option stops MS Outlook
36 Express from accessing HotMail e-mail."
38 --disable-ie-images Don't auto-detect whether a request from MS Internet
39 Explorer is for an image or HTML."
41 --disable-image-blocking Don't try to figure out whether a request is
42 for an image or HTML - assume HTML."
44 --disable-acl-files Prevents the use of ACL files to control access to
45 the proxy by IP address."
47 --disable-trust-files Prevents the use of trust files."
49 --disable-jar-files Prevents the use of jar files to capture cookies."
51 --disable-static-pcre Link dynamically with the pcre and pcreposix
52 libraries. You must build the libraries seperately."
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file=./config.cache
67 program_transform_name=s,x,x,
75 bindir='${exec_prefix}/bin'
76 sbindir='${exec_prefix}/sbin'
77 libexecdir='${exec_prefix}/libexec'
78 datadir='${prefix}/share'
79 sysconfdir='${prefix}/etc'
80 sharedstatedir='${prefix}/com'
81 localstatedir='${prefix}/var'
82 libdir='${exec_prefix}/lib'
83 includedir='${prefix}/include'
84 oldincludedir='/usr/include'
85 infodir='${prefix}/info'
86 mandir='${prefix}/man'
88 # Initialize some other variables.
91 SHELL=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
107 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 # Accept the important Cygnus configure options, so we can diagnose typos.
115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
118 bindir="$ac_optarg" ;;
120 -build | --build | --buil | --bui | --bu)
122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
123 build="$ac_optarg" ;;
125 -cache-file | --cache-file | --cache-fil | --cache-fi \
126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
127 ac_prev=cache_file ;;
128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
130 cache_file="$ac_optarg" ;;
132 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136 datadir="$ac_optarg" ;;
138 -disable-* | --disable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* | --enable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
162 | --exec | --exe | --ex)
163 ac_prev=exec_prefix ;;
164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
166 | --exec=* | --exe=* | --ex=*)
167 exec_prefix="$ac_optarg" ;;
169 -gas | --gas | --ga | --g)
170 # Obsolete; use --with-gas.
173 -help | --help | --hel | --he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
228 -host | --host | --hos | --ho)
230 -host=* | --host=* | --hos=* | --ho=*)
233 -includedir | --includedir | --includedi | --included | --include \
234 | --includ | --inclu | --incl | --inc)
235 ac_prev=includedir ;;
236 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
237 | --includ=* | --inclu=* | --incl=* | --inc=*)
238 includedir="$ac_optarg" ;;
240 -infodir | --infodir | --infodi | --infod | --info | --inf)
242 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
243 infodir="$ac_optarg" ;;
245 -libdir | --libdir | --libdi | --libd)
247 -libdir=* | --libdir=* | --libdi=* | --libd=*)
248 libdir="$ac_optarg" ;;
250 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
251 | --libexe | --libex | --libe)
252 ac_prev=libexecdir ;;
253 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
254 | --libexe=* | --libex=* | --libe=*)
255 libexecdir="$ac_optarg" ;;
257 -localstatedir | --localstatedir | --localstatedi | --localstated \
258 | --localstate | --localstat | --localsta | --localst \
259 | --locals | --local | --loca | --loc | --lo)
260 ac_prev=localstatedir ;;
261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
262 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
263 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
264 localstatedir="$ac_optarg" ;;
266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
269 mandir="$ac_optarg" ;;
272 # Obsolete; use --without-fp.
275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
285 | --oldin | --oldi | --old | --ol | --o)
286 ac_prev=oldincludedir ;;
287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
290 oldincludedir="$ac_optarg" ;;
292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
295 prefix="$ac_optarg" ;;
297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
298 | --program-pre | --program-pr | --program-p)
299 ac_prev=program_prefix ;;
300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
302 program_prefix="$ac_optarg" ;;
304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
305 | --program-suf | --program-su | --program-s)
306 ac_prev=program_suffix ;;
307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
309 program_suffix="$ac_optarg" ;;
311 -program-transform-name | --program-transform-name \
312 | --program-transform-nam | --program-transform-na \
313 | --program-transform-n | --program-transform- \
314 | --program-transform | --program-transfor \
315 | --program-transfo | --program-transf \
316 | --program-trans | --program-tran \
317 | --progr-tra | --program-tr | --program-t)
318 ac_prev=program_transform_name ;;
319 -program-transform-name=* | --program-transform-name=* \
320 | --program-transform-nam=* | --program-transform-na=* \
321 | --program-transform-n=* | --program-transform-=* \
322 | --program-transform=* | --program-transfor=* \
323 | --program-transfo=* | --program-transf=* \
324 | --program-trans=* | --program-tran=* \
325 | --progr-tra=* | --program-tr=* | --program-t=*)
326 program_transform_name="$ac_optarg" ;;
328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
329 | -silent | --silent | --silen | --sile | --sil)
332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336 sbindir="$ac_optarg" ;;
338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
340 | --sharedst | --shareds | --shared | --share | --shar \
342 ac_prev=sharedstatedir ;;
343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347 sharedstatedir="$ac_optarg" ;;
349 -site | --site | --sit)
351 -site=* | --site=* | --sit=*)
354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
357 srcdir="$ac_optarg" ;;
359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
360 | --syscon | --sysco | --sysc | --sys | --sy)
361 ac_prev=sysconfdir ;;
362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
364 sysconfdir="$ac_optarg" ;;
366 -target | --target | --targe | --targ | --tar | --ta | --t)
368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
369 target="$ac_optarg" ;;
371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
374 -version | --version | --versio | --versi | --vers)
375 echo "configure generated by autoconf version 2.13"
379 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* | --without-*)
392 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
401 # Obsolete; use --with-x.
404 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
405 | --x-incl | --x-inc | --x-in | --x-i)
406 ac_prev=x_includes ;;
407 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
408 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
409 x_includes="$ac_optarg" ;;
411 -x-libraries | --x-libraries | --x-librarie | --x-librari \
412 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
413 ac_prev=x_libraries ;;
414 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
415 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
416 x_libraries="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 | --no-cr | --no-c) ;;
468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted=yes
498 # Try the directory containing this script, then its parent.
500 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
503 if test ! -r $srcdir/$ac_unique_file; then
507 ac_srcdir_defaulted=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE; then
521 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
537 echo "creating cache $cache_file"
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp='$CPP $CPPFLAGS'
544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
559 ac_n= ac_c='\c' ac_t=
573 cat >> confdefs.h <<\EOF
574 #define CODE_STATUS "alpha"
578 cat >> confdefs.h <<EOF
579 #define VERSION_MAJOR ${VERSION_MAJOR}
582 cat >> confdefs.h <<EOF
583 #define VERSION_MINOR ${VERSION_MINOR}
586 cat >> confdefs.h <<EOF
587 #define VERSION_POINT ${VERSION_POINT}
590 cat >> confdefs.h <<EOF
591 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
595 # Extract the first word of "gcc", so it can be a program name with args.
596 set dummy gcc; ac_word=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 echo "configure:599: checking for $ac_word" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
602 if test -n "$CC"; then
603 ac_cv_prog_CC="$CC" # Let the user override the test.
605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
607 for ac_dir in $ac_dummy; do
608 test -z "$ac_dir" && ac_dir=.
609 if test -f $ac_dir/$ac_word; then
618 if test -n "$CC"; then
619 echo "$ac_t""$CC" 1>&6
621 echo "$ac_t""no" 1>&6
624 if test -z "$CC"; then
625 # Extract the first word of "cc", so it can be a program name with args.
626 set dummy cc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 for ac_dir in $ac_dummy; do
639 test -z "$ac_dir" && ac_dir=.
640 if test -f $ac_dir/$ac_word; then
641 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
650 if test $ac_prog_rejected = yes; then
651 # We found a bogon in the path, so make sure we never use it.
652 set dummy $ac_cv_prog_CC
654 if test $# -gt 0; then
655 # We chose a different compiler from the bogus one.
656 # However, it has the same basename, so the bogon will be chosen
657 # first if we set CC to just the basename; use the full file name.
659 set dummy "$ac_dir/$ac_word" "$@"
667 if test -n "$CC"; then
668 echo "$ac_t""$CC" 1>&6
670 echo "$ac_t""no" 1>&6
673 if test -z "$CC"; then
676 # Extract the first word of "cl", so it can be a program name with args.
677 set dummy cl; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715 ac_cpp='$CPP $CPPFLAGS'
716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718 cross_compiling=$ac_cv_prog_cc_cross
720 cat > conftest.$ac_ext << EOF
722 #line 723 "configure"
723 #include "confdefs.h"
727 if { (eval echo configure:728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
728 ac_cv_prog_cc_works=yes
729 # If we can't run a trivial program, we are probably using a cross compiler.
730 if (./conftest; exit) 2>/dev/null; then
731 ac_cv_prog_cc_cross=no
733 ac_cv_prog_cc_cross=yes
736 echo "configure: failed program was:" >&5
737 cat conftest.$ac_ext >&5
738 ac_cv_prog_cc_works=no
742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
743 ac_cpp='$CPP $CPPFLAGS'
744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
746 cross_compiling=$ac_cv_prog_cc_cross
748 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
749 if test $ac_cv_prog_cc_works = no; then
750 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
753 echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
754 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
755 cross_compiling=$ac_cv_prog_cc_cross
757 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
758 echo "configure:759: checking whether we are using GNU C" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
762 cat > conftest.c <<EOF
767 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
774 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
776 if test $ac_cv_prog_gcc = yes; then
782 ac_test_CFLAGS="${CFLAGS+set}"
783 ac_save_CFLAGS="$CFLAGS"
785 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
786 echo "configure:787: checking whether ${CC-cc} accepts -g" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&6
790 echo 'void f(){}' > conftest.c
791 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
800 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
801 if test "$ac_test_CFLAGS" = set; then
802 CFLAGS="$ac_save_CFLAGS"
803 elif test $ac_cv_prog_cc_g = yes; then
804 if test "$GCC" = yes; then
810 if test "$GCC" = yes; then
817 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
818 echo "configure:819: checking how to run the C preprocessor" >&5
819 # On Suns, sometimes $CPP names a directory.
820 if test -n "$CPP" && test -d "$CPP"; then
823 if test -z "$CPP"; then
824 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 # This must be in double quotes, not single quotes, because CPP may get
828 # substituted into the Makefile and "${CC-cc}" will confuse make.
830 # On the NeXT, cc -E runs the code through the compiler's parser,
831 # not just through cpp.
832 cat > conftest.$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
839 { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
841 if test -z "$ac_err"; then
845 echo "configure: failed program was:" >&5
846 cat conftest.$ac_ext >&5
848 CPP="${CC-cc} -E -traditional-cpp"
849 cat > conftest.$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
858 if test -z "$ac_err"; then
862 echo "configure: failed program was:" >&5
863 cat conftest.$ac_ext >&5
865 CPP="${CC-cc} -nologo -E"
866 cat > conftest.$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
875 if test -z "$ac_err"; then
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
889 ac_cv_prog_CPP="$CPP"
891 CPP="$ac_cv_prog_CPP"
893 ac_cv_prog_CPP="$CPP"
895 echo "$ac_t""$CPP" 1>&6
898 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
899 echo "configure:900: checking for mingw32 environment" >&5
900 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
911 if { (eval echo configure:912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
915 echo "configure: failed program was:" >&5
916 cat conftest.$ac_ext >&5
924 echo "$ac_t""$ac_cv_mingw32" 1>&6
926 test "$ac_cv_mingw32" = yes && MINGW32=yes
927 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
928 echo "configure:929: checking for Cygwin environment" >&5
929 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
939 #define __CYGWIN__ __CYGWIN32__
944 if { (eval echo configure:945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
957 echo "$ac_t""$ac_cv_cygwin" 1>&6
959 test "$ac_cv_cygwin" = yes && CYGWIN=yes
962 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
963 echo "configure:964: checking for executable suffix" >&5
964 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
971 echo 'int main () { return 0; }' > conftest.$ac_ext
973 if { (eval echo configure:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
974 for file in conftest.*; do
976 *.c | *.o | *.obj) ;;
977 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
981 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
984 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
989 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
990 echo "$ac_t""${ac_cv_exeext}" 1>&6
993 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
994 echo "configure:995: checking for object suffix" >&5
995 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'int i = 1;' > conftest.$ac_ext
1000 if { (eval echo configure:1001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1001 for ac_file in conftest.*; do
1004 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1008 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1013 echo "$ac_t""$ac_cv_objext" 1>&6
1014 OBJEXT=$ac_cv_objext
1015 ac_objext=$ac_cv_objext
1019 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1020 echo "configure:1021: checking for ANSI C header files" >&5
1021 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1037 ac_cv_header_stdc=yes
1040 echo "configure: failed program was:" >&5
1041 cat conftest.$ac_ext >&5
1043 ac_cv_header_stdc=no
1047 if test $ac_cv_header_stdc = yes; then
1048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1055 egrep "memchr" >/dev/null 2>&1; then
1059 ac_cv_header_stdc=no
1065 if test $ac_cv_header_stdc = yes; then
1066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1073 egrep "free" >/dev/null 2>&1; then
1077 ac_cv_header_stdc=no
1083 if test $ac_cv_header_stdc = yes; then
1084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1085 if test "$cross_compiling" = yes; then
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1092 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1093 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1095 int main () { int i; for (i = 0; i < 256; i++)
1096 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1100 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1104 echo "configure: failed program was:" >&5
1105 cat conftest.$ac_ext >&5
1107 ac_cv_header_stdc=no
1115 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1116 if test $ac_cv_header_stdc = yes; then
1117 cat >> confdefs.h <<\EOF
1118 #define STDC_HEADERS 1
1124 echo $ac_n "checking for working const""... $ac_c" 1>&6
1125 echo "configure:1126: checking for working const" >&5
1126 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1135 /* Ultrix mips cc rejects this. */
1136 typedef int charset[2]; const charset x;
1137 /* SunOS 4.1.1 cc rejects this. */
1138 char const *const *ccp;
1140 /* NEC SVR4.0.2 mips cc rejects this. */
1141 struct point {int x, y;};
1142 static struct point const zero = {0,0};
1143 /* AIX XL C 1.02.0.0 rejects this.
1144 It does not let you subtract one const X* pointer from another in an arm
1145 of an if-expression whose if-part is not a constant expression */
1146 const char *g = "string";
1147 ccp = &g + (g ? g-g : 0);
1148 /* HPUX 7.0 cc rejects these. */
1151 ccp = (char const *const *) p;
1152 { /* SCO 3.2v4 cc rejects this. */
1154 char const *s = 0 ? (char *) 0 : (char const *) 0;
1158 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1160 const int *foo = &x[0];
1163 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1164 typedef const int *iptr;
1168 { /* AIX XL C 1.02.0.0 rejects this saying
1169 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1170 struct s { int j; const int *ap[3]; };
1171 struct s *b; b->j = 5;
1173 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1179 if { (eval echo configure:1180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1191 echo "$ac_t""$ac_cv_c_const" 1>&6
1192 if test $ac_cv_c_const = no; then
1193 cat >> confdefs.h <<\EOF
1199 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1200 echo "configure:1201: checking for size_t" >&5
1201 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 #include <sys/types.h>
1213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1214 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1216 ac_cv_type_size_t=yes
1219 ac_cv_type_size_t=no
1224 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1225 if test $ac_cv_type_size_t = no; then
1226 cat >> confdefs.h <<\EOF
1227 #define size_t unsigned
1233 for ac_func in strerror bcopy memmove
1235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_func" >&5
1237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 /* System header to define __stub macros and hopefully few prototypes,
1244 which can conflict with char $ac_func(); below. */
1246 /* Override any gcc2 internal prototype to avoid an error. */
1247 /* We use char because int might match the return type of a gcc2
1248 builtin and then its argument prototype would still apply. */
1253 /* The GNU C library defines this for functions which it implements
1254 to always fail with ENOSYS. Some functions are actually named
1255 something starting with __ and the normal name is an alias. */
1256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1264 if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1266 eval "ac_cv_func_$ac_func=yes"
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1271 eval "ac_cv_func_$ac_func=no"
1276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1277 echo "$ac_t""yes" 1>&6
1278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1279 cat >> confdefs.h <<EOF
1280 #define $ac_tr_func 1
1284 echo "$ac_t""no" 1>&6
1290 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1291 if test "${enable_mingw32+set}" = set; then
1292 enableval="$enable_mingw32"
1293 if test $enableval = yes; then
1295 CYGWIN_FLAGS="-mwindows -mno-cygwin"
1296 echo "Using mingw32 (Win32 GUI)"
1299 if test "$CYGWIN" = "yes"; then
1300 CYGWIN_FLAGS="-mno-win32"
1301 echo "Using Cygnus (Win32 command line)"
1307 if test "$MINGW32" = "yes"; then
1309 CYGWIN_FLAGS="-mwindows -mno-cygwin"
1310 echo "Using mingw32 (Win32 GUI)"
1313 if test "$CYGWIN" = "yes"; then
1314 CYGWIN_FLAGS="-mno-win32"
1315 echo "Using Cygnus (Win32 command line)"
1335 # Check whether --enable-regex or --disable-regex was given.
1336 if test "${enable_regex+set}" = set; then
1337 enableval="$enable_regex"
1338 if test $enableval = yes; then
1339 cat >> confdefs.h <<\EOF
1349 cat >> confdefs.h <<\EOF
1356 # Check whether --enable-pcre-regex or --disable-pcre-regex was given.
1357 if test "${enable_pcre_regex+set}" = set; then
1358 enableval="$enable_pcre_regex"
1359 if test $enableval = yes; then
1360 cat >> confdefs.h <<\EOF
1369 cat >> confdefs.h <<\EOF
1384 # Check whether --enable-toggle or --disable-toggle was given.
1385 if test "${enable_toggle+set}" = set; then
1386 enableval="$enable_toggle"
1387 if test $enableval = yes; then
1388 cat >> confdefs.h <<\EOF
1394 cat >> confdefs.h <<\EOF
1402 # Check whether --enable-pcrs or --disable-pcrs was given.
1403 if test "${enable_pcrs+set}" = set; then
1404 enableval="$enable_pcrs"
1405 if test $enableval = yes; then
1406 cat >> confdefs.h <<\EOF
1410 cat >> confdefs.h <<\EOF
1418 cat >> confdefs.h <<\EOF
1421 cat >> confdefs.h <<\EOF
1429 # Check whether --enable-force or --disable-force was given.
1430 if test "${enable_force+set}" = set; then
1431 enableval="$enable_force"
1432 if test $enableval = yes; then
1433 cat >> confdefs.h <<\EOF
1434 #define FORCE_LOAD 1
1439 cat >> confdefs.h <<\EOF
1440 #define FORCE_LOAD 1
1446 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1447 if test "${enable_fast_redirects+set}" = set; then
1448 enableval="$enable_fast_redirects"
1449 if test $enableval = yes; then
1450 cat >> confdefs.h <<\EOF
1451 #define FAST_REDIRECTS 1
1456 cat >> confdefs.h <<\EOF
1457 #define FAST_REDIRECTS 1
1463 # Check whether --enable-killpopup or --disable-killpopup was given.
1464 if test "${enable_killpopup+set}" = set; then
1465 enableval="$enable_killpopup"
1466 if test $enableval = yes; then
1467 cat >> confdefs.h <<\EOF
1468 #define KILLPOPUPS 1
1473 cat >> confdefs.h <<\EOF
1474 #define KILLPOPUPS 1
1480 # Check whether --enable-stats or --disable-stats was given.
1481 if test "${enable_stats+set}" = set; then
1482 enableval="$enable_stats"
1483 if test $enableval = yes; then
1484 cat >> confdefs.h <<\EOF
1485 #define STATISTICS 1
1490 cat >> confdefs.h <<\EOF
1491 #define STATISTICS 1
1497 # Check whether --enable-split-proxy-args or --disable-split-proxy-args was given.
1498 if test "${enable_split_proxy_args+set}" = set; then
1499 enableval="$enable_split_proxy_args"
1500 if test $enableval = yes; then
1501 cat >> confdefs.h <<\EOF
1502 #define SPLIT_PROXY_ARGS 1
1507 cat >> confdefs.h <<\EOF
1508 #define SPLIT_PROXY_ARGS 1
1514 # Check whether --enable-webdav or --disable-webdav was given.
1515 if test "${enable_webdav+set}" = set; then
1516 enableval="$enable_webdav"
1517 if test $enableval = yes; then
1518 cat >> confdefs.h <<\EOF
1524 cat >> confdefs.h <<\EOF
1531 # Check whether --enable-ie-images or --disable-ie-images was given.
1532 if test "${enable_ie_images+set}" = set; then
1533 enableval="$enable_ie_images"
1534 if test $enableval = yes; then
1535 cat >> confdefs.h <<\EOF
1536 #define DETECT_MSIE_IMAGES 1
1541 cat >> confdefs.h <<\EOF
1542 #define DETECT_MSIE_IMAGES 1
1548 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1549 if test "${enable_image_blocking+set}" = set; then
1550 enableval="$enable_image_blocking"
1551 if test $enableval = yes; then
1552 cat >> confdefs.h <<\EOF
1553 #define IMAGE_BLOCKING 1
1558 cat >> confdefs.h <<\EOF
1559 #define IMAGE_BLOCKING 1
1565 # Check whether --enable-acl-files or --disable-acl-files was given.
1566 if test "${enable_acl_files+set}" = set; then
1567 enableval="$enable_acl_files"
1568 if test $enableval = yes; then
1569 cat >> confdefs.h <<\EOF
1575 cat >> confdefs.h <<\EOF
1582 # Check whether --enable-trust-files or --disable-trust-files was given.
1583 if test "${enable_trust_files+set}" = set; then
1584 enableval="$enable_trust_files"
1585 if test $enableval = yes; then
1586 cat >> confdefs.h <<\EOF
1587 #define TRUST_FILES 1
1592 cat >> confdefs.h <<\EOF
1593 #define TRUST_FILES 1
1599 # Check whether --enable-jar-files or --disable-jar-files was given.
1600 if test "${enable_jar_files+set}" = set; then
1601 enableval="$enable_jar_files"
1602 if test $enableval = yes; then
1603 cat >> confdefs.h <<\EOF
1609 cat >> confdefs.h <<\EOF
1618 # Check whether --enable-static-pcre or --disable-static-pcre was given.
1619 if test "${enable_static_pcre+set}" = set; then
1620 enableval="$enable_static_pcre"
1621 if test $enableval = no; then
1631 cat > confcache <<\EOF
1632 # This file is a shell script that caches the results of configure
1633 # tests run on this system so they can be shared between configure
1634 # scripts and configure runs. It is not useful on other systems.
1635 # If it contains results you don't want to keep, you may remove or edit it.
1637 # By default, configure uses ./config.cache as the cache file,
1638 # creating it if it does not exist already. You can give configure
1639 # the --cache-file=FILE option to use a different cache file; that is
1640 # what configure does when it calls configure scripts in
1641 # subdirectories, so they share the cache.
1642 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1643 # config.status only pays attention to the cache file if you give it the
1644 # --recheck option to rerun configure.
1647 # The following way of writing the cache mishandles newlines in values,
1648 # but we know of no workaround that is simple, portable, and efficient.
1649 # So, don't put newlines in cache variables' values.
1650 # Ultrix sh set writes to stderr and can't be redirected directly,
1651 # and sets the high bit in the cache file unless we assign to the vars.
1653 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1655 # `set' does not quote correctly, so add quotes (double-quote substitution
1656 # turns \\\\ into \\, and sed turns \\ into \).
1658 -e "s/'/'\\\\''/g" \
1659 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1662 # `set' quotes correctly as required by POSIX, so do not add quotes.
1663 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1666 if cmp -s $cache_file confcache; then
1669 if test -w $cache_file; then
1670 echo "updating cache $cache_file"
1671 cat confcache > $cache_file
1673 echo "not updating unwritable cache $cache_file"
1678 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1681 # Let make expand exec_prefix.
1682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1684 # Any assignment to VPATH causes Sun make to only execute
1685 # the first set of double-colon rules, so remove it if not needed.
1686 # If there is a colon in the path, we need to keep it.
1687 if test "x$srcdir" = x.; then
1688 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1691 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1693 DEFS=-DHAVE_CONFIG_H
1695 # Without the "./", some shells look in PATH for config.status.
1696 : ${CONFIG_STATUS=./config.status}
1698 echo creating $CONFIG_STATUS
1699 rm -f $CONFIG_STATUS
1700 cat > $CONFIG_STATUS <<EOF
1702 # Generated automatically by configure.
1703 # Run this file to recreate the current configuration.
1704 # This directory was configured as follows,
1705 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1707 # $0 $ac_configure_args
1709 # Compiler output produced by configure, useful for debugging
1710 # configure, is in ./config.log if it exists.
1712 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1715 case "\$ac_option" in
1716 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1717 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1718 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1719 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1720 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1722 -help | --help | --hel | --he | --h)
1723 echo "\$ac_cs_usage"; exit 0 ;;
1724 *) echo "\$ac_cs_usage"; exit 1 ;;
1728 ac_given_srcdir=$srcdir
1730 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1732 cat >> $CONFIG_STATUS <<EOF
1734 # Protect against being on the right side of a sed subst in config.status.
1735 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1736 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1740 s%@CFLAGS@%$CFLAGS%g
1741 s%@CPPFLAGS@%$CPPFLAGS%g
1742 s%@CXXFLAGS@%$CXXFLAGS%g
1743 s%@FFLAGS@%$FFLAGS%g
1745 s%@LDFLAGS@%$LDFLAGS%g
1747 s%@exec_prefix@%$exec_prefix%g
1748 s%@prefix@%$prefix%g
1749 s%@program_transform_name@%$program_transform_name%g
1750 s%@bindir@%$bindir%g
1751 s%@sbindir@%$sbindir%g
1752 s%@libexecdir@%$libexecdir%g
1753 s%@datadir@%$datadir%g
1754 s%@sysconfdir@%$sysconfdir%g
1755 s%@sharedstatedir@%$sharedstatedir%g
1756 s%@localstatedir@%$localstatedir%g
1757 s%@libdir@%$libdir%g
1758 s%@includedir@%$includedir%g
1759 s%@oldincludedir@%$oldincludedir%g
1760 s%@infodir@%$infodir%g
1761 s%@mandir@%$mandir%g
1762 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
1763 s%@VERSION_MINOR@%$VERSION_MINOR%g
1764 s%@VERSION_POINT@%$VERSION_POINT%g
1767 s%@EXEEXT@%$EXEEXT%g
1768 s%@OBJEXT@%$OBJEXT%g
1769 s%@WIN_ONLY@%$WIN_ONLY%g
1770 s%@CYGWIN_FLAGS@%$CYGWIN_FLAGS%g
1771 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
1772 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
1773 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
1774 s%@NO_REGEX_ONLY@%$NO_REGEX_ONLY%g
1775 s%@PCRS_ONLY@%$PCRS_ONLY%g
1776 s%@LIBRARY_PCRE_ONLY@%$LIBRARY_PCRE_ONLY%g
1777 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
1782 cat >> $CONFIG_STATUS <<\EOF
1784 # Split the substitutions into bite-sized pieces for seds with
1785 # small command number limits, like on Digital OSF/1 and HP-UX.
1786 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1787 ac_file=1 # Number of current file.
1788 ac_beg=1 # First line for current file.
1789 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1792 while $ac_more_lines; do
1793 if test $ac_beg -gt 1; then
1794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1796 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1798 if test ! -s conftest.s$ac_file; then
1800 rm -f conftest.s$ac_file
1802 if test -z "$ac_sed_cmds"; then
1803 ac_sed_cmds="sed -f conftest.s$ac_file"
1805 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1807 ac_file=`expr $ac_file + 1`
1809 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1812 if test -z "$ac_sed_cmds"; then
1817 cat >> $CONFIG_STATUS <<EOF
1819 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1821 cat >> $CONFIG_STATUS <<\EOF
1822 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1825 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1826 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1827 *) ac_file_in="${ac_file}.in" ;;
1830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1832 # Remove last slash and all that follows it. Not all systems have dirname.
1833 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1834 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1835 # The file is in a subdirectory.
1836 test ! -d "$ac_dir" && mkdir "$ac_dir"
1837 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1838 # A "../" for each directory in $ac_dir_suffix.
1839 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1841 ac_dir_suffix= ac_dots=
1844 case "$ac_given_srcdir" in
1846 if test -z "$ac_dots"; then top_srcdir=.
1847 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1848 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1850 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1851 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1855 echo creating "$ac_file"
1857 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1859 *Makefile*) ac_comsub="1i\\
1860 # $configure_input" ;;
1864 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1866 s%@configure_input@%$configure_input%g
1867 s%@srcdir@%$srcdir%g
1868 s%@top_srcdir@%$top_srcdir%g
1869 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1876 # ac_d sets the value in "#define NAME VALUE" lines.
1877 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1878 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1881 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1882 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1883 ac_uB='\([ ]\)%\1#\2define\3'
1886 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1887 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1888 ac_eB='$%\1#\2define\3'
1892 if test "${CONFIG_HEADERS+set}" != set; then
1894 cat >> $CONFIG_STATUS <<EOF
1895 CONFIG_HEADERS="config.h"
1897 cat >> $CONFIG_STATUS <<\EOF
1899 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1902 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1903 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1904 *) ac_file_in="${ac_file}.in" ;;
1907 echo creating $ac_file
1909 rm -f conftest.frag conftest.in conftest.out
1910 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1911 cat $ac_file_inputs > conftest.in
1915 # Transform confdefs.h into a sed script conftest.vals that substitutes
1916 # the proper values into config.h.in to produce config.h. And first:
1917 # Protect against being on the right side of a sed subst in config.status.
1918 # Protect against being in an unquoted here document in config.status.
1920 cat > conftest.hdr <<\EOF
1923 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1927 sed -n -f conftest.hdr confdefs.h > conftest.vals
1930 # This sed command replaces #undef with comments. This is necessary, for
1931 # example, in the case of _POSIX_SOURCE, which is predefined and required
1932 # on some systems where configure will not decide to define it.
1933 cat >> conftest.vals <<\EOF
1934 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1937 # Break up conftest.vals because some shells have a limit on
1938 # the size of here documents, and old seds have small limits too.
1943 ac_lines=`grep -c . conftest.vals`
1944 # grep -c gives empty output for an empty file on some AIX systems.
1945 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1946 # Write a limited-size here document to conftest.frag.
1947 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1948 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1950 sed -f conftest.frag conftest.in > conftest.out
1952 mv conftest.out conftest.in
1954 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1956 mv conftest.tail conftest.vals
1960 cat >> $CONFIG_STATUS <<\EOF
1961 rm -f conftest.frag conftest.h
1962 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1963 cat conftest.in >> conftest.h
1965 if cmp -s $ac_file conftest.h 2>/dev/null; then
1966 echo "$ac_file is unchanged"
1969 # Remove last slash and all that follows it. Not all systems have dirname.
1970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1972 # The file is in a subdirectory.
1973 test ! -d "$ac_dir" && mkdir "$ac_dir"
1976 mv conftest.h $ac_file
1981 cat >> $CONFIG_STATUS <<EOF
1984 cat >> $CONFIG_STATUS <<\EOF
1988 chmod +x $CONFIG_STATUS
1989 rm -fr confdefs* $ac_clean_files
1990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1