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 --disable-pthread Don't use POSIX threads (pthreads)"
21 --enable-gzip Allow gzip'ed transfer of documents. Note that this will make content modification impossible."
23 --disable-force Don't allow blockfle to be bypassed"
25 --disable-fast-redirects Don't support fast redirects"
27 --disable-killpopup Never block popups"
29 --disable-stats Don't keep statistics"
31 --disable-split-proxy-args One big show-proxy-args page, not one per file."
33 --disable-webdav Don't support WebDAV. This option stops MS Outlook
34 Express from accessing HotMail e-mail."
36 --disable-ie-images Don't auto-detect whether a request from MS Internet
37 Explorer is for an image or HTML."
39 --disable-image-blocking Don't try to figure out whether a request is
40 for an image or HTML - assume HTML."
42 --disable-acl-files Prevents the use of ACL files to control access to
43 the proxy by IP address."
45 --disable-trust-files Prevents the use of trust files."
47 --disable-jar-files Prevents the use of jar files to capture cookies."
49 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile pattern matching (default)
50 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern matching (-> bigger binary)
51 --disable-regex-matching Don't use regex matching, compare URL prefix instead (won't shrink birary)"
53 --disable-dynamic-pcre Use the built-in, static pcre, even if libpcre is available"
55 --disable-dynamic-pcrs Use the built-in, static pcrs, even if libpcrs is available"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
61 cache_file=./config.cache
70 program_transform_name=s,x,x,
78 bindir='${exec_prefix}/bin'
79 sbindir='${exec_prefix}/sbin'
80 libexecdir='${exec_prefix}/libexec'
81 datadir='${prefix}/share'
82 sysconfdir='${prefix}/etc'
83 sharedstatedir='${prefix}/com'
84 localstatedir='${prefix}/var'
85 libdir='${exec_prefix}/lib'
86 includedir='${prefix}/include'
87 oldincludedir='/usr/include'
88 infodir='${prefix}/info'
89 mandir='${prefix}/man'
91 # Initialize some other variables.
94 SHELL=${CONFIG_SHELL-/bin/sh}
95 # Maximum number of lines to put in a shell here document.
102 # If the previous option needs an argument, assign it.
103 if test -n "$ac_prev"; then
104 eval "$ac_prev=\$ac_option"
110 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
114 # Accept the important Cygnus configure options, so we can diagnose typos.
118 -bindir | --bindir | --bindi | --bind | --bin | --bi)
120 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
121 bindir="$ac_optarg" ;;
123 -build | --build | --buil | --bui | --bu)
125 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
126 build="$ac_optarg" ;;
128 -cache-file | --cache-file | --cache-fil | --cache-fi \
129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
130 ac_prev=cache_file ;;
131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
133 cache_file="$ac_optarg" ;;
135 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
137 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
139 datadir="$ac_optarg" ;;
141 -disable-* | --disable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}=no" ;;
150 -enable-* | --enable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}='$ac_optarg'" ;;
163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
165 | --exec | --exe | --ex)
166 ac_prev=exec_prefix ;;
167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
169 | --exec=* | --exe=* | --ex=*)
170 exec_prefix="$ac_optarg" ;;
172 -gas | --gas | --ga | --g)
173 # Obsolete; use --with-gas.
176 -help | --help | --hel | --he)
177 # Omit some internal or obsolete options to make the list less imposing.
178 # This message is too long to be a string in the A/UX 3.1 sh.
180 Usage: configure [options] [host]
181 Options: [defaults in brackets after descriptions]
183 --cache-file=FILE cache test results in FILE
184 --help print this message
185 --no-create do not create output files
186 --quiet, --silent do not print \`checking...' messages
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
231 -host | --host | --hos | --ho)
233 -host=* | --host=* | --hos=* | --ho=*)
236 -includedir | --includedir | --includedi | --included | --include \
237 | --includ | --inclu | --incl | --inc)
238 ac_prev=includedir ;;
239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
240 | --includ=* | --inclu=* | --incl=* | --inc=*)
241 includedir="$ac_optarg" ;;
243 -infodir | --infodir | --infodi | --infod | --info | --inf)
245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
246 infodir="$ac_optarg" ;;
248 -libdir | --libdir | --libdi | --libd)
250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
251 libdir="$ac_optarg" ;;
253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
254 | --libexe | --libex | --libe)
255 ac_prev=libexecdir ;;
256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
257 | --libexe=* | --libex=* | --libe=*)
258 libexecdir="$ac_optarg" ;;
260 -localstatedir | --localstatedir | --localstatedi | --localstated \
261 | --localstate | --localstat | --localsta | --localst \
262 | --locals | --local | --loca | --loc | --lo)
263 ac_prev=localstatedir ;;
264 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
265 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
266 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
267 localstatedir="$ac_optarg" ;;
269 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
271 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
272 mandir="$ac_optarg" ;;
275 # Obsolete; use --without-fp.
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
282 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
283 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
287 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
288 | --oldin | --oldi | --old | --ol | --o)
289 ac_prev=oldincludedir ;;
290 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
291 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
292 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
293 oldincludedir="$ac_optarg" ;;
295 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
297 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
298 prefix="$ac_optarg" ;;
300 -program-prefix | --program-prefix | --program-prefi | --program-pref \
301 | --program-pre | --program-pr | --program-p)
302 ac_prev=program_prefix ;;
303 -program-prefix=* | --program-prefix=* | --program-prefi=* \
304 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
305 program_prefix="$ac_optarg" ;;
307 -program-suffix | --program-suffix | --program-suffi | --program-suff \
308 | --program-suf | --program-su | --program-s)
309 ac_prev=program_suffix ;;
310 -program-suffix=* | --program-suffix=* | --program-suffi=* \
311 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
312 program_suffix="$ac_optarg" ;;
314 -program-transform-name | --program-transform-name \
315 | --program-transform-nam | --program-transform-na \
316 | --program-transform-n | --program-transform- \
317 | --program-transform | --program-transfor \
318 | --program-transfo | --program-transf \
319 | --program-trans | --program-tran \
320 | --progr-tra | --program-tr | --program-t)
321 ac_prev=program_transform_name ;;
322 -program-transform-name=* | --program-transform-name=* \
323 | --program-transform-nam=* | --program-transform-na=* \
324 | --program-transform-n=* | --program-transform-=* \
325 | --program-transform=* | --program-transfor=* \
326 | --program-transfo=* | --program-transf=* \
327 | --program-trans=* | --program-tran=* \
328 | --progr-tra=* | --program-tr=* | --program-t=*)
329 program_transform_name="$ac_optarg" ;;
331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
332 | -silent | --silent | --silen | --sile | --sil)
335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
339 sbindir="$ac_optarg" ;;
341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
343 | --sharedst | --shareds | --shared | --share | --shar \
345 ac_prev=sharedstatedir ;;
346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
350 sharedstatedir="$ac_optarg" ;;
352 -site | --site | --sit)
354 -site=* | --site=* | --sit=*)
357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
360 srcdir="$ac_optarg" ;;
362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
363 | --syscon | --sysco | --sysc | --sys | --sy)
364 ac_prev=sysconfdir ;;
365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
367 sysconfdir="$ac_optarg" ;;
369 -target | --target | --targe | --targ | --tar | --ta | --t)
371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
372 target="$ac_optarg" ;;
374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 -version | --version | --versio | --versi | --vers)
378 echo "configure generated by autoconf version 2.13"
382 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}='$ac_optarg'" ;;
394 -without-* | --without-*)
395 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}=no" ;;
404 # Obsolete; use --with-x.
407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
408 | --x-incl | --x-inc | --x-in | --x-i)
409 ac_prev=x_includes ;;
410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
412 x_includes="$ac_optarg" ;;
414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
416 ac_prev=x_libraries ;;
417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
419 x_libraries="$ac_optarg" ;;
421 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
425 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
426 echo "configure: warning: $ac_option: invalid host type" 1>&2
428 if test "x$nonopt" != xNONE; then
429 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437 if test -n "$ac_prev"; then
438 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443 # File descriptor usage:
446 # 2 errors and warnings
447 # 3 some systems may open it to /dev/tty
448 # 4 used on the Kubota Titan
449 # 6 checking for... messages and results
450 # 5 compiler messages saved in config.log
451 if test "$silent" = yes; then
459 This file contains any messages produced by compilers while
460 running configure, to aid debugging if configure makes a mistake.
463 # Strip out --no-create and --no-recursion so they do not pile up.
464 # Also quote any args containing shell metacharacters.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c) ;;
471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
474 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
475 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
480 # Only set these to C if already set. These must not be set unconditionally
481 # because not all systems understand e.g. LANG=C (notably SCO).
482 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
483 # Non-C LC_CTYPE values break the ctype check.
484 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
485 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
486 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
487 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
490 rm -rf conftest* confdefs.h
491 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
494 # A filename unique to this package, relative to the directory that
495 # configure is in, which we can look for to find out if srcdir is correct.
498 # Find the source files, if location was not specified.
499 if test -z "$srcdir"; then
500 ac_srcdir_defaulted=yes
501 # Try the directory containing this script, then its parent.
503 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
504 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506 if test ! -r $srcdir/$ac_unique_file; then
510 ac_srcdir_defaulted=no
512 if test ! -r $srcdir/$ac_unique_file; then
513 if test "$ac_srcdir_defaulted" = yes; then
514 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521 # Prefer explicitly selected file to automatically selected ones.
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE; then
524 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
526 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 for ac_site_file in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
540 echo "creating cache $cache_file"
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp='$CPP $CPPFLAGS'
547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
562 ac_n= ac_c='\c' ac_t=
576 cat >> confdefs.h <<\EOF
577 #define CODE_STATUS "alpha"
581 cat >> confdefs.h <<EOF
582 #define VERSION_MAJOR ${VERSION_MAJOR}
585 cat >> confdefs.h <<EOF
586 #define VERSION_MINOR ${VERSION_MINOR}
589 cat >> confdefs.h <<EOF
590 #define VERSION_POINT ${VERSION_POINT}
593 cat >> confdefs.h <<EOF
594 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
598 # Extract the first word of "gcc", so it can be a program name with args.
599 set dummy gcc; ac_word=$2
600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
601 echo "configure:602: checking for $ac_word" >&5
602 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
603 echo $ac_n "(cached) $ac_c" 1>&6
605 if test -n "$CC"; then
606 ac_cv_prog_CC="$CC" # Let the user override the test.
608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
610 for ac_dir in $ac_dummy; do
611 test -z "$ac_dir" && ac_dir=.
612 if test -f $ac_dir/$ac_word; then
621 if test -n "$CC"; then
622 echo "$ac_t""$CC" 1>&6
624 echo "$ac_t""no" 1>&6
627 if test -z "$CC"; then
628 # Extract the first word of "cc", so it can be a program name with args.
629 set dummy cc; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
635 if test -n "$CC"; then
636 ac_cv_prog_CC="$CC" # Let the user override the test.
638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
641 for ac_dir in $ac_dummy; do
642 test -z "$ac_dir" && ac_dir=.
643 if test -f $ac_dir/$ac_word; then
644 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
653 if test $ac_prog_rejected = yes; then
654 # We found a bogon in the path, so make sure we never use it.
655 set dummy $ac_cv_prog_CC
657 if test $# -gt 0; then
658 # We chose a different compiler from the bogus one.
659 # However, it has the same basename, so the bogon will be chosen
660 # first if we set CC to just the basename; use the full file name.
662 set dummy "$ac_dir/$ac_word" "$@"
670 if test -n "$CC"; then
671 echo "$ac_t""$CC" 1>&6
673 echo "$ac_t""no" 1>&6
676 if test -z "$CC"; then
679 # Extract the first word of "cl", so it can be a program name with args.
680 set dummy cl; ac_word=$2
681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
682 echo "configure:683: checking for $ac_word" >&5
683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 if test -n "$CC"; then
687 ac_cv_prog_CC="$CC" # Let the user override the test.
689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 for ac_dir in $ac_dummy; do
692 test -z "$ac_dir" && ac_dir=.
693 if test -f $ac_dir/$ac_word; then
702 if test -n "$CC"; then
703 echo "$ac_t""$CC" 1>&6
705 echo "$ac_t""no" 1>&6
710 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
713 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
714 echo "configure:715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
718 ac_cpp='$CPP $CPPFLAGS'
719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
721 cross_compiling=$ac_cv_prog_cc_cross
723 cat > conftest.$ac_ext << EOF
725 #line 726 "configure"
726 #include "confdefs.h"
730 if { (eval echo configure:731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
731 ac_cv_prog_cc_works=yes
732 # If we can't run a trivial program, we are probably using a cross compiler.
733 if (./conftest; exit) 2>/dev/null; then
734 ac_cv_prog_cc_cross=no
736 ac_cv_prog_cc_cross=yes
739 echo "configure: failed program was:" >&5
740 cat conftest.$ac_ext >&5
741 ac_cv_prog_cc_works=no
745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
746 ac_cpp='$CPP $CPPFLAGS'
747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
749 cross_compiling=$ac_cv_prog_cc_cross
751 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
752 if test $ac_cv_prog_cc_works = no; then
753 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
757 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
758 cross_compiling=$ac_cv_prog_cc_cross
760 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
761 echo "configure:762: checking whether we are using GNU C" >&5
762 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 cat > conftest.c <<EOF
770 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
777 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
779 if test $ac_cv_prog_gcc = yes; then
785 ac_test_CFLAGS="${CFLAGS+set}"
786 ac_save_CFLAGS="$CFLAGS"
788 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
789 echo "configure:790: checking whether ${CC-cc} accepts -g" >&5
790 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 echo 'void f(){}' > conftest.c
794 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
803 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
804 if test "$ac_test_CFLAGS" = set; then
805 CFLAGS="$ac_save_CFLAGS"
806 elif test $ac_cv_prog_cc_g = yes; then
807 if test "$GCC" = yes; then
813 if test "$GCC" = yes; then
820 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
821 echo "configure:822: checking how to run the C preprocessor" >&5
822 # On Suns, sometimes $CPP names a directory.
823 if test -n "$CPP" && test -d "$CPP"; then
826 if test -z "$CPP"; then
827 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 # This must be in double quotes, not single quotes, because CPP may get
831 # substituted into the Makefile and "${CC-cc}" will confuse make.
833 # On the NeXT, cc -E runs the code through the compiler's parser,
834 # not just through cpp.
835 cat > conftest.$ac_ext <<EOF
836 #line 837 "configure"
837 #include "confdefs.h"
841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
842 { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
844 if test -z "$ac_err"; then
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
851 CPP="${CC-cc} -E -traditional-cpp"
852 cat > conftest.$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
859 { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
861 if test -z "$ac_err"; then
865 echo "configure: failed program was:" >&5
866 cat conftest.$ac_ext >&5
868 CPP="${CC-cc} -nologo -E"
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
876 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878 if test -z "$ac_err"; then
882 echo "configure: failed program was:" >&5
883 cat conftest.$ac_ext >&5
892 ac_cv_prog_CPP="$CPP"
894 CPP="$ac_cv_prog_CPP"
896 ac_cv_prog_CPP="$CPP"
898 echo "$ac_t""$CPP" 1>&6
901 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
902 echo "configure:903: checking for mingw32 environment" >&5
903 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
914 if { (eval echo configure:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
918 echo "configure: failed program was:" >&5
919 cat conftest.$ac_ext >&5
927 echo "$ac_t""$ac_cv_mingw32" 1>&6
929 test "$ac_cv_mingw32" = yes && MINGW32=yes
930 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
931 echo "configure:932: checking for Cygwin environment" >&5
932 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
942 #define __CYGWIN__ __CYGWIN32__
947 if { (eval echo configure:948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
960 echo "$ac_t""$ac_cv_cygwin" 1>&6
962 test "$ac_cv_cygwin" = yes && CYGWIN=yes
965 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
966 echo "configure:967: checking for executable suffix" >&5
967 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
974 echo 'int main () { return 0; }' > conftest.$ac_ext
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
977 for file in conftest.*; do
979 *.c | *.o | *.obj) ;;
980 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
984 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
987 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
992 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
993 echo "$ac_t""${ac_cv_exeext}" 1>&6
996 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
997 echo "configure:998: checking for object suffix" >&5
998 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1002 echo 'int i = 1;' > conftest.$ac_ext
1003 if { (eval echo configure:1004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1004 for ac_file in conftest.*; do
1007 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1011 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1016 echo "$ac_t""$ac_cv_objext" 1>&6
1017 OBJEXT=$ac_cv_objext
1018 ac_objext=$ac_cv_objext
1021 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1022 echo "configure:1023: checking for pcre_compile in -lpcre" >&5
1023 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 ac_save_LIBS="$LIBS"
1029 cat > conftest.$ac_ext <<EOF
1030 #line 1031 "configure"
1031 #include "confdefs.h"
1032 /* Override any gcc2 internal prototype to avoid an error. */
1033 /* We use char because int might match the return type of a gcc2
1034 builtin and then its argument prototype would still apply. */
1035 char pcre_compile();
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1043 eval "ac_cv_lib_$ac_lib_var=yes"
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 eval "ac_cv_lib_$ac_lib_var=no"
1051 LIBS="$ac_save_LIBS"
1054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1055 echo "$ac_t""yes" 1>&6
1058 echo "$ac_t""no" 1>&6
1062 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1063 echo "configure:1064: checking for regcomp in -lpcreposix" >&5
1064 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 ac_save_LIBS="$LIBS"
1069 LIBS="-lpcreposix -lpcre $LIBS"
1070 cat > conftest.$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1073 /* Override any gcc2 internal prototype to avoid an error. */
1074 /* We use char because int might match the return type of a gcc2
1075 builtin and then its argument prototype would still apply. */
1082 if { (eval echo configure:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1084 eval "ac_cv_lib_$ac_lib_var=yes"
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 eval "ac_cv_lib_$ac_lib_var=no"
1092 LIBS="$ac_save_LIBS"
1095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1096 echo "$ac_t""yes" 1>&6
1099 echo "$ac_t""no" 1>&6
1103 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1104 echo "configure:1105: checking for pcrs_compile in -lpcrs" >&5
1105 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 ac_save_LIBS="$LIBS"
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1114 /* Override any gcc2 internal prototype to avoid an error. */
1115 /* We use char because int might match the return type of a gcc2
1116 builtin and then its argument prototype would still apply. */
1117 char pcrs_compile();
1123 if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1125 eval "ac_cv_lib_$ac_lib_var=yes"
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1130 eval "ac_cv_lib_$ac_lib_var=no"
1133 LIBS="$ac_save_LIBS"
1136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1137 echo "$ac_t""yes" 1>&6
1140 echo "$ac_t""no" 1>&6
1145 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1146 echo "configure:1147: checking for ANSI C header files" >&5
1147 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1159 { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1161 if test -z "$ac_err"; then
1163 ac_cv_header_stdc=yes
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1169 ac_cv_header_stdc=no
1173 if test $ac_cv_header_stdc = yes; then
1174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1175 cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1181 egrep "memchr" >/dev/null 2>&1; then
1185 ac_cv_header_stdc=no
1191 if test $ac_cv_header_stdc = yes; then
1192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1199 egrep "free" >/dev/null 2>&1; then
1203 ac_cv_header_stdc=no
1209 if test $ac_cv_header_stdc = yes; then
1210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1211 if test "$cross_compiling" = yes; then
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1218 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1219 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1221 int main () { int i; for (i = 0; i < 256; i++)
1222 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1226 if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1233 ac_cv_header_stdc=no
1241 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1242 if test $ac_cv_header_stdc = yes; then
1243 cat >> confdefs.h <<\EOF
1244 #define STDC_HEADERS 1
1250 echo $ac_n "checking for working const""... $ac_c" 1>&6
1251 echo "configure:1252: checking for working const" >&5
1252 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1261 /* Ultrix mips cc rejects this. */
1262 typedef int charset[2]; const charset x;
1263 /* SunOS 4.1.1 cc rejects this. */
1264 char const *const *ccp;
1266 /* NEC SVR4.0.2 mips cc rejects this. */
1267 struct point {int x, y;};
1268 static struct point const zero = {0,0};
1269 /* AIX XL C 1.02.0.0 rejects this.
1270 It does not let you subtract one const X* pointer from another in an arm
1271 of an if-expression whose if-part is not a constant expression */
1272 const char *g = "string";
1273 ccp = &g + (g ? g-g : 0);
1274 /* HPUX 7.0 cc rejects these. */
1277 ccp = (char const *const *) p;
1278 { /* SCO 3.2v4 cc rejects this. */
1280 char const *s = 0 ? (char *) 0 : (char const *) 0;
1284 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1286 const int *foo = &x[0];
1289 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1290 typedef const int *iptr;
1294 { /* AIX XL C 1.02.0.0 rejects this saying
1295 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1296 struct s { int j; const int *ap[3]; };
1297 struct s *b; b->j = 5;
1299 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1305 if { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1309 echo "configure: failed program was:" >&5
1310 cat conftest.$ac_ext >&5
1317 echo "$ac_t""$ac_cv_c_const" 1>&6
1318 if test $ac_cv_c_const = no; then
1319 cat >> confdefs.h <<\EOF
1325 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1326 echo "configure:1327: checking for size_t" >&5
1327 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 #include <sys/types.h>
1339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1340 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1342 ac_cv_type_size_t=yes
1345 ac_cv_type_size_t=no
1350 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1351 if test $ac_cv_type_size_t = no; then
1352 cat >> confdefs.h <<\EOF
1353 #define size_t unsigned
1359 for ac_func in strerror bcopy memmove
1361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_func" >&5
1363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1369 /* System header to define __stub macros and hopefully few prototypes,
1370 which can conflict with char $ac_func(); below. */
1372 /* Override any gcc2 internal prototype to avoid an error. */
1373 /* We use char because int might match the return type of a gcc2
1374 builtin and then its argument prototype would still apply. */
1379 /* The GNU C library defines this for functions which it implements
1380 to always fail with ENOSYS. Some functions are actually named
1381 something starting with __ and the normal name is an alias. */
1382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1392 eval "ac_cv_func_$ac_func=yes"
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 eval "ac_cv_func_$ac_func=no"
1402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1403 echo "$ac_t""yes" 1>&6
1404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1405 cat >> confdefs.h <<EOF
1406 #define $ac_tr_func 1
1410 echo "$ac_t""no" 1>&6
1416 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1417 if test "${enable_mingw32+set}" = set; then
1418 enableval="$enable_mingw32"
1419 if test $enableval = yes; then
1421 CYGWIN_FLAGS="-mwindows -mno-cygwin"
1422 echo "Using mingw32 (Win32 GUI)"
1425 if test "$CYGWIN" = "yes"; then
1426 CYGWIN_FLAGS="-mno-win32"
1427 echo "Using Cygnus (Win32 command line)"
1433 if test "$MINGW32" = "yes"; then
1435 CYGWIN_FLAGS="-mwindows -mno-cygwin"
1436 echo "Using mingw32 (Win32 GUI)"
1439 if test "$CYGWIN" = "yes"; then
1440 CYGWIN_FLAGS="-mno-win32"
1441 echo "Using Cygnus (Win32 command line)"
1456 # Check whether --enable-toggle or --disable-toggle was given.
1457 if test "${enable_toggle+set}" = set; then
1458 enableval="$enable_toggle"
1459 if test $enableval = yes; then
1460 cat >> confdefs.h <<\EOF
1466 cat >> confdefs.h <<\EOF
1473 # Check whether --enable-pthread or --disable-pthread was given.
1474 if test "${enable_pthread+set}" = set; then
1475 enableval="$enable_pthread"
1476 if test $enableval = yes; then
1477 cat >> confdefs.h <<\EOF
1478 #define FEATURE_PTHREAD 1
1483 cat >> confdefs.h <<\EOF
1484 #define FEATURE_PTHREAD 1
1490 # Check whether --enable-gzip or --disable-gzip was given.
1491 if test "${enable_gzip+set}" = set; then
1492 enableval="$enable_gzip"
1493 if test $enableval = "no"; then
1494 cat >> confdefs.h <<\EOF
1502 # Check whether --enable-force or --disable-force was given.
1503 if test "${enable_force+set}" = set; then
1504 enableval="$enable_force"
1505 if test $enableval = yes; then
1506 cat >> confdefs.h <<\EOF
1507 #define FORCE_LOAD 1
1512 cat >> confdefs.h <<\EOF
1513 #define FORCE_LOAD 1
1519 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
1520 if test "${enable_fast_redirects+set}" = set; then
1521 enableval="$enable_fast_redirects"
1522 if test $enableval = yes; then
1523 cat >> confdefs.h <<\EOF
1524 #define FAST_REDIRECTS 1
1529 cat >> confdefs.h <<\EOF
1530 #define FAST_REDIRECTS 1
1536 # Check whether --enable-killpopup or --disable-killpopup was given.
1537 if test "${enable_killpopup+set}" = set; then
1538 enableval="$enable_killpopup"
1539 if test $enableval = yes; then
1540 cat >> confdefs.h <<\EOF
1541 #define KILLPOPUPS 1
1546 cat >> confdefs.h <<\EOF
1547 #define KILLPOPUPS 1
1553 # Check whether --enable-stats or --disable-stats was given.
1554 if test "${enable_stats+set}" = set; then
1555 enableval="$enable_stats"
1556 if test $enableval = yes; then
1557 cat >> confdefs.h <<\EOF
1558 #define STATISTICS 1
1563 cat >> confdefs.h <<\EOF
1564 #define STATISTICS 1
1570 # Check whether --enable-split-proxy-args or --disable-split-proxy-args was given.
1571 if test "${enable_split_proxy_args+set}" = set; then
1572 enableval="$enable_split_proxy_args"
1573 if test $enableval = yes; then
1574 cat >> confdefs.h <<\EOF
1575 #define SPLIT_PROXY_ARGS 1
1580 cat >> confdefs.h <<\EOF
1581 #define SPLIT_PROXY_ARGS 1
1587 # Check whether --enable-webdav or --disable-webdav was given.
1588 if test "${enable_webdav+set}" = set; then
1589 enableval="$enable_webdav"
1590 if test $enableval = yes; then
1591 cat >> confdefs.h <<\EOF
1597 cat >> confdefs.h <<\EOF
1604 # Check whether --enable-ie-images or --disable-ie-images was given.
1605 if test "${enable_ie_images+set}" = set; then
1606 enableval="$enable_ie_images"
1607 if test $enableval = yes; then
1608 cat >> confdefs.h <<\EOF
1609 #define DETECT_MSIE_IMAGES 1
1614 cat >> confdefs.h <<\EOF
1615 #define DETECT_MSIE_IMAGES 1
1621 # Check whether --enable-image-blocking or --disable-image-blocking was given.
1622 if test "${enable_image_blocking+set}" = set; then
1623 enableval="$enable_image_blocking"
1624 if test $enableval = yes; then
1625 cat >> confdefs.h <<\EOF
1626 #define IMAGE_BLOCKING 1
1631 cat >> confdefs.h <<\EOF
1632 #define IMAGE_BLOCKING 1
1638 # Check whether --enable-acl-files or --disable-acl-files was given.
1639 if test "${enable_acl_files+set}" = set; then
1640 enableval="$enable_acl_files"
1641 if test $enableval = yes; then
1642 cat >> confdefs.h <<\EOF
1648 cat >> confdefs.h <<\EOF
1655 # Check whether --enable-trust-files or --disable-trust-files was given.
1656 if test "${enable_trust_files+set}" = set; then
1657 enableval="$enable_trust_files"
1658 if test $enableval = yes; then
1659 cat >> confdefs.h <<\EOF
1660 #define TRUST_FILES 1
1665 cat >> confdefs.h <<\EOF
1666 #define TRUST_FILES 1
1672 # Check whether --enable-jar-files or --disable-jar-files was given.
1673 if test "${enable_jar_files+set}" = set; then
1674 enableval="$enable_jar_files"
1675 if test $enableval = yes; then
1676 cat >> confdefs.h <<\EOF
1682 cat >> confdefs.h <<\EOF
1690 # Check whether --enable-regex-matching or --disable-regex-matching was given.
1691 if test "${enable_regex_matching+set}" = set; then
1692 enableval="$enable_regex_matching"
1693 regex_matching=$enableval
1699 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
1700 if test "${enable_dynamic_pcre+set}" = set; then
1701 enableval="$enable_dynamic_pcre"
1702 if test $enableval = "no"; then have_pcre=no; fi
1706 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
1707 if test "${enable_dynamic_pcrs+set}" = set; then
1708 enableval="$enable_dynamic_pcrs"
1709 if test $enableval = "no"; then have_pcrs=no; fi
1714 # Is the regex URL matching based on libpcreposix, but we
1715 # don't have that library?
1717 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
1718 dont_miss_pcreposix=yes
1720 dont_miss_pcreposix=no
1723 # If we have libpcre and either we also have pcreposix or
1724 # we don't need pcreposix, then link pcre dynamically; else
1725 # build it and link statically
1727 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
1728 echo "using libpcre"
1733 echo "using built-in static pcre"
1735 cat >> confdefs.h <<\EOF
1736 #define STATIC_PCRE 1
1742 # If we have libpcrs and pcre is linked dynamically
1743 # then also link pcrs dynamically, else build and link
1746 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
1747 echo "using libpcrs"
1751 echo "using built-in static pcrs"
1752 cat >> confdefs.h <<\EOF
1753 #define STATIC_PCRS 1
1759 # Which method should be used for URL matching?
1760 # pcre, gnu regex or prefix matching?
1762 if test $regex_matching = "gnu"; then
1763 echo "using gnu regex for URL matching"
1764 cat >> confdefs.h <<\EOF
1770 elif test $regex_matching = "pcre"; then
1771 echo "using pcre regex for URL matching"
1772 cat >> confdefs.h <<\EOF
1773 #define REGEX_PCRE 1
1778 if test $pcre_dyn = "yes"; then
1779 LIBS="$LIBS -lpcreposix"
1782 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
1793 cat > confcache <<\EOF
1794 # This file is a shell script that caches the results of configure
1795 # tests run on this system so they can be shared between configure
1796 # scripts and configure runs. It is not useful on other systems.
1797 # If it contains results you don't want to keep, you may remove or edit it.
1799 # By default, configure uses ./config.cache as the cache file,
1800 # creating it if it does not exist already. You can give configure
1801 # the --cache-file=FILE option to use a different cache file; that is
1802 # what configure does when it calls configure scripts in
1803 # subdirectories, so they share the cache.
1804 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1805 # config.status only pays attention to the cache file if you give it the
1806 # --recheck option to rerun configure.
1809 # The following way of writing the cache mishandles newlines in values,
1810 # but we know of no workaround that is simple, portable, and efficient.
1811 # So, don't put newlines in cache variables' values.
1812 # Ultrix sh set writes to stderr and can't be redirected directly,
1813 # and sets the high bit in the cache file unless we assign to the vars.
1815 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1817 # `set' does not quote correctly, so add quotes (double-quote substitution
1818 # turns \\\\ into \\, and sed turns \\ into \).
1820 -e "s/'/'\\\\''/g" \
1821 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1824 # `set' quotes correctly as required by POSIX, so do not add quotes.
1825 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1828 if cmp -s $cache_file confcache; then
1831 if test -w $cache_file; then
1832 echo "updating cache $cache_file"
1833 cat confcache > $cache_file
1835 echo "not updating unwritable cache $cache_file"
1840 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1843 # Let make expand exec_prefix.
1844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1846 # Any assignment to VPATH causes Sun make to only execute
1847 # the first set of double-colon rules, so remove it if not needed.
1848 # If there is a colon in the path, we need to keep it.
1849 if test "x$srcdir" = x.; then
1850 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1853 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1855 DEFS=-DHAVE_CONFIG_H
1857 # Without the "./", some shells look in PATH for config.status.
1858 : ${CONFIG_STATUS=./config.status}
1860 echo creating $CONFIG_STATUS
1861 rm -f $CONFIG_STATUS
1862 cat > $CONFIG_STATUS <<EOF
1864 # Generated automatically by configure.
1865 # Run this file to recreate the current configuration.
1866 # This directory was configured as follows,
1867 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1869 # $0 $ac_configure_args
1871 # Compiler output produced by configure, useful for debugging
1872 # configure, is in ./config.log if it exists.
1874 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1877 case "\$ac_option" in
1878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1879 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1880 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1881 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1882 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1884 -help | --help | --hel | --he | --h)
1885 echo "\$ac_cs_usage"; exit 0 ;;
1886 *) echo "\$ac_cs_usage"; exit 1 ;;
1890 ac_given_srcdir=$srcdir
1892 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1894 cat >> $CONFIG_STATUS <<EOF
1896 # Protect against being on the right side of a sed subst in config.status.
1897 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1898 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1902 s%@CFLAGS@%$CFLAGS%g
1903 s%@CPPFLAGS@%$CPPFLAGS%g
1904 s%@CXXFLAGS@%$CXXFLAGS%g
1905 s%@FFLAGS@%$FFLAGS%g
1907 s%@LDFLAGS@%$LDFLAGS%g
1909 s%@exec_prefix@%$exec_prefix%g
1910 s%@prefix@%$prefix%g
1911 s%@program_transform_name@%$program_transform_name%g
1912 s%@bindir@%$bindir%g
1913 s%@sbindir@%$sbindir%g
1914 s%@libexecdir@%$libexecdir%g
1915 s%@datadir@%$datadir%g
1916 s%@sysconfdir@%$sysconfdir%g
1917 s%@sharedstatedir@%$sharedstatedir%g
1918 s%@localstatedir@%$localstatedir%g
1919 s%@libdir@%$libdir%g
1920 s%@includedir@%$includedir%g
1921 s%@oldincludedir@%$oldincludedir%g
1922 s%@infodir@%$infodir%g
1923 s%@mandir@%$mandir%g
1924 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
1925 s%@VERSION_MINOR@%$VERSION_MINOR%g
1926 s%@VERSION_POINT@%$VERSION_POINT%g
1929 s%@EXEEXT@%$EXEEXT%g
1930 s%@OBJEXT@%$OBJEXT%g
1931 s%@WIN_ONLY@%$WIN_ONLY%g
1932 s%@CYGWIN_FLAGS@%$CYGWIN_FLAGS%g
1933 s%@SOLARIS_ONLY@%$SOLARIS_ONLY%g
1934 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
1935 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
1936 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
1937 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
1942 cat >> $CONFIG_STATUS <<\EOF
1944 # Split the substitutions into bite-sized pieces for seds with
1945 # small command number limits, like on Digital OSF/1 and HP-UX.
1946 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1947 ac_file=1 # Number of current file.
1948 ac_beg=1 # First line for current file.
1949 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1952 while $ac_more_lines; do
1953 if test $ac_beg -gt 1; then
1954 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1956 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1958 if test ! -s conftest.s$ac_file; then
1960 rm -f conftest.s$ac_file
1962 if test -z "$ac_sed_cmds"; then
1963 ac_sed_cmds="sed -f conftest.s$ac_file"
1965 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1967 ac_file=`expr $ac_file + 1`
1969 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1972 if test -z "$ac_sed_cmds"; then
1977 cat >> $CONFIG_STATUS <<EOF
1979 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1981 cat >> $CONFIG_STATUS <<\EOF
1982 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1985 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1986 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1987 *) ac_file_in="${ac_file}.in" ;;
1990 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1992 # Remove last slash and all that follows it. Not all systems have dirname.
1993 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1994 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1995 # The file is in a subdirectory.
1996 test ! -d "$ac_dir" && mkdir "$ac_dir"
1997 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1998 # A "../" for each directory in $ac_dir_suffix.
1999 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2001 ac_dir_suffix= ac_dots=
2004 case "$ac_given_srcdir" in
2006 if test -z "$ac_dots"; then top_srcdir=.
2007 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2008 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2010 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2011 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2015 echo creating "$ac_file"
2017 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2019 *Makefile*) ac_comsub="1i\\
2020 # $configure_input" ;;
2024 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2026 s%@configure_input@%$configure_input%g
2027 s%@srcdir@%$srcdir%g
2028 s%@top_srcdir@%$top_srcdir%g
2029 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2036 # ac_d sets the value in "#define NAME VALUE" lines.
2037 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2038 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2041 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2042 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2043 ac_uB='\([ ]\)%\1#\2define\3'
2046 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2047 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2048 ac_eB='$%\1#\2define\3'
2052 if test "${CONFIG_HEADERS+set}" != set; then
2054 cat >> $CONFIG_STATUS <<EOF
2055 CONFIG_HEADERS="config.h"
2057 cat >> $CONFIG_STATUS <<\EOF
2059 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2062 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2063 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2064 *) ac_file_in="${ac_file}.in" ;;
2067 echo creating $ac_file
2069 rm -f conftest.frag conftest.in conftest.out
2070 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2071 cat $ac_file_inputs > conftest.in
2075 # Transform confdefs.h into a sed script conftest.vals that substitutes
2076 # the proper values into config.h.in to produce config.h. And first:
2077 # Protect against being on the right side of a sed subst in config.status.
2078 # Protect against being in an unquoted here document in config.status.
2080 cat > conftest.hdr <<\EOF
2083 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2087 sed -n -f conftest.hdr confdefs.h > conftest.vals
2090 # This sed command replaces #undef with comments. This is necessary, for
2091 # example, in the case of _POSIX_SOURCE, which is predefined and required
2092 # on some systems where configure will not decide to define it.
2093 cat >> conftest.vals <<\EOF
2094 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2097 # Break up conftest.vals because some shells have a limit on
2098 # the size of here documents, and old seds have small limits too.
2103 ac_lines=`grep -c . conftest.vals`
2104 # grep -c gives empty output for an empty file on some AIX systems.
2105 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2106 # Write a limited-size here document to conftest.frag.
2107 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2108 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2110 sed -f conftest.frag conftest.in > conftest.out
2112 mv conftest.out conftest.in
2114 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2116 mv conftest.tail conftest.vals
2120 cat >> $CONFIG_STATUS <<\EOF
2121 rm -f conftest.frag conftest.h
2122 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2123 cat conftest.in >> conftest.h
2125 if cmp -s $ac_file conftest.h 2>/dev/null; then
2126 echo "$ac_file is unchanged"
2129 # Remove last slash and all that follows it. Not all systems have dirname.
2130 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2131 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2132 # The file is in a subdirectory.
2133 test ! -d "$ac_dir" && mkdir "$ac_dir"
2136 mv conftest.h $ac_file
2141 cat >> $CONFIG_STATUS <<EOF
2144 cat >> $CONFIG_STATUS <<\EOF
2148 chmod +x $CONFIG_STATUS
2149 rm -fr confdefs* $ac_clean_files
2150 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1