3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/squid
16 --enable-dlmalloc[=LIB] Compile & use the malloc package by Doug Lea"
18 --enable-gnuregex Compile GNUregex"
20 --enable-xmalloc-debug Do some simple malloc debugging"
22 --enable-xmalloc-debug-trace
23 Detailed trace of memory allocations"
25 --enable-xmalloc-statistics
26 Show malloc statistics in status page"
28 --enable-carp Enable CARP support"
30 --enable-async-io[=N_THREADS]
32 --with-aio-threads=N_THREADS
34 --enable-storeio=ufs,aufs"
36 --with-aio-threads=N_THREADS
37 Tune the number of worker threads for the aufs object
40 --with-pthreads Use POSIX Threads"
42 --enable-storeio=\"list of modules\"
43 Build support for the list of store I/O modules.
44 The default is only to build the "ufs
" module.
45 See src/fs for a list of available modules, or
46 Programmers Guide section <not yet written>
47 for details on how to build your custom store module"
49 --enable-icmp Enable ICMP pinging"
51 --enable-delay-pools Enable delay pools to limit bandwith usage"
53 --enable-mem-gen-trace Do trace of memory stuff"
55 --enable-useragent-log Enable logging of User-Agent header"
57 --disable-wccp Disable Web Cache Coordination Protocol"
59 --enable-kill-parent-hack
60 Kill parent on shutdown"
62 --enable-snmp Enable SNMP monitoring"
64 --enable-time-hack Update internal timestamp only once per second"
66 --enable-cachemgr-hostname[=hostname]
67 Make cachemgr.cgi default to this host"
69 --enable-arp-acl Enable use of ARP ACL lists (ether address)"
71 --enable-htcp Enable HTCP protocol"
73 --enable-forw-via-db Enable Forw/Via database"
75 --enable-cache-digests Use Cache Digests
76 see http://squid.nlanr.net/Squid/FAQ/FAQ-16.html"
78 --enable-err-language=lang
79 Select language for Error pages (see errors dir) "
81 --with-coss-membuf-size COSS membuf size (default 1048576 bytes) "
83 --enable-poll Enable poll() instead of select(). Normally poll
84 is preferred over select, but configure knows poll
85 is broken on some platforms. If you think you are
86 smarter than the configure script, you may enable
87 poll with this option.
88 --disable-poll Disable the use of poll()."
90 --disable-http-violations
91 This allows you to remove code which is known to
92 violate the HTTP protocol specification."
94 --enable-ipf-transparent
95 Enable Transparent Proxy support for systems
96 using IP-Filter network address redirection."
99 Enable Leak Finding code. Enabling this alone
100 does nothing; you also have to modify the source
101 code to use the leak finding functions. Probably
102 Useful for hackers only."
104 --disable-ident-lookups
105 This allows you to remove code that performs
106 Ident (RFC 931) lookups."
108 --disable-internal-dns This prevents Squid from directly sending and
109 receiving DNS messages, and instead enables the
110 old external 'dnsserver' processes."
112 --enable-truncate This uses truncate() instead of unlink() when
113 removing cache files. Truncate gives a little
114 performance improvement, but may cause problems
115 when used with async I/O. Truncate uses more
116 filesystem inodes than unlink.."
118 --enable-underscores Squid by default rejects any host names with _
119 in their name to conform with internet standars.
120 If you disagree with this you may allow _ in
121 hostnames by using this switch, provided that
122 the resolver library on the host where Squid runs
123 does not reject _ in hostnames..."
125 --enable-heap-replacement
126 This option allows you to use various cache
127 replacement algorithms, instead of the standard
130 --enable-auth-modules=\"list of modules\"
131 This option selects wich proxy_auth helper modules
132 to build and install as part of the normal build
133 process. For a list of available modules see
134 the auth_modules directory."
136 # Initialize some variables set by options.
137 # The variables have the same names as the options, with
138 # dashes changed to underlines.
140 cache_file
=.
/config.cache
149 program_transform_name
=s
,x
,x
,
157 bindir
='${exec_prefix}/bin'
158 sbindir
='${exec_prefix}/sbin'
159 libexecdir
='${exec_prefix}/libexec'
160 datadir
='${prefix}/share'
161 sysconfdir
='${prefix}/etc'
162 sharedstatedir
='${prefix}/com'
163 localstatedir
='${prefix}/var'
164 libdir
='${exec_prefix}/lib'
165 includedir
='${prefix}/include'
166 oldincludedir
='/usr/include'
167 infodir
='${prefix}/info'
168 mandir
='${prefix}/man'
170 # Initialize some other variables.
173 SHELL
=${CONFIG_SHELL-/bin/sh}
174 # Maximum number of lines to put in a shell here document.
181 # If the previous option needs an argument, assign it.
182 if test -n "$ac_prev"; then
183 eval "$ac_prev=\$ac_option"
189 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
193 # Accept the important Cygnus configure options, so we can diagnose typos.
197 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
199 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
200 bindir
="$ac_optarg" ;;
202 -build |
--build |
--buil |
--bui |
--bu)
204 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
205 build
="$ac_optarg" ;;
207 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
208 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
209 ac_prev
=cache_file
;;
210 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
211 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
212 cache_file
="$ac_optarg" ;;
214 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
216 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
218 datadir
="$ac_optarg" ;;
220 -disable-* |
--disable-*)
221 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
222 # Reject names that are not valid shell variable names.
223 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
224 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
226 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
227 eval "enable_${ac_feature}=no" ;;
229 -enable-* |
--enable-*)
230 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
231 # Reject names that are not valid shell variable names.
232 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
233 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
235 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
240 eval "enable_${ac_feature}='$ac_optarg'" ;;
242 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
243 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
244 |
--exec |
--exe |
--ex)
245 ac_prev
=exec_prefix
;;
246 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
247 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
248 |
--exec=* |
--exe=* |
--ex=*)
249 exec_prefix
="$ac_optarg" ;;
251 -gas |
--gas |
--ga |
--g)
252 # Obsolete; use --with-gas.
255 -help |
--help |
--hel |
--he)
256 # Omit some internal or obsolete options to make the list less imposing.
257 # This message is too long to be a string in the A/UX 3.1 sh.
259 Usage: configure [options] [host]
260 Options: [defaults in brackets after descriptions]
262 --cache-file=FILE cache test results in FILE
263 --help print this message
264 --no-create do not create output files
265 --quiet, --silent do not print \`checking...' messages
266 --version print the version of autoconf that created configure
267 Directory and file names:
268 --prefix=PREFIX install architecture-independent files in PREFIX
270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
272 --bindir=DIR user executables in DIR [EPREFIX/bin]
273 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
274 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
275 --datadir=DIR read-only architecture-independent data in DIR
277 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
278 --sharedstatedir=DIR modifiable architecture-independent data in DIR
280 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
281 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
282 --includedir=DIR C header files in DIR [PREFIX/include]
283 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
284 --infodir=DIR info documentation in DIR [PREFIX/info]
285 --mandir=DIR man documentation in DIR [PREFIX/man]
286 --srcdir=DIR find the sources in DIR [configure dir or ..]
287 --program-prefix=PREFIX prepend PREFIX to installed program names
288 --program-suffix=SUFFIX append SUFFIX to installed program names
289 --program-transform-name=PROGRAM
290 run sed PROGRAM on installed program names
294 --build=BUILD configure for building on BUILD [BUILD=HOST]
295 --host=HOST configure for HOST [guessed]
296 --target=TARGET configure for TARGET [TARGET=HOST]
297 Features and packages:
298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
300 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
301 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
302 --x-includes=DIR X include files are in DIR
303 --x-libraries=DIR X library files are in DIR
305 if test -n "$ac_help"; then
306 echo "--enable and --with options recognized:$ac_help"
310 -host |
--host |
--hos |
--ho)
312 -host=* |
--host=* |
--hos=* |
--ho=*)
315 -includedir |
--includedir |
--includedi |
--included |
--include \
316 |
--includ |
--inclu |
--incl |
--inc)
317 ac_prev
=includedir
;;
318 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
319 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
320 includedir
="$ac_optarg" ;;
322 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
324 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
325 infodir
="$ac_optarg" ;;
327 -libdir |
--libdir |
--libdi |
--libd)
329 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
330 libdir
="$ac_optarg" ;;
332 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
333 |
--libexe |
--libex |
--libe)
334 ac_prev
=libexecdir
;;
335 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
336 |
--libexe=* |
--libex=* |
--libe=*)
337 libexecdir
="$ac_optarg" ;;
339 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
340 |
--localstate |
--localstat |
--localsta |
--localst \
341 |
--locals |
--local |
--loca |
--loc |
--lo)
342 ac_prev
=localstatedir
;;
343 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
344 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
345 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
346 localstatedir
="$ac_optarg" ;;
348 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
350 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
351 mandir
="$ac_optarg" ;;
354 # Obsolete; use --without-fp.
357 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
361 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
362 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
365 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
366 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
367 |
--oldin |
--oldi |
--old |
--ol |
--o)
368 ac_prev
=oldincludedir
;;
369 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
370 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
371 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
372 oldincludedir
="$ac_optarg" ;;
374 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
376 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
377 prefix
="$ac_optarg" ;;
379 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
380 |
--program-pre |
--program-pr |
--program-p)
381 ac_prev
=program_prefix
;;
382 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
383 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
384 program_prefix
="$ac_optarg" ;;
386 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
387 |
--program-suf |
--program-su |
--program-s)
388 ac_prev
=program_suffix
;;
389 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
390 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
391 program_suffix
="$ac_optarg" ;;
393 -program-transform-name |
--program-transform-name \
394 |
--program-transform-nam |
--program-transform-na \
395 |
--program-transform-n |
--program-transform- \
396 |
--program-transform |
--program-transfor \
397 |
--program-transfo |
--program-transf \
398 |
--program-trans |
--program-tran \
399 |
--progr-tra |
--program-tr |
--program-t)
400 ac_prev
=program_transform_name
;;
401 -program-transform-name=* |
--program-transform-name=* \
402 |
--program-transform-nam=* |
--program-transform-na=* \
403 |
--program-transform-n=* |
--program-transform-=* \
404 |
--program-transform=* |
--program-transfor=* \
405 |
--program-transfo=* |
--program-transf=* \
406 |
--program-trans=* |
--program-tran=* \
407 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
408 program_transform_name
="$ac_optarg" ;;
410 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
411 |
-silent |
--silent |
--silen |
--sile |
--sil)
414 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
416 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
418 sbindir
="$ac_optarg" ;;
420 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
421 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
422 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
424 ac_prev
=sharedstatedir
;;
425 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
426 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
427 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
429 sharedstatedir
="$ac_optarg" ;;
431 -site |
--site |
--sit)
433 -site=* |
--site=* |
--sit=*)
436 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
438 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
439 srcdir
="$ac_optarg" ;;
441 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
442 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
443 ac_prev
=sysconfdir
;;
444 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
445 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
446 sysconfdir
="$ac_optarg" ;;
448 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
450 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
451 target
="$ac_optarg" ;;
453 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
456 -version |
--version |
--versio |
--versi |
--vers)
457 echo "configure generated by autoconf version 2.13"
461 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
462 # Reject names that are not valid shell variable names.
463 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
464 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
466 ac_package
=`echo $ac_package| sed 's/-/_/g'`
471 eval "with_${ac_package}='$ac_optarg'" ;;
473 -without-* |
--without-*)
474 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
475 # Reject names that are not valid shell variable names.
476 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
477 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
479 ac_package
=`echo $ac_package| sed 's/-/_/g'`
480 eval "with_${ac_package}=no" ;;
483 # Obsolete; use --with-x.
486 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
487 |
--x-incl |
--x-inc |
--x-in |
--x-i)
488 ac_prev
=x_includes
;;
489 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
490 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
491 x_includes
="$ac_optarg" ;;
493 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
494 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
495 ac_prev
=x_libraries
;;
496 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
497 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
498 x_libraries
="$ac_optarg" ;;
500 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
504 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
505 echo "configure: warning: $ac_option: invalid host type" 1>&2
507 if test "x$nonopt" != xNONE
; then
508 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
516 if test -n "$ac_prev"; then
517 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
520 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
522 # File descriptor usage:
525 # 2 errors and warnings
526 # 3 some systems may open it to /dev/tty
527 # 4 used on the Kubota Titan
528 # 6 checking for... messages and results
529 # 5 compiler messages saved in config.log
530 if test "$silent" = yes; then
538 This file contains any messages produced by compilers while
539 running configure, to aid debugging if configure makes a mistake.
542 # Strip out --no-create and --no-recursion so they do not pile up.
543 # Also quote any args containing shell metacharacters.
548 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
549 |
--no-cr |
--no-c) ;;
550 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
551 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
552 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
553 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
554 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
559 # Only set these to C if already set. These must not be set unconditionally
560 # because not all systems understand e.g. LANG=C (notably SCO).
561 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
562 # Non-C LC_CTYPE values break the ctype check.
563 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
564 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
565 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
566 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
568 # confdefs.h avoids OS command line length limits that DEFS can exceed.
569 rm -rf conftest
* confdefs.h
570 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
573 # A filename unique to this package, relative to the directory that
574 # configure is in, which we can look for to find out if srcdir is correct.
575 ac_unique_file
=src
/main.c
577 # Find the source files, if location was not specified.
578 if test -z "$srcdir"; then
579 ac_srcdir_defaulted
=yes
580 # Try the directory containing this script, then its parent.
582 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
583 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
585 if test ! -r $srcdir/$ac_unique_file; then
589 ac_srcdir_defaulted
=no
591 if test ! -r $srcdir/$ac_unique_file; then
592 if test "$ac_srcdir_defaulted" = yes; then
593 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
595 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
598 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
600 # Prefer explicitly selected file to automatically selected ones.
601 if test -z "$CONFIG_SITE"; then
602 if test "x$prefix" != xNONE
; then
603 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
605 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
608 for ac_site_file
in $CONFIG_SITE; do
609 if test -r "$ac_site_file"; then
610 echo "loading site script $ac_site_file"
615 if test -r "$cache_file"; then
616 echo "loading cache $cache_file"
619 echo "creating cache $cache_file"
624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
625 ac_cpp
='$CPP $CPPFLAGS'
626 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
627 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
628 cross_compiling
=$ac_cv_prog_cc_cross
632 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
633 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
634 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
641 ac_n
= ac_c
='\c' ac_t
=
646 # From configure.in Revision: 1.185
648 for ac_dir
in cfgaux
$srcdir/cfgaux
; do
649 if test -f $ac_dir/install-sh
; then
651 ac_install_sh
="$ac_aux_dir/install-sh -c"
653 elif test -f $ac_dir/install.sh
; then
655 ac_install_sh
="$ac_aux_dir/install.sh -c"
659 if test -z "$ac_aux_dir"; then
660 { echo "configure: error: can not find install-sh or install.sh in cfgaux $srcdir/cfgaux" 1>&2; exit 1; }
662 ac_config_guess
=$ac_aux_dir/config.guess
663 ac_config_sub
=$ac_aux_dir/config.sub
664 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
668 # Make sure we can run config.sub.
669 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
670 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
677 case "$host_alias" in
681 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
682 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
684 *) host_alias
=$nonopt ;;
688 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
689 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$host" 1>&6
696 REGEXLIB
='' # -lregex
697 LIBREGEX
='' # libregex.a
699 if test "$libexecdir" = '${exec_prefix}/libexec'; then
700 libexecdir
='${bindir}'
701 localstatedir
='${prefix}'
718 if test -z "$CACHE_HTTP_PORT"; then
719 CACHE_HTTP_PORT
="3128"
721 if test -z "$CACHE_ICP_PORT"; then
722 CACHE_ICP_PORT
="3130"
728 cat >> confdefs.h
<<EOF
729 #define CONFIG_HOST_TYPE "$host"
733 if test -z "$LDFLAGS"; then
737 PRESET_CFLAGS
="$CFLAGS"
739 # Extract the first word of "gcc", so it can be a program name with args.
740 set dummy gcc
; ac_word
=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 if test -n "$CC"; then
747 ac_cv_prog_CC
="$CC" # Let the user override the test.
749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
751 for ac_dir
in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir
=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
768 if test -z "$CC"; then
769 # Extract the first word of "cc", so it can be a program name with args.
770 set dummy cc
; ac_word
=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 echo "configure:773: checking for $ac_word" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 if test -n "$CC"; then
777 ac_cv_prog_CC
="$CC" # Let the user override the test.
779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
782 for ac_dir
in $ac_dummy; do
783 test -z "$ac_dir" && ac_dir
=.
784 if test -f $ac_dir/$ac_word; then
785 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
794 if test $ac_prog_rejected = yes; then
795 # We found a bogon in the path, so make sure we never use it.
796 set dummy
$ac_cv_prog_CC
798 if test $# -gt 0; then
799 # We chose a different compiler from the bogus one.
800 # However, it has the same basename, so the bogon will be chosen
801 # first if we set CC to just the basename; use the full file name.
803 set dummy
"$ac_dir/$ac_word" "$@"
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
817 if test -z "$CC"; then
820 # Extract the first word of "cl", so it can be a program name with args.
821 set dummy cl
; ac_word
=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC
="$CC" # Let the user override the test.
830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
832 for ac_dir
in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir
=.
834 if test -f $ac_dir/$ac_word; then
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
846 echo "$ac_t""no" 1>&6
851 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
855 echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
859 ac_cpp
='$CPP $CPPFLAGS'
860 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
861 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
862 cross_compiling
=$ac_cv_prog_cc_cross
864 cat > conftest.
$ac_ext << EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 if { (eval echo configure
:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
872 ac_cv_prog_cc_works
=yes
873 # If we can't run a trivial program, we are probably using a cross compiler.
874 if (.
/conftest
; exit) 2>/dev
/null
; then
875 ac_cv_prog_cc_cross
=no
877 ac_cv_prog_cc_cross
=yes
880 echo "configure: failed program was:" >&5
881 cat conftest.
$ac_ext >&5
882 ac_cv_prog_cc_works
=no
886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
887 ac_cpp
='$CPP $CPPFLAGS'
888 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
889 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
890 cross_compiling
=$ac_cv_prog_cc_cross
892 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
893 if test $ac_cv_prog_cc_works = no
; then
894 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
898 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
899 cross_compiling
=$ac_cv_prog_cc_cross
901 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
902 echo "configure:903: checking whether we are using GNU C" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftest.c
<<EOF
911 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
918 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
920 if test $ac_cv_prog_gcc = yes; then
926 ac_test_CFLAGS
="${CFLAGS+set}"
927 ac_save_CFLAGS
="$CFLAGS"
929 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945 if test "$ac_test_CFLAGS" = set; then
946 CFLAGS
="$ac_save_CFLAGS"
947 elif test $ac_cv_prog_cc_g = yes; then
948 if test "$GCC" = yes; then
954 if test "$GCC" = yes; then
964 CC
="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
968 if test -z "$PRESET_CFLAGS"; then
969 if test "$GCC" = "yes"; then
972 # sunos has too many warnings for this to be useful
976 # Motorola cc/ld does not like -02 but is ok on -O
977 CFLAGS
=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
980 CFLAGS
="$CFLAGS -Wall"
986 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
987 CFLAGS
="$CFLAGS -n32 -mips3 -O3 -OPT:Olimit=0:space=OFF \
988 -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 \
989 -Wl,-woff,85,-woff,84,-woff,134 \
990 -nostdinc -I/usr/include -D_BSD_SIGNALS"
993 # Mogul says DEC compilers take both -g and -O2
994 CFLAGS
=`echo $CFLAGS | sed -e 's/-g/-g3/'`
1003 if test -z "$PRESET_LDFLAGS"; then
1004 if test "$GCC" = "yes"; then
1013 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
1014 LDFLAGS
="-n32 -mips3 -nostdlib -L/usr/lib32"
1020 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
1021 if test "${enable_dlmalloc+set}" = set; then
1022 enableval
="$enable_dlmalloc"
1024 case "$enableval" in
1027 LIBDLMALLOC
="libdlmalloc.a"
1028 LIB_MALLOC
="-L../lib -ldlmalloc"
1029 echo "dlmalloc enabled"
1033 echo "dlmalloc disabled"
1035 *) use_dlmalloc
="yes"
1036 LIB_MALLOC
="$enableval"
1037 echo "dlmalloc enabled with $LIB_MALLOC"
1042 if test "${use_dlmalloc-unset}" = unset; then
1045 echo "Enabling dlmalloc for $host"
1050 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
1051 # Ok. dlmalloc was enabled before, but state may be changed.
1052 # we have to test these again
1053 unset ac_cv_func_mallinfo
1054 unset ac_cv_func_mallocblksize
1055 unset ac_cv_func_free
1056 unset ac_cv_func_realloc
1057 unset ac_cv_func_memalign
1058 unset ac_cv_func_valloc
1059 unset ac_cv_func_pvalloc
1060 unset ac_cv_func_calloc
1061 unset ac_cv_func_cfree
1062 unset ac_cv_func_malloc_trim
1063 unset ac_cv_func_malloc_usable_size
1064 unset ac_cv_func_malloc_stats
1065 unset ac_cv_func_mallinfo
1066 unset ac_cv_func_mallopt
1067 unset ac_cv_lib_gnumalloc
1068 unset ac_cv_header_gnumalloc_h
1069 unset ac_cv_lib_malloc
1070 unset ac_cv_enabled_dlmalloc
1072 if test "$use_dlmalloc" = yes; then
1073 ac_cv_func_mallinfo
="yes"
1074 ac_cv_func_mallocblksize
="no"
1075 ac_cv_func_free
="yes"
1076 ac_cv_func_realloc
="yes"
1077 ac_cv_func_memalign
="yes"
1078 ac_cv_func_valloc
="yes"
1079 ac_cv_func_pvalloc
="yes"
1080 ac_cv_func_calloc
="yes"
1081 ac_cv_func_cfree
="yes"
1082 ac_cv_func_malloc_trim
="yes"
1083 ac_cv_func_malloc_usable_size
="yes"
1084 ac_cv_func_malloc_stats
="yes"
1085 ac_cv_func_mallopt
="yes"
1086 ac_cv_lib_gnumalloc
="no"
1087 ac_cv_header_gnumalloc_h
="no"
1088 ac_cv_lib_malloc
="no"
1089 ac_cv_enabled_dlmalloc
="yes"
1095 # Check whether --enable-gnuregex or --disable-gnuregex was given.
1096 if test "${enable_gnuregex+set}" = set; then
1097 enableval
="$enable_gnuregex"
1098 USE_GNUREGEX
=$enableval
1102 # Check whether --enable-xmalloc_debug or --disable-xmalloc_debug was given.
1103 if test "${enable_xmalloc_debug+set}" = set; then
1104 enableval
="$enable_xmalloc_debug"
1105 if test "$enableval" = "yes" ; then
1106 echo "Malloc debugging enabled"
1107 cat >> confdefs.h
<<\EOF
1108 #define XMALLOC_DEBUG 1
1116 # Check whether --enable-xmalloc_debug_trace or --disable-xmalloc_debug_trace was given.
1117 if test "${enable_xmalloc_debug_trace+set}" = set; then
1118 enableval
="$enable_xmalloc_debug_trace"
1119 if test "$enableval" = "yes" ; then
1120 echo "Malloc debug trace enabled"
1121 cat >> confdefs.h
<<\EOF
1122 #define XMALLOC_TRACE 1
1125 cat >> confdefs.h
<<\EOF
1126 #define XMALLOC_DEBUG 1
1134 # Check whether --enable-xmalloc_statistics or --disable-xmalloc_statistics was given.
1135 if test "${enable_xmalloc_statistics+set}" = set; then
1136 enableval
="$enable_xmalloc_statistics"
1137 if test "$enableval" = "yes" ; then
1138 echo "Malloc statistics enabled"
1139 cat >> confdefs.h
<<\EOF
1140 #define XMALLOC_STATISTICS 1
1148 # Check whether --enable-carp or --disable-carp was given.
1149 if test "${enable_carp+set}" = set; then
1150 enableval
="$enable_carp"
1151 if test "$enableval" = "yes" ; then
1152 echo "CARP support enabled"
1153 cat >> confdefs.h
<<\EOF
1162 # Check whether --enable-async-io or --disable-async-io was given.
1163 if test "${enable_async_io+set}" = set; then
1164 enableval
="$enable_async_io"
1168 STORE_MODULES
="ufs aufs"
1173 async_io_threads
=$enableval
1175 STORE_MODULES
="ufs aufs"
1182 # Check whether --with-aio-threads or --without-aio-threads was given.
1183 if test "${with_aio_threads+set}" = set; then
1184 withval
="$with_aio_threads"
1185 async_io_threads
=$withval
1188 if test "$async_io_threads"; then
1189 echo "With $async_io_threads AIO threads"
1191 cat >> confdefs.h
<<EOF
1192 #define ASYNC_IO_THREADS $async_io_threads
1197 # Check whether --with-pthreads or --without-pthreads was given.
1198 if test "${with_pthreads+set}" = set; then
1199 withval
="$with_pthreads"
1200 if test "$enableval" = "yes"; then
1206 if test "$with_pthreads"; then
1207 echo "With pthreads"
1208 SQUID_PTHREAD_LIB
='$(PTHREADLIB)'
1209 CFLAGS
="$CFLAGS -D_REENTRANT"
1211 i386-unknown-freebsd
*)
1212 if test "$GCC" = "yes" ; then
1213 if test -z "$PRESET_LDFLAGS"; then
1214 LDFLAGS
="$LDFLAGS -pthread"
1222 # Check whether --enable-storeio or --disable-storeio was given.
1223 if test "${enable_storeio+set}" = set; then
1224 enableval
="$enable_storeio"
1227 for module
in $srcdir/src
/fs
/*; do
1228 if test -f $module/Makefile.
in; then
1229 STORE_MODULES
="$STORE_MODULES `basename $module`"
1235 *) STORE_MODULES
="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
1240 if test -z "$STORE_MODULES"; then
1246 echo "Store moules built: $STORE_MODULES"
1248 STORE_OBJS
="fs/`echo $STORE_MODULES|sed -e's% %.a fs/%g'`.a"
1251 # Check whether --enable-icmp or --disable-icmp was given.
1252 if test "${enable_icmp+set}" = set; then
1253 enableval
="$enable_icmp"
1254 if test "$enableval" = "yes" ; then
1256 cat >> confdefs.h
<<\EOF
1265 # Check whether --enable-delay_pools or --disable-delay_pools was given.
1266 if test "${enable_delay_pools+set}" = set; then
1267 enableval
="$enable_delay_pools"
1268 if test "$enableval" = "yes" ; then
1269 echo "Delay pools enabled"
1270 DELAY_OBJS
='$(DELAY_OBJS)'
1271 cat >> confdefs.h
<<\EOF
1272 #define DELAY_POOLS 1
1281 # Check whether --enable-mem-gen-trace or --disable-mem-gen-trace was given.
1282 if test "${enable_mem_gen_trace+set}" = set; then
1283 enableval
="$enable_mem_gen_trace"
1284 if test "$enableval" = "yes" ; then
1285 echo "Memory trace (to file) enabled"
1286 cat >> confdefs.h
<<\EOF
1287 #define MEM_GEN_TRACE 1
1295 # Check whether --enable-useragent_log or --disable-useragent_log was given.
1296 if test "${enable_useragent_log+set}" = set; then
1297 enableval
="$enable_useragent_log"
1298 if test "$enableval" = "yes" ; then
1299 echo "User-Agent logging enabled"
1300 cat >> confdefs.h
<<\EOF
1301 #define USE_USERAGENT_LOG 1
1309 # Check whether --enable-wccp or --disable-wccp was given.
1310 if test "${enable_wccp+set}" = set; then
1311 enableval
="$enable_wccp"
1312 if test "$enableval" = "no" ; then
1313 echo "Web Cache Coordination Protocol disabled"
1314 cat >> confdefs.h
<<\EOF
1319 cat >> confdefs.h
<<\EOF
1328 # Check whether --enable-kill_parent_hack or --disable-kill_parent_hack was given.
1329 if test "${enable_kill_parent_hack+set}" = set; then
1330 enableval
="$enable_kill_parent_hack"
1331 if test "$enableval" = "yes" ; then
1332 echo "Kill parent on shutdown"
1333 cat >> confdefs.h
<<\EOF
1334 #define KILL_PARENT_OPT 1
1342 # Check whether --enable-snmp or --disable-snmp was given.
1343 if test "${enable_snmp+set}" = set; then
1344 enableval
="$enable_snmp"
1345 if test "$enableval" = "yes" ; then
1346 echo "SNMP monitoring enabled"
1347 cat >> confdefs.h
<<\EOF
1348 #define SQUID_SNMP 1
1351 SNMPLIB
='-L../snmplib -lsnmp'
1352 SNMP_OBJS
='$(SNMP_OBJS)'
1353 SNMP_MAKEFILE
=.
/snmplib
/Makefile
1363 # Check whether --enable-time_hack or --disable-time_hack was given.
1364 if test "${enable_time_hack+set}" = set; then
1365 enableval
="$enable_time_hack"
1366 if test "$enableval" = "yes" ; then
1367 echo "Update internal timestamp only once per second"
1368 cat >> confdefs.h
<<\EOF
1369 #define ALARM_UPDATES_TIME 1
1377 # Check whether --enable-cachemgr_hostname or --disable-cachemgr_hostname was given.
1378 if test "${enable_cachemgr_hostname+set}" = set; then
1379 enableval
="$enable_cachemgr_hostname"
1382 cat >> confdefs.h
<<\EOF
1383 #define CACHEMGR_HOSTNAME getfullhostname()
1386 echo "Cachemgr default hostname == host where cachemgr runs"
1392 cat >> confdefs.h
<<EOF
1393 #define CACHEMGR_HOSTNAME "${enableval}"
1396 echo "Cachemgr default hostname set to ${enableval}"
1403 # Check whether --enable-arp_acl or --disable-arp_acl was given.
1404 if test "${enable_arp_acl+set}" = set; then
1405 enableval
="$enable_arp_acl"
1406 if test "$enableval" = "yes" ; then
1407 echo "ARP ACL lists enabled (ether address)"
1412 echo "WARNING: ARP ACL support is only currently supported on Linux"
1413 echo " ethernet interfaces, probably won't work on $host."
1417 cat >> confdefs.h
<<\EOF
1418 #define USE_ARP_ACL 1
1426 # Check whether --enable-htcp or --disable-htcp was given.
1427 if test "${enable_htcp+set}" = set; then
1428 enableval
="$enable_htcp"
1429 if test "$enableval" = "yes" ; then
1431 HTCP_OBJS
='$(HTCP_OBJS)'
1432 cat >> confdefs.h
<<\EOF
1442 # Check whether --enable-forw-via-db or --disable-forw-via-db was given.
1443 if test "${enable_forw_via_db+set}" = set; then
1444 enableval
="$enable_forw_via_db"
1445 if test "$enableval" = "yes" ; then
1446 echo "FORW-VIA enabled"
1447 cat >> confdefs.h
<<\EOF
1448 #define FORW_VIA_DB 1
1456 # Check whether --enable-cache-digests or --disable-cache-digests was given.
1457 if test "${enable_cache_digests+set}" = set; then
1458 enableval
="$enable_cache_digests"
1459 if test "$enableval" = "yes" ; then
1460 echo "USE_CACHE_DIGESTS enabled"
1461 cat >> confdefs.h
<<\EOF
1462 #define USE_CACHE_DIGESTS 1
1470 # Check whether --enable-err-language or --disable-err-language was given.
1471 if test "${enable_err_language+set}" = set; then
1472 enableval
="$enable_err_language"
1474 if test -d errors
/$enableval; then
1475 ERR_LANGUAGE
=$enableval
1477 echo "ERROR! Unknown language $enableval, see errors/"
1482 ERR_LANGUAGE
="English"
1487 # Check whether --with-coss-membuf-size or --without-coss-membuf-size was given.
1488 if test "${with_coss_membuf_size+set}" = set; then
1489 withval
="$with_coss_membuf_size"
1490 if test "$with_coss_membuf_size"; then
1491 echo "Setting COSS membuf size to $with_coss_membuf_size bytes"
1492 cat >> confdefs.h
<<EOF
1493 #define COSS_MEMBUF_SZ $with_coss_membuf_size
1501 # Check whether --enable-poll or --disable-poll was given.
1502 if test "${enable_poll+set}" = set; then
1503 enableval
="$enable_poll"
1505 case "$enableval" in
1507 echo "Forcing poll() to be enabled"
1508 ac_cv_func_poll
='yes'
1511 echo "Forcing poll() to be disabled"
1512 ac_cv_func_poll
='no'
1519 # Check whether --enable-http-violations or --disable-http-violations was given.
1520 if test "${enable_http_violations+set}" = set; then
1521 enableval
="$enable_http_violations"
1522 if test "$enableval" = "no" ; then
1523 echo "Disabling HTTP Violations"
1524 cat >> confdefs.h
<<\EOF
1525 #define HTTP_VIOLATIONS 0
1529 cat >> confdefs.h
<<\EOF
1530 #define HTTP_VIOLATIONS 1
1538 # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
1539 if test "${enable_ipf_transparent+set}" = set; then
1540 enableval
="$enable_ipf_transparent"
1541 if test "$enableval" = "yes" ; then
1542 echo "IP-Filter Transparent Proxy enabled"
1543 cat >> confdefs.h
<<\EOF
1544 #define IPF_TRANSPARENT 1
1547 IPF_TRANSPARENT
="yes"
1553 # Check whether --enable-leakfinder or --disable-leakfinder was given.
1554 if test "${enable_leakfinder+set}" = set; then
1555 enableval
="$enable_leakfinder"
1556 if test "$enableval" = "yes" ; then
1557 echo "Leak-Finding enabled"
1558 cat >> confdefs.h
<<\EOF
1559 #define USE_LEAKFINDER 1
1562 LEAKFINDER_OBJS
='$(LEAKFINDER_OBJS)'
1563 USE_LEAKFINDER
="yes"
1570 # Check whether --enable-ident-lookups or --disable-ident-lookups was given.
1571 if test "${enable_ident_lookups+set}" = set; then
1572 enableval
="$enable_ident_lookups"
1573 if test "$enableval" = "no" ; then
1574 echo "Disabling Ident Lookups"
1575 cat >> confdefs.h
<<\EOF
1580 cat >> confdefs.h
<<\EOF
1589 # Check whether --enable-internal-dns or --disable-internal-dns was given.
1590 if test "${enable_internal_dns+set}" = set; then
1591 enableval
="$enable_internal_dns"
1592 if test "$enableval" = "no" ; then
1593 echo "Disabling Internal DNS queries"
1594 cat >> confdefs.h
<<\EOF
1595 #define USE_DNSSERVERS 1
1599 cat >> confdefs.h
<<\EOF
1600 #define USE_DNSSERVERS 0
1608 # Check whether --enable-truncate or --disable-truncate was given.
1609 if test "${enable_truncate+set}" = set; then
1610 enableval
="$enable_truncate"
1611 if test "$enableval" = "yes" ; then
1612 echo "Enabling truncate instead of unlink"
1613 cat >> confdefs.h
<<\EOF
1614 #define USE_TRUNCATE 1
1622 # Check whether --enable-underscores or --disable-underscores was given.
1623 if test "${enable_underscores+set}" = set; then
1624 enableval
="$enable_underscores"
1625 if test "$enableval" = "yes" ; then
1626 echo "Enabling the use of underscores in host names"
1627 cat >> confdefs.h
<<\EOF
1628 #define ALLOW_HOSTNAME_UNDERSCORES 1
1636 # Check whether --enable-heap-replacement or --disable-heap-replacement was given.
1637 if test "${enable_heap_replacement+set}" = set; then
1638 enableval
="$enable_heap_replacement"
1639 if test "$enableval" = "yes" ; then
1640 echo "Enabling HEAP_REPLACEMENT"
1641 cat >> confdefs.h
<<\EOF
1642 #define HEAP_REPLACEMENT 1
1651 # Check whether --enable-auth-modules or --disable-auth-modules was given.
1652 if test "${enable_auth_modules+set}" = set; then
1653 enableval
="$enable_auth_modules"
1654 case "$enableval" in
1656 for module
in $srcdir/auth_modules
/*; do
1657 if test -f $module/Makefile.
in; then
1658 AUTH_MODULES
="$AUTH_MODULES `basename $module`"
1665 AUTH_MODULES
="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
1670 if test -n "$AUTH_MODULES"; then
1671 echo "Auth moules built: $AUTH_MODULES"
1675 # Force some compilers to use ANSI features
1679 if test "$ac_cv_prog_CC" = "cc" ; then
1680 echo "adding '-std1' to cc args for $host"
1686 if test "$ac_cv_prog_CC" = "cc" ; then
1687 echo "adding '-Ae' to cc args for $host"
1694 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1695 echo "configure:1696: checking how to run the C preprocessor" >&5
1696 # On Suns, sometimes $CPP names a directory.
1697 if test -n "$CPP" && test -d "$CPP"; then
1700 if test -z "$CPP"; then
1701 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 # This must be in double quotes, not single quotes, because CPP may get
1705 # substituted into the Makefile and "${CC-cc}" will confuse make.
1707 # On the NeXT, cc -E runs the code through the compiler's parser,
1708 # not just through cpp.
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1715 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1716 { (eval echo configure
:1717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1717 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1718 if test -z "$ac_err"; then
1722 echo "configure: failed program was:" >&5
1723 cat conftest.
$ac_ext >&5
1725 CPP
="${CC-cc} -E -traditional-cpp"
1726 cat > conftest.
$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1733 { (eval echo configure
:1734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1735 if test -z "$ac_err"; then
1739 echo "configure: failed program was:" >&5
1740 cat conftest.
$ac_ext >&5
1742 CPP
="${CC-cc} -nologo -E"
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1750 { (eval echo configure
:1751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1752 if test -z "$ac_err"; then
1756 echo "configure: failed program was:" >&5
1757 cat conftest.
$ac_ext >&5
1766 ac_cv_prog_CPP
="$CPP"
1768 CPP
="$ac_cv_prog_CPP"
1770 ac_cv_prog_CPP
="$CPP"
1772 echo "$ac_t""$CPP" 1>&6
1774 # Find a good install program. We prefer a C program (faster),
1775 # so one script is as good as another. But avoid the broken or
1776 # incompatible versions:
1777 # SysV /etc/install, /usr/sbin/install
1778 # SunOS /usr/etc/install
1779 # IRIX /sbin/install
1781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1784 # ./install, which can be erroneously created by make from ./install.sh.
1785 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1786 echo "configure:1787: checking for a BSD compatible install" >&5
1787 if test -z "$INSTALL"; then
1788 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1792 for ac_dir
in $PATH; do
1793 # Account for people who put trailing slashes in PATH elements.
1795 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1797 # OSF1 and SCO ODT 3.0 have their own names for install.
1798 # Don't use installbsd from OSF since it installs stuff as root
1800 for ac_prog
in ginstall scoinst
install; do
1801 if test -f $ac_dir/$ac_prog; then
1802 if test $ac_prog = install &&
1803 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1804 # AIX install. It has an incompatible calling convention.
1807 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1818 if test "${ac_cv_path_install+set}" = set; then
1819 INSTALL
="$ac_cv_path_install"
1821 # As a last resort, use the slow shell script. We don't cache a
1822 # path for INSTALL within a source directory, because that will
1823 # break other packages using the cache if that directory is
1824 # removed, or if the path is relative.
1825 INSTALL
="$ac_install_sh"
1828 echo "$ac_t""$INSTALL" 1>&6
1830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1831 # It thinks the first close brace ends the variable substitution.
1832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1836 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1838 # Extract the first word of "ranlib", so it can be a program name with args.
1839 set dummy ranlib
; ac_word
=$2
1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_word" >&5
1842 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test -n "$RANLIB"; then
1846 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1850 for ac_dir
in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir
=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_RANLIB
="ranlib"
1858 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1861 RANLIB
="$ac_cv_prog_RANLIB"
1862 if test -n "$RANLIB"; then
1863 echo "$ac_t""$RANLIB" 1>&6
1865 echo "$ac_t""no" 1>&6
1868 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1869 echo "configure:1870: checking whether ln -s works" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1874 if ln -s X conftestdata
2>/dev
/null
1877 ac_cv_prog_LN_S
="ln -s"
1882 LN_S
="$ac_cv_prog_LN_S"
1883 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1884 echo "$ac_t""yes" 1>&6
1886 echo "$ac_t""no" 1>&6
1889 # Extract the first word of "sh", so it can be a program name with args.
1890 set dummy sh
; ac_word
=$2
1891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1892 echo "configure:1893: checking for $ac_word" >&5
1893 if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1898 ac_cv_path_SH
="$SH" # Let the user override the test with a path.
1901 ac_cv_path_SH
="$SH" # Let the user override the test with a dos path.
1904 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1906 for ac_dir
in $ac_dummy; do
1907 test -z "$ac_dir" && ac_dir
=.
1908 if test -f $ac_dir/$ac_word; then
1909 ac_cv_path_SH
="$ac_dir/$ac_word"
1914 test -z "$ac_cv_path_SH" && ac_cv_path_SH
="/bin/sh"
1919 if test -n "$SH"; then
1920 echo "$ac_t""$SH" 1>&6
1922 echo "$ac_t""no" 1>&6
1925 # Extract the first word of "false", so it can be a program name with args.
1926 set dummy false
; ac_word
=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1934 ac_cv_path_FALSE
="$FALSE" # Let the user override the test with a path.
1937 ac_cv_path_FALSE
="$FALSE" # Let the user override the test with a dos path.
1940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1942 for ac_dir
in $ac_dummy; do
1943 test -z "$ac_dir" && ac_dir
=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_path_FALSE
="$ac_dir/$ac_word"
1950 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE
="/usr/bin/false"
1954 FALSE
="$ac_cv_path_FALSE"
1955 if test -n "$FALSE"; then
1956 echo "$ac_t""$FALSE" 1>&6
1958 echo "$ac_t""no" 1>&6
1961 # Extract the first word of "true", so it can be a program name with args.
1962 set dummy true
; ac_word
=$2
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_word" >&5
1965 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1970 ac_cv_path_TRUE
="$TRUE" # Let the user override the test with a path.
1973 ac_cv_path_TRUE
="$TRUE" # Let the user override the test with a dos path.
1976 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1978 for ac_dir
in $ac_dummy; do
1979 test -z "$ac_dir" && ac_dir
=.
1980 if test -f $ac_dir/$ac_word; then
1981 ac_cv_path_TRUE
="$ac_dir/$ac_word"
1986 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE
="/usr/bin/true"
1990 TRUE
="$ac_cv_path_TRUE"
1991 if test -n "$TRUE"; then
1992 echo "$ac_t""$TRUE" 1>&6
1994 echo "$ac_t""no" 1>&6
1997 # Extract the first word of "rm", so it can be a program name with args.
1998 set dummy
rm; ac_word
=$2
1999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_word" >&5
2001 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2006 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
2009 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
2012 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2014 for ac_dir
in $ac_dummy; do
2015 test -z "$ac_dir" && ac_dir
=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_path_RM
="$ac_dir/$ac_word"
2022 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="$FALSE"
2027 if test -n "$RM"; then
2028 echo "$ac_t""$RM" 1>&6
2030 echo "$ac_t""no" 1>&6
2033 # Extract the first word of "mv", so it can be a program name with args.
2034 set dummy
mv; ac_word
=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2042 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
2045 ac_cv_path_MV
="$MV" # Let the user override the test with a dos path.
2048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2050 for ac_dir
in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir
=.
2052 if test -f $ac_dir/$ac_word; then
2053 ac_cv_path_MV
="$ac_dir/$ac_word"
2058 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="$FALSE"
2063 if test -n "$MV"; then
2064 echo "$ac_t""$MV" 1>&6
2066 echo "$ac_t""no" 1>&6
2069 # Extract the first word of "mkdir", so it can be a program name with args.
2070 set dummy mkdir
; ac_word
=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2073 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
2081 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a dos path.
2084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2086 for ac_dir
in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir
=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_path_MKDIR
="$ac_dir/$ac_word"
2094 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="$FALSE"
2098 MKDIR
="$ac_cv_path_MKDIR"
2099 if test -n "$MKDIR"; then
2100 echo "$ac_t""$MKDIR" 1>&6
2102 echo "$ac_t""no" 1>&6
2105 # Extract the first word of "ln", so it can be a program name with args.
2106 set dummy
ln; ac_word
=$2
2107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2114 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
2117 ac_cv_path_LN
="$LN" # Let the user override the test with a dos path.
2120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2122 for ac_dir
in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir
=.
2124 if test -f $ac_dir/$ac_word; then
2125 ac_cv_path_LN
="$ac_dir/$ac_word"
2130 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="cp"
2135 if test -n "$LN"; then
2136 echo "$ac_t""$LN" 1>&6
2138 echo "$ac_t""no" 1>&6
2141 # Extract the first word of "perl", so it can be a program name with args.
2142 set dummy perl
; ac_word
=$2
2143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_word" >&5
2145 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2150 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2153 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2158 for ac_dir
in $ac_dummy; do
2159 test -z "$ac_dir" && ac_dir
=.
2160 if test -f $ac_dir/$ac_word; then
2161 ac_cv_path_PERL
="$ac_dir/$ac_word"
2166 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="/usr/local/bin/perl"
2170 PERL
="$ac_cv_path_PERL"
2171 if test -n "$PERL"; then
2172 echo "$ac_t""$PERL" 1>&6
2174 echo "$ac_t""no" 1>&6
2177 # Extract the first word of "makedepend", so it can be a program name with args.
2178 set dummy makedepend
; ac_word
=$2
2179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_word" >&5
2181 if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPEND'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 case "$MAKEDEPEND" in
2186 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
2189 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a dos path.
2192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2194 for ac_dir
in $ac_dummy; do
2195 test -z "$ac_dir" && ac_dir
=.
2196 if test -f $ac_dir/$ac_word; then
2197 ac_cv_path_MAKEDEPEND
="$ac_dir/$ac_word"
2202 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUE"
2206 MAKEDEPEND
="$ac_cv_path_MAKEDEPEND"
2207 if test -n "$MAKEDEPEND"; then
2208 echo "$ac_t""$MAKEDEPEND" 1>&6
2210 echo "$ac_t""no" 1>&6
2213 # Extract the first word of "ar", so it can be a program name with args.
2214 set dummy
ar; ac_word
=$2
2215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2216 echo "configure:2217: checking for $ac_word" >&5
2217 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2222 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
2225 ac_cv_path_AR
="$AR" # Let the user override the test with a dos path.
2228 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2230 for ac_dir
in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir
=.
2232 if test -f $ac_dir/$ac_word; then
2233 ac_cv_path_AR
="$ac_dir/$ac_word"
2238 test -z "$ac_cv_path_AR" && ac_cv_path_AR
="$FALSE"
2243 if test -n "$AR"; then
2244 echo "$ac_t""$AR" 1>&6
2246 echo "$ac_t""no" 1>&6
2252 echo "Disabling 'ranlib' for HP-UX..."
2266 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2268 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2269 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_hdr that defines DIR" >&5
2271 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 cat > conftest.
$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 #include <sys/types.h>
2283 if { (eval echo configure
:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2285 eval "ac_cv_header_dirent_$ac_safe=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.
$ac_ext >&5
2290 eval "ac_cv_header_dirent_$ac_safe=no"
2294 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2297 cat >> confdefs.h
<<EOF
2298 #define $ac_tr_hdr 1
2300 ac_header_dirent
=$ac_hdr; break
2302 echo "$ac_t""no" 1>&6
2305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2306 if test $ac_header_dirent = dirent.h
; then
2307 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2308 echo "configure:2309: checking for opendir in -ldir" >&5
2309 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 ac_save_LIBS
="$LIBS"
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 /* Override any gcc2 internal prototype to avoid an error. */
2319 /* We use char because int might match the return type of a gcc2
2320 builtin and then its argument prototype would still apply. */
2327 if { (eval echo configure
:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2329 eval "ac_cv_lib_$ac_lib_var=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2334 eval "ac_cv_lib_$ac_lib_var=no"
2337 LIBS
="$ac_save_LIBS"
2340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2344 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2349 echo "configure:2350: checking for opendir in -lx" >&5
2350 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 ac_save_LIBS
="$LIBS"
2356 cat > conftest.
$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* Override any gcc2 internal prototype to avoid an error. */
2360 /* We use char because int might match the return type of a gcc2
2361 builtin and then its argument prototype would still apply. */
2368 if { (eval echo configure
:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2370 eval "ac_cv_lib_$ac_lib_var=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2375 eval "ac_cv_lib_$ac_lib_var=no"
2378 LIBS
="$ac_save_LIBS"
2381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2382 echo "$ac_t""yes" 1>&6
2385 echo "$ac_t""no" 1>&6
2390 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2391 echo "configure:2392: checking for ANSI C header files" >&5
2392 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2403 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure
:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 ac_cv_header_stdc
=yes
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 ac_cv_header_stdc
=no
2418 if test $ac_cv_header_stdc = yes; then
2419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2420 cat > conftest.
$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2426 egrep "memchr" >/dev
/null
2>&1; then
2430 ac_cv_header_stdc
=no
2436 if test $ac_cv_header_stdc = yes; then
2437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2438 cat > conftest.
$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2444 egrep "free" >/dev
/null
2>&1; then
2448 ac_cv_header_stdc
=no
2454 if test $ac_cv_header_stdc = yes; then
2455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2456 if test "$cross_compiling" = yes; then
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2463 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2464 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2466 int main () { int i; for (i = 0; i < 256; i++)
2467 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2471 if { (eval echo configure
:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2475 echo "configure: failed program was:" >&5
2476 cat conftest.
$ac_ext >&5
2478 ac_cv_header_stdc
=no
2486 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2487 if test $ac_cv_header_stdc = yes; then
2488 cat >> confdefs.h
<<\EOF
2489 #define STDC_HEADERS 1
2519 netinet
/if_ether.h \
2522 netinet
/ip_compat.h \
2560 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2562 echo "configure:2563: checking for $ac_hdr" >&5
2563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.
$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2571 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2572 { (eval echo configure
:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2573 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574 if test -z "$ac_err"; then
2576 eval "ac_cv_header_$ac_safe=yes"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.
$ac_ext >&5
2582 eval "ac_cv_header_$ac_safe=no"
2586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2589 cat >> confdefs.h
<<EOF
2590 #define $ac_tr_hdr 1
2594 echo "$ac_t""no" 1>&6
2599 echo $ac_n "checking for working const""... $ac_c" 1>&6
2600 echo "configure:2601: checking for working const" >&5
2601 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2610 /* Ultrix mips cc rejects this. */
2611 typedef int charset[2]; const charset x;
2612 /* SunOS 4.1.1 cc rejects this. */
2613 char const *const *ccp;
2615 /* NEC SVR4.0.2 mips cc rejects this. */
2616 struct point {int x, y;};
2617 static struct point const zero = {0,0};
2618 /* AIX XL C 1.02.0.0 rejects this.
2619 It does not let you subtract one const X* pointer from another in an arm
2620 of an if-expression whose if-part is not a constant expression */
2621 const char *g = "string";
2622 ccp = &g + (g ? g-g : 0);
2623 /* HPUX 7.0 cc rejects these. */
2626 ccp = (char const *const *) p;
2627 { /* SCO 3.2v4 cc rejects this. */
2629 char const *s = 0 ? (char *) 0 : (char const *) 0;
2633 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2635 const int *foo = &x[0];
2638 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2639 typedef const int *iptr;
2643 { /* AIX XL C 1.02.0.0 rejects this saying
2644 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2645 struct s { int j; const int *ap[3]; };
2646 struct s *b; b->j = 5;
2648 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2654 if { (eval echo configure
:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2666 echo "$ac_t""$ac_cv_c_const" 1>&6
2667 if test $ac_cv_c_const = no
; then
2668 cat >> confdefs.h
<<\EOF
2674 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2675 echo "configure:2676: checking whether byte ordering is bigendian" >&5
2676 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 ac_cv_c_bigendian
=unknown
2680 # See if sys/param.h defines the BYTE_ORDER macro.
2681 cat > conftest.
$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2684 #include <sys/types.h>
2685 #include <sys/param.h>
2688 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2693 if { (eval echo configure
:2694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2695 # It does; now see whether it defined to BIG_ENDIAN or not.
2696 cat > conftest.
$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 #include <sys/types.h>
2700 #include <sys/param.h>
2703 #if BYTE_ORDER != BIG_ENDIAN
2708 if { (eval echo configure
:2709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 ac_cv_c_bigendian
=yes
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 ac_cv_c_bigendian
=no
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2723 if test $ac_cv_c_bigendian = unknown
; then
2724 if test "$cross_compiling" = yes; then
2725 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2731 /* Are we little or big endian? From Harbison&Steele. */
2735 char c[sizeof (long)];
2738 exit (u.c[sizeof (long) - 1] == 1);
2741 if { (eval echo configure
:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2743 ac_cv_c_bigendian
=no
2745 echo "configure: failed program was:" >&5
2746 cat conftest.
$ac_ext >&5
2748 ac_cv_c_bigendian
=yes
2756 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2757 if test $ac_cv_c_bigendian = yes; then
2758 cat >> confdefs.h
<<\EOF
2759 #define WORDS_BIGENDIAN 1
2765 echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6
2766 echo "configure:2767: checking if ANSI prototypes work" >&5
2767 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 int foo(char *); int foo (char *bar) {return 1;}
2779 if { (eval echo configure
:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2781 ac_cv_have_ansi_prototypes
="yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.
$ac_ext >&5
2786 ac_cv_have_ansi_prototypes
="no"
2792 echo "$ac_t""$ac_cv_have_ansi_prototypes" 1>&6
2793 if test $ac_cv_have_ansi_prototypes = "yes" ; then
2794 cat >> confdefs.h
<<\EOF
2795 #define HAVE_ANSI_PROTOTYPES 1
2800 echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6
2801 echo "configure:2802: checking for tm->tm_gmtoff" >&5
2802 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.
$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2810 #include <sys/time.h>
2816 if { (eval echo configure
:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 ac_cv_have_tm_gmoff
="yes"
2820 echo "configure: failed program was:" >&5
2821 cat conftest.
$ac_ext >&5
2823 ac_cv_have_tm_gmoff
="no"
2829 echo "$ac_t""$ac_cv_have_tm_gmoff" 1>&6
2830 if test $ac_cv_have_tm_gmoff = "yes" ; then
2831 cat >> confdefs.h
<<\EOF
2832 #define HAVE_TM_GMTOFF 1
2837 echo $ac_n "checking for struct mallinfo""... $ac_c" 1>&6
2838 echo "configure:2839: checking for struct mallinfo" >&5
2839 if eval "test \"`echo '$''{'ac_cv_have_struct_mallinfo'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2843 cat > conftest.
$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2846 #include <sys/types.h>
2851 struct mallinfo foo;
2862 if { (eval echo configure
:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864 ac_cv_have_struct_mallinfo
="yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2869 ac_cv_have_struct_mallinfo
="no"
2875 echo "$ac_t""$ac_cv_have_struct_mallinfo" 1>&6
2876 if test $ac_cv_have_struct_mallinfo = "yes" ; then
2877 cat >> confdefs.h
<<\EOF
2878 #define HAVE_STRUCT_MALLINFO 1
2883 echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6
2884 echo "configure:2885: checking for extended mallinfo" >&5
2885 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.
$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 #include <sys/types.h>
2895 struct mallinfo foo;
2899 if { (eval echo configure
:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901 ac_cv_have_ext_mallinfo
="yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2906 ac_cv_have_ext_mallinfo
="no"
2912 echo "$ac_t""$ac_cv_have_ext_mallinfo" 1>&6
2913 if test $ac_cv_have_ext_mallinfo = "yes" ; then
2914 cat >> confdefs.h
<<\EOF
2915 #define HAVE_EXT_MALLINFO 1
2920 echo $ac_n "checking for struct rusage""... $ac_c" 1>&6
2921 echo "configure:2922: checking for struct rusage" >&5
2922 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2926 cat > conftest.
$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2931 #include <sys/time.h>
2933 #if HAVE_SYS_RESOURCE_H
2934 #include <sys/resource.h>
2940 if { (eval echo configure
:2941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2942 ac_cv_have_struct_rusage
="yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.
$ac_ext >&5
2947 ac_cv_have_struct_rusage
="no"
2953 echo "$ac_t""$ac_cv_have_struct_rusage" 1>&6
2954 if test $ac_cv_have_struct_rusage = "yes" ; then
2955 cat >> confdefs.h
<<\EOF
2956 #define HAVE_STRUCT_RUSAGE 1
2961 echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6
2962 echo "configure:2963: checking for ip->ip_hl" >&5
2963 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2967 cat > conftest.
$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 #include <sys/types.h>
2971 #include <netinet/in.h>
2972 #include <netinet/in_systm.h>
2973 #include <netinet/ip.h>
2985 if { (eval echo configure
:2986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2987 ac_cv_have_ip_hl
="yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.
$ac_ext >&5
2992 ac_cv_have_ip_hl
="no"
2998 echo "$ac_t""$ac_cv_have_ip_hl" 1>&6
2999 if test $ac_cv_have_ip_hl = "yes" ; then
3000 cat >> confdefs.h
<<\EOF
3001 #define HAVE_IP_HL 1
3006 echo $ac_n "checking size of int""... $ac_c" 1>&6
3007 echo "configure:3008: checking size of int" >&5
3008 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 if test "$cross_compiling" = yes; then
3012 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3014 cat > conftest.
$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3020 FILE *f=fopen("conftestval", "w");
3022 fprintf(f, "%d\n", sizeof(int));
3026 if { (eval echo configure
:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3028 ac_cv_sizeof_int
=`cat conftestval`
3030 echo "configure: failed program was:" >&5
3031 cat conftest.
$ac_ext >&5
3039 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3040 cat >> confdefs.h
<<EOF
3041 #define SIZEOF_INT $ac_cv_sizeof_int
3045 echo $ac_n "checking size of long""... $ac_c" 1>&6
3046 echo "configure:3047: checking size of long" >&5
3047 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 if test "$cross_compiling" = yes; then
3051 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3053 cat > conftest.
$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3059 FILE *f=fopen("conftestval", "w");
3061 fprintf(f, "%d\n", sizeof(long));
3065 if { (eval echo configure
:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3067 ac_cv_sizeof_long
=`cat conftestval`
3069 echo "configure: failed program was:" >&5
3070 cat conftest.
$ac_ext >&5
3078 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3079 cat >> confdefs.h
<<EOF
3080 #define SIZEOF_LONG $ac_cv_sizeof_long
3084 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3085 echo "configure:3086: checking size of void *" >&5
3086 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 if test "$cross_compiling" = yes; then
3090 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3092 cat > conftest.
$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3098 FILE *f=fopen("conftestval", "w");
3100 fprintf(f, "%d\n", sizeof(void *));
3104 if { (eval echo configure
:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3106 ac_cv_sizeof_void_p
=`cat conftestval`
3108 echo "configure: failed program was:" >&5
3109 cat conftest.
$ac_ext >&5
3111 ac_cv_sizeof_void_p
=0
3117 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3118 cat >> confdefs.h
<<EOF
3119 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3124 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3125 # for constant arguments. Useless!
3126 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3127 echo "configure:3128: checking for working alloca.h" >&5
3128 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3136 char *p = alloca(2 * sizeof(int));
3139 if { (eval echo configure
:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3141 ac_cv_header_alloca_h
=yes
3143 echo "configure: failed program was:" >&5
3144 cat conftest.
$ac_ext >&5
3146 ac_cv_header_alloca_h
=no
3151 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3152 if test $ac_cv_header_alloca_h = yes; then
3153 cat >> confdefs.h
<<\EOF
3154 #define HAVE_ALLOCA_H 1
3159 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3160 echo "configure:3161: checking for alloca" >&5
3161 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3169 # define alloca __builtin_alloca
3172 # include <malloc.h>
3173 # define alloca _alloca
3176 # include <alloca.h>
3181 # ifndef alloca /* predefined by HP cc +Olibcalls */
3190 char *p = (char *) alloca(1);
3193 if { (eval echo configure
:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3195 ac_cv_func_alloca_works
=yes
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 ac_cv_func_alloca_works
=no
3205 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3206 if test $ac_cv_func_alloca_works = yes; then
3207 cat >> confdefs.h
<<\EOF
3208 #define HAVE_ALLOCA 1
3213 if test $ac_cv_func_alloca_works = no
; then
3214 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3215 # that cause trouble. Some versions do not even contain alloca or
3216 # contain a buggy version. If you still want to use their alloca,
3217 # use ar to extract alloca.o from them instead of compiling alloca.c.
3218 ALLOCA
=alloca.
${ac_objext}
3219 cat >> confdefs.h
<<\EOF
3224 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3225 echo "configure:3226: checking whether alloca needs Cray hooks" >&5
3226 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.
$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #if defined(CRAY) && ! defined(CRAY2)
3239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3240 egrep "webecray" >/dev
/null
2>&1; then
3251 echo "$ac_t""$ac_cv_os_cray" 1>&6
3252 if test $ac_cv_os_cray = yes; then
3253 for ac_func
in _getb67 GETB67 getb67
; do
3254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_func" >&5
3256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* System header to define __stub macros and hopefully few prototypes,
3263 which can conflict with char $ac_func(); below. */
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3272 /* The GNU C library defines this for functions which it implements
3273 to always fail with ENOSYS. Some functions are actually named
3274 something starting with __ and the normal name is an alias. */
3275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3283 if { (eval echo configure
:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3285 eval "ac_cv_func_$ac_func=yes"
3287 echo "configure: failed program was:" >&5
3288 cat conftest.
$ac_ext >&5
3290 eval "ac_cv_func_$ac_func=no"
3295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3297 cat >> confdefs.h
<<EOF
3298 #define CRAY_STACKSEG_END $ac_func
3303 echo "$ac_t""no" 1>&6
3309 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3310 echo "configure:3311: checking stack direction for C alloca" >&5
3311 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 if test "$cross_compiling" = yes; then
3315 ac_cv_c_stack_direction
=0
3317 cat > conftest.
$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 find_stack_direction ()
3322 static char *addr = 0;
3327 return find_stack_direction ();
3330 return (&dummy > addr) ? 1 : -1;
3334 exit (find_stack_direction() < 0);
3337 if { (eval echo configure
:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3339 ac_cv_c_stack_direction
=1
3341 echo "configure: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3344 ac_cv_c_stack_direction
=-1
3351 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3352 cat >> confdefs.h
<<EOF
3353 #define STACK_DIRECTION $ac_cv_c_stack_direction
3359 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for pid_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3376 ac_cv_type_pid_t
=yes
3384 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3385 if test $ac_cv_type_pid_t = no
; then
3386 cat >> confdefs.h
<<\EOF
3392 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for size_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3409 ac_cv_type_size_t
=yes
3412 ac_cv_type_size_t
=no
3417 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3418 if test $ac_cv_type_size_t = no
; then
3419 cat >> confdefs.h
<<\EOF
3420 #define size_t unsigned int
3425 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3426 echo "configure:3427: checking for ssize_t" >&5
3427 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3442 ac_cv_type_ssize_t
=yes
3445 ac_cv_type_ssize_t
=no
3450 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3451 if test $ac_cv_type_ssize_t = no
; then
3452 cat >> confdefs.h
<<\EOF
3458 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3459 echo "configure:3460: checking for off_t" >&5
3460 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3475 ac_cv_type_off_t
=yes
3483 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3484 if test $ac_cv_type_off_t = no
; then
3485 cat >> confdefs.h
<<\EOF
3491 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3492 echo "configure:3493: checking for mode_t" >&5
3493 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/types.h>
3505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3508 ac_cv_type_mode_t
=yes
3511 ac_cv_type_mode_t
=no
3516 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3517 if test $ac_cv_type_mode_t = no
; then
3518 cat >> confdefs.h
<<\EOF
3519 #define mode_t u_short
3524 echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
3525 echo "configure:3526: checking for fd_mask" >&5
3526 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.
$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <sys/types.h>
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 egrep "(^|[^a-zA-Z_0-9])fd_mask[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3541 ac_cv_type_fd_mask
=yes
3544 ac_cv_type_fd_mask
=no
3549 echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
3550 if test $ac_cv_type_fd_mask = no
; then
3551 cat >> confdefs.h
<<\EOF
3557 echo $ac_n "checking for mtyp_t""... $ac_c" 1>&6
3558 echo "configure:3559: checking for mtyp_t" >&5
3559 if eval "test \"`echo '$''{'ac_cv_type_mtyp_t'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 cat > conftest.
$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 #include <sys/types.h>
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 egrep "(^|[^a-zA-Z_0-9])mtyp_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3574 ac_cv_type_mtyp_t
=yes
3577 ac_cv_type_mtyp_t
=no
3582 echo "$ac_t""$ac_cv_type_mtyp_t" 1>&6
3583 if test $ac_cv_type_mtyp_t = no
; then
3584 cat >> confdefs.h
<<\EOF
3591 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3592 echo "configure:3593: checking for socklen_t" >&5
3593 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3601 #include <sys/socket.h>
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 egrep "socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3610 ac_cv_type_socklen_t
=yes
3613 ac_cv_type_socklen_t
=no
3620 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3621 if test $ac_cv_type_socklen_t = no
; then
3622 cat >> confdefs.h
<<\EOF
3623 #define socklen_t int
3628 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3629 echo "configure:3630: checking for main in -lnsl" >&5
3630 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 ac_save_LIBS
="$LIBS"
3636 cat > conftest.
$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3644 if { (eval echo configure
:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3646 eval "ac_cv_lib_$ac_lib_var=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3651 eval "ac_cv_lib_$ac_lib_var=no"
3654 LIBS
="$ac_save_LIBS"
3657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3661 cat >> confdefs.h
<<EOF
3662 #define $ac_tr_lib 1
3668 echo "$ac_t""no" 1>&6
3671 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3672 echo "configure:3673: checking for main in -lsocket" >&5
3673 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
3674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 ac_save_LIBS
="$LIBS"
3678 LIBS
="-lsocket $LIBS"
3679 cat > conftest.
$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3687 if { (eval echo configure
:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3689 eval "ac_cv_lib_$ac_lib_var=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.
$ac_ext >&5
3694 eval "ac_cv_lib_$ac_lib_var=no"
3697 LIBS
="$ac_save_LIBS"
3700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3704 cat >> confdefs.h
<<EOF
3705 #define $ac_tr_lib 1
3708 LIBS
="-lsocket $LIBS"
3711 echo "$ac_t""no" 1>&6
3715 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
3716 echo "skipping libmalloc check (--enable-dlmalloc specified)"
3718 echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6
3719 echo "configure:3720: checking for main in -lgnumalloc" >&5
3720 ac_lib_var
=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'`
3721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 ac_save_LIBS
="$LIBS"
3725 LIBS
="-lgnumalloc $LIBS"
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3734 if { (eval echo configure
:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3736 eval "ac_cv_lib_$ac_lib_var=yes"
3738 echo "configure: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 eval "ac_cv_lib_$ac_lib_var=no"
3744 LIBS
="$ac_save_LIBS"
3747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 ac_tr_lib
=HAVE_LIB
`echo gnumalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3751 cat >> confdefs.h
<<EOF
3752 #define $ac_tr_lib 1
3755 LIBS
="-lgnumalloc $LIBS"
3758 echo "$ac_t""no" 1>&6
3761 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
3762 echo "Disabling extended malloc functions when using gnumalloc"
3763 ac_cv_func_mallinfo
=no
3764 ac_cv_func_mallocblksize
=no
3765 ac_cv_func_mallopt
=no
3769 echo "skipping libmalloc check for $host"
3772 echo "skipping libmalloc check for $host"
3776 echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6
3777 echo "configure:3778: checking for main in -lmalloc" >&5
3778 ac_lib_var
=`echo malloc'_'main | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 ac_save_LIBS
="$LIBS"
3783 LIBS
="-lmalloc $LIBS"
3784 cat > conftest.
$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3792 if { (eval echo configure
:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.
$ac_ext >&5
3799 eval "ac_cv_lib_$ac_lib_var=no"
3802 LIBS
="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_lib
=HAVE_LIB
`echo malloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3809 cat >> confdefs.h
<<EOF
3810 #define $ac_tr_lib 1
3813 LIBS
="-lmalloc $LIBS"
3816 echo "$ac_t""no" 1>&6
3824 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3825 echo "configure:3826: checking for main in -lbsd" >&5
3826 ac_lib_var
=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 ac_save_LIBS
="$LIBS"
3832 cat > conftest.
$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3840 if { (eval echo configure
:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3842 eval "ac_cv_lib_$ac_lib_var=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3847 eval "ac_cv_lib_$ac_lib_var=no"
3850 LIBS
="$ac_save_LIBS"
3853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 ac_tr_lib
=HAVE_LIB
`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3856 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3857 cat >> confdefs.h
<<EOF
3858 #define $ac_tr_lib 1
3864 echo "$ac_t""no" 1>&6
3867 echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6
3868 echo "configure:3869: checking for main in -lregex" >&5
3869 ac_lib_var
=`echo regex'_'main | sed 'y%./+-%__p_%'`
3870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 ac_save_LIBS
="$LIBS"
3874 LIBS
="-lregex $LIBS"
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3883 if { (eval echo configure
:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.
$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS
="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3900 echo "$ac_t""no" 1>&6
3903 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3904 echo "configure:3905: checking for gethostbyname in -lbind" >&5
3905 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 ac_save_LIBS
="$LIBS"
3911 cat > conftest.
$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* Override any gcc2 internal prototype to avoid an error. */
3915 /* We use char because int might match the return type of a gcc2
3916 builtin and then its argument prototype would still apply. */
3917 char gethostbyname();
3923 if { (eval echo configure
:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3925 eval "ac_cv_lib_$ac_lib_var=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 eval "ac_cv_lib_$ac_lib_var=no"
3933 LIBS
="$ac_save_LIBS"
3936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_lib
=HAVE_LIB
`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3940 cat >> confdefs.h
<<EOF
3941 #define $ac_tr_lib 1
3947 echo "$ac_t""no" 1>&6
3950 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
3953 echo "skipping libresolv checks for $host"
3956 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3957 echo "configure:3958: checking for inet_aton in -lresolv" >&5
3958 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 ac_save_LIBS
="$LIBS"
3963 LIBS
="-lresolv $LIBS"
3964 cat > conftest.
$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 /* Override any gcc2 internal prototype to avoid an error. */
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3976 if { (eval echo configure
:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3978 eval "ac_cv_lib_$ac_lib_var=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.
$ac_ext >&5
3983 eval "ac_cv_lib_$ac_lib_var=no"
3986 LIBS
="$ac_save_LIBS"
3989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3990 echo "$ac_t""yes" 1>&6
3991 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6
3992 echo "configure:3993: checking for inet_aton in -l44bsd" >&5
3993 ac_lib_var
=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS
="$LIBS"
3998 LIBS
="-l44bsd $LIBS"
3999 cat > conftest.
$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4011 if { (eval echo configure
:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4013 eval "ac_cv_lib_$ac_lib_var=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.
$ac_ext >&5
4018 eval "ac_cv_lib_$ac_lib_var=no"
4021 LIBS
="$ac_save_LIBS"
4024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 ac_tr_lib
=HAVE_LIB
`echo 44bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
4027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4028 cat >> confdefs.h
<<EOF
4029 #define $ac_tr_lib 1
4032 LIBS
="-l44bsd $LIBS"
4035 echo "$ac_t""no" 1>&6
4039 echo "$ac_t""no" 1>&6
4042 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4043 echo "configure:4044: checking for main in -lresolv" >&5
4044 ac_lib_var
=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 ac_save_LIBS
="$LIBS"
4049 LIBS
="-lresolv $LIBS"
4050 cat > conftest.
$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4058 if { (eval echo configure
:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4060 eval "ac_cv_lib_$ac_lib_var=yes"
4062 echo "configure: failed program was:" >&5
4063 cat conftest.
$ac_ext >&5
4065 eval "ac_cv_lib_$ac_lib_var=no"
4068 LIBS
="$ac_save_LIBS"
4071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4075 cat >> confdefs.h
<<EOF
4076 #define $ac_tr_lib 1
4079 LIBS
="-lresolv $LIBS"
4082 echo "$ac_t""no" 1>&6
4088 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4089 echo "configure:4090: checking for main in -lm" >&5
4090 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
4091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 ac_save_LIBS
="$LIBS"
4096 cat > conftest.
$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4104 if { (eval echo configure
:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4106 eval "ac_cv_lib_$ac_lib_var=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 eval "ac_cv_lib_$ac_lib_var=no"
4114 LIBS
="$ac_save_LIBS"
4117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4118 echo "$ac_t""yes" 1>&6
4119 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4121 cat >> confdefs.h
<<EOF
4122 #define $ac_tr_lib 1
4128 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4133 echo "configure:4134: checking for crypt in -lcrypt" >&5
4134 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 ac_save_LIBS
="$LIBS"
4139 LIBS
="-lcrypt $LIBS"
4140 cat > conftest.
$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 /* Override any gcc2 internal prototype to avoid an error. */
4144 /* We use char because int might match the return type of a gcc2
4145 builtin and then its argument prototype would still apply. */
4152 if { (eval echo configure
:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4154 eval "ac_cv_lib_$ac_lib_var=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.
$ac_ext >&5
4159 eval "ac_cv_lib_$ac_lib_var=no"
4162 LIBS
="$ac_save_LIBS"
4165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4166 echo "$ac_t""yes" 1>&6
4167 ac_tr_lib
=HAVE_LIB
`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4169 cat >> confdefs.h
<<EOF
4170 #define $ac_tr_lib 1
4173 LIBS
="-lcrypt $LIBS"
4176 echo "$ac_t""no" 1>&6
4179 if test $ac_cv_lib_crypt_crypt = "yes"; then
4184 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4185 echo "configure:4186: checking for main in -lpthread" >&5
4186 ac_lib_var
=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 ac_save_LIBS
="$LIBS"
4191 LIBS
="-lpthread $LIBS"
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4200 if { (eval echo configure
:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4202 eval "ac_cv_lib_$ac_lib_var=yes"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 eval "ac_cv_lib_$ac_lib_var=no"
4210 LIBS
="$ac_save_LIBS"
4213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4217 cat >> confdefs.h
<<EOF
4218 #define $ac_tr_lib 1
4221 LIBS
="-lpthread $LIBS"
4224 echo "$ac_t""no" 1>&6
4227 if test $ac_cv_lib_pthread_main = "yes"; then
4228 PTHREADLIB
="-lpthread"
4234 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4235 echo "configure:4236: checking for strftime in -lintl" >&5
4236 ac_lib_var
=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS
="$LIBS"
4242 cat > conftest.
$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4254 if { (eval echo configure
:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4258 echo "configure: failed program was:" >&5
4259 cat conftest.
$ac_ext >&5
4261 eval "ac_cv_lib_$ac_lib_var=no"
4264 LIBS
="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4271 cat >> confdefs.h
<<EOF
4272 #define $ac_tr_lib 1
4278 echo "$ac_t""no" 1>&6
4286 if test "$GCC" = "yes"; then
4287 echo "Removing -O for gcc on $host"
4288 CFLAGS
="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
4292 echo "Removing -lsocket for IRIX..."
4293 LIBS
=`echo $LIBS | sed -e s/-lsocket//`
4294 echo "Removing -lnsl for IRIX..."
4295 LIBS
=`echo $LIBS | sed -e s/-lnsl//`
4296 ac_cv_lib_nsl_main
=no
4297 echo "Removing -lbsd for IRIX..."
4298 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
4301 echo "Removing -lbsd for AIX..."
4302 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
4303 echo "disabling snprintf/vsnprintf for $host"
4304 ac_cv_func_snprintf
=no
4305 ac_cv_func_vsnprintf
=no
4308 CFLAGS
="$CFLAGS -D_SQUID_MOTOROLA_"
4309 cat >> confdefs.h
<<\EOF
4310 #define GETTIMEOFDAY_NO_TZP 1
4315 cat >> confdefs.h
<<\EOF
4316 #define GETTIMEOFDAY_NO_TZP 1
4321 cat >> confdefs.h
<<\EOF
4322 #define GETTIMEOFDAY_NO_TZP 1
4328 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
4331 if test `uname -v` = "2.03"; then
4332 echo "disabling mallinfo for $host"
4333 ac_cv_func_mallinfo
=no
4338 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
4339 # when running configure.
4340 if test -z "$ac_cv_func_poll"; then
4343 # John Kay (jkay@nlanr.net) 19970818
4344 echo "disabling poll for $host..."
4345 ac_cv_func_poll
='no'
4349 echo "disabling poll for $host..."
4350 ac_cv_func_poll
='no'
4353 # Henrik Nordstrom (hno@hem.passagen.se) 19980817
4354 # poll is problematic on Linux. We disable it
4355 # by default until Linux gets it right.
4356 rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
4357 if test $rev -lt 002002; then
4358 echo "disabling poll for $host < 2.2..."
4359 ac_cv_func_poll
='no'
4362 powerpc-ibm-aix4.1.
*)
4363 # Mike Laster (mlaster@metavillage.com) 19981021
4364 echo "disabling poll for $host..."
4365 ac_cv_func_poll
='no'
4368 # Robert Side <rside@aiinc.bc.ca>
4369 # Mon, 18 Jan 1999 17:48:00 GMT
4370 echo "disabling poll for $host..."
4371 ac_cv_func_poll
='no'
4394 pthread_attr_setscope \
4395 pthread_setschedparam \
4396 pthread_attr_setschedparam \
4421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_func" >&5
4423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.
$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* System header to define __stub macros and hopefully few prototypes,
4430 which can conflict with char $ac_func(); below. */
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4439 /* The GNU C library defines this for functions which it implements
4440 to always fail with ENOSYS. Some functions are actually named
4441 something starting with __ and the normal name is an alias. */
4442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 if { (eval echo configure
:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4452 eval "ac_cv_func_$ac_func=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.
$ac_ext >&5
4457 eval "ac_cv_func_$ac_func=no"
4462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4463 echo "$ac_t""yes" 1>&6
4464 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4465 cat >> confdefs.h
<<EOF
4466 #define $ac_tr_func 1
4470 echo "$ac_t""no" 1>&6
4475 echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6
4476 echo "configure:4477: checking if setresuid is implemented" >&5
4477 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 if test "$cross_compiling" = yes; then
4481 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4483 cat > conftest.
$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4489 if(setresuid(-1,-1,-1)) {
4490 perror("setresuid:");
4497 if { (eval echo configure
:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4499 ac_cv_func_setresuid
="yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 ac_cv_func_setresuid
="no"
4512 echo "$ac_t""$ac_cv_func_setresuid" 1>&6
4513 if test "$ac_cv_func_setresuid" = "yes" ; then
4514 cat >> confdefs.h
<<\EOF
4515 #define HAVE_SETRESUID 1
4520 if test "$IPF_TRANSPARENT" ; then
4521 echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6
4522 echo "configure:4523: checking if IP-Filter header files are installed" >&5
4523 if test "$ac_cv_header_ip_compat_h" = "yes" &&
4524 test "$ac_cv_header_ip_fil_h" = "yes" &&
4525 test "$ac_cv_header_ip_nat_h" = "yes" ; then
4526 IPF_TRANSPARENT
="yes"
4527 cat >> confdefs.h
<<\EOF
4528 #define IPF_TRANSPARENT 1
4531 elif test "$ac_cv_header_netinet_ip_compat_h" = "yes" &&
4532 test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
4533 test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
4534 IPF_TRANSPARENT
="yes"
4535 cat >> confdefs.h
<<\EOF
4536 #define IPF_TRANSPARENT 1
4540 IPF_TRANSPARENT
="no"
4541 cat >> confdefs.h
<<\EOF
4542 #define IPF_TRANSPARENT 0
4546 echo "$ac_t""$IPF_TRANSPARENT" 1>&6
4548 if test "$IPF_TRANSPARENT" = "no" ; then
4549 echo "WARNING: Cannot find necessary IP-Filter header files"
4550 echo " Transparent Proxy support WILL NOT be enabled"
4554 if test -z "$USE_GNUREGEX" ; then
4556 *-sun-solaris2.
[0-4])
4564 echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
4565 echo "configure:4566: checking if GNUregex needs to be compiled" >&5
4566 if test -z "$USE_GNUREGEX"; then
4567 if test "$ac_cv_func_regcomp" = "no" ||
test "$USE_GNUREGEX" = "yes" ; then
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <sys/types.h>
4576 regex_t t; regcomp(&t,"",0);
4579 if { (eval echo configure
:4580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4583 echo "configure: failed program was:" >&5
4584 cat conftest.
$ac_ext >&5
4591 echo "$ac_t""$USE_GNUREGEX" 1>&6
4592 if test "$USE_GNUREGEX" = "yes"; then
4594 LIBREGEX
="libregex.a"
4595 cat >> confdefs.h
<<\EOF
4596 #define USE_GNUREGEX 1
4609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_func" >&5
4611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.
$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* System header to define __stub macros and hopefully few prototypes,
4618 which can conflict with char $ac_func(); below. */
4620 /* Override any gcc2 internal prototype to avoid an error. */
4621 /* We use char because int might match the return type of a gcc2
4622 builtin and then its argument prototype would still apply. */
4627 /* The GNU C library defines this for functions which it implements
4628 to always fail with ENOSYS. Some functions are actually named
4629 something starting with __ and the normal name is an alias. */
4630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 if { (eval echo configure
:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4640 eval "ac_cv_func_$ac_func=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4645 eval "ac_cv_func_$ac_func=no"
4650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4653 cat >> confdefs.h
<<EOF
4654 #define $ac_tr_func 1
4658 echo "$ac_t""no" 1>&6
4659 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
4665 echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6
4666 echo "configure:4667: checking Default FD_SETSIZE value" >&5
4667 if test "$cross_compiling" = yes; then
4668 DEFAULT_FD_SETSIZE
=256
4670 cat > conftest.
$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4681 #include <sys/time.h>
4683 #if HAVE_SYS_SELECT_H
4684 #include <sys/select.h>
4686 #if HAVE_SYS_TYPES_H
4687 #include <sys/types.h>
4690 FILE *fp = fopen("conftestval", "w");
4691 fprintf (fp, "%d\n", FD_SETSIZE);
4696 if { (eval echo configure
:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4698 DEFAULT_FD_SETSIZE
=`cat conftestval`
4700 echo "configure: failed program was:" >&5
4701 cat conftest.
$ac_ext >&5
4703 DEFAULT_FD_SETSIZE
=256
4708 echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
4709 cat >> confdefs.h
<<EOF
4710 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
4714 echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
4715 echo "configure:4716: checking Maximum number of filedescriptors we can open" >&5
4718 i386-unknown-freebsd
*)
4719 if echo "$LDFLAGS" |
grep -q pthread
; then
4720 LDFLAGS
=`echo $LDFLAGS | sed -e "s/-pthread//"`
4723 if test "$cross_compiling" = yes; then
4726 cat > conftest.
$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4732 #include <sys/time.h> /* needed on FreeBSD */
4733 #include <sys/param.h>
4734 #include <sys/resource.h>
4739 /* getrlimit and sysconf returns bogous values on cygwin32.
4740 * Number of fds is virtually unlimited in cygwin (sys/param.h)
4743 #elif HAVE_SETRLIMIT
4745 #if defined(RLIMIT_NOFILE)
4746 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
4747 perror("getrlimit: RLIMIT_NOFILE");
4749 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4750 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
4751 perror("setrlimit: RLIMIT_NOFILE");
4754 #elif defined(RLIMIT_OFILE)
4755 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
4756 perror("getrlimit: RLIMIT_OFILE");
4758 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4759 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
4760 perror("setrlimit: RLIMIT_OFILE");
4763 #endif /* RLIMIT_NOFILE */
4764 #endif /* HAVE_SETRLIMIT */
4765 /* by starting at 2^14, we will never get higher
4766 than 2^15 for SQUID_MAXFD */
4770 if (dup2(0, i) < 0) {
4778 fp = fopen("conftestval", "w");
4779 fprintf (fp, "%d\n", i);
4784 if { (eval echo configure
:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4786 SQUID_MAXFD
=`cat conftestval`
4788 echo "configure: failed program was:" >&5
4789 cat conftest.
$ac_ext >&5
4796 echo "$ac_t""$SQUID_MAXFD" 1>&6
4797 cat >> confdefs.h
<<EOF
4798 #define SQUID_MAXFD $SQUID_MAXFD
4801 if test "$SQUID_MAXFD" -lt 512 ; then
4802 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
4803 echo " cache will be very busy. Please see the FAQ page"
4804 echo " http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors"
4805 echo " on how to increase your filedescriptor limit"
4810 echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
4811 echo "configure:4812: checking Default UDP send buffer size" >&5
4812 if test "$cross_compiling" = yes; then
4813 SQUID_UDP_SO_SNDBUF
=16384
4815 cat > conftest.
$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4821 #include <sys/types.h>
4822 #include <sys/socket.h>
4823 #include <netinet/in.h>
4827 int fd,val=0,len=sizeof(int);
4828 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4829 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4830 if (val<=0) exit(1);
4831 fp = fopen("conftestval", "w");
4832 fprintf (fp, "%d\n", val);
4837 if { (eval echo configure
:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4839 SQUID_UDP_SO_SNDBUF
=`cat conftestval`
4841 echo "configure: failed program was:" >&5
4842 cat conftest.
$ac_ext >&5
4844 SQUID_UDP_SO_SNDBUF
=16384
4849 echo "$ac_t""$SQUID_UDP_SO_SNDBUF" 1>&6
4850 cat >> confdefs.h
<<EOF
4851 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
4855 echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
4856 echo "configure:4857: checking Default UDP receive buffer size" >&5
4857 if test "$cross_compiling" = yes; then
4858 SQUID_UDP_SO_RCVBUF
=16384
4860 cat > conftest.
$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4866 #include <sys/types.h>
4867 #include <sys/socket.h>
4868 #include <netinet/in.h>
4872 int fd,val=0,len=sizeof(int);
4873 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4874 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4875 if (val <= 0) exit(1);
4876 fp = fopen("conftestval", "w");
4877 fprintf (fp, "%d\n", val);
4882 if { (eval echo configure
:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4884 SQUID_UDP_SO_RCVBUF
=`cat conftestval`
4886 echo "configure: failed program was:" >&5
4887 cat conftest.
$ac_ext >&5
4889 SQUID_UDP_SO_RCVBUF
=16384
4894 echo "$ac_t""$SQUID_UDP_SO_RCVBUF" 1>&6
4895 cat >> confdefs.h
<<EOF
4896 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
4900 echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
4901 echo "configure:4902: checking Default TCP send buffer size" >&5
4902 if test "$cross_compiling" = yes; then
4903 SQUID_TCP_SO_SNDBUF
=16384
4905 cat > conftest.
$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4911 #include <sys/types.h>
4912 #include <sys/socket.h>
4913 #include <netinet/in.h>
4917 int fd,val=0,len=sizeof(int);
4918 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4919 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4920 if (val <= 0) exit(1);
4921 fp = fopen("conftestval", "w");
4922 fprintf (fp, "%d\n", val);
4927 if { (eval echo configure
:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4929 SQUID_TCP_SO_SNDBUF
=`cat conftestval`
4931 echo "configure: failed program was:" >&5
4932 cat conftest.
$ac_ext >&5
4934 SQUID_TCP_SO_SNDBUF
=16384
4939 echo "$ac_t""$SQUID_TCP_SO_SNDBUF" 1>&6
4940 cat >> confdefs.h
<<EOF
4941 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
4945 echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
4946 echo "configure:4947: checking Default TCP receive buffer size" >&5
4947 if test "$cross_compiling" = yes; then
4948 SQUID_TCP_SO_RCVBUF
=16384
4950 cat > conftest.
$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4956 #include <sys/types.h>
4957 #include <sys/socket.h>
4958 #include <netinet/in.h>
4962 int fd,val=0,len=sizeof(int);
4963 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4964 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4965 if (val <= 0) exit(1);
4966 fp = fopen("conftestval", "w");
4967 fprintf (fp, "%d\n", val);
4972 if { (eval echo configure
:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4974 SQUID_TCP_SO_RCVBUF
=`cat conftestval`
4976 echo "configure: failed program was:" >&5
4977 cat conftest.
$ac_ext >&5
4979 SQUID_TCP_SO_RCVBUF
=16384
4984 echo "$ac_t""$SQUID_TCP_SO_RCVBUF" 1>&6
4985 cat >> confdefs.h
<<EOF
4986 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
4990 echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
4991 echo "configure:4992: checking if sys_errlist is already defined" >&5
4992 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 cat > conftest.
$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
5000 char *s = sys_errlist;
5003 if { (eval echo configure
:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5005 ac_cv_needs_sys_errlist
="no"
5007 echo "configure: failed program was:" >&5
5008 cat conftest.
$ac_ext >&5
5010 ac_cv_needs_sys_errlist
="yes"
5016 echo "$ac_t""$ac_cv_needs_sys_errlist" 1>&6
5017 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
5018 cat >> confdefs.h
<<\EOF
5019 #define NEED_SYS_ERRLIST 1
5024 echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
5025 echo "configure:5026: checking for libresolv _dns_ttl_ hack" >&5
5026 cat > conftest.
$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029 extern int _dns_ttl_;
5034 if { (eval echo configure
:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5036 echo "$ac_t""yes" 1>&6
5037 cat >> confdefs.h
<<\EOF
5038 #define LIBRESOLV_DNS_TTL_HACK 1
5042 echo "configure: failed program was:" >&5
5043 cat conftest.
$ac_ext >&5
5045 echo "$ac_t""no" 1>&6
5049 echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6
5050 echo "configure:5051: checking if inet_ntoa() actually works" >&5
5051 if test "$cross_compiling" = yes; then
5052 INET_NTOA_RESULT
="broken"
5054 cat > conftest.
$ac_ext <<EOF
5055 #line 5056 "configure"
5056 #include "confdefs.h"
5060 #include <sys/types.h>
5061 #include <netinet/in.h>
5062 #include <arpa/inet.h>
5067 in.s_addr = inet_addr("1.2.3.4");
5068 fp = fopen("conftestval", "w");
5069 fprintf (fp, "%s\n", inet_ntoa(in));
5074 if { (eval echo configure
:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5076 INET_NTOA_RESULT
=`cat conftestval`
5078 echo "configure: failed program was:" >&5
5079 cat conftest.
$ac_ext >&5
5081 INET_NTOA_RESULT
="broken"
5086 if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
5087 echo "$ac_t"""yes"" 1>&6
5089 echo "$ac_t"""no
"" 1>&6
5090 echo "Will use our own inet_ntoa()."
5091 LIBOBJS
="$LIBOBJS inet_ntoa.o"
5092 # echo "WARNING: This looks bad, and probably prevents Squid from working."
5093 # echo " If you're on IRIX and using GCC 2.8, you probably need"
5094 # echo " to use the IRIX C compiler instead."
5098 if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
5099 echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6
5100 echo "configure:5101: checking for working statvfs() interface" >&5
5101 cat > conftest.
$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5107 #include <sys/types.h>
5108 #include <sys/statvfs.h>
5113 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
5114 sfs.f_files = sfs.f_ffree = 0;
5115 statvfs("/tmp", &sfs);
5119 if { (eval echo configure
:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5121 ac_cv_func_statvfs
=yes
5123 echo "configure: failed program was:" >&5
5124 cat conftest.
$ac_ext >&5
5126 ac_cv_func_statvfs
=no
5129 echo "$ac_t""$ac_cv_func_statvfs" 1>&6
5130 if test "$ac_cv_func_statvfs" = "yes" ; then
5131 cat >> confdefs.h
<<\EOF
5132 #define HAVE_STATVFS 1
5138 echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
5139 echo "configure:5140: checking for _res.nsaddr_list" >&5
5140 if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 cat > conftest.
$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5147 #if HAVE_SYS_TYPES_H
5148 #include <sys/types.h>
5150 #if HAVE_NETINET_IN_H
5151 #include <netinet/in.h>
5153 #if HAVE_ARPA_INET_H
5154 #include <arpa/inet.h>
5156 #if HAVE_ARPA_NAMESER_H
5157 #include <arpa/nameser.h>
5164 _res.nsaddr_list[0];
5167 if { (eval echo configure
:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5169 ac_cv_have_res_nsaddr_list
="yes"
5171 echo "configure: failed program was:" >&5
5172 cat conftest.
$ac_ext >&5
5174 ac_cv_have_res_nsaddr_list
="no"
5179 echo "$ac_t""$ac_cv_have_res_nsaddr_list" 1>&6
5180 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
5181 cat >> confdefs.h
<<\EOF
5182 #define HAVE_RES_NSADDR_LIST 1
5187 if test $ac_cv_have_res_nsaddr_list = "no" ; then
5188 echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6
5189 echo "configure:5190: checking for _res.ns_list" >&5
5190 if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.
$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5197 #if HAVE_SYS_TYPES_H
5198 #include <sys/types.h>
5200 #if HAVE_NETINET_IN_H
5201 #include <netinet/in.h>
5203 #if HAVE_ARPA_INET_H
5204 #include <arpa/inet.h>
5206 #if HAVE_ARPA_NAMESER_H
5207 #include <arpa/nameser.h>
5214 _res.ns_list[0].addr;
5217 if { (eval echo configure
:5218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5219 ac_cv_have_res_ns_list
="yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.
$ac_ext >&5
5224 ac_cv_have_res_ns_list
="no"
5229 echo "$ac_t""$ac_cv_have_res_ns_list" 1>&6
5230 if test $ac_cv_have_res_ns_list = "yes" ; then
5231 cat >> confdefs.h
<<\EOF
5232 #define HAVE_RES_NS_LIST 1
5239 if test "$ac_cv_lib_malloc_main" = "yes" ; then
5240 if test -r /usr
/lib
/debug
/malloc.o
; then
5241 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/malloc.o"
5243 if test -r /usr
/lib
/debug
/mallocmap.o
; then
5244 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
5250 if test -z "$XTRA_LIBS"; then
5252 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lcrypt//"`
5253 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lpthread//"`
5254 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
5262 cat > confcache
<<\EOF
5263 # This file is a shell script that caches the results of configure
5264 # tests run on this system so they can be shared between configure
5265 # scripts and configure runs. It is not useful on other systems.
5266 # If it contains results you don't want to keep, you may remove or edit it.
5268 # By default, configure uses ./config.cache as the cache file,
5269 # creating it if it does not exist already. You can give configure
5270 # the --cache-file=FILE option to use a different cache file; that is
5271 # what configure does when it calls configure scripts in
5272 # subdirectories, so they share the cache.
5273 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5274 # config.status only pays attention to the cache file if you give it the
5275 # --recheck option to rerun configure.
5278 # The following way of writing the cache mishandles newlines in values,
5279 # but we know of no workaround that is simple, portable, and efficient.
5280 # So, don't put newlines in cache variables' values.
5281 # Ultrix sh set writes to stderr and can't be redirected directly,
5282 # and sets the high bit in the cache file unless we assign to the vars.
5284 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5286 # `set' does not quote correctly, so add quotes (double-quote substitution
5287 # turns \\\\ into \\, and sed turns \\ into \).
5289 -e "s/'/'\\\\''/g" \
5290 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5293 # `set' quotes correctly as required by POSIX, so do not add quotes.
5294 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5297 if cmp -s $cache_file confcache
; then
5300 if test -w $cache_file; then
5301 echo "updating cache $cache_file"
5302 cat confcache
> $cache_file
5304 echo "not updating unwritable cache $cache_file"
5309 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5311 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5312 # Let make expand exec_prefix.
5313 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5315 # Any assignment to VPATH causes Sun make to only execute
5316 # the first set of double-colon rules, so remove it if not needed.
5317 # If there is a colon in the path, we need to keep it.
5318 if test "x$srcdir" = x.
; then
5319 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5322 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5324 DEFS
=-DHAVE_CONFIG_H
5326 # Without the "./", some shells look in PATH for config.status.
5327 : ${CONFIG_STATUS=./config.status}
5329 echo creating
$CONFIG_STATUS
5330 rm -f $CONFIG_STATUS
5331 cat > $CONFIG_STATUS <<EOF
5333 # Generated automatically by configure.
5334 # Run this file to recreate the current configuration.
5335 # This directory was configured as follows,
5336 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5338 # $0 $ac_configure_args
5340 # Compiler output produced by configure, useful for debugging
5341 # configure, is in ./config.log if it exists.
5343 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5346 case "\$ac_option" in
5347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5348 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5349 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5350 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5351 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5353 -help | --help | --hel | --he | --h)
5354 echo "\$ac_cs_usage"; exit 0 ;;
5355 *) echo "\$ac_cs_usage"; exit 1 ;;
5359 ac_given_srcdir=$srcdir
5360 ac_given_INSTALL="$INSTALL"
5362 trap 'rm -fr `echo "\
5365 ./include/config.h \
5366 ./scripts/Makefile \
5367 ./scripts/RunCache \
5368 ./scripts/RunAccel \
5371 ./src/fs/ufs/Makefile \
5372 ./src/fs/aufs/Makefile \
5373 ./src/fs/coss/Makefile \
5374 ./src/fs/diskd/Makefile \
5375 ./contrib/Makefile \
5379 ./auth_modules/Makefile \
5380 ./auth_modules/NCSA/Makefile \
5381 ./auth_modules/PAM/Makefile \
5382 ./auth_modules/SMB/Makefile \
5383 ./auth_modules/MSNT/Makefile \
5384 ./auth_modules/getpwnam/Makefile \
5385 ./auth_modules/LDAP/Makefile \
5386 include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5388 cat >> $CONFIG_STATUS <<EOF
5390 # Protect against being on the right side of a sed subst in config.status.
5391 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5392 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5396 s%@CFLAGS@%$CFLAGS%g
5397 s%@CPPFLAGS@%$CPPFLAGS%g
5398 s%@CXXFLAGS@%$CXXFLAGS%g
5399 s%@FFLAGS@%$FFLAGS%g
5401 s%@LDFLAGS@%$LDFLAGS%g
5403 s%@exec_prefix@%$exec_prefix%g
5404 s%@prefix@%$prefix%g
5405 s%@program_transform_name@%$program_transform_name%g
5406 s%@bindir@%$bindir%g
5407 s%@sbindir@%$sbindir%g
5408 s%@libexecdir@%$libexecdir%g
5409 s%@datadir@%$datadir%g
5410 s%@sysconfdir@%$sysconfdir%g
5411 s%@sharedstatedir@%$sharedstatedir%g
5412 s%@localstatedir@%$localstatedir%g
5413 s%@libdir@%$libdir%g
5414 s%@includedir@%$includedir%g
5415 s%@oldincludedir@%$oldincludedir%g
5416 s%@infodir@%$infodir%g
5417 s%@mandir@%$mandir%g
5419 s%@host_alias@%$host_alias%g
5420 s%@host_cpu@%$host_cpu%g
5421 s%@host_vendor@%$host_vendor%g
5422 s%@host_os@%$host_os%g
5423 s%@exec_suffix@%$exec_suffix%g
5424 s%@cgi_suffix@%$cgi_suffix%g
5425 s%@CACHE_HTTP_PORT@%$CACHE_HTTP_PORT%g
5426 s%@CACHE_ICP_PORT@%$CACHE_ICP_PORT%g
5428 s%@LIBDLMALLOC@%$LIBDLMALLOC%g
5429 s%@LIB_MALLOC@%$LIB_MALLOC%g
5430 s%@SQUID_PTHREAD_LIB@%$SQUID_PTHREAD_LIB%g
5431 s%@STORE_MODULES@%$STORE_MODULES%g
5432 s%@STORE_OBJS@%$STORE_OBJS%g
5433 s%@DELAY_OBJS@%$DELAY_OBJS%g
5434 s%@SNMPLIB@%$SNMPLIB%g
5435 s%@SNMP_OBJS@%$SNMP_OBJS%g
5436 s%@makesnmplib@%$makesnmplib%g
5437 s%@HTCP_OBJS@%$HTCP_OBJS%g
5438 s%@ERR_LANGUAGE@%$ERR_LANGUAGE%g
5439 s%@LEAKFINDER_OBJS@%$LEAKFINDER_OBJS%g
5440 s%@AUTH_MODULES@%$AUTH_MODULES%g
5442 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5443 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5444 s%@INSTALL_DATA@%$INSTALL_DATA%g
5445 s%@RANLIB@%$RANLIB%g
5455 s%@MAKEDEPEND@%$MAKEDEPEND%g
5458 s%@ALLOCA@%$ALLOCA%g
5459 s%@CRYPTLIB@%$CRYPTLIB%g
5460 s%@PTHREADLIB@%$PTHREADLIB%g
5461 s%@REGEXLIB@%$REGEXLIB%g
5462 s%@LIBREGEX@%$LIBREGEX%g
5463 s%@LIBOBJS@%$LIBOBJS%g
5464 s%@XTRA_OBJS@%$XTRA_OBJS%g
5465 s%@XTRA_LIBS@%$XTRA_LIBS%g
5470 cat >> $CONFIG_STATUS <<\EOF
5472 # Split the substitutions into bite-sized pieces for seds with
5473 # small command number limits, like on Digital OSF/1 and HP-UX.
5474 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5475 ac_file
=1 # Number of current file.
5476 ac_beg
=1 # First line for current file.
5477 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5480 while $ac_more_lines; do
5481 if test $ac_beg -gt 1; then
5482 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5484 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5486 if test ! -s conftest.s
$ac_file; then
5488 rm -f conftest.s
$ac_file
5490 if test -z "$ac_sed_cmds"; then
5491 ac_sed_cmds
="sed -f conftest.s$ac_file"
5493 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5495 ac_file
=`expr $ac_file + 1`
5497 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5500 if test -z "$ac_sed_cmds"; then
5505 cat >> $CONFIG_STATUS <<EOF
5507 CONFIG_FILES=\${CONFIG_FILES-"\
5510 ./include/config.h \
5511 ./scripts/Makefile \
5512 ./scripts/RunCache \
5513 ./scripts/RunAccel \
5516 ./src/fs/ufs/Makefile \
5517 ./src/fs/aufs/Makefile \
5518 ./src/fs/coss/Makefile \
5519 ./src/fs/diskd/Makefile \
5520 ./contrib/Makefile \
5524 ./auth_modules/Makefile \
5525 ./auth_modules/NCSA/Makefile \
5526 ./auth_modules/PAM/Makefile \
5527 ./auth_modules/SMB/Makefile \
5528 ./auth_modules/MSNT/Makefile \
5529 ./auth_modules/getpwnam/Makefile \
5530 ./auth_modules/LDAP/Makefile \
5533 cat >> $CONFIG_STATUS <<\EOF
5534 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5537 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5538 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5539 *) ac_file_in
="${ac_file}.in" ;;
5542 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5544 # Remove last slash and all that follows it. Not all systems have dirname.
5545 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5547 # The file is in a subdirectory.
5548 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5549 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5550 # A "../" for each directory in $ac_dir_suffix.
5551 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5553 ac_dir_suffix
= ac_dots
=
5556 case "$ac_given_srcdir" in
5558 if test -z "$ac_dots"; then top_srcdir
=.
5559 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5560 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5562 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5563 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5566 case "$ac_given_INSTALL" in
5567 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5568 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5571 echo creating
"$ac_file"
5573 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5575 *Makefile
*) ac_comsub
="1i\\
5576 # $configure_input" ;;
5580 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5582 s%@configure_input@%$configure_input%g
5583 s%@srcdir@%$srcdir%g
5584 s%@top_srcdir@%$top_srcdir%g
5585 s%@INSTALL@%$INSTALL%g
5586 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5593 # ac_d sets the value in "#define NAME VALUE" lines.
5594 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5595 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5598 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5599 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5600 ac_uB
='\([ ]\)%\1#\2define\3'
5603 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5604 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5605 ac_eB
='$%\1#\2define\3'
5609 if test "${CONFIG_HEADERS+set}" != set; then
5611 cat >> $CONFIG_STATUS <<EOF
5612 CONFIG_HEADERS="include/autoconf.h"
5614 cat >> $CONFIG_STATUS <<\EOF
5616 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5617 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5619 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5620 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5621 *) ac_file_in
="${ac_file}.in" ;;
5624 echo creating
$ac_file
5626 rm -f conftest.frag conftest.
in conftest.out
5627 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5628 cat $ac_file_inputs > conftest.
in
5632 # Transform confdefs.h into a sed script conftest.vals that substitutes
5633 # the proper values into config.h.in to produce config.h. And first:
5634 # Protect against being on the right side of a sed subst in config.status.
5635 # Protect against being in an unquoted here document in config.status.
5637 cat > conftest.hdr
<<\EOF
5640 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5644 sed -n -f conftest.hdr confdefs.h > conftest.vals
5647 # This sed command replaces #undef with comments. This is necessary, for
5648 # example, in the case of _POSIX_SOURCE, which is predefined and required
5649 # on some systems where configure will not decide to define it.
5650 cat >> conftest.vals <<\EOF
5651 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5654 # Break up conftest.vals because some shells have a limit on
5655 # the size of here documents, and old seds have small limits too.
5660 ac_lines=`grep -c . conftest.vals
`
5661 # grep -c gives empty output for an empty file on some AIX systems.
5662 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5663 # Write a limited-size here document to conftest.frag.
5664 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5665 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5667 sed -f conftest.frag conftest.in > conftest.out
5669 mv conftest.out conftest.in
5671 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5673 mv conftest.tail conftest.vals
5677 cat >> $CONFIG_STATUS <<\EOF
5678 rm -f conftest.frag conftest.h
5679 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5680 cat conftest.in >> conftest.h
5682 if cmp -s $ac_file conftest.h 2>/dev/null; then
5683 echo "$ac_file is unchanged"
5686 # Remove last slash and all that follows it. Not all systems have dirname.
5687 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5688 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5689 # The file is in a subdirectory.
5690 test ! -d "$ac_dir" && mkdir "$ac_dir"
5693 mv conftest.h $ac_file
5698 cat >> $CONFIG_STATUS <<EOF
5701 cat >> $CONFIG_STATUS <<\EOF
5705 chmod +x $CONFIG_STATUS
5706 rm -fr confdefs* $ac_clean_files
5707 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1