3 # From configure.in Revision: 1.34
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-docbook=[yes|no|directory]
17 Enable docbook documentation creation
18 (default = yes, for gnu and linux)"
20 --with-debug Enable debug mode"
22 --enable-mingw32 Use mingw32 for a Windows GUI"
24 --disable-pthread Don't use POSIX threads (pthreads)"
26 --disable-toggle Don't support temporary disable"
28 --disable-force Don't allow single-page disable"
30 --disable-fast-redirects Don't support fast redirects"
32 --disable-killpopup Never block popups"
34 --disable-stats Don't keep statistics"
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 --disable-editor Prevents the use of the web-based actions file
50 editor and web-based temporary disable setting."
52 --enable-regex-matching=pcre Use perl-compatible regex for actionsfile
53 pattern matching (default)
54 --enable-regex-matching=gnu Use gnu style regex for actionsfile pattern
55 matching (-> bigger binary)
56 --disable-regex-matching Don't use regex matching, compare URL
57 prefix instead (won't shrink birary)"
59 --disable-dynamic-pcre Use the built-in, static pcre, even if
62 --disable-dynamic-pcrs Use the built-in, static pcrs, even if
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
102 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
110 # If the previous option needs an argument, assign it.
111 if test -n "$ac_prev"; then
112 eval "$ac_prev=\$ac_option"
118 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 # Accept the important Cygnus configure options, so we can diagnose typos.
126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129 bindir="$ac_optarg" ;;
131 -build | --build | --buil | --bui | --bu)
133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134 build="$ac_optarg" ;;
136 -cache-file | --cache-file | --cache-fil | --cache-fi \
137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138 ac_prev=cache_file ;;
139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141 cache_file="$ac_optarg" ;;
143 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 datadir="$ac_optarg" ;;
149 -disable-* | --disable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}=no" ;;
158 -enable-* | --enable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}='$ac_optarg'" ;;
171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173 | --exec | --exe | --ex)
174 ac_prev=exec_prefix ;;
175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177 | --exec=* | --exe=* | --ex=*)
178 exec_prefix="$ac_optarg" ;;
180 -gas | --gas | --ga | --g)
181 # Obsolete; use --with-gas.
184 -help | --help | --hel | --he)
185 # Omit some internal or obsolete options to make the list less imposing.
186 # This message is too long to be a string in the A/UX 3.1 sh.
188 Usage: configure [options] [host]
189 Options: [defaults in brackets after descriptions]
191 --cache-file=FILE cache test results in FILE
192 --help print this message
193 --no-create do not create output files
194 --quiet, --silent do not print \`checking...' messages
195 --version print the version of autoconf that created configure
196 Directory and file names:
197 --prefix=PREFIX install architecture-independent files in PREFIX
199 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 --bindir=DIR user executables in DIR [EPREFIX/bin]
202 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
203 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
204 --datadir=DIR read-only architecture-independent data in DIR
206 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
207 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
210 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
211 --includedir=DIR C header files in DIR [PREFIX/include]
212 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
213 --infodir=DIR info documentation in DIR [PREFIX/info]
214 --mandir=DIR man documentation in DIR [PREFIX/man]
215 --srcdir=DIR find the sources in DIR [configure dir or ..]
216 --program-prefix=PREFIX prepend PREFIX to installed program names
217 --program-suffix=SUFFIX append SUFFIX to installed program names
218 --program-transform-name=PROGRAM
219 run sed PROGRAM on installed program names
223 --build=BUILD configure for building on BUILD [BUILD=HOST]
224 --host=HOST configure for HOST [guessed]
225 --target=TARGET configure for TARGET [TARGET=HOST]
226 Features and packages:
227 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
228 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
231 --x-includes=DIR X include files are in DIR
232 --x-libraries=DIR X library files are in DIR
234 if test -n "$ac_help"; then
235 echo "--enable and --with options recognized:$ac_help"
239 -host | --host | --hos | --ho)
241 -host=* | --host=* | --hos=* | --ho=*)
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir="$ac_optarg" ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir="$ac_optarg" ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
259 libdir="$ac_optarg" ;;
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir="$ac_optarg" ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir="$ac_optarg" ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280 mandir="$ac_optarg" ;;
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir="$ac_optarg" ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306 prefix="$ac_optarg" ;;
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix="$ac_optarg" ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name="$ac_optarg" ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir="$ac_optarg" ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir="$ac_optarg" ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368 srcdir="$ac_optarg" ;;
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir="$ac_optarg" ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target="$ac_optarg" ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers)
386 echo "configure generated by autoconf version 2.13"
390 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}='$ac_optarg'" ;;
402 -without-* | --without-*)
403 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}=no" ;;
412 # Obsolete; use --with-x.
415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416 | --x-incl | --x-inc | --x-in | --x-i)
417 ac_prev=x_includes ;;
418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420 x_includes="$ac_optarg" ;;
422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424 ac_prev=x_libraries ;;
425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427 x_libraries="$ac_optarg" ;;
429 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
433 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 if test "x$nonopt" != xNONE; then
437 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445 if test -n "$ac_prev"; then
446 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451 # File descriptor usage:
454 # 2 errors and warnings
455 # 3 some systems may open it to /dev/tty
456 # 4 used on the Kubota Titan
457 # 6 checking for... messages and results
458 # 5 compiler messages saved in config.log
459 if test "$silent" = yes; then
467 This file contains any messages produced by compilers while
468 running configure, to aid debugging if configure makes a mistake.
471 # Strip out --no-create and --no-recursion so they do not pile up.
472 # Also quote any args containing shell metacharacters.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c) ;;
479 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 # Only set these to C if already set. These must not be set unconditionally
489 # because not all systems understand e.g. LANG=C (notably SCO).
490 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491 # Non-C LC_CTYPE values break the ctype check.
492 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
493 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497 # confdefs.h avoids OS command line length limits that DEFS can exceed.
498 rm -rf conftest* confdefs.h
499 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
502 # A filename unique to this package, relative to the directory that
503 # configure is in, which we can look for to find out if srcdir is correct.
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508 ac_srcdir_defaulted=yes
509 # Try the directory containing this script, then its parent.
511 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 if test ! -r $srcdir/$ac_unique_file; then
518 ac_srcdir_defaulted=no
520 if test ! -r $srcdir/$ac_unique_file; then
521 if test "$ac_srcdir_defaulted" = yes; then
522 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
527 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529 # Prefer explicitly selected file to automatically selected ones.
530 if test -z "$CONFIG_SITE"; then
531 if test "x$prefix" != xNONE; then
532 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 for ac_site_file in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp='$CPP $CPPFLAGS'
555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
576 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
577 if test -f $ac_dir/install-sh; then
579 ac_install_sh="$ac_aux_dir/install-sh -c"
581 elif test -f $ac_dir/install.sh; then
583 ac_install_sh="$ac_aux_dir/install.sh -c"
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
590 ac_config_guess=$ac_aux_dir/config.guess
591 ac_config_sub=$ac_aux_dir/config.sub
592 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
595 # Make sure we can run config.sub.
596 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
597 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
600 echo $ac_n "checking host system type""... $ac_c" 1>&6
601 echo "configure:602: checking host system type" >&5
604 case "$host_alias" in
608 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
609 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611 *) host_alias=$nonopt ;;
615 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
616 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619 echo "$ac_t""$host" 1>&6
624 # Check whether --with-docbook or --without-docbook was given.
625 if test "${with_docbook+set}" = set; then
626 withval="$with_docbook"
627 case "$with_docbook" in
652 cat >> confdefs.h <<EOF
653 #define VERSION_MAJOR ${VERSION_MAJOR}
656 cat >> confdefs.h <<EOF
657 #define VERSION_MINOR ${VERSION_MINOR}
660 cat >> confdefs.h <<EOF
661 #define VERSION_POINT ${VERSION_POINT}
664 cat >> confdefs.h <<EOF
665 #define VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}"
668 cat >> confdefs.h <<EOF
669 #define CODE_STATUS "${CODE_STATUS}"
673 # Extract the first word of "gcc", so it can be a program name with args.
674 set dummy gcc; ac_word=$2
675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 echo "configure:677: checking for $ac_word" >&5
677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 if test -n "$CC"; then
681 ac_cv_prog_CC="$CC" # Let the user override the test.
683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
699 echo "$ac_t""no" 1>&6
702 if test -z "$CC"; then
703 # Extract the first word of "cc", so it can be a program name with args.
704 set dummy cc; ac_word=$2
705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
706 echo "configure:707: checking for $ac_word" >&5
707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 if test -n "$CC"; then
711 ac_cv_prog_CC="$CC" # Let the user override the test.
713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
716 for ac_dir in $ac_dummy; do
717 test -z "$ac_dir" && ac_dir=.
718 if test -f $ac_dir/$ac_word; then
719 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
728 if test $ac_prog_rejected = yes; then
729 # We found a bogon in the path, so make sure we never use it.
730 set dummy $ac_cv_prog_CC
732 if test $# -gt 0; then
733 # We chose a different compiler from the bogus one.
734 # However, it has the same basename, so the bogon will be chosen
735 # first if we set CC to just the basename; use the full file name.
737 set dummy "$ac_dir/$ac_word" "$@"
745 if test -n "$CC"; then
746 echo "$ac_t""$CC" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test -z "$CC"; then
754 # Extract the first word of "cl", so it can be a program name with args.
755 set dummy cl; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
780 echo "$ac_t""no" 1>&6
785 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
788 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
798 cat > conftest.$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
805 if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 ac_cv_prog_cc_works=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (./conftest; exit) 2>/dev/null; then
809 ac_cv_prog_cc_cross=no
811 ac_cv_prog_cc_cross=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 ac_cv_prog_cc_works=no
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
827 if test $ac_cv_prog_cc_works = no; then
828 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
833 cross_compiling=$ac_cv_prog_cc_cross
835 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
836 echo "configure:837: checking whether we are using GNU C" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 cat > conftest.c <<EOF
845 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
852 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
854 if test $ac_cv_prog_gcc = yes; then
860 ac_test_CFLAGS="${CFLAGS+set}"
861 ac_save_CFLAGS="$CFLAGS"
863 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
864 echo "configure:865: checking whether ${CC-cc} accepts -g" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 echo 'void f(){}' > conftest.c
869 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
878 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
879 if test "$ac_test_CFLAGS" = set; then
880 CFLAGS="$ac_save_CFLAGS"
881 elif test $ac_cv_prog_cc_g = yes; then
882 if test "$GCC" = yes; then
888 if test "$GCC" = yes; then
895 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
896 echo "configure:897: checking how to run the C preprocessor" >&5
897 # On Suns, sometimes $CPP names a directory.
898 if test -n "$CPP" && test -d "$CPP"; then
901 if test -z "$CPP"; then
902 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 # This must be in double quotes, not single quotes, because CPP may get
906 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 # On the NeXT, cc -E runs the code through the compiler's parser,
909 # not just through cpp.
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
919 if test -z "$ac_err"; then
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
926 CPP="${CC-cc} -E -traditional-cpp"
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
936 if test -z "$ac_err"; then
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
943 CPP="${CC-cc} -nologo -E"
944 cat > conftest.$ac_ext <<EOF
945 #line 946 "configure"
946 #include "confdefs.h"
950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
951 { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
953 if test -z "$ac_err"; then
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
967 ac_cv_prog_CPP="$CPP"
969 CPP="$ac_cv_prog_CPP"
971 ac_cv_prog_CPP="$CPP"
973 echo "$ac_t""$CPP" 1>&6
976 # Extract the first word of "gdb", so it can be a program name with args.
977 set dummy gdb; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_GDB'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$GDB"; then
984 ac_cv_prog_GDB="$GDB" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
988 for ac_dir in $ac_dummy; do
989 test -z "$ac_dir" && ac_dir=.
990 if test -f $ac_dir/$ac_word; then
996 test -z "$ac_cv_prog_GDB" && ac_cv_prog_GDB="no"
999 GDB="$ac_cv_prog_GDB"
1000 if test -n "$GDB"; then
1001 echo "$ac_t""$GDB" 1>&6
1003 echo "$ac_t""no" 1>&6
1008 # Check whether --with-debug or --without-debug was given.
1009 if test "${with_debug+set}" = set; then
1010 withval="$with_debug"
1012 if test "x$withval" != "$xno" ; then
1013 if test $ac_cv_prog_cc_g = yes; then
1014 if test "$GCC" = yes; then
1015 if test "$GDB"; then
1020 CFLAGS="$CFLAGS -Wshadow -Wconversion"
1029 if test "X$CFLAGS" = "X"; then # if CFLAGS are unset
1030 if test "$GCC" = yes; then
1041 if test "$GCC"; then
1042 CFLAGS="-pipe $CFLAGS"
1047 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1048 echo "configure:1049: checking for mingw32 environment" >&5
1049 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1060 if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1073 echo "$ac_t""$ac_cv_mingw32" 1>&6
1075 test "$ac_cv_mingw32" = yes && MINGW32=yes
1076 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1077 echo "configure:1078: checking for Cygwin environment" >&5
1078 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1088 #define __CYGWIN__ __CYGWIN32__
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1106 echo "$ac_t""$ac_cv_cygwin" 1>&6
1108 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1110 if test "$MINGW32" = "yes"; then
1113 if test "$CYGWIN" = "yes"; then
1120 if test $dodk = dump; then
1122 if test $target_type = unix; then
1132 # Check whether --enable-mingw32 or --disable-mingw32 was given.
1133 if test "${enable_mingw32+set}" = set; then
1134 enableval="$enable_mingw32"
1135 if test $enableval = yes; then
1141 if test $target_type = mingw; then
1143 SPECIAL_CFLAGS="-mwindows -mno-cygwin"
1144 PTHREAD_LIB=-lpthreadGC
1145 echo "Using mingw32 (Win32 GUI)"
1148 if test $target_type = cygwin; then
1149 SPECIAL_CFLAGS="-mno-win32"
1151 echo "Using Cygnus (Win32 command line)"
1154 PTHREAD_LIB=-lpthread
1159 if test $target_type = unix; then
1160 for ac_prog in w3m lynx links
1162 # Extract the first word of "$ac_prog", so it can be a program name with args.
1163 set dummy $ac_prog; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_WDUMP'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -n "$WDUMP"; then
1170 ac_cv_prog_WDUMP="$WDUMP" # Let the user override the test.
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1174 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_prog_WDUMP="$ac_prog"
1184 WDUMP="$ac_cv_prog_WDUMP"
1185 if test -n "$WDUMP"; then
1186 echo "$ac_t""$WDUMP" 1>&6
1188 echo "$ac_t""no" 1>&6
1191 test -n "$WDUMP" && break
1193 test -n "$WDUMP" || WDUMP="false"
1195 if test "$WDUMP" = false; then
1196 { echo "configure: error: You need some kind of text browser to continue \(w3m, lynx and links are supported\)" 1>&2; exit 1; }
1203 # Extract the first word of "$ac_prog", so it can be a program name with args.
1204 set dummy $ac_prog; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_RPMBIN'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 if test -n "$RPMBIN"; then
1211 ac_cv_prog_RPMBIN="$RPMBIN" # Let the user override the test.
1213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1215 for ac_dir in $ac_dummy; do
1216 test -z "$ac_dir" && ac_dir=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_RPMBIN="$ac_prog"
1225 RPMBIN="$ac_cv_prog_RPMBIN"
1226 if test -n "$RPMBIN"; then
1227 echo "$ac_t""$RPMBIN" 1>&6
1229 echo "$ac_t""no" 1>&6
1232 test -n "$RPMBIN" && break
1234 test -n "$RPMBIN" || RPMBIN="false"
1236 if test $RPMBIN != false; then
1237 RPM_BASE=`rpm --eval "%{_topdir}"`
1238 if test "$RPM_BASE" = ""; then
1239 RPM_BASE=/usr/src/redhat
1244 for ac_prog in jade openjade
1246 # Extract the first word of "$ac_prog", so it can be a program name with args.
1247 set dummy $ac_prog; ac_word=$2
1248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_word" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_JADEBIN'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 if test -n "$JADEBIN"; then
1254 ac_cv_prog_JADEBIN="$JADEBIN" # Let the user override the test.
1256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1258 for ac_dir in $ac_dummy; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/$ac_word; then
1261 ac_cv_prog_JADEBIN="$ac_prog"
1268 JADEBIN="$ac_cv_prog_JADEBIN"
1269 if test -n "$JADEBIN"; then
1270 echo "$ac_t""$JADEBIN" 1>&6
1272 echo "$ac_t""no" 1>&6
1275 test -n "$JADEBIN" && break
1277 test -n "$JADEBIN" || JADEBIN="false"
1281 if test $dodk = yes; then
1282 if test $DKPREFIX = none; then
1284 ac_safe=`echo "/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" | sed 'y%./+-%__p_%'`
1285 echo $ac_n "checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl""... $ac_c" 1>&6
1286 echo "configure:1287: checking for /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" >&5
1287 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test "$cross_compiling" = yes; then
1291 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1293 if test -r /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl; then
1294 eval "ac_cv_file_$ac_safe=yes"
1296 eval "ac_cv_file_$ac_safe=no"
1300 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1301 echo "$ac_t""yes" 1>&6
1302 DKPREFIX=/usr/share/sgml/docbook/dsssl-stylesheets
1304 echo "$ac_t""no" 1>&6
1306 ac_safe=`echo "/usr/share/sgml/docbkdsl/html/docbook.dsl" | sed 'y%./+-%__p_%'`
1307 echo $ac_n "checking for /usr/share/sgml/docbkdsl/html/docbook.dsl""... $ac_c" 1>&6
1308 echo "configure:1309: checking for /usr/share/sgml/docbkdsl/html/docbook.dsl" >&5
1309 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test "$cross_compiling" = yes; then
1313 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1315 if test -r /usr/share/sgml/docbkdsl/html/docbook.dsl; then
1316 eval "ac_cv_file_$ac_safe=yes"
1318 eval "ac_cv_file_$ac_safe=no"
1322 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1324 DKPREFIX=/usr/share/sgml/docbkdsl
1326 echo "$ac_t""no" 1>&6
1336 old_CFLAGS_nospecial=$CFLAGS
1337 CFLAGS="$CFLAGS $SPECIAL_CFLAGS"
1339 # Hack to force AutoConf to use the CFLAGS we just set
1340 ac_cpp='$CPP $CPPFLAGS $SPECIAL_CFLAGS'
1341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1346 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1347 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1348 echo "configure:1349: checking for pthread.h" >&5
1349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1355 #include <pthread.h>
1357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1358 { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1360 if test -z "$ac_err"; then
1362 eval "ac_cv_header_$ac_safe=yes"
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1368 eval "ac_cv_header_$ac_safe=no"
1372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1376 echo "$ac_t""no" 1>&6
1381 # Check whether --enable-pthread or --disable-pthread was given.
1382 if test "${enable_pthread+set}" = set; then
1383 enableval="$enable_pthread"
1384 if test $enableval = no; then
1391 if test $have_pthread = yes; then
1393 cat >> confdefs.h <<\EOF
1394 #define FEATURE_PTHREAD 1
1397 echo Using POSIX threads
1398 if test "$GCC" = "yes"; then
1399 # Set a GCC specific switch:
1400 if test "$target_type" = "unix"; then
1401 # This compiler switch makes Linux thread-safe
1402 # Don't know about other OS's? Is this switch
1405 SPECIAL_CFLAGS="-pthread"
1410 echo Using native threads
1416 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1417 echo "configure:1418: checking for gethostbyname in -lnsl" >&5
1418 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 ac_save_LIBS="$LIBS"
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 /* Override any gcc2 internal prototype to avoid an error. */
1428 /* We use char because int might match the return type of a gcc2
1429 builtin and then its argument prototype would still apply. */
1430 char gethostbyname();
1436 if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 eval "ac_cv_lib_$ac_lib_var=yes"
1440 echo "configure: failed program was:" >&5
1441 cat conftest.$ac_ext >&5
1443 eval "ac_cv_lib_$ac_lib_var=no"
1446 LIBS="$ac_save_LIBS"
1449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1450 echo "$ac_t""yes" 1>&6
1451 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1453 cat >> confdefs.h <<EOF
1454 #define $ac_tr_lib 1
1460 echo "$ac_t""no" 1>&6
1464 echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6
1465 echo "configure:1466: checking for gethostbyaddr_r" >&5
1466 if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472 /* System header to define __stub macros and hopefully few prototypes,
1473 which can conflict with char gethostbyaddr_r(); below. */
1475 /* Override any gcc2 internal prototype to avoid an error. */
1476 /* We use char because int might match the return type of a gcc2
1477 builtin and then its argument prototype would still apply. */
1478 char gethostbyaddr_r();
1482 /* The GNU C library defines this for functions which it implements
1483 to always fail with ENOSYS. Some functions are actually named
1484 something starting with __ and the normal name is an alias. */
1485 #if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r)
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495 eval "ac_cv_func_gethostbyaddr_r=yes"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 eval "ac_cv_func_gethostbyaddr_r=no"
1505 if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then
1506 echo "$ac_t""yes" 1>&6
1508 echo $ac_n "checking signature of gethostbyaddr_r""... $ac_c" 1>&6
1509 echo "configure:1510: checking signature of gethostbyaddr_r" >&5
1510 cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1518 struct hostent *h, *hp;
1521 (void) gethostbyaddr_r(a, l, t, h, b, bl, &hp, &e)
1525 if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1528 cat >> confdefs.h <<\EOF
1529 #define HAVE_GETHOSTBYADDR_R_8_ARGS 1
1532 echo "$ac_t""8 args" 1>&6
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1550 (void) gethostbyaddr_r(a, l, t, h, b, bl, &e)
1554 if { (eval echo configure:1555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 cat >> confdefs.h <<\EOF
1558 #define HAVE_GETHOSTBYADDR_R_7_ARGS 1
1561 echo "$ac_t""7 args" 1>&6
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1576 struct hostent_data *d;
1580 (void) gethostbyaddr_r(a, l, t, h, d)
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1587 cat >> confdefs.h <<\EOF
1588 #define HAVE_GETHOSTBYADDR_R_5_ARGS 1
1591 echo "$ac_t""5 args" 1>&6
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1598 echo "$ac_t""unrecognised" 1>&6
1610 echo "$ac_t""no" 1>&6
1612 echo "$ac_t""no" 1>&6
1617 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
1618 echo "configure:1619: checking for gethostbyname_r" >&5
1619 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* System header to define __stub macros and hopefully few prototypes,
1626 which can conflict with char gethostbyname_r(); below. */
1628 /* Override any gcc2 internal prototype to avoid an error. */
1629 /* We use char because int might match the return type of a gcc2
1630 builtin and then its argument prototype would still apply. */
1631 char gethostbyname_r();
1635 /* The GNU C library defines this for functions which it implements
1636 to always fail with ENOSYS. Some functions are actually named
1637 something starting with __ and the normal name is an alias. */
1638 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 eval "ac_cv_func_gethostbyname_r=yes"
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 eval "ac_cv_func_gethostbyname_r=no"
1658 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
1659 echo "$ac_t""yes" 1>&6
1661 echo $ac_n "checking signature of gethostbyname_r""... $ac_c" 1>&6
1662 echo "configure:1663: checking signature of gethostbyname_r" >&5
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1671 struct hostent *h, *r;
1674 (void) gethostbyname_r(n, h, b, bl, &r, &e)
1678 if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1681 cat >> confdefs.h <<\EOF
1682 #define HAVE_GETHOSTBYNAME_R_6_ARGS 1
1685 echo "$ac_t""6 args" 1>&6
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1703 (void) gethostbyname_r(n, h, b, bl, &e)
1707 if { (eval echo configure:1708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1710 cat >> confdefs.h <<\EOF
1711 #define HAVE_GETHOSTBYNAME_R_5_ARGS 1
1714 echo "$ac_t""5 args" 1>&6
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1729 struct hostent_data *d;
1732 (void) gethostbyname_r(n, h, d)
1736 if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1739 cat >> confdefs.h <<\EOF
1740 #define HAVE_GETHOSTBYNAME_R_3_ARGS 1
1743 echo "$ac_t""3 args" 1>&6
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1750 echo "$ac_t""unrecognised" 1>&6
1762 echo "$ac_t""no" 1>&6
1764 echo "$ac_t""no" 1>&6
1769 echo $ac_n "checking for gmtime_r""... $ac_c" 1>&6
1770 echo "configure:1771: checking for gmtime_r" >&5
1771 if eval "test \"`echo '$''{'ac_cv_func_gmtime_r'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char gmtime_r(); below. */
1780 /* Override any gcc2 internal prototype to avoid an error. */
1781 /* We use char because int might match the return type of a gcc2
1782 builtin and then its argument prototype would still apply. */
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1800 eval "ac_cv_func_gmtime_r=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 eval "ac_cv_func_gmtime_r=no"
1810 if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1813 echo $ac_n "checking signature of gmtime_r""... $ac_c" 1>&6
1814 echo "configure:1815: checking signature of gmtime_r" >&5
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1825 (void) gmtime_r(t, tm)
1829 if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1832 echo "$ac_t""ok" 1>&6
1833 cat >> confdefs.h <<\EOF
1834 #define HAVE_GMTIME_R 1
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1843 echo "$ac_t""unrecognised" 1>&6
1849 echo "$ac_t""no" 1>&6
1851 echo "$ac_t""no" 1>&6
1856 echo $ac_n "checking for localtime_r""... $ac_c" 1>&6
1857 echo "configure:1858: checking for localtime_r" >&5
1858 if eval "test \"`echo '$''{'ac_cv_func_localtime_r'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char localtime_r(); below. */
1867 /* Override any gcc2 internal prototype to avoid an error. */
1868 /* We use char because int might match the return type of a gcc2
1869 builtin and then its argument prototype would still apply. */
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
1885 if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 eval "ac_cv_func_localtime_r=yes"
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 eval "ac_cv_func_localtime_r=no"
1897 if eval "test \"`echo '$ac_cv_func_'localtime_r`\" = yes"; then
1898 echo "$ac_t""yes" 1>&6
1900 echo $ac_n "checking signature of localtime_r""... $ac_c" 1>&6
1901 echo "configure:1902: checking signature of localtime_r" >&5
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1912 (void) localtime_r(t, tm)
1916 if { (eval echo configure:1917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919 echo "$ac_t""ok" 1>&6
1920 cat >> confdefs.h <<\EOF
1921 #define HAVE_LOCALTIME_R 1
1926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1930 echo "$ac_t""unrecognised" 1>&6
1936 echo "$ac_t""no" 1>&6
1938 echo "$ac_t""no" 1>&6
1948 *-solaris*) SOCKET_LIB="-lsocket -lnsl"
1949 cat >> confdefs.h <<\EOF
1950 #define __EXTENSIONS__ 1
1953 if test "$GCC" = "yes"; then
1954 # Set a GCC specific switch:
1955 # This compiler switch makes Solaris thread-safe
1957 SPECIAL_CFLAGS="-pthreads"
1959 # What do we do without GCC? Guess this:
1960 SPECIAL_CFLAGS="-D_REENTRANT"
1969 *-os2-emx*) SOCKET_LIB=-lsocket
1979 *-amigaos) AMIGAOS_ONLY=
1988 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1989 echo "configure:1990: checking for executable suffix" >&5
1990 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1997 echo 'int main () { return 0; }' > conftest.$ac_ext
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2000 for file in conftest.*; do
2002 *.c | *.o | *.obj) ;;
2003 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2007 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2010 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2015 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2016 echo "$ac_t""${ac_cv_exeext}" 1>&6
2019 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2020 echo "configure:2021: checking for object suffix" >&5
2021 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2025 echo 'int i = 1;' > conftest.$ac_ext
2026 if { (eval echo configure:2027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2027 for ac_file in conftest.*; do
2030 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2034 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2039 echo "$ac_t""$ac_cv_objext" 1>&6
2040 OBJEXT=$ac_cv_objext
2041 ac_objext=$ac_cv_objext
2043 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2044 echo "configure:2045: checking for ANSI C header files" >&5
2045 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2057 { (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2059 if test -z "$ac_err"; then
2061 ac_cv_header_stdc=yes
2064 echo "configure: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 ac_cv_header_stdc=no
2071 if test $ac_cv_header_stdc = yes; then
2072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2079 egrep "memchr" >/dev/null 2>&1; then
2083 ac_cv_header_stdc=no
2089 if test $ac_cv_header_stdc = yes; then
2090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2097 egrep "free" >/dev/null 2>&1; then
2101 ac_cv_header_stdc=no
2107 if test $ac_cv_header_stdc = yes; then
2108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2109 if test "$cross_compiling" = yes; then
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2116 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2117 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2119 int main () { int i; for (i = 0; i < 256; i++)
2120 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2124 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2131 ac_cv_header_stdc=no
2139 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2140 if test $ac_cv_header_stdc = yes; then
2141 cat >> confdefs.h <<\EOF
2142 #define STDC_HEADERS 1
2147 echo $ac_n "checking for working const""... $ac_c" 1>&6
2148 echo "configure:2149: checking for working const" >&5
2149 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2158 /* Ultrix mips cc rejects this. */
2159 typedef int charset[2]; const charset x;
2160 /* SunOS 4.1.1 cc rejects this. */
2161 char const *const *ccp;
2163 /* NEC SVR4.0.2 mips cc rejects this. */
2164 struct point {int x, y;};
2165 static struct point const zero = {0,0};
2166 /* AIX XL C 1.02.0.0 rejects this.
2167 It does not let you subtract one const X* pointer from another in an arm
2168 of an if-expression whose if-part is not a constant expression */
2169 const char *g = "string";
2170 ccp = &g + (g ? g-g : 0);
2171 /* HPUX 7.0 cc rejects these. */
2174 ccp = (char const *const *) p;
2175 { /* SCO 3.2v4 cc rejects this. */
2177 char const *s = 0 ? (char *) 0 : (char const *) 0;
2181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2183 const int *foo = &x[0];
2186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2187 typedef const int *iptr;
2191 { /* AIX XL C 1.02.0.0 rejects this saying
2192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2193 struct s { int j; const int *ap[3]; };
2194 struct s *b; b->j = 5;
2196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2202 if { (eval echo configure:2203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2214 echo "$ac_t""$ac_cv_c_const" 1>&6
2215 if test $ac_cv_c_const = no; then
2216 cat >> confdefs.h <<\EOF
2222 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2223 echo "configure:2224: checking for size_t" >&5
2224 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <sys/types.h>
2236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2237 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2239 ac_cv_type_size_t=yes
2242 ac_cv_type_size_t=no
2247 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2248 if test $ac_cv_type_size_t = no; then
2249 cat >> confdefs.h <<\EOF
2250 #define size_t unsigned
2255 echo $ac_n "checking size of int""... $ac_c" 1>&6
2256 echo "configure:2257: checking size of int" >&5
2257 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 if test "$cross_compiling" = yes; then
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2269 FILE *f=fopen("conftestval", "w");
2271 fprintf(f, "%d\n", sizeof(int));
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2277 ac_cv_sizeof_int=`cat conftestval`
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2288 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2289 cat >> confdefs.h <<EOF
2290 #define SIZEOF_INT $ac_cv_sizeof_int
2294 echo $ac_n "checking size of char *""... $ac_c" 1>&6
2295 echo "configure:2296: checking size of char *" >&5
2296 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 if test "$cross_compiling" = yes; then
2300 ac_cv_sizeof_char_p=4
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2308 FILE *f=fopen("conftestval", "w");
2310 fprintf(f, "%d\n", sizeof(char *));
2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2316 ac_cv_sizeof_char_p=`cat conftestval`
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 ac_cv_sizeof_char_p=0
2327 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
2328 cat >> confdefs.h <<EOF
2329 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
2333 echo $ac_n "checking size of long""... $ac_c" 1>&6
2334 echo "configure:2335: checking size of long" >&5
2335 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 if test "$cross_compiling" = yes; then
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2347 FILE *f=fopen("conftestval", "w");
2349 fprintf(f, "%d\n", sizeof(long));
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2355 ac_cv_sizeof_long=`cat conftestval`
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2366 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2367 cat >> confdefs.h <<EOF
2368 #define SIZEOF_LONG $ac_cv_sizeof_long
2372 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2373 echo "configure:2374: checking size of long long" >&5
2374 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 if test "$cross_compiling" = yes; then
2378 ac_cv_sizeof_long_long=8
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2386 FILE *f=fopen("conftestval", "w");
2388 fprintf(f, "%d\n", sizeof(long long));
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2394 ac_cv_sizeof_long_long=`cat conftestval`
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2399 ac_cv_sizeof_long_long=0
2405 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2406 cat >> confdefs.h <<EOF
2407 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2411 echo $ac_n "checking size of size_t""... $ac_c" 1>&6
2412 echo "configure:2413: checking size of size_t" >&5
2413 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 if test "$cross_compiling" = yes; then
2417 ac_cv_sizeof_size_t=4
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2425 FILE *f=fopen("conftestval", "w");
2427 fprintf(f, "%d\n", sizeof(size_t));
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2433 ac_cv_sizeof_size_t=`cat conftestval`
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 ac_cv_sizeof_size_t=0
2444 echo "$ac_t""$ac_cv_sizeof_size_t" 1>&6
2445 cat >> confdefs.h <<EOF
2446 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
2452 for ac_func in strerror bcopy memmove
2454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_func" >&5
2456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 /* System header to define __stub macros and hopefully few prototypes,
2463 which can conflict with char $ac_func(); below. */
2465 /* Override any gcc2 internal prototype to avoid an error. */
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2472 /* The GNU C library defines this for functions which it implements
2473 to always fail with ENOSYS. Some functions are actually named
2474 something starting with __ and the normal name is an alias. */
2475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 eval "ac_cv_func_$ac_func=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_func_$ac_func=no"
2495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2498 cat >> confdefs.h <<EOF
2499 #define $ac_tr_func 1
2503 echo "$ac_t""no" 1>&6
2509 echo $ac_n "checking for pcre_compile in -lpcre""... $ac_c" 1>&6
2510 echo "configure:2511: checking for pcre_compile in -lpcre" >&5
2511 ac_lib_var=`echo pcre'_'pcre_compile | sed 'y%./+-%__p_%'`
2512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 ac_save_LIBS="$LIBS"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2523 char pcre_compile();
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 eval "ac_cv_lib_$ac_lib_var=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 eval "ac_cv_lib_$ac_lib_var=no"
2539 LIBS="$ac_save_LIBS"
2542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2544 ac_safe=`echo "pcre.h" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for pcre.h""... $ac_c" 1>&6
2546 echo "configure:2547: checking for pcre.h" >&5
2547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2560 eval "ac_cv_header_$ac_safe=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_header_$ac_safe=no"
2570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2574 echo "$ac_t""no" 1>&6
2579 echo "$ac_t""no" 1>&6
2583 echo $ac_n "checking for regcomp in -lpcreposix""... $ac_c" 1>&6
2584 echo "configure:2585: checking for regcomp in -lpcreposix" >&5
2585 ac_lib_var=`echo pcreposix'_'regcomp | sed 'y%./+-%__p_%'`
2586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 ac_save_LIBS="$LIBS"
2590 LIBS="-lpcreposix -lpcre $LIBS"
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594 /* Override any gcc2 internal prototype to avoid an error. */
2595 /* We use char because int might match the return type of a gcc2
2596 builtin and then its argument prototype would still apply. */
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2605 eval "ac_cv_lib_$ac_lib_var=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_lib_$ac_lib_var=no"
2613 LIBS="$ac_save_LIBS"
2616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2617 echo "$ac_t""yes" 1>&6
2618 ac_safe=`echo "pcreposix.h" | sed 'y%./+-%__p_%'`
2619 echo $ac_n "checking for pcreposix.h""... $ac_c" 1>&6
2620 echo "configure:2621: checking for pcreposix.h" >&5
2621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 #include <pcreposix.h>
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2634 eval "ac_cv_header_$ac_safe=yes"
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 eval "ac_cv_header_$ac_safe=no"
2644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2648 echo "$ac_t""no" 1>&6
2653 echo "$ac_t""no" 1>&6
2657 echo $ac_n "checking for pcrs_compile in -lpcrs""... $ac_c" 1>&6
2658 echo "configure:2659: checking for pcrs_compile in -lpcrs" >&5
2659 ac_lib_var=`echo pcrs'_'pcrs_compile | sed 'y%./+-%__p_%'`
2660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 ac_save_LIBS="$LIBS"
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 /* Override any gcc2 internal prototype to avoid an error. */
2669 /* We use char because int might match the return type of a gcc2
2670 builtin and then its argument prototype would still apply. */
2671 char pcrs_compile();
2677 if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2679 eval "ac_cv_lib_$ac_lib_var=yes"
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 eval "ac_cv_lib_$ac_lib_var=no"
2687 LIBS="$ac_save_LIBS"
2690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2691 echo "$ac_t""yes" 1>&6
2692 ac_safe=`echo "pcrs.h" | sed 'y%./+-%__p_%'`
2693 echo $ac_n "checking for pcrs.h""... $ac_c" 1>&6
2694 echo "configure:2695: checking for pcrs.h" >&5
2695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 cat > conftest.$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706 if test -z "$ac_err"; then
2708 eval "ac_cv_header_$ac_safe=yes"
2711 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2714 eval "ac_cv_header_$ac_safe=no"
2718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2722 echo "$ac_t""no" 1>&6
2727 echo "$ac_t""no" 1>&6
2734 cat >> confdefs.h <<\EOF
2740 # Check whether --enable-toggle or --disable-toggle was given.
2741 if test "${enable_toggle+set}" = set; then
2742 enableval="$enable_toggle"
2743 if test $enableval = yes; then
2744 cat >> confdefs.h <<\EOF
2745 #define FEATURE_TOGGLE 1
2750 cat >> confdefs.h <<\EOF
2751 #define FEATURE_TOGGLE 1
2757 # Check whether --enable-force or --disable-force was given.
2758 if test "${enable_force+set}" = set; then
2759 enableval="$enable_force"
2760 if test $enableval = yes; then
2761 cat >> confdefs.h <<\EOF
2762 #define FEATURE_FORCE_LOAD 1
2767 cat >> confdefs.h <<\EOF
2768 #define FEATURE_FORCE_LOAD 1
2774 # Check whether --enable-fast-redirects or --disable-fast-redirects was given.
2775 if test "${enable_fast_redirects+set}" = set; then
2776 enableval="$enable_fast_redirects"
2777 if test $enableval = yes; then
2778 cat >> confdefs.h <<\EOF
2779 #define FEATURE_FAST_REDIRECTS 1
2784 cat >> confdefs.h <<\EOF
2785 #define FEATURE_FAST_REDIRECTS 1
2791 # Check whether --enable-killpopup or --disable-killpopup was given.
2792 if test "${enable_killpopup+set}" = set; then
2793 enableval="$enable_killpopup"
2794 if test $enableval = yes; then
2795 cat >> confdefs.h <<\EOF
2796 #define FEATURE_KILL_POPUPS 1
2801 cat >> confdefs.h <<\EOF
2802 #define FEATURE_KILL_POPUPS 1
2808 # Check whether --enable-stats or --disable-stats was given.
2809 if test "${enable_stats+set}" = set; then
2810 enableval="$enable_stats"
2811 if test $enableval = yes; then
2812 cat >> confdefs.h <<\EOF
2813 #define FEATURE_STATISTICS 1
2818 cat >> confdefs.h <<\EOF
2819 #define FEATURE_STATISTICS 1
2825 # Check whether --enable-ie-images or --disable-ie-images was given.
2826 if test "${enable_ie_images+set}" = set; then
2827 enableval="$enable_ie_images"
2828 if test $enableval = yes; then
2829 cat >> confdefs.h <<\EOF
2830 #define FEATURE_IMAGE_DETECT_MSIE 1
2835 cat >> confdefs.h <<\EOF
2836 #define FEATURE_IMAGE_DETECT_MSIE 1
2842 # Check whether --enable-image-blocking or --disable-image-blocking was given.
2843 if test "${enable_image_blocking+set}" = set; then
2844 enableval="$enable_image_blocking"
2845 if test $enableval = yes; then
2846 cat >> confdefs.h <<\EOF
2847 #define FEATURE_IMAGE_BLOCKING 1
2852 cat >> confdefs.h <<\EOF
2853 #define FEATURE_IMAGE_BLOCKING 1
2859 # Check whether --enable-acl-files or --disable-acl-files was given.
2860 if test "${enable_acl_files+set}" = set; then
2861 enableval="$enable_acl_files"
2862 if test $enableval = yes; then
2863 cat >> confdefs.h <<\EOF
2864 #define FEATURE_ACL 1
2869 cat >> confdefs.h <<\EOF
2870 #define FEATURE_ACL 1
2876 # Check whether --enable-trust-files or --disable-trust-files was given.
2877 if test "${enable_trust_files+set}" = set; then
2878 enableval="$enable_trust_files"
2879 if test $enableval = yes; then
2880 cat >> confdefs.h <<\EOF
2881 #define FEATURE_TRUST 1
2886 cat >> confdefs.h <<\EOF
2887 #define FEATURE_TRUST 1
2893 # Check whether --enable-jar-files or --disable-jar-files was given.
2894 if test "${enable_jar_files+set}" = set; then
2895 enableval="$enable_jar_files"
2896 if test $enableval = yes; then
2897 cat >> confdefs.h <<\EOF
2898 #define FEATURE_COOKIE_JAR 1
2903 cat >> confdefs.h <<\EOF
2904 #define FEATURE_COOKIE_JAR 1
2910 # Check whether --enable-editor or --disable-editor was given.
2911 if test "${enable_editor+set}" = set; then
2912 enableval="$enable_editor"
2913 if test $enableval = yes; then
2914 cat >> confdefs.h <<\EOF
2915 #define FEATURE_CGI_EDIT_ACTIONS 1
2920 cat >> confdefs.h <<\EOF
2921 #define FEATURE_CGI_EDIT_ACTIONS 1
2928 # Check whether --enable-regex-matching or --disable-regex-matching was given.
2929 if test "${enable_regex_matching+set}" = set; then
2930 enableval="$enable_regex_matching"
2931 regex_matching=$enableval
2937 # Check whether --enable-dynamic-pcre or --disable-dynamic-pcre was given.
2938 if test "${enable_dynamic_pcre+set}" = set; then
2939 enableval="$enable_dynamic_pcre"
2940 if test $enableval = "no"; then have_pcre=no; fi
2944 # Check whether --enable-dynamic-pcrs or --disable-dynamic-pcrs was given.
2945 if test "${enable_dynamic_pcrs+set}" = set; then
2946 enableval="$enable_dynamic_pcrs"
2947 if test $enableval = "no"; then have_pcrs=no; fi
2952 # Is the regex URL matching based on libpcreposix, but we
2953 # don't have that library?
2955 if test $have_pcreposix = "yes" -o $regex_matching != "pcre"; then
2956 dont_miss_pcreposix=yes
2958 dont_miss_pcreposix=no
2961 # If we have libpcre and either we also have pcreposix or
2962 # we don't need pcreposix, then link pcre dynamically; else
2963 # build it and link statically
2965 if test $have_pcre = "yes" -a $dont_miss_pcreposix = "yes"; then
2966 echo "using libpcre"
2971 echo "using built-in static pcre"
2973 cat >> confdefs.h <<\EOF
2974 #define STATIC_PCRE 1
2980 # If we have libpcrs and pcre is linked dynamically
2981 # then also link pcrs dynamically, else build and link
2984 if test $have_pcrs = "yes" -a $pcre_dyn = "yes"; then
2985 echo "using libpcrs"
2989 echo "using built-in static pcrs"
2990 cat >> confdefs.h <<\EOF
2991 #define STATIC_PCRS 1
2997 # Which method should be used for URL matching?
2998 # pcre, gnu regex or prefix matching?
3000 if test $regex_matching = "gnu"; then
3001 echo "using gnu regex for URL matching"
3002 cat >> confdefs.h <<\EOF
3008 elif test $regex_matching = "pcre"; then
3009 echo "using pcre regex for URL matching"
3010 cat >> confdefs.h <<\EOF
3011 #define REGEX_PCRE 1
3016 if test $pcre_dyn = "yes"; then
3017 LIBS="$LIBS -lpcreposix"
3020 echo -e "using prefix matching for URLs\nHint: This does NOT make the executable any smaller!"
3031 CFLAGS=$old_CFLAGS_nospecial
3037 cat > confcache <<\EOF
3038 # This file is a shell script that caches the results of configure
3039 # tests run on this system so they can be shared between configure
3040 # scripts and configure runs. It is not useful on other systems.
3041 # If it contains results you don't want to keep, you may remove or edit it.
3043 # By default, configure uses ./config.cache as the cache file,
3044 # creating it if it does not exist already. You can give configure
3045 # the --cache-file=FILE option to use a different cache file; that is
3046 # what configure does when it calls configure scripts in
3047 # subdirectories, so they share the cache.
3048 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3049 # config.status only pays attention to the cache file if you give it the
3050 # --recheck option to rerun configure.
3053 # The following way of writing the cache mishandles newlines in values,
3054 # but we know of no workaround that is simple, portable, and efficient.
3055 # So, don't put newlines in cache variables' values.
3056 # Ultrix sh set writes to stderr and can't be redirected directly,
3057 # and sets the high bit in the cache file unless we assign to the vars.
3059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3061 # `set' does not quote correctly, so add quotes (double-quote substitution
3062 # turns \\\\ into \\, and sed turns \\ into \).
3064 -e "s/'/'\\\\''/g" \
3065 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3068 # `set' quotes correctly as required by POSIX, so do not add quotes.
3069 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3072 if cmp -s $cache_file confcache; then
3075 if test -w $cache_file; then
3076 echo "updating cache $cache_file"
3077 cat confcache > $cache_file
3079 echo "not updating unwritable cache $cache_file"
3084 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3087 # Let make expand exec_prefix.
3088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3090 # Any assignment to VPATH causes Sun make to only execute
3091 # the first set of double-colon rules, so remove it if not needed.
3092 # If there is a colon in the path, we need to keep it.
3093 if test "x$srcdir" = x.; then
3094 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3097 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3099 DEFS=-DHAVE_CONFIG_H
3101 # Without the "./", some shells look in PATH for config.status.
3102 : ${CONFIG_STATUS=./config.status}
3104 echo creating $CONFIG_STATUS
3105 rm -f $CONFIG_STATUS
3106 cat > $CONFIG_STATUS <<EOF
3108 # Generated automatically by configure.
3109 # Run this file to recreate the current configuration.
3110 # This directory was configured as follows,
3111 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3113 # $0 $ac_configure_args
3115 # Compiler output produced by configure, useful for debugging
3116 # configure, is in ./config.log if it exists.
3118 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3121 case "\$ac_option" in
3122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3123 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3124 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3125 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3126 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3128 -help | --help | --hel | --he | --h)
3129 echo "\$ac_cs_usage"; exit 0 ;;
3130 *) echo "\$ac_cs_usage"; exit 1 ;;
3134 ac_given_srcdir=$srcdir
3136 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3138 cat >> $CONFIG_STATUS <<EOF
3140 # Protect against being on the right side of a sed subst in config.status.
3141 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3146 s%@CFLAGS@%$CFLAGS%g
3147 s%@CPPFLAGS@%$CPPFLAGS%g
3148 s%@CXXFLAGS@%$CXXFLAGS%g
3149 s%@FFLAGS@%$FFLAGS%g
3151 s%@LDFLAGS@%$LDFLAGS%g
3153 s%@exec_prefix@%$exec_prefix%g
3154 s%@prefix@%$prefix%g
3155 s%@program_transform_name@%$program_transform_name%g
3156 s%@bindir@%$bindir%g
3157 s%@sbindir@%$sbindir%g
3158 s%@libexecdir@%$libexecdir%g
3159 s%@datadir@%$datadir%g
3160 s%@sysconfdir@%$sysconfdir%g
3161 s%@sharedstatedir@%$sharedstatedir%g
3162 s%@localstatedir@%$localstatedir%g
3163 s%@libdir@%$libdir%g
3164 s%@includedir@%$includedir%g
3165 s%@oldincludedir@%$oldincludedir%g
3166 s%@infodir@%$infodir%g
3167 s%@mandir@%$mandir%g
3169 s%@host_alias@%$host_alias%g
3170 s%@host_cpu@%$host_cpu%g
3171 s%@host_vendor@%$host_vendor%g
3172 s%@host_os@%$host_os%g
3173 s%@VERSION_MAJOR@%$VERSION_MAJOR%g
3174 s%@VERSION_MINOR@%$VERSION_MINOR%g
3175 s%@VERSION_POINT@%$VERSION_POINT%g
3176 s%@CODE_STATUS@%$CODE_STATUS%g
3180 s%@WIN_ONLY@%$WIN_ONLY%g
3182 s%@RPMBIN@%$RPMBIN%g
3183 s%@RPM_BASE@%$RPM_BASE%g
3184 s%@JADEBIN@%$JADEBIN%g
3185 s%@DKPREFIX@%$DKPREFIX%g
3186 s%@PTHREAD_ONLY@%$PTHREAD_ONLY%g
3187 s%@SOCKET_LIB@%$SOCKET_LIB%g
3188 s%@AMIGAOS_ONLY@%$AMIGAOS_ONLY%g
3189 s%@EXEEXT@%$EXEEXT%g
3190 s%@OBJEXT@%$OBJEXT%g
3191 s%@GNU_REGEX_ONLY@%$GNU_REGEX_ONLY%g
3192 s%@PCRE_REGEX_ONLY@%$PCRE_REGEX_ONLY%g
3193 s%@STATIC_PCRE_ONLY@%$STATIC_PCRE_ONLY%g
3194 s%@STATIC_PCRS_ONLY@%$STATIC_PCRS_ONLY%g
3195 s%@SPECIAL_CFLAGS@%$SPECIAL_CFLAGS%g
3196 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
3201 cat >> $CONFIG_STATUS <<\EOF
3203 # Split the substitutions into bite-sized pieces for seds with
3204 # small command number limits, like on Digital OSF/1 and HP-UX.
3205 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3206 ac_file=1 # Number of current file.
3207 ac_beg=1 # First line for current file.
3208 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3211 while $ac_more_lines; do
3212 if test $ac_beg -gt 1; then
3213 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3215 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3217 if test ! -s conftest.s$ac_file; then
3219 rm -f conftest.s$ac_file
3221 if test -z "$ac_sed_cmds"; then
3222 ac_sed_cmds="sed -f conftest.s$ac_file"
3224 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3226 ac_file=`expr $ac_file + 1`
3228 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3231 if test -z "$ac_sed_cmds"; then
3236 cat >> $CONFIG_STATUS <<EOF
3238 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
3240 cat >> $CONFIG_STATUS <<\EOF
3241 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3244 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3245 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3246 *) ac_file_in="${ac_file}.in" ;;
3249 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3251 # Remove last slash and all that follows it. Not all systems have dirname.
3252 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3253 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3254 # The file is in a subdirectory.
3255 test ! -d "$ac_dir" && mkdir "$ac_dir"
3256 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3257 # A "../" for each directory in $ac_dir_suffix.
3258 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3260 ac_dir_suffix= ac_dots=
3263 case "$ac_given_srcdir" in
3265 if test -z "$ac_dots"; then top_srcdir=.
3266 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3267 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3269 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3270 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3274 echo creating "$ac_file"
3276 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3278 *Makefile*) ac_comsub="1i\\
3279 # $configure_input" ;;
3283 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3285 s%@configure_input@%$configure_input%g
3286 s%@srcdir@%$srcdir%g
3287 s%@top_srcdir@%$top_srcdir%g
3288 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3292 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3293 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3295 # ac_d sets the value in "#define NAME VALUE" lines.
3296 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3297 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3300 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3301 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3302 ac_uB='\([ ]\)%\1#\2define\3'
3305 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3306 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3307 ac_eB='$%\1#\2define\3'
3311 if test "${CONFIG_HEADERS+set}" != set; then
3313 cat >> $CONFIG_STATUS <<EOF
3314 CONFIG_HEADERS="config.h"
3316 cat >> $CONFIG_STATUS <<\EOF
3318 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3321 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3322 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3323 *) ac_file_in="${ac_file}.in" ;;
3326 echo creating $ac_file
3328 rm -f conftest.frag conftest.in conftest.out
3329 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3330 cat $ac_file_inputs > conftest.in
3334 # Transform confdefs.h into a sed script conftest.vals that substitutes
3335 # the proper values into config.h.in to produce config.h. And first:
3336 # Protect against being on the right side of a sed subst in config.status.
3337 # Protect against being in an unquoted here document in config.status.
3339 cat > conftest.hdr <<\EOF
3342 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3346 sed -n -f conftest.hdr confdefs.h > conftest.vals
3349 # This sed command replaces #undef with comments. This is necessary, for
3350 # example, in the case of _POSIX_SOURCE, which is predefined and required
3351 # on some systems where configure will not decide to define it.
3352 cat >> conftest.vals <<\EOF
3353 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3356 # Break up conftest.vals because some shells have a limit on
3357 # the size of here documents, and old seds have small limits too.
3362 ac_lines=`grep -c . conftest.vals`
3363 # grep -c gives empty output for an empty file on some AIX systems.
3364 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3365 # Write a limited-size here document to conftest.frag.
3366 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3367 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3369 sed -f conftest.frag conftest.in > conftest.out
3371 mv conftest.out conftest.in
3373 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3375 mv conftest.tail conftest.vals
3379 cat >> $CONFIG_STATUS <<\EOF
3380 rm -f conftest.frag conftest.h
3381 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3382 cat conftest.in >> conftest.h
3384 if cmp -s $ac_file conftest.h 2>/dev/null; then
3385 echo "$ac_file is unchanged"
3388 # Remove last slash and all that follows it. Not all systems have dirname.
3389 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3390 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3391 # The file is in a subdirectory.
3392 test ! -d "$ac_dir" && mkdir "$ac_dir"
3395 mv conftest.h $ac_file
3400 cat >> $CONFIG_STATUS <<EOF
3403 cat >> $CONFIG_STATUS <<\EOF
3407 chmod +x $CONFIG_STATUS
3408 rm -fr confdefs* $ac_clean_files
3409 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1