3 # From configure.in Revision: 1.24
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --with-debug Enable debug mode"
18 --enable-mingw32 Use mingw32 for a Windows GUI"
20 --disable-pthread Don't use POSIX threads (pthreads)"
22 --disable-toggle Don't support temporary disable"
24 --disable-force Don't allow single-page disable"
26 --disable-fast-redirects Don't support fast redirects"
28 --disable-killpopup Never block popups"
30 --disable-stats Don't keep statistics"
32 --disable-ie-images Don't auto-detect whether a request from MS Internet
33 Explorer is for an image or HTML."
35 --disable-image-blocking Don't try to figure out whether a request is
36 for an image or HTML - assume HTML."
38 --disable-acl-files Prevents the use of ACL files to control access to
39 the proxy by IP address."
41 --disable-trust-files Prevents the use of trust files."
43 --disable-jar-files Prevents the use of jar files to capture cookies."
45 --disable-editor Prevents the use of the web-based actions file
46 editor and web-based temporary disable setting."
48 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
49 pattern matching (default)
50 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
51 matching (-> bigger binary)
52 --disable-regex-matching Don't use regex matching, compare URL
53 prefix instead (won't shrink birary)"
55 --disable-dynamic-pcre Use the built-in, static pcre, even if
58 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file=./config.cache
74 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 SHELL=${CONFIG_SHELL-/bin/sh}
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host | --host | --hos | --ho)
237 -host=* | --host=* | --hos=* | --ho=*)
240 -includedir | --includedir | --includedi | --included | --include \
241 | --includ | --inclu | --incl | --inc)
242 ac_prev=includedir ;;
243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244 | --includ=* | --inclu=* | --incl=* | --inc=*)
245 includedir="$ac_optarg" ;;
247 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250 infodir="$ac_optarg" ;;
252 -libdir | --libdir | --libdi | --libd)
254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
255 libdir="$ac_optarg" ;;
257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258 | --libexe | --libex | --libe)
259 ac_prev=libexecdir ;;
260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261 | --libexe=* | --libex=* | --libe=*)
262 libexecdir="$ac_optarg" ;;
264 -localstatedir | --localstatedir | --localstatedi | --localstated \
265 | --localstate | --localstat | --localsta | --localst \
266 | --locals | --local | --loca | --loc | --lo)
267 ac_prev=localstatedir ;;
268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271 localstatedir="$ac_optarg" ;;
273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276 mandir="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292 | --oldin | --oldi | --old | --ol | --o)
293 ac_prev=oldincludedir ;;
294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297 oldincludedir="$ac_optarg" ;;
299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302 prefix="$ac_optarg" ;;
304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
305 | --program-pre | --program-pr | --program-p)
306 ac_prev=program_prefix ;;
307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309 program_prefix="$ac_optarg" ;;
311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
312 | --program-suf | --program-su | --program-s)
313 ac_prev=program_suffix ;;
314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316 program_suffix="$ac_optarg" ;;
318 -program-transform-name | --program-transform-name \
319 | --program-transform-nam | --program-transform-na \
320 | --program-transform-n | --program-transform- \
321 | --program-transform | --program-transfor \
322 | --program-transfo | --program-transf \
323 | --program-trans | --program-tran \
324 | --progr-tra | --program-tr | --program-t)
325 ac_prev=program_transform_name ;;
326 -program-transform-name=* | --program-transform-name=* \
327 | --program-transform-nam=* | --program-transform-na=* \
328 | --program-transform-n=* | --program-transform-=* \
329 | --program-transform=* | --program-transfor=* \
330 | --program-transfo=* | --program-transf=* \
331 | --program-trans=* | --program-tran=* \
332 | --progr-tra=* | --program-tr=* | --program-t=*)
333 program_transform_name="$ac_optarg" ;;
335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336 | -silent | --silent | --silen | --sile | --sil)
339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 sbindir="$ac_optarg" ;;
345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347 | --sharedst | --shareds | --shared | --share | --shar \
349 ac_prev=sharedstatedir ;;
350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 sharedstatedir="$ac_optarg" ;;
356 -site | --site | --sit)
358 -site=* | --site=* | --sit=*)
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
373 -target | --target | --targe | --targ | --tar | --ta | --t)
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 -version | --version | --versio | --versi | --vers)
382 echo "configure generated by autoconf version 2.13"
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE; then
528 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CPP $CPPFLAGS'
551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='\c' ac_t=
572 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
573 if test -f $ac_dir/install-sh; then
575 ac_install_sh="$ac_aux_dir/install-sh -c"
577 elif test -f $ac_dir/install.sh; then
579 ac_install_sh="$ac_aux_dir/install.sh -c"
583 if test -z "$ac_aux_dir"; then
584 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
586 ac_config_guess=$ac_aux_dir/config.guess
587 ac_config_sub=$ac_aux_dir/config.sub
588 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 # Make sure we can run config.sub.
592 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
593 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
596 echo $ac_n "checking host system type""... $ac_c" 1>&6
597 echo "configure:598: checking host system type" >&5
600 case "$host_alias" in
604 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
605 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
607 *) host_alias=$nonopt ;;
611 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
612 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
613 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
614 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
615 echo "$ac_t""$host" 1>&6
632 cat >> confdefs.h <<EOF
633 #define VERSION_MAJOR ${VERSION_MAJOR}
636 cat >> confdefs.h <<EOF
637 #define VERSION_MINOR ${VERSION_MINOR}
640 cat >> confdefs.h <<EOF
641 #define VERSION_POINT ${VERSION_POINT}
644 cat >> confdefs.h <<EOF
645 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
648 cat >> confdefs.h <<EOF
649 #define CODE_STATUS "${CODE_STATUS}"
653 PID_FILE_PATH="\"/etc/junkbuster"\"
655 # Extract the first word of "gcc", so it can be a program name with args.
656 set dummy gcc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
667 for ac_dir in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
678 if test -n "$CC"; then
679 echo "$ac_t""$CC" 1>&6
681 echo "$ac_t""no" 1>&6
684 if test -z "$CC"; then
685 # Extract the first word of "cc", so it can be a program name with args.
686 set dummy cc; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 echo "configure:689: checking for $ac_word" >&5
689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 for ac_dir in $ac_dummy; do
699 test -z "$ac_dir" && ac_dir=.
700 if test -f $ac_dir/$ac_word; then
701 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
710 if test $ac_prog_rejected = yes; then
711 # We found a bogon in the path, so make sure we never use it.
712 set dummy $ac_cv_prog_CC
714 if test $# -gt 0; then
715 # We chose a different compiler from the bogus one.
716 # However, it has the same basename, so the bogon will be chosen
717 # first if we set CC to just the basename; use the full file name.
719 set dummy "$ac_dir/$ac_word" "$@"
727 if test -n "$CC"; then
728 echo "$ac_t""$CC" 1>&6
730 echo "$ac_t""no" 1>&6
733 if test -z "$CC"; then
736 # Extract the first word of "cl", so it can be a program name with args.
737 set dummy cl; ac_word=$2
738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739 echo "configure:740: checking for $ac_word" >&5
740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
743 if test -n "$CC"; then
744 ac_cv_prog_CC="$CC" # Let the user override the test.
746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
748 for ac_dir in $ac_dummy; do
749 test -z "$ac_dir" && ac_dir=.
750 if test -f $ac_dir/$ac_word; then
759 if test -n "$CC"; then
760 echo "$ac_t""$CC" 1>&6
762 echo "$ac_t""no" 1>&6
767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp='$CPP $CPPFLAGS'
776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling=$ac_cv_prog_cc_cross
780 cat > conftest.$ac_ext << EOF
782 #line 783 "configure"
783 #include "confdefs.h"
787 if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
788 ac_cv_prog_cc_works=yes
789 # If we can't run a trivial program, we are probably using a cross compiler.
790 if (./conftest; exit) 2>/dev/null; then
791 ac_cv_prog_cc_cross=no
793 ac_cv_prog_cc_cross=yes
796 echo "configure: failed program was:" >&5
797 cat conftest.$ac_ext >&5
798 ac_cv_prog_cc_works=no
802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
803 ac_cpp='$CPP $CPPFLAGS'
804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
809 if test $ac_cv_prog_cc_works = no; then
810 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
813 echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
815 cross_compiling=$ac_cv_prog_cc_cross
817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
818 echo "configure:819: checking whether we are using GNU C" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 cat > conftest.c <<EOF
827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
836 if test $ac_cv_prog_gcc = yes; then
842 ac_test_CFLAGS="${CFLAGS+set}"
843 ac_save_CFLAGS="$CFLAGS"
845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
846 echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 echo 'void f(){}' > conftest.c
851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
861 if test "$ac_test_CFLAGS" = set; then
862 CFLAGS="$ac_save_CFLAGS"
863 elif test $ac_cv_prog_cc_g = yes; then
864 if test "$GCC" = yes; then
870 if test "$GCC" = yes; then
877 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
878 echo "configure:879: checking how to run the C preprocessor" >&5
879 # On Suns, sometimes $CPP names a directory.
880 if test -n "$CPP" && test -d "$CPP"; then
883 if test -z "$CPP"; then
884 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 # This must be in double quotes, not single quotes, because CPP may get
888 # substituted into the Makefile and "${CC-cc}" will confuse make.
890 # On the NeXT, cc -E runs the code through the compiler's parser,
891 # not just through cpp.
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
901 if test -z "$ac_err"; then
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
908 CPP="${CC-cc} -E -traditional-cpp"
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918 if test -z "$ac_err"; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
925 CPP="${CC-cc} -nologo -E"
926 cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935 if test -z "$ac_err"; then
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
949 ac_cv_prog_CPP="$CPP"
951 CPP="$ac_cv_prog_CPP"
953 ac_cv_prog_CPP="$CPP"
955 echo "$ac_t""$CPP" 1>&6
958 # Extract the first word of "gdb", so it can be a program name with args.
959 set dummy gdb; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$GDB"; then
966 ac_cv_prog_GDB="$GDB" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
978 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
981 GDB="$ac_cv_prog_GDB"
982 if test -n "$GDB"; then
983 echo "$ac_t""$GDB" 1>&6
985 echo "$ac_t""no" 1>&6
990 # Check whether --with-debug or --without-debug was given.
991 if test "${with_debug+set}" = set; then
992 withval="$with_debug"
994 if test "x$withval" != "$xno" ; then
995 if test $ac_cv_prog_cc_g = yes; then
996 if test "$GCC" = yes; then
1002 CFLAGS="$CFLAGS -Wshadow -Wconversion"
1007 CFLAGS="$CFLAGS -D_DEBUG"
1012 if test "$GCC" = yes; then
1022 if test "$GCC"; then
1023 CFLAGS="-pipe $CFLAGS"
1028 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1029 echo "configure:1030: checking for mingw32 environment" >&5
1030 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1041 if { (eval echo configure:1042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1054 echo "$ac_t""$ac_cv_mingw32" 1>&6
1056 test "$ac_cv_mingw32" = yes && MINGW32=yes
1057 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1058 echo "configure:1059: checking for Cygwin environment" >&5
1059 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 cat > conftest.$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1069 #define __CYGWIN__ __CYGWIN32__
1074 if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1078 echo "configure: failed program was:" >&5
1079 cat conftest.$ac_ext >&5
1087 echo "$ac_t""$ac_cv_cygwin" 1>&6
1089 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1091 if test "$MINGW32" = "yes"; then
1094 if test "$CYGWIN" = "yes"; then
1102 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1103 if test "${enable_mingw32+set}" = set; then
1104 enableval="$enable_mingw32"
1105 if test $enableval = yes; then
1111 if test $target_type = mingw; then
1113 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1114 PTHREAD_LIB=-lpthreadGC
1115 echo "Using mingw32 (Win32 GUI)"
1118 if test $target_type = cygwin; then
1119 SPECIAL_CFLAGS="-mno-win32"
1121 echo "Using Cygnus (Win32 command line)"
1124 PTHREAD_LIB=-lpthread
1130 old_CFLAGS_nospecial=$CFLAGS
1131 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1133 # Hack to force AutoConf to use the CFLAGS we just set
1134 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1140 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1141 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1142 echo "configure:1143: checking for pthread.h" >&5
1143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 #include <pthread.h>
1151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1152 { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1154 if test -z "$ac_err"; then
1156 eval "ac_cv_header_$ac_safe=yes"
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 eval "ac_cv_header_$ac_safe=no"
1166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1170 echo "$ac_t""no" 1>&6
1175 # Check whether --enable-pthread or --disable-pthread was given.
1176 if test "${enable_pthread+set}" = set; then
1177 enableval="$enable_pthread"
1178 if test $enableval = no; then
1185 if test $have_pthread = yes; then
1187 cat >> confdefs.h <<\EOF
1188 #define FEATURE_PTHREAD 1
1191 echo Using POSIX threads
1192 if test "$GCC" = "yes"; then
1193 # Set a GCC specific switch:
1194 if test "$target_type" = "unix"; then
1195 # This compiler switch makes Linux thread-safe
1196 # Don't know about other OS's? Is this switch
1199 SPECIAL_CFLAGS="-pthread"
1204 echo Using native threads
1215 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1216 cat >> confdefs.h <<\EOF
1217 #define __EXTENSIONS__ 1
1220 if test "$GCC" = "yes"; then
1221 # Set a GCC specific switch:
1222 # This compiler switch makes Solaris thread-safe
1224 SPECIAL_CFLAGS="-pthreads"
1226 # What do we do without GCC? Guess this:
1227 SPECIAL_CFLAGS="-D_REENTRANT"
1236 *-os2-emx*) SOCKET_LIB=-lsocket
1246 *-amigaos) AMIGAOS_ONLY=
1255 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1256 echo "configure:1257: checking for executable suffix" >&5
1257 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1264 echo 'int main () { return 0; }' > conftest.$ac_ext
1266 if { (eval echo configure:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1267 for file in conftest.*; do
1269 *.c | *.o | *.obj) ;;
1270 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1274 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1277 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1282 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1283 echo "$ac_t""${ac_cv_exeext}" 1>&6
1286 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1287 echo "configure:1288: checking for object suffix" >&5
1288 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1292 echo 'int i = 1;' > conftest.$ac_ext
1293 if { (eval echo configure:1294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 for ac_file in conftest.*; do
1297 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1301 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1306 echo "$ac_t""$ac_cv_objext" 1>&6
1307 OBJEXT=$ac_cv_objext
1308 ac_objext=$ac_cv_objext
1310 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1311 echo "configure:1312: checking for ANSI C header files" >&5
1312 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1328 ac_cv_header_stdc=yes
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 ac_cv_header_stdc=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "memchr" >/dev/null 2>&1; then
1350 ac_cv_header_stdc=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1364 egrep "free" >/dev/null 2>&1; then
1368 ac_cv_header_stdc=no
1374 if test $ac_cv_header_stdc = yes; then
1375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1376 if test "$cross_compiling" = yes; then
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1383 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1384 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1386 int main () { int i; for (i = 0; i < 256; i++)
1387 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1391 if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1395 echo "configure: failed program was:" >&5
1396 cat conftest.$ac_ext >&5
1398 ac_cv_header_stdc=no
1406 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1407 if test $ac_cv_header_stdc = yes; then
1408 cat >> confdefs.h <<\EOF
1409 #define STDC_HEADERS 1
1414 echo $ac_n "checking for working const""... $ac_c" 1>&6
1415 echo "configure:1416: checking for working const" >&5
1416 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1425 /* Ultrix mips cc rejects this. */
1426 typedef int charset[2]; const charset x;
1427 /* SunOS 4.1.1 cc rejects this. */
1428 char const *const *ccp;
1430 /* NEC SVR4.0.2 mips cc rejects this. */
1431 struct point {int x, y;};
1432 static struct point const zero = {0,0};
1433 /* AIX XL C 1.02.0.0 rejects this.
1434 It does not let you subtract one const X* pointer from another in an arm
1435 of an if-expression whose if-part is not a constant expression */
1436 const char *g = "string";
1437 ccp = &g + (g ? g-g : 0);
1438 /* HPUX 7.0 cc rejects these. */
1441 ccp = (char const *const *) p;
1442 { /* SCO 3.2v4 cc rejects this. */
1444 char const *s = 0 ? (char *) 0 : (char const *) 0;
1448 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1450 const int *foo = &x[0];
1453 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1454 typedef const int *iptr;
1458 { /* AIX XL C 1.02.0.0 rejects this saying
1459 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1460 struct s { int j; const int *ap[3]; };
1461 struct s *b; b->j = 5;
1463 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1469 if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1481 echo "$ac_t""$ac_cv_c_const" 1>&6
1482 if test $ac_cv_c_const = no; then
1483 cat >> confdefs.h <<\EOF
1489 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1490 echo "configure:1491: checking for size_t" >&5
1491 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 #include <sys/types.h>
1503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1504 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1506 ac_cv_type_size_t=yes
1509 ac_cv_type_size_t=no
1514 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1515 if test $ac_cv_type_size_t = no; then
1516 cat >> confdefs.h <<\EOF
1517 #define size_t unsigned
1522 echo $ac_n "checking size of int""... $ac_c" 1>&6
1523 echo "configure:1524: checking size of int" >&5
1524 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 if test "$cross_compiling" = yes; then
1528 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1536 FILE *f=fopen("conftestval", "w");
1538 fprintf(f, "%d\n", sizeof(int));
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1544 ac_cv_sizeof_int=`cat conftestval`
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1555 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1556 cat >> confdefs.h <<EOF
1557 #define SIZEOF_INT $ac_cv_sizeof_int
1561 echo $ac_n "checking size of char *""... $ac_c" 1>&6
1562 echo "configure:1563: checking size of char *" >&5
1563 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 if test "$cross_compiling" = yes; then
1567 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1575 FILE *f=fopen("conftestval", "w");
1577 fprintf(f, "%d\n", sizeof(char *));
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1583 ac_cv_sizeof_char_p=`cat conftestval`
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1588 ac_cv_sizeof_char_p=0
1594 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
1595 cat >> confdefs.h <<EOF
1596 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
1600 echo $ac_n "checking size of long""... $ac_c" 1>&6
1601 echo "configure:1602: checking size of long" >&5
1602 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test "$cross_compiling" = yes; then
1606 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1614 FILE *f=fopen("conftestval", "w");
1616 fprintf(f, "%d\n", sizeof(long));
1620 if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1622 ac_cv_sizeof_long=`cat conftestval`
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1633 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1634 cat >> confdefs.h <<EOF
1635 #define SIZEOF_LONG $ac_cv_sizeof_long
1639 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1640 echo "configure:1641: checking size of long long" >&5
1641 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 if test "$cross_compiling" = yes; then
1645 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1653 FILE *f=fopen("conftestval", "w");
1655 fprintf(f, "%d\n", sizeof(long long));
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1661 ac_cv_sizeof_long_long=`cat conftestval`
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 ac_cv_sizeof_long_long=0
1672 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1673 cat >> confdefs.h <<EOF
1674 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1678 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
1679 echo "configure:1680: checking size of size_t" >&5
1680 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 if test "$cross_compiling" = yes; then
1684 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1692 FILE *f=fopen("conftestval", "w");
1694 fprintf(f, "%d\n", sizeof(size_t));
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1700 ac_cv_sizeof_size_t=`cat conftestval`
1702 echo "configure: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1705 ac_cv_sizeof_size_t=0
1711 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
1712 cat >> confdefs.h <<EOF
1713 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
1719 for ac_func in strerror bcopy memmove
1721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_func" >&5
1723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 /* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $ac_func(); below. */
1732 /* Override any gcc2 internal prototype to avoid an error. */
1733 /* We use char because int might match the return type of a gcc2
1734 builtin and then its argument prototype would still apply. */
1739 /* The GNU C library defines this for functions which it implements
1740 to always fail with ENOSYS. Some functions are actually named
1741 something starting with __ and the normal name is an alias. */
1742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1750 if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1752 eval "ac_cv_func_$ac_func=yes"
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1757 eval "ac_cv_func_$ac_func=no"
1762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1763 echo "$ac_t""yes" 1>&6
1764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1765 cat >> confdefs.h <<EOF
1766 #define $ac_tr_func 1
1770 echo "$ac_t""no" 1>&6
1776 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
1777 echo "configure:1778: checking for pcre_compile in -lpcre" >&5
1778 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
1779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 ac_save_LIBS="$LIBS"
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* Override any gcc2 internal prototype to avoid an error. */
1788 /* We use char because int might match the return type of a gcc2
1789 builtin and then its argument prototype would still apply. */
1790 char pcre_compile();
1796 if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798 eval "ac_cv_lib_$ac_lib_var=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_lib_$ac_lib_var=no"
1806 LIBS="$ac_save_LIBS"
1809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1811 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
1812 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
1813 echo "configure:1814: checking for pcre.h" >&5
1814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1823 { (eval echo configure:1824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1825 if test -z "$ac_err"; then
1827 eval "ac_cv_header_$ac_safe=yes"
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1833 eval "ac_cv_header_$ac_safe=no"
1837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1838 echo "$ac_t""yes" 1>&6
1841 echo "$ac_t""no" 1>&6
1846 echo "$ac_t""no" 1>&6
1850 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
1851 echo "configure:1852: checking for regcomp in -lpcreposix" >&5
1852 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
1853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 ac_save_LIBS="$LIBS"
1857 LIBS="-lpcreposix -lpcre $LIBS"
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* Override any gcc2 internal prototype to avoid an error. */
1862 /* We use char because int might match the return type of a gcc2
1863 builtin and then its argument prototype would still apply. */
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1872 eval "ac_cv_lib_$ac_lib_var=yes"
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1877 eval "ac_cv_lib_$ac_lib_var=no"
1880 LIBS="$ac_save_LIBS"
1883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
1886 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
1887 echo "configure:1888: checking for pcreposix.h" >&5
1888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #include <pcreposix.h>
1896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1897 { (eval echo configure:1898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1899 if test -z "$ac_err"; then
1901 eval "ac_cv_header_$ac_safe=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_header_$ac_safe=no"
1911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1912 echo "$ac_t""yes" 1>&6
1915 echo "$ac_t""no" 1>&6
1920 echo "$ac_t""no" 1>&6
1924 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
1925 echo "configure:1926: checking for pcrs_compile in -lpcrs" >&5
1926 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
1927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 ac_save_LIBS="$LIBS"
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1935 /* Override any gcc2 internal prototype to avoid an error. */
1936 /* We use char because int might match the return type of a gcc2
1937 builtin and then its argument prototype would still apply. */
1938 char pcrs_compile();
1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1946 eval "ac_cv_lib_$ac_lib_var=yes"
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1951 eval "ac_cv_lib_$ac_lib_var=no"
1954 LIBS="$ac_save_LIBS"
1957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
1961 echo "configure:1962: checking for pcrs.h" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1989 echo "$ac_t""no" 1>&6
1994 echo "$ac_t""no" 1>&6
2001 cat >> confdefs.h <<\EOF
2007 # Check whether --enable-toggle or --disable-toggle was given.
2008 if test "${enable_toggle+set}" = set; then
2009 enableval="$enable_toggle"
2010 if test $enableval = yes; then
2011 cat >> confdefs.h <<\EOF
2012 #define FEATURE_TOGGLE 1
2017 cat >> confdefs.h <<\EOF
2018 #define FEATURE_TOGGLE 1
2024 # Check whether --enable-force or --disable-force was given.
2025 if test "${enable_force+set}" = set; then
2026 enableval="$enable_force"
2027 if test $enableval = yes; then
2028 cat >> confdefs.h <<\EOF
2029 #define FEATURE_FORCE_LOAD 1
2034 cat >> confdefs.h <<\EOF
2035 #define FEATURE_FORCE_LOAD 1
2041 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2042 if test "${enable_fast_redirects+set}" = set; then
2043 enableval="$enable_fast_redirects"
2044 if test $enableval = yes; then
2045 cat >> confdefs.h <<\EOF
2046 #define FEATURE_FAST_REDIRECTS 1
2051 cat >> confdefs.h <<\EOF
2052 #define FEATURE_FAST_REDIRECTS 1
2058 # Check whether --enable-killpopup or --disable-killpopup was given.
2059 if test "${enable_killpopup+set}" = set; then
2060 enableval="$enable_killpopup"
2061 if test $enableval = yes; then
2062 cat >> confdefs.h <<\EOF
2063 #define FEATURE_KILL_POPUPS 1
2068 cat >> confdefs.h <<\EOF
2069 #define FEATURE_KILL_POPUPS 1
2075 # Check whether --enable-stats or --disable-stats was given.
2076 if test "${enable_stats+set}" = set; then
2077 enableval="$enable_stats"
2078 if test $enableval = yes; then
2079 cat >> confdefs.h <<\EOF
2080 #define FEATURE_STATISTICS 1
2085 cat >> confdefs.h <<\EOF
2086 #define FEATURE_STATISTICS 1
2092 # Check whether --enable-ie-images or --disable-ie-images was given.
2093 if test "${enable_ie_images+set}" = set; then
2094 enableval="$enable_ie_images"
2095 if test $enableval = yes; then
2096 cat >> confdefs.h <<\EOF
2097 #define FEATURE_IMAGE_DETECT_MSIE 1
2102 cat >> confdefs.h <<\EOF
2103 #define FEATURE_IMAGE_DETECT_MSIE 1
2109 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2110 if test "${enable_image_blocking+set}" = set; then
2111 enableval="$enable_image_blocking"
2112 if test $enableval = yes; then
2113 cat >> confdefs.h <<\EOF
2114 #define FEATURE_IMAGE_BLOCKING 1
2119 cat >> confdefs.h <<\EOF
2120 #define FEATURE_IMAGE_BLOCKING 1
2126 # Check whether --enable-acl-files or --disable-acl-files was given.
2127 if test "${enable_acl_files+set}" = set; then
2128 enableval="$enable_acl_files"
2129 if test $enableval = yes; then
2130 cat >> confdefs.h <<\EOF
2131 #define FEATURE_ACL 1
2136 cat >> confdefs.h <<\EOF
2137 #define FEATURE_ACL 1
2143 # Check whether --enable-trust-files or --disable-trust-files was given.
2144 if test "${enable_trust_files+set}" = set; then
2145 enableval="$enable_trust_files"
2146 if test $enableval = yes; then
2147 cat >> confdefs.h <<\EOF
2148 #define FEATURE_TRUST 1
2153 cat >> confdefs.h <<\EOF
2154 #define FEATURE_TRUST 1
2160 # Check whether --enable-jar-files or --disable-jar-files was given.
2161 if test "${enable_jar_files+set}" = set; then
2162 enableval="$enable_jar_files"
2163 if test $enableval = yes; then
2164 cat >> confdefs.h <<\EOF
2165 #define FEATURE_COOKIE_JAR 1
2170 cat >> confdefs.h <<\EOF
2171 #define FEATURE_COOKIE_JAR 1
2177 # Check whether --enable-editor or --disable-editor was given.
2178 if test "${enable_editor+set}" = set; then
2179 enableval="$enable_editor"
2180 if test $enableval = yes; then
2181 cat >> confdefs.h <<\EOF
2182 #define FEATURE_CGI_EDIT_ACTIONS 1
2187 cat >> confdefs.h <<\EOF
2188 #define FEATURE_CGI_EDIT_ACTIONS 1
2195 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2196 if test "${enable_regex_matching+set}" = set; then
2197 enableval="$enable_regex_matching"
2198 regex_matching=$enableval
2204 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2205 if test "${enable_dynamic_pcre+set}" = set; then
2206 enableval="$enable_dynamic_pcre"
2207 if test $enableval = "no"; then have_pcre=no; fi
2211 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2212 if test "${enable_dynamic_pcrs+set}" = set; then
2213 enableval="$enable_dynamic_pcrs"
2214 if test $enableval = "no"; then have_pcrs=no; fi
2219 # Is the regex URL matching based on libpcreposix, but we
2220 # don't have that library?
2222 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2223 dont_miss_pcreposix=yes
2225 dont_miss_pcreposix=no
2228 # If we have libpcre and either we also have pcreposix or
2229 # we don't need pcreposix, then link pcre dynamically; else
2230 # build it and link statically
2232 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2233 echo "using libpcre"
2238 echo "using built-in static pcre"
2240 cat >> confdefs.h <<\EOF
2241 #define STATIC_PCRE 1
2247 # If we have libpcrs and pcre is linked dynamically
2248 # then also link pcrs dynamically, else build and link
2251 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2252 echo "using libpcrs"
2256 echo "using built-in static pcrs"
2257 cat >> confdefs.h <<\EOF
2258 #define STATIC_PCRS 1
2264 # Which method should be used for URL matching?
2265 # pcre, gnu regex or prefix matching?
2267 if test $regex_matching = "gnu"; then
2268 echo "using gnu regex for URL matching"
2269 cat >> confdefs.h <<\EOF
2275 elif test $regex_matching = "pcre"; then
2276 echo "using pcre regex for URL matching"
2277 cat >> confdefs.h <<\EOF
2278 #define REGEX_PCRE 1
2283 if test $pcre_dyn = "yes"; then
2284 LIBS="$LIBS -lpcreposix"
2287 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
2298 CFLAGS=$old_CFLAGS_nospecial
2302 cat >> confdefs.h <<EOF
2303 #define PID_FILE_PATH ${PID_FILE_PATH}
2310 cat > confcache <<\EOF
2311 # This file is a shell script that caches the results of configure
2312 # tests run on this system so they can be shared between configure
2313 # scripts and configure runs. It is not useful on other systems.
2314 # If it contains results you don't want to keep, you may remove or edit it.
2316 # By default, configure uses ./config.cache as the cache file,
2317 # creating it if it does not exist already. You can give configure
2318 # the --cache-file=FILE option to use a different cache file; that is
2319 # what configure does when it calls configure scripts in
2320 # subdirectories, so they share the cache.
2321 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2322 # config.status only pays attention to the cache file if you give it the
2323 # --recheck option to rerun configure.
2326 # The following way of writing the cache mishandles newlines in values,
2327 # but we know of no workaround that is simple, portable, and efficient.
2328 # So, don't put newlines in cache variables' values.
2329 # Ultrix sh set writes to stderr and can't be redirected directly,
2330 # and sets the high bit in the cache file unless we assign to the vars.
2332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2334 # `set' does not quote correctly, so add quotes (double-quote substitution
2335 # turns \\\\ into \\, and sed turns \\ into \).
2337 -e "s/'/'\\\\''/g" \
2338 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2341 # `set' quotes correctly as required by POSIX, so do not add quotes.
2342 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2345 if cmp -s $cache_file confcache; then
2348 if test -w $cache_file; then
2349 echo "updating cache $cache_file"
2350 cat confcache > $cache_file
2352 echo "not updating unwritable cache $cache_file"
2357 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2359 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2360 # Let make expand exec_prefix.
2361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2363 # Any assignment to VPATH causes Sun make to only execute
2364 # the first set of double-colon rules, so remove it if not needed.
2365 # If there is a colon in the path, we need to keep it.
2366 if test "x$srcdir" = x.; then
2367 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2370 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2372 DEFS=-DHAVE_CONFIG_H
2374 # Without the "./", some shells look in PATH for config.status.
2375 : ${CONFIG_STATUS=./config.status}
2377 echo creating $CONFIG_STATUS
2378 rm -f $CONFIG_STATUS
2379 cat > $CONFIG_STATUS <<EOF
2381 # Generated automatically by configure.
2382 # Run this file to recreate the current configuration.
2383 # This directory was configured as follows,
2384 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2386 # $0 $ac_configure_args
2388 # Compiler output produced by configure, useful for debugging
2389 # configure, is in ./config.log if it exists.
2391 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2394 case "\$ac_option" in
2395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2396 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2397 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2398 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2399 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2401 -help | --help | --hel | --he | --h)
2402 echo "\$ac_cs_usage"; exit 0 ;;
2403 *) echo "\$ac_cs_usage"; exit 1 ;;
2407 ac_given_srcdir=$srcdir
2409 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2411 cat >> $CONFIG_STATUS <<EOF
2413 # Protect against being on the right side of a sed subst in config.status.
2414 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2415 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2419 s%@CFLAGS@%$CFLAGS%g
2420 s%@CPPFLAGS@%$CPPFLAGS%g
2421 s%@CXXFLAGS@%$CXXFLAGS%g
2422 s%@FFLAGS@%$FFLAGS%g
2424 s%@LDFLAGS@%$LDFLAGS%g
2426 s%@exec_prefix@%$exec_prefix%g
2427 s%@prefix@%$prefix%g
2428 s%@program_transform_name@%$program_transform_name%g
2429 s%@bindir@%$bindir%g
2430 s%@sbindir@%$sbindir%g
2431 s%@libexecdir@%$libexecdir%g
2432 s%@datadir@%$datadir%g
2433 s%@sysconfdir@%$sysconfdir%g
2434 s%@sharedstatedir@%$sharedstatedir%g
2435 s%@localstatedir@%$localstatedir%g
2436 s%@libdir@%$libdir%g
2437 s%@includedir@%$includedir%g
2438 s%@oldincludedir@%$oldincludedir%g
2439 s%@infodir@%$infodir%g
2440 s%@mandir@%$mandir%g
2442 s%@host_alias@%$host_alias%g
2443 s%@host_cpu@%$host_cpu%g
2444 s%@host_vendor@%$host_vendor%g
2445 s%@host_os@%$host_os%g
2446 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
2447 s%@VERSION_MINOR@%$VERSION_MINOR%g
2448 s%@VERSION_POINT@%$VERSION_POINT%g
2449 s%@CODE_STATUS@%$CODE_STATUS%g
2453 s%@WIN_ONLY@%$WIN_ONLY%g
2454 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
2455 s%@SOCKET_LIB@%$SOCKET_LIB%g
2456 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
2457 s%@EXEEXT@%$EXEEXT%g
2458 s%@OBJEXT@%$OBJEXT%g
2459 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
2460 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
2461 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
2462 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
2463 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
2464 s%@PID_FILE_PATH@%$PID_FILE_PATH%g
2465 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
2470 cat >> $CONFIG_STATUS <<\EOF
2472 # Split the substitutions into bite-sized pieces for seds with
2473 # small command number limits, like on Digital OSF/1 and HP-UX.
2474 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2475 ac_file=1 # Number of current file.
2476 ac_beg=1 # First line for current file.
2477 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2480 while $ac_more_lines; do
2481 if test $ac_beg -gt 1; then
2482 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2484 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2486 if test ! -s conftest.s$ac_file; then
2488 rm -f conftest.s$ac_file
2490 if test -z "$ac_sed_cmds"; then
2491 ac_sed_cmds="sed -f conftest.s$ac_file"
2493 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2495 ac_file=`expr $ac_file + 1`
2497 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2500 if test -z "$ac_sed_cmds"; then
2505 cat >> $CONFIG_STATUS <<EOF
2507 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
2509 cat >> $CONFIG_STATUS <<\EOF
2510 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2513 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2514 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2515 *) ac_file_in="${ac_file}.in" ;;
2518 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2520 # Remove last slash and all that follows it. Not all systems have dirname.
2521 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2523 # The file is in a subdirectory.
2524 test ! -d "$ac_dir" && mkdir "$ac_dir"
2525 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2526 # A "../" for each directory in $ac_dir_suffix.
2527 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2529 ac_dir_suffix= ac_dots=
2532 case "$ac_given_srcdir" in
2534 if test -z "$ac_dots"; then top_srcdir=.
2535 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2536 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2538 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2539 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2543 echo creating "$ac_file"
2545 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2547 *Makefile*) ac_comsub="1i\\
2548 # $configure_input" ;;
2552 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2554 s%@configure_input@%$configure_input%g
2555 s%@srcdir@%$srcdir%g
2556 s%@top_srcdir@%$top_srcdir%g
2557 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2561 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2562 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2564 # ac_d sets the value in "#define NAME VALUE" lines.
2565 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2566 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2569 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2570 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2571 ac_uB='\([ ]\)%\1#\2define\3'
2574 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2575 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2576 ac_eB='$%\1#\2define\3'
2580 if test "${CONFIG_HEADERS+set}" != set; then
2582 cat >> $CONFIG_STATUS <<EOF
2583 CONFIG_HEADERS="config.h"
2585 cat >> $CONFIG_STATUS <<\EOF
2587 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2590 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2591 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2592 *) ac_file_in="${ac_file}.in" ;;
2595 echo creating $ac_file
2597 rm -f conftest.frag conftest.in conftest.out
2598 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2599 cat $ac_file_inputs > conftest.in
2603 # Transform confdefs.h into a sed script conftest.vals that substitutes
2604 # the proper values into config.h.in to produce config.h. And first:
2605 # Protect against being on the right side of a sed subst in config.status.
2606 # Protect against being in an unquoted here document in config.status.
2608 cat > conftest.hdr <<\EOF
2611 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2615 sed -n -f conftest.hdr confdefs.h > conftest.vals
2618 # This sed command replaces #undef with comments. This is necessary, for
2619 # example, in the case of _POSIX_SOURCE, which is predefined and required
2620 # on some systems where configure will not decide to define it.
2621 cat >> conftest.vals <<\EOF
2622 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2625 # Break up conftest.vals because some shells have a limit on
2626 # the size of here documents, and old seds have small limits too.
2631 ac_lines=`grep -c . conftest.vals`
2632 # grep -c gives empty output for an empty file on some AIX systems.
2633 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2634 # Write a limited-size here document to conftest.frag.
2635 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2636 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2638 sed -f conftest.frag conftest.in > conftest.out
2640 mv conftest.out conftest.in
2642 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2644 mv conftest.tail conftest.vals
2648 cat >> $CONFIG_STATUS <<\EOF
2649 rm -f conftest.frag conftest.h
2650 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2651 cat conftest.in >> conftest.h
2653 if cmp -s $ac_file conftest.h 2>/dev/null; then
2654 echo "$ac_file is unchanged"
2657 # Remove last slash and all that follows it. Not all systems have dirname.
2658 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2659 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2660 # The file is in a subdirectory.
2661 test ! -d "$ac_dir" && mkdir "$ac_dir"
2664 mv conftest.h $ac_file
2669 cat >> $CONFIG_STATUS <<EOF
2672 cat >> $CONFIG_STATUS <<\EOF
2676 chmod +x $CONFIG_STATUS
2677 rm -fr confdefs* $ac_clean_files
2678 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1