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-toggle Don't support temporary disable"
19 --enable-gzip Allow gzip'ed transfer of documents. Note that this will make content modification impossible."
21 --disable-force Don't allow blockfle to be bypassed"
23 --disable-fast-redirects Don't support fast redirects"
25 --disable-killpopup Never block popups"
27 --disable-stats Don't keep statistics"
29 --disable-split-proxy-args One big show-proxy-args page, not one per file."
31 --disable-webdav Don't support WebDAV. This option stops MS Outlook
32 Express from accessing HotMail e-mail."
34 --disable-ie-images Don't auto-detect whether a request from MS Internet
35 Explorer is for an image or HTML."
37 --disable-image-blocking Don't try to figure out whether a request is
38 for an image or HTML - assume HTML."
40 --disable-acl-files Prevents the use of ACL files to control access to
41 the proxy by IP address."
43 --disable-trust-files Prevents the use of trust files."
45 --disable-jar-files Prevents the use of jar files to capture cookies."
47 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile pattern matching (default)
48 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern matching (-> bigger binary)
49 --disable-regex-matching Don't use regex matching, compare URL prefix instead (won't shrink birary)"
51 --disable-dynamic-pcre Use the built-in, static pcre, even if libpcre is available"
53 --disable-dynamic-pcrs Use the built-in, static pcrs, even if libpcrs is available"
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file=./config.cache
68 program_transform_name=s,x,x,
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
89 # Initialize some other variables.
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
560 ac_n= ac_c='\c' ac_t=
574 cat >> confdefs.h <<\EOF
575 #define CODE_STATUS "alpha"
579 cat >> confdefs.h <<EOF
580 #define VERSION_MAJOR ${VERSION_MAJOR}
583 cat >> confdefs.h <<EOF
584 #define VERSION_MINOR ${VERSION_MINOR}
587 cat >> confdefs.h <<EOF
588 #define VERSION_POINT ${VERSION_POINT}
591 cat >> confdefs.h <<EOF
592 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
596 # Extract the first word of "gcc", so it can be a program name with args.
597 set dummy gcc; ac_word=$2
598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
599 echo "configure:600: checking for $ac_word" >&5
600 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 if test -n "$CC"; then
604 ac_cv_prog_CC="$CC" # Let the user override the test.
606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
608 for ac_dir in $ac_dummy; do
609 test -z "$ac_dir" && ac_dir=.
610 if test -f $ac_dir/$ac_word; then
619 if test -n "$CC"; then
620 echo "$ac_t""$CC" 1>&6
622 echo "$ac_t""no" 1>&6
625 if test -z "$CC"; then
626 # Extract the first word of "cc", so it can be a program name with args.
627 set dummy cc; ac_word=$2
628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
629 echo "configure:630: checking for $ac_word" >&5
630 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
633 if test -n "$CC"; then
634 ac_cv_prog_CC="$CC" # Let the user override the test.
636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
639 for ac_dir in $ac_dummy; do
640 test -z "$ac_dir" && ac_dir=.
641 if test -f $ac_dir/$ac_word; then
642 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
651 if test $ac_prog_rejected = yes; then
652 # We found a bogon in the path, so make sure we never use it.
653 set dummy $ac_cv_prog_CC
655 if test $# -gt 0; then
656 # We chose a different compiler from the bogus one.
657 # However, it has the same basename, so the bogon will be chosen
658 # first if we set CC to just the basename; use the full file name.
660 set dummy "$ac_dir/$ac_word" "$@"
668 if test -n "$CC"; then
669 echo "$ac_t""$CC" 1>&6
671 echo "$ac_t""no" 1>&6
674 if test -z "$CC"; then
677 # Extract the first word of "cl", so it can be a program name with args.
678 set dummy cl; ac_word=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$CC"; then
685 ac_cv_prog_CC="$CC" # Let the user override the test.
687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
700 if test -n "$CC"; then
701 echo "$ac_t""$CC" 1>&6
703 echo "$ac_t""no" 1>&6
708 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
711 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
712 echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
716 ac_cpp='$CPP $CPPFLAGS'
717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
719 cross_compiling=$ac_cv_prog_cc_cross
721 cat > conftest.$ac_ext << EOF
723 #line 724 "configure"
724 #include "confdefs.h"
728 if { (eval echo configure:729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
729 ac_cv_prog_cc_works=yes
730 # If we can't run a trivial program, we are probably using a cross compiler.
731 if (./conftest; exit) 2>/dev/null; then
732 ac_cv_prog_cc_cross=no
734 ac_cv_prog_cc_cross=yes
737 echo "configure: failed program was:" >&5
738 cat conftest.$ac_ext >&5
739 ac_cv_prog_cc_works=no
743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
744 ac_cpp='$CPP $CPPFLAGS'
745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
747 cross_compiling=$ac_cv_prog_cc_cross
749 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
750 if test $ac_cv_prog_cc_works = no; then
751 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
755 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
756 cross_compiling=$ac_cv_prog_cc_cross
758 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
759 echo "configure:760: checking whether we are using GNU C" >&5
760 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 cat > conftest.c <<EOF
768 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
775 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
777 if test $ac_cv_prog_gcc = yes; then
783 ac_test_CFLAGS="${CFLAGS+set}"
784 ac_save_CFLAGS="$CFLAGS"
786 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
787 echo "configure:788: checking whether ${CC-cc} accepts -g" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 echo 'void f(){}' > conftest.c
792 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
801 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
802 if test "$ac_test_CFLAGS" = set; then
803 CFLAGS="$ac_save_CFLAGS"
804 elif test $ac_cv_prog_cc_g = yes; then
805 if test "$GCC" = yes; then
811 if test "$GCC" = yes; then
818 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
819 echo "configure:820: checking how to run the C preprocessor" >&5
820 # On Suns, sometimes $CPP names a directory.
821 if test -n "$CPP" && test -d "$CPP"; then
824 if test -z "$CPP"; then
825 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 # This must be in double quotes, not single quotes, because CPP may get
829 # substituted into the Makefile and "${CC-cc}" will confuse make.
831 # On the NeXT, cc -E runs the code through the compiler's parser,
832 # not just through cpp.
833 cat > conftest.$ac_ext <<EOF
834 #line 835 "configure"
835 #include "confdefs.h"
839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
840 { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
842 if test -z "$ac_err"; then
846 echo "configure: failed program was:" >&5
847 cat conftest.$ac_ext >&5
849 CPP="${CC-cc} -E -traditional-cpp"
850 cat > conftest.$ac_ext <<EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
857 { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
859 if test -z "$ac_err"; then
863 echo "configure: failed program was:" >&5
864 cat conftest.$ac_ext >&5
866 CPP="${CC-cc} -nologo -E"
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
874 { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
876 if test -z "$ac_err"; then
880 echo "configure: failed program was:" >&5
881 cat conftest.$ac_ext >&5
890 ac_cv_prog_CPP="$CPP"
892 CPP="$ac_cv_prog_CPP"
894 ac_cv_prog_CPP="$CPP"
896 echo "$ac_t""$CPP" 1>&6
899 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
900 echo "configure:901: checking for mingw32 environment" >&5
901 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
912 if { (eval echo configure:913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
925 echo "$ac_t""$ac_cv_mingw32" 1>&6
927 test "$ac_cv_mingw32" = yes && MINGW32=yes
928 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
929 echo "configure:930: checking for Cygwin environment" >&5
930 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 cat > conftest.$ac_ext <<EOF
934 #line 935 "configure"
935 #include "confdefs.h"
940 #define __CYGWIN__ __CYGWIN32__
945 if { (eval echo configure:946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
958 echo "$ac_t""$ac_cv_cygwin" 1>&6
960 test "$ac_cv_cygwin" = yes && CYGWIN=yes
963 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
964 echo "configure:965: checking for executable suffix" >&5
965 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
972 echo 'int main () { return 0; }' > conftest.$ac_ext
974 if { (eval echo configure:975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
975 for file in conftest.*; do
977 *.c | *.o | *.obj) ;;
978 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
982 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
985 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
990 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
991 echo "$ac_t""${ac_cv_exeext}" 1>&6
994 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
995 echo "configure:996: checking for object suffix" >&5
996 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
1000 echo 'int i = 1;' > conftest.$ac_ext
1001 if { (eval echo configure:1002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1002 for ac_file in conftest.*; do
1005 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1009 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1014 echo "$ac_t""$ac_cv_objext" 1>&6
1015 OBJEXT=$ac_cv_objext
1016 ac_objext=$ac_cv_objext
1019 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1020 echo "configure:1021: checking for pcre_compile in -lpcre" >&5
1021 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 ac_save_LIBS="$LIBS"
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 /* Override any gcc2 internal prototype to avoid an error. */
1031 /* We use char because int might match the return type of a gcc2
1032 builtin and then its argument prototype would still apply. */
1033 char pcre_compile();
1039 if { (eval echo configure:1040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1041 eval "ac_cv_lib_$ac_lib_var=yes"
1043 echo "configure: failed program was:" >&5
1044 cat conftest.$ac_ext >&5
1046 eval "ac_cv_lib_$ac_lib_var=no"
1049 LIBS="$ac_save_LIBS"
1052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1053 echo "$ac_t""yes" 1>&6
1056 echo "$ac_t""no" 1>&6
1060 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1061 echo "configure:1062: checking for regcomp in -lpcreposix" >&5
1062 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 ac_save_LIBS="$LIBS"
1067 LIBS="-lpcreposix -lpcre $LIBS"
1068 cat > conftest.$ac_ext <<EOF
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1071 /* Override any gcc2 internal prototype to avoid an error. */
1072 /* We use char because int might match the return type of a gcc2
1073 builtin and then its argument prototype would still apply. */
1080 if { (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1082 eval "ac_cv_lib_$ac_lib_var=yes"
1084 echo "configure: failed program was:" >&5
1085 cat conftest.$ac_ext >&5
1087 eval "ac_cv_lib_$ac_lib_var=no"
1090 LIBS="$ac_save_LIBS"
1093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1094 echo "$ac_t""yes" 1>&6
1097 echo "$ac_t""no" 1>&6
1101 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1102 echo "configure:1103: checking for pcrs_compile in -lpcrs" >&5
1103 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 ac_save_LIBS="$LIBS"
1109 cat > conftest.$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1112 /* Override any gcc2 internal prototype to avoid an error. */
1113 /* We use char because int might match the return type of a gcc2
1114 builtin and then its argument prototype would still apply. */
1115 char pcrs_compile();
1121 if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1123 eval "ac_cv_lib_$ac_lib_var=yes"
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1128 eval "ac_cv_lib_$ac_lib_var=no"
1131 LIBS="$ac_save_LIBS"
1134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1135 echo "$ac_t""yes" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1144 echo "configure:1145: checking for ANSI C header files" >&5
1145 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1157 { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1159 if test -z "$ac_err"; then
1161 ac_cv_header_stdc=yes
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1167 ac_cv_header_stdc=no
1171 if test $ac_cv_header_stdc = yes; then
1172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1179 egrep "memchr" >/dev/null 2>&1; then
1183 ac_cv_header_stdc=no
1189 if test $ac_cv_header_stdc = yes; then
1190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1197 egrep "free" >/dev/null 2>&1; then
1201 ac_cv_header_stdc=no
1207 if test $ac_cv_header_stdc = yes; then
1208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1209 if test "$cross_compiling" = yes; then
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1216 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1217 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1219 int main () { int i; for (i = 0; i < 256; i++)
1220 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 ac_cv_header_stdc=no
1239 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1240 if test $ac_cv_header_stdc = yes; then
1241 cat >> confdefs.h <<\EOF
1242 #define STDC_HEADERS 1
1248 echo $ac_n "checking for working const""... $ac_c" 1>&6
1249 echo "configure:1250: checking for working const" >&5
1250 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1259 /* Ultrix mips cc rejects this. */
1260 typedef int charset[2]; const charset x;
1261 /* SunOS 4.1.1 cc rejects this. */
1262 char const *const *ccp;
1264 /* NEC SVR4.0.2 mips cc rejects this. */
1265 struct point {int x, y;};
1266 static struct point const zero = {0,0};
1267 /* AIX XL C 1.02.0.0 rejects this.
1268 It does not let you subtract one const X* pointer from another in an arm
1269 of an if-expression whose if-part is not a constant expression */
1270 const char *g = "string";
1271 ccp = &g + (g ? g-g : 0);
1272 /* HPUX 7.0 cc rejects these. */
1275 ccp = (char const *const *) p;
1276 { /* SCO 3.2v4 cc rejects this. */
1278 char const *s = 0 ? (char *) 0 : (char const *) 0;
1282 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1284 const int *foo = &x[0];
1287 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1288 typedef const int *iptr;
1292 { /* AIX XL C 1.02.0.0 rejects this saying
1293 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1294 struct s { int j; const int *ap[3]; };
1295 struct s *b; b->j = 5;
1297 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1303 if { (eval echo configure:1304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1315 echo "$ac_t""$ac_cv_c_const" 1>&6
1316 if test $ac_cv_c_const = no; then
1317 cat >> confdefs.h <<\EOF
1323 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1324 echo "configure:1325: checking for size_t" >&5
1325 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 #include <sys/types.h>
1337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1338 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1340 ac_cv_type_size_t=yes
1343 ac_cv_type_size_t=no
1348 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1349 if test $ac_cv_type_size_t = no; then
1350 cat >> confdefs.h <<\EOF
1351 #define size_t unsigned
1357 for ac_func in strerror bcopy memmove
1359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_func" >&5
1361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 /* System header to define __stub macros and hopefully few prototypes,
1368 which can conflict with char $ac_func(); below. */
1370 /* Override any gcc2 internal prototype to avoid an error. */
1371 /* We use char because int might match the return type of a gcc2
1372 builtin and then its argument prototype would still apply. */
1377 /* The GNU C library defines this for functions which it implements
1378 to always fail with ENOSYS. Some functions are actually named
1379 something starting with __ and the normal name is an alias. */
1380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1390 eval "ac_cv_func_$ac_func=yes"
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1395 eval "ac_cv_func_$ac_func=no"
1400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1401 echo "$ac_t""yes" 1>&6
1402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1403 cat >> confdefs.h <<EOF
1404 #define $ac_tr_func 1
1408 echo "$ac_t""no" 1>&6
1414 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1415 if test "${enable_mingw32+set}" = set; then
1416 enableval="$enable_mingw32"
1417 if test $enableval = yes; then
1419 CYGWIN_FLAGS="-mwindows -mno-cygwin"
1420 echo "Using mingw32 (Win32 GUI)"
1423 if test "$CYGWIN" = "yes"; then
1424 CYGWIN_FLAGS="-mno-win32"
1425 echo "Using Cygnus (Win32 command line)"
1431 if test "$MINGW32" = "yes"; then
1433 CYGWIN_FLAGS="-mwindows -mno-cygwin"
1434 echo "Using mingw32 (Win32 GUI)"
1437 if test "$CYGWIN" = "yes"; then
1438 CYGWIN_FLAGS="-mno-win32"
1439 echo "Using Cygnus (Win32 command line)"
1454 # Check whether --enable-toggle or --disable-toggle was given.
1455 if test "${enable_toggle+set}" = set; then
1456 enableval="$enable_toggle"
1457 if test $enableval = yes; then
1458 cat >> confdefs.h <<\EOF
1464 cat >> confdefs.h <<\EOF
1471 # Check whether --enable-gzip or --disable-gzip was given.
1472 if test "${enable_gzip+set}" = set; then
1473 enableval="$enable_gzip"
1474 if test $enableval = "no"; then
1475 cat >> confdefs.h <<\EOF
1483 # Check whether --enable-force or --disable-force was given.
1484 if test "${enable_force+set}" = set; then
1485 enableval="$enable_force"
1486 if test $enableval = yes; then
1487 cat >> confdefs.h <<\EOF
1488 #define FORCE_LOAD 1
1493 cat >> confdefs.h <<\EOF
1494 #define FORCE_LOAD 1
1500 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1501 if test "${enable_fast_redirects+set}" = set; then
1502 enableval="$enable_fast_redirects"
1503 if test $enableval = yes; then
1504 cat >> confdefs.h <<\EOF
1505 #define FAST_REDIRECTS 1
1510 cat >> confdefs.h <<\EOF
1511 #define FAST_REDIRECTS 1
1517 # Check whether --enable-killpopup or --disable-killpopup was given.
1518 if test "${enable_killpopup+set}" = set; then
1519 enableval="$enable_killpopup"
1520 if test $enableval = yes; then
1521 cat >> confdefs.h <<\EOF
1522 #define KILLPOPUPS 1
1527 cat >> confdefs.h <<\EOF
1528 #define KILLPOPUPS 1
1534 # Check whether --enable-stats or --disable-stats was given.
1535 if test "${enable_stats+set}" = set; then
1536 enableval="$enable_stats"
1537 if test $enableval = yes; then
1538 cat >> confdefs.h <<\EOF
1539 #define STATISTICS 1
1544 cat >> confdefs.h <<\EOF
1545 #define STATISTICS 1
1551 # Check whether --enable-split-proxy-args or --disable-split-proxy-args was given.
1552 if test "${enable_split_proxy_args+set}" = set; then
1553 enableval="$enable_split_proxy_args"
1554 if test $enableval = yes; then
1555 cat >> confdefs.h <<\EOF
1556 #define SPLIT_PROXY_ARGS 1
1561 cat >> confdefs.h <<\EOF
1562 #define SPLIT_PROXY_ARGS 1
1568 # Check whether --enable-webdav or --disable-webdav was given.
1569 if test "${enable_webdav+set}" = set; then
1570 enableval="$enable_webdav"
1571 if test $enableval = yes; then
1572 cat >> confdefs.h <<\EOF
1578 cat >> confdefs.h <<\EOF
1585 # Check whether --enable-ie-images or --disable-ie-images was given.
1586 if test "${enable_ie_images+set}" = set; then
1587 enableval="$enable_ie_images"
1588 if test $enableval = yes; then
1589 cat >> confdefs.h <<\EOF
1590 #define DETECT_MSIE_IMAGES 1
1595 cat >> confdefs.h <<\EOF
1596 #define DETECT_MSIE_IMAGES 1
1602 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1603 if test "${enable_image_blocking+set}" = set; then
1604 enableval="$enable_image_blocking"
1605 if test $enableval = yes; then
1606 cat >> confdefs.h <<\EOF
1607 #define IMAGE_BLOCKING 1
1612 cat >> confdefs.h <<\EOF
1613 #define IMAGE_BLOCKING 1
1619 # Check whether --enable-acl-files or --disable-acl-files was given.
1620 if test "${enable_acl_files+set}" = set; then
1621 enableval="$enable_acl_files"
1622 if test $enableval = yes; then
1623 cat >> confdefs.h <<\EOF
1629 cat >> confdefs.h <<\EOF
1636 # Check whether --enable-trust-files or --disable-trust-files was given.
1637 if test "${enable_trust_files+set}" = set; then
1638 enableval="$enable_trust_files"
1639 if test $enableval = yes; then
1640 cat >> confdefs.h <<\EOF
1641 #define TRUST_FILES 1
1646 cat >> confdefs.h <<\EOF
1647 #define TRUST_FILES 1
1653 # Check whether --enable-jar-files or --disable-jar-files was given.
1654 if test "${enable_jar_files+set}" = set; then
1655 enableval="$enable_jar_files"
1656 if test $enableval = yes; then
1657 cat >> confdefs.h <<\EOF
1663 cat >> confdefs.h <<\EOF
1671 # Check whether --enable-regex-matching or --disable-regex-matching was given.
1672 if test "${enable_regex_matching+set}" = set; then
1673 enableval="$enable_regex_matching"
1674 regex_matching=$enableval
1680 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
1681 if test "${enable_dynamic_pcre+set}" = set; then
1682 enableval="$enable_dynamic_pcre"
1683 if test $enableval = "no"; then have_pcre=no; fi
1687 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
1688 if test "${enable_dynamic_pcrs+set}" = set; then
1689 enableval="$enable_dynamic_pcrs"
1690 if test $enableval = "no"; then have_pcrs=no; fi
1695 # Is the regex URL matching based on libpcreposix, but we
1696 # don't have that library?
1698 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
1699 dont_miss_pcreposix=yes
1701 dont_miss_pcreposix=no
1704 # If we have libpcre and either we also have pcreposix or
1705 # we don't need pcreposix, then link pcre dynamically; else
1706 # build it and link statically
1708 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
1709 echo "using libpcre"
1714 echo "using built-in static pcre"
1716 cat >> confdefs.h <<\EOF
1723 # If we have libpcrs and pcre is linked dynamically
1724 # then also link pcrs dynamically, else build and link
1727 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
1728 echo "using libpcrs"
1732 echo "using built-in static pcrs"
1733 cat >> confdefs.h <<\EOF
1734 #define STATIC_PCRS 1
1740 # Which method should be used for URL matching?
1741 # pcre, gnu regex or prefix matching?
1743 if test $regex_matching = "gnu"; then
1744 echo "using gnu regex for URL matching"
1745 cat >> confdefs.h <<\EOF
1751 elif test $regex_matching = "pcre"; then
1752 echo "using pcre regex for URL matching"
1753 cat >> confdefs.h <<\EOF
1754 #define REGEX_PCRE 1
1759 if test $pcre_dyn = "yes"; then
1760 LIBS="$LIBS -lpcreposix"
1763 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
1774 cat > confcache <<\EOF
1775 # This file is a shell script that caches the results of configure
1776 # tests run on this system so they can be shared between configure
1777 # scripts and configure runs. It is not useful on other systems.
1778 # If it contains results you don't want to keep, you may remove or edit it.
1780 # By default, configure uses ./config.cache as the cache file,
1781 # creating it if it does not exist already. You can give configure
1782 # the --cache-file=FILE option to use a different cache file; that is
1783 # what configure does when it calls configure scripts in
1784 # subdirectories, so they share the cache.
1785 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1786 # config.status only pays attention to the cache file if you give it the
1787 # --recheck option to rerun configure.
1790 # The following way of writing the cache mishandles newlines in values,
1791 # but we know of no workaround that is simple, portable, and efficient.
1792 # So, don't put newlines in cache variables' values.
1793 # Ultrix sh set writes to stderr and can't be redirected directly,
1794 # and sets the high bit in the cache file unless we assign to the vars.
1796 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1798 # `set' does not quote correctly, so add quotes (double-quote substitution
1799 # turns \\\\ into \\, and sed turns \\ into \).
1801 -e "s/'/'\\\\''/g" \
1802 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1805 # `set' quotes correctly as required by POSIX, so do not add quotes.
1806 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1809 if cmp -s $cache_file confcache; then
1812 if test -w $cache_file; then
1813 echo "updating cache $cache_file"
1814 cat confcache > $cache_file
1816 echo "not updating unwritable cache $cache_file"
1821 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1824 # Let make expand exec_prefix.
1825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1827 # Any assignment to VPATH causes Sun make to only execute
1828 # the first set of double-colon rules, so remove it if not needed.
1829 # If there is a colon in the path, we need to keep it.
1830 if test "x$srcdir" = x.; then
1831 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1834 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1836 DEFS=-DHAVE_CONFIG_H
1838 # Without the "./", some shells look in PATH for config.status.
1839 : ${CONFIG_STATUS=./config.status}
1841 echo creating $CONFIG_STATUS
1842 rm -f $CONFIG_STATUS
1843 cat > $CONFIG_STATUS <<EOF
1845 # Generated automatically by configure.
1846 # Run this file to recreate the current configuration.
1847 # This directory was configured as follows,
1848 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1850 # $0 $ac_configure_args
1852 # Compiler output produced by configure, useful for debugging
1853 # configure, is in ./config.log if it exists.
1855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1858 case "\$ac_option" in
1859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1863 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1865 -help | --help | --hel | --he | --h)
1866 echo "\$ac_cs_usage"; exit 0 ;;
1867 *) echo "\$ac_cs_usage"; exit 1 ;;
1871 ac_given_srcdir=$srcdir
1873 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1875 cat >> $CONFIG_STATUS <<EOF
1877 # Protect against being on the right side of a sed subst in config.status.
1878 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1879 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1883 s%@CFLAGS@%$CFLAGS%g
1884 s%@CPPFLAGS@%$CPPFLAGS%g
1885 s%@CXXFLAGS@%$CXXFLAGS%g
1886 s%@FFLAGS@%$FFLAGS%g
1888 s%@LDFLAGS@%$LDFLAGS%g
1890 s%@exec_prefix@%$exec_prefix%g
1891 s%@prefix@%$prefix%g
1892 s%@program_transform_name@%$program_transform_name%g
1893 s%@bindir@%$bindir%g
1894 s%@sbindir@%$sbindir%g
1895 s%@libexecdir@%$libexecdir%g
1896 s%@datadir@%$datadir%g
1897 s%@sysconfdir@%$sysconfdir%g
1898 s%@sharedstatedir@%$sharedstatedir%g
1899 s%@localstatedir@%$localstatedir%g
1900 s%@libdir@%$libdir%g
1901 s%@includedir@%$includedir%g
1902 s%@oldincludedir@%$oldincludedir%g
1903 s%@infodir@%$infodir%g
1904 s%@mandir@%$mandir%g
1905 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
1906 s%@VERSION_MINOR@%$VERSION_MINOR%g
1907 s%@VERSION_POINT@%$VERSION_POINT%g
1910 s%@EXEEXT@%$EXEEXT%g
1911 s%@OBJEXT@%$OBJEXT%g
1912 s%@WIN_ONLY@%$WIN_ONLY%g
1913 s%@CYGWIN_FLAGS@%$CYGWIN_FLAGS%g
1914 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
1915 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
1916 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
1917 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
1918 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
1923 cat >> $CONFIG_STATUS <<\EOF
1925 # Split the substitutions into bite-sized pieces for seds with
1926 # small command number limits, like on Digital OSF/1 and HP-UX.
1927 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1928 ac_file=1 # Number of current file.
1929 ac_beg=1 # First line for current file.
1930 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1933 while $ac_more_lines; do
1934 if test $ac_beg -gt 1; then
1935 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1937 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1939 if test ! -s conftest.s$ac_file; then
1941 rm -f conftest.s$ac_file
1943 if test -z "$ac_sed_cmds"; then
1944 ac_sed_cmds="sed -f conftest.s$ac_file"
1946 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1948 ac_file=`expr $ac_file + 1`
1950 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1953 if test -z "$ac_sed_cmds"; then
1958 cat >> $CONFIG_STATUS <<EOF
1960 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1962 cat >> $CONFIG_STATUS <<\EOF
1963 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1966 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1967 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1968 *) ac_file_in="${ac_file}.in" ;;
1971 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1973 # Remove last slash and all that follows it. Not all systems have dirname.
1974 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1975 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1976 # The file is in a subdirectory.
1977 test ! -d "$ac_dir" && mkdir "$ac_dir"
1978 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1979 # A "../" for each directory in $ac_dir_suffix.
1980 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1982 ac_dir_suffix= ac_dots=
1985 case "$ac_given_srcdir" in
1987 if test -z "$ac_dots"; then top_srcdir=.
1988 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1989 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1991 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1992 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1996 echo creating "$ac_file"
1998 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2000 *Makefile*) ac_comsub="1i\\
2001 # $configure_input" ;;
2005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2007 s%@configure_input@%$configure_input%g
2008 s%@srcdir@%$srcdir%g
2009 s%@top_srcdir@%$top_srcdir%g
2010 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2017 # ac_d sets the value in "#define NAME VALUE" lines.
2018 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2019 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2022 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2023 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2024 ac_uB='\([ ]\)%\1#\2define\3'
2027 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2028 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2029 ac_eB='$%\1#\2define\3'
2033 if test "${CONFIG_HEADERS+set}" != set; then
2035 cat >> $CONFIG_STATUS <<EOF
2036 CONFIG_HEADERS="config.h"
2038 cat >> $CONFIG_STATUS <<\EOF
2040 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2043 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2044 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2045 *) ac_file_in="${ac_file}.in" ;;
2048 echo creating $ac_file
2050 rm -f conftest.frag conftest.in conftest.out
2051 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2052 cat $ac_file_inputs > conftest.in
2056 # Transform confdefs.h into a sed script conftest.vals that substitutes
2057 # the proper values into config.h.in to produce config.h. And first:
2058 # Protect against being on the right side of a sed subst in config.status.
2059 # Protect against being in an unquoted here document in config.status.
2061 cat > conftest.hdr <<\EOF
2064 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2068 sed -n -f conftest.hdr confdefs.h > conftest.vals
2071 # This sed command replaces #undef with comments. This is necessary, for
2072 # example, in the case of _POSIX_SOURCE, which is predefined and required
2073 # on some systems where configure will not decide to define it.
2074 cat >> conftest.vals <<\EOF
2075 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2078 # Break up conftest.vals because some shells have a limit on
2079 # the size of here documents, and old seds have small limits too.
2084 ac_lines=`grep -c . conftest.vals`
2085 # grep -c gives empty output for an empty file on some AIX systems.
2086 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2087 # Write a limited-size here document to conftest.frag.
2088 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2089 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2091 sed -f conftest.frag conftest.in > conftest.out
2093 mv conftest.out conftest.in
2095 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2097 mv conftest.tail conftest.vals
2101 cat >> $CONFIG_STATUS <<\EOF
2102 rm -f conftest.frag conftest.h
2103 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2104 cat conftest.in >> conftest.h
2106 if cmp -s $ac_file conftest.h 2>/dev/null; then
2107 echo "$ac_file is unchanged"
2110 # Remove last slash and all that follows it. Not all systems have dirname.
2111 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2112 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2113 # The file is in a subdirectory.
2114 test ! -d "$ac_dir" && mkdir "$ac_dir"
2117 mv conftest.h $ac_file
2122 cat >> $CONFIG_STATUS <<EOF
2125 cat >> $CONFIG_STATUS <<\EOF
2129 chmod +x $CONFIG_STATUS
2130 rm -fr confdefs* $ac_clean_files
2131 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1