3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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]
31 Do ASYNC disk I/O using threads.
32 N_THREADS is the number of worker threads
33 defaults to 16. See also src/squid.h for
34 some additional platform tuning"
36 --enable-icmp Enable ICMP pinging"
38 --enable-delay-pools Enable delay pools to limit bandwith usage"
40 --enable-mem-gen-trace Do trace of memory stuff"
42 --enable-useragent-log Enable logging of User-Agent header"
44 --disable-wccp Disable Web Cache Coordination Protocol"
46 --enable-kill-parent-hack
47 Kill parent on shutdown"
49 --enable-snmp Enable SNMP monitoring"
51 --enable-time-hack Update internal timestamp only once per second"
53 --enable-cachemgr-hostname[=hostname]
54 Make cachemgr.cgi default to this host"
56 --enable-arp-acl Enable use of ARP ACL lists (ether address)"
58 --enable-htcp Enable HTCP protocol"
60 --enable-forw-via-db Enable Forw/Via database"
62 --enable-cache-digests Use Cache Digests
63 see http://squid.nlanr.net/Squid/FAQ/FAQ-16.html"
65 --enable-err-language=lang
66 Select language for Error pages (see errors dir) "
68 --enable-poll Enable poll() instead of select(). Normally poll
69 is preferred over select, but configure knows poll
70 is broken on some platforms. If you think you are
71 smarter than the configure script, you may enable
72 poll with this option.
73 --disable-poll Disable the use of poll()."
75 --disable-http-violations
76 This allows you to remove code which is known to
77 violate the HTTP protocol specification."
79 --enable-ipf-transparent
80 Enable Transparent Proxy support for systems
81 using IP-Filter network address redirection."
84 Enable Leak Finding code. Enabling this alone
85 does nothing; you also have to modify the source
86 code to use the leak finding functions. Probably
87 Useful for hackers only."
89 --disable-ident-lookups
90 This allows you to remove code that performs
91 Ident (RFC 931) lookups."
93 --disable-internal-dns This prevents Squid from directly sending and
94 receiving DNS messages, and instead enables the
95 old external 'dnsserver' processes."
97 --enable-truncate This uses truncate() instead of unlink() when
98 removing cache files. Truncate gives a little
99 performance improvement, but may cause problems
100 when used with async I/O. Truncate uses more
101 filesystem inodes than unlink.."
103 --enable-underscores Squid by default rejects any host names with _
104 in their name to conform with internet standars.
105 If you disagree with this you may allow _ in
106 hostnames by using this switch, provided that
107 the resolver library on the host where Squid runs
108 does not reject _ in hostnames..."
110 --enable-heap-replacement
111 This option allows you to use various cache
112 replacement algorithms, instead of the standard
116 --enable-diskd Uses shared memory, message queues, and external
117 processes for disk I/O."
119 # Initialize some variables set by options.
120 # The variables have the same names as the options, with
121 # dashes changed to underlines.
123 cache_file
=.
/config.cache
132 program_transform_name
=s
,x
,x
,
140 bindir
='${exec_prefix}/bin'
141 sbindir
='${exec_prefix}/sbin'
142 libexecdir
='${exec_prefix}/libexec'
143 datadir
='${prefix}/share'
144 sysconfdir
='${prefix}/etc'
145 sharedstatedir
='${prefix}/com'
146 localstatedir
='${prefix}/var'
147 libdir
='${exec_prefix}/lib'
148 includedir
='${prefix}/include'
149 oldincludedir
='/usr/include'
150 infodir
='${prefix}/info'
151 mandir
='${prefix}/man'
153 # Initialize some other variables.
156 # Maximum number of lines to put in a shell here document.
163 # If the previous option needs an argument, assign it.
164 if test -n "$ac_prev"; then
165 eval "$ac_prev=\$ac_option"
171 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
175 # Accept the important Cygnus configure options, so we can diagnose typos.
179 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
181 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
182 bindir
="$ac_optarg" ;;
184 -build |
--build |
--buil |
--bui |
--bu)
186 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
187 build
="$ac_optarg" ;;
189 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
190 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
191 ac_prev
=cache_file
;;
192 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
193 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
194 cache_file
="$ac_optarg" ;;
196 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
198 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
200 datadir
="$ac_optarg" ;;
202 -disable-* |
--disable-*)
203 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}=no" ;;
211 -enable-* |
--enable-*)
212 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
213 # Reject names that are not valid shell variable names.
214 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
215 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
217 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}='$ac_optarg'" ;;
224 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
225 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
226 |
--exec |
--exe |
--ex)
227 ac_prev
=exec_prefix
;;
228 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
229 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
230 |
--exec=* |
--exe=* |
--ex=*)
231 exec_prefix
="$ac_optarg" ;;
233 -gas |
--gas |
--ga |
--g)
234 # Obsolete; use --with-gas.
237 -help |
--help |
--hel |
--he)
238 # Omit some internal or obsolete options to make the list less imposing.
239 # This message is too long to be a string in the A/UX 3.1 sh.
241 Usage: configure [options] [host]
242 Options: [defaults in brackets after descriptions]
244 --cache-file=FILE cache test results in FILE
245 --help print this message
246 --no-create do not create output files
247 --quiet, --silent do not print \`checking...' messages
248 --version print the version of autoconf that created configure
249 Directory and file names:
250 --prefix=PREFIX install architecture-independent files in PREFIX
252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
254 --bindir=DIR user executables in DIR [EPREFIX/bin]
255 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
256 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
257 --datadir=DIR read-only architecture-independent data in DIR
259 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
260 --sharedstatedir=DIR modifiable architecture-independent data in DIR
262 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
263 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
264 --includedir=DIR C header files in DIR [PREFIX/include]
265 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
266 --infodir=DIR info documentation in DIR [PREFIX/info]
267 --mandir=DIR man documentation in DIR [PREFIX/man]
268 --srcdir=DIR find the sources in DIR [configure dir or ..]
269 --program-prefix=PREFIX prepend PREFIX to installed program names
270 --program-suffix=SUFFIX append SUFFIX to installed program names
271 --program-transform-name=PROGRAM
272 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
279 Features and packages:
280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
282 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
283 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
284 --x-includes=DIR X include files are in DIR
285 --x-libraries=DIR X library files are in DIR
287 if test -n "$ac_help"; then
288 echo "--enable and --with options recognized:$ac_help"
292 -host |
--host |
--hos |
--ho)
294 -host=* |
--host=* |
--hos=* |
--ho=*)
297 -includedir |
--includedir |
--includedi |
--included |
--include \
298 |
--includ |
--inclu |
--incl |
--inc)
299 ac_prev
=includedir
;;
300 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
301 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
302 includedir
="$ac_optarg" ;;
304 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
306 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
307 infodir
="$ac_optarg" ;;
309 -libdir |
--libdir |
--libdi |
--libd)
311 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
312 libdir
="$ac_optarg" ;;
314 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
315 |
--libexe |
--libex |
--libe)
316 ac_prev
=libexecdir
;;
317 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
318 |
--libexe=* |
--libex=* |
--libe=*)
319 libexecdir
="$ac_optarg" ;;
321 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
322 |
--localstate |
--localstat |
--localsta |
--localst \
323 |
--locals |
--local |
--loca |
--loc |
--lo)
324 ac_prev
=localstatedir
;;
325 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
326 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
327 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
328 localstatedir
="$ac_optarg" ;;
330 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
332 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
333 mandir
="$ac_optarg" ;;
336 # Obsolete; use --without-fp.
339 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
343 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
344 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
347 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
348 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
349 |
--oldin |
--oldi |
--old |
--ol |
--o)
350 ac_prev
=oldincludedir
;;
351 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
352 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
353 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
354 oldincludedir
="$ac_optarg" ;;
356 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
358 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
359 prefix
="$ac_optarg" ;;
361 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
362 |
--program-pre |
--program-pr |
--program-p)
363 ac_prev
=program_prefix
;;
364 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
365 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
366 program_prefix
="$ac_optarg" ;;
368 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
369 |
--program-suf |
--program-su |
--program-s)
370 ac_prev
=program_suffix
;;
371 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
372 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
373 program_suffix
="$ac_optarg" ;;
375 -program-transform-name |
--program-transform-name \
376 |
--program-transform-nam |
--program-transform-na \
377 |
--program-transform-n |
--program-transform- \
378 |
--program-transform |
--program-transfor \
379 |
--program-transfo |
--program-transf \
380 |
--program-trans |
--program-tran \
381 |
--progr-tra |
--program-tr |
--program-t)
382 ac_prev
=program_transform_name
;;
383 -program-transform-name=* |
--program-transform-name=* \
384 |
--program-transform-nam=* |
--program-transform-na=* \
385 |
--program-transform-n=* |
--program-transform-=* \
386 |
--program-transform=* |
--program-transfor=* \
387 |
--program-transfo=* |
--program-transf=* \
388 |
--program-trans=* |
--program-tran=* \
389 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
390 program_transform_name
="$ac_optarg" ;;
392 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
393 |
-silent |
--silent |
--silen |
--sile |
--sil)
396 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
398 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
400 sbindir
="$ac_optarg" ;;
402 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
403 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
404 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
406 ac_prev
=sharedstatedir
;;
407 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
408 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
409 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
411 sharedstatedir
="$ac_optarg" ;;
413 -site |
--site |
--sit)
415 -site=* |
--site=* |
--sit=*)
418 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
420 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
421 srcdir
="$ac_optarg" ;;
423 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
424 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
425 ac_prev
=sysconfdir
;;
426 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
427 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
428 sysconfdir
="$ac_optarg" ;;
430 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
432 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
433 target
="$ac_optarg" ;;
435 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
438 -version |
--version |
--versio |
--versi |
--vers)
439 echo "configure generated by autoconf version 2.12"
443 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package
=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}='$ac_optarg'" ;;
455 -without-* |
--without-*)
456 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package
=`echo $ac_package| sed 's/-/_/g'`
462 eval "with_${ac_package}=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
469 |
--x-incl |
--x-inc |
--x-in |
--x-i)
470 ac_prev
=x_includes
;;
471 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
472 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
473 x_includes
="$ac_optarg" ;;
475 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
476 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
477 ac_prev
=x_libraries
;;
478 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
479 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
480 x_libraries
="$ac_optarg" ;;
482 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
486 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
487 echo "configure: warning: $ac_option: invalid host type" 1>&2
489 if test "x$nonopt" != xNONE
; then
490 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
498 if test -n "$ac_prev"; then
499 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
504 # File descriptor usage:
507 # 2 errors and warnings
508 # 3 some systems may open it to /dev/tty
509 # 4 used on the Kubota Titan
510 # 6 checking for... messages and results
511 # 5 compiler messages saved in config.log
512 if test "$silent" = yes; then
520 This file contains any messages produced by compilers while
521 running configure, to aid debugging if configure makes a mistake.
524 # Strip out --no-create and --no-recursion so they do not pile up.
525 # Also quote any args containing shell metacharacters.
530 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
531 |
--no-cr |
--no-c) ;;
532 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
533 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
534 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
535 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
536 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
541 # Only set these to C if already set. These must not be set unconditionally
542 # because not all systems understand e.g. LANG=C (notably SCO).
543 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
544 # Non-C LC_CTYPE values break the ctype check.
545 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
546 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
547 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
548 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
551 rm -rf conftest
* confdefs.h
552 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
555 # A filename unique to this package, relative to the directory that
556 # configure is in, which we can look for to find out if srcdir is correct.
557 ac_unique_file
=src
/main.c
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted
=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted
=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
577 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
580 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
582 # Prefer explicitly selected file to automatically selected ones.
583 if test -z "$CONFIG_SITE"; then
584 if test "x$prefix" != xNONE
; then
585 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
587 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
590 for ac_site_file
in $CONFIG_SITE; do
591 if test -r "$ac_site_file"; then
592 echo "loading site script $ac_site_file"
597 if test -r "$cache_file"; then
598 echo "loading cache $cache_file"
601 echo "creating cache $cache_file"
606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
607 ac_cpp
='$CPP $CPPFLAGS'
608 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
609 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
610 cross_compiling
=$ac_cv_prog_cc_cross
612 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
613 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
614 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
621 ac_n
= ac_c
='\c' ac_t
=
626 # From configure.in Revision: 1.181
628 for ac_dir
in cfgaux
$srcdir/cfgaux
; do
629 if test -f $ac_dir/install-sh
; then
631 ac_install_sh
="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh
; then
635 ac_install_sh
="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in cfgaux $srcdir/cfgaux" 1>&2; exit 1; }
642 ac_config_guess
=$ac_aux_dir/config.guess
643 ac_config_sub
=$ac_aux_dir/config.sub
644 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
648 # Make sure we can run config.sub.
649 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
650 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
653 echo $ac_n "checking host system type""... $ac_c" 1>&6
654 echo "configure:655: checking host system type" >&5
657 case "$host_alias" in
661 if host_alias
=`$ac_config_guess`; then :
662 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
664 *) host_alias
=$nonopt ;;
668 host=`$ac_config_sub $host_alias`
669 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo "$ac_t""$host" 1>&6
676 REGEXLIB
='' # -lregex
677 LIBREGEX
='' # libregex.a
679 if test "$libexecdir" = '${exec_prefix}/libexec'; then
680 libexecdir
='${bindir}'
681 localstatedir
='${prefix}'
698 if test -z "$CACHE_HTTP_PORT"; then
699 CACHE_HTTP_PORT
="3128"
701 if test -z "$CACHE_ICP_PORT"; then
702 CACHE_ICP_PORT
="3130"
708 cat >> confdefs.h
<<EOF
709 #define CONFIG_HOST_TYPE "$host"
713 if test -z "$LDFLAGS"; then
717 PRESET_CFLAGS
="$CFLAGS"
719 # Extract the first word of "gcc", so it can be a program name with args.
720 set dummy gcc
; ac_word
=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 if test -n "$CC"; then
727 ac_cv_prog_CC
="$CC" # Let the user override the test.
729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
730 for ac_dir
in $PATH; do
731 test -z "$ac_dir" && ac_dir
=.
732 if test -f $ac_dir/$ac_word; then
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
747 if test -z "$CC"; then
748 # Extract the first word of "cc", so it can be a program name with args.
749 set dummy cc
; ac_word
=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC
="$CC" # Let the user override the test.
758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
760 for ac_dir
in $PATH; do
761 test -z "$ac_dir" && ac_dir
=.
762 if test -f $ac_dir/$ac_word; then
763 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
772 if test $ac_prog_rejected = yes; then
773 # We found a bogon in the path, so make sure we never use it.
774 set dummy
$ac_cv_prog_CC
776 if test $# -gt 0; then
777 # We chose a different compiler from the bogus one.
778 # However, it has the same basename, so the bogon will be chosen
779 # first if we set CC to just the basename; use the full file name.
781 set dummy
"$ac_dir/$ac_word" "$@"
789 if test -n "$CC"; then
790 echo "$ac_t""$CC" 1>&6
792 echo "$ac_t""no" 1>&6
795 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
798 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
799 echo "configure:800: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
803 ac_cpp
='$CPP $CPPFLAGS'
804 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
805 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
806 cross_compiling
=$ac_cv_prog_cc_cross
808 cat > conftest.
$ac_ext <<EOF
809 #line 810 "configure"
810 #include "confdefs.h"
813 if { (eval echo configure
:814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
814 ac_cv_prog_cc_works
=yes
815 # If we can't run a trivial program, we are probably using a cross compiler.
816 if (.
/conftest
; exit) 2>/dev
/null
; then
817 ac_cv_prog_cc_cross
=no
819 ac_cv_prog_cc_cross
=yes
822 echo "configure: failed program was:" >&5
823 cat conftest.
$ac_ext >&5
824 ac_cv_prog_cc_works
=no
828 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
829 if test $ac_cv_prog_cc_works = no
; then
830 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
832 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
833 echo "configure:834: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
834 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
835 cross_compiling
=$ac_cv_prog_cc_cross
837 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
838 echo "configure:839: checking whether we are using GNU C" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 cat > conftest.c
<<EOF
847 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
854 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
856 if test $ac_cv_prog_gcc = yes; then
858 ac_test_CFLAGS
="${CFLAGS+set}"
859 ac_save_CFLAGS
="$CFLAGS"
861 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CC-cc} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.c
867 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
877 if test "$ac_test_CFLAGS" = set; then
878 CFLAGS
="$ac_save_CFLAGS"
879 elif test $ac_cv_prog_cc_g = yes; then
886 test "${CFLAGS+set}" = set || CFLAGS
="-g"
892 CC
="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
896 if test -z "$PRESET_CFLAGS"; then
897 if test "$GCC" = "yes"; then
900 # sunos has too many warnings for this to be useful
904 # Motorola cc/ld does not like -02 but is ok on -O
905 CFLAGS
=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
908 CFLAGS
="$CFLAGS -Wall"
914 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
915 CFLAGS
="$CFLAGS -n32 -mips4 -O3 -OPT:Olimit=0:space=OFF \
916 -woff 1009,1014,1048,1110,1116,1185,1188,1204,1230,1233 \
917 -Wl,-woff,85,-woff,84,-woff,134 \
918 -nostdinc -I/usr/include -D_BSD_SIGNALS"
921 # Mogul says DEC compilers take both -g and -O2
922 CFLAGS
=`echo $CFLAGS | sed -e 's/-g/-g3/'`
931 if test -z "$PRESET_LDFLAGS"; then
932 if test "$GCC" = "yes"; then
941 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
942 LDFLAGS
="-n32 -mips4 -nostdlib -L/usr/lib32"
948 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
949 if test "${enable_dlmalloc+set}" = set; then
950 enableval
="$enable_dlmalloc"
955 LIBDLMALLOC
="libdlmalloc.a"
956 LIB_MALLOC
="-L../lib -ldlmalloc"
957 echo "dlmalloc enabled"
961 echo "dlmalloc disabled"
963 *) use_dlmalloc
="yes"
964 LIB_MALLOC
="$enableval"
965 echo "dlmalloc enabled with $LIB_MALLOC"
970 if test "${use_dlmalloc-unset}" = unset; then
973 echo "Enabling dlmalloc for $host"
978 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
979 # Ok. dlmalloc was enabled before, but state may be changed.
980 # we have to test these again
981 unset ac_cv_func_mallinfo
982 unset ac_cv_func_mallocblksize
983 unset ac_cv_func_free
984 unset ac_cv_func_realloc
985 unset ac_cv_func_memalign
986 unset ac_cv_func_valloc
987 unset ac_cv_func_pvalloc
988 unset ac_cv_func_calloc
989 unset ac_cv_func_cfree
990 unset ac_cv_func_malloc_trim
991 unset ac_cv_func_malloc_usable_size
992 unset ac_cv_func_malloc_stats
993 unset ac_cv_func_mallinfo
994 unset ac_cv_func_mallopt
995 unset ac_cv_lib_gnumalloc
996 unset ac_cv_header_gnumalloc_h
997 unset ac_cv_lib_malloc
998 unset ac_cv_enabled_dlmalloc
1000 if test "$use_dlmalloc" = yes; then
1001 ac_cv_func_mallinfo
="yes"
1002 ac_cv_func_mallocblksize
="no"
1003 ac_cv_func_free
="yes"
1004 ac_cv_func_realloc
="yes"
1005 ac_cv_func_memalign
="yes"
1006 ac_cv_func_valloc
="yes"
1007 ac_cv_func_pvalloc
="yes"
1008 ac_cv_func_calloc
="yes"
1009 ac_cv_func_cfree
="yes"
1010 ac_cv_func_malloc_trim
="yes"
1011 ac_cv_func_malloc_usable_size
="yes"
1012 ac_cv_func_malloc_stats
="yes"
1013 ac_cv_func_mallopt
="yes"
1014 ac_cv_lib_gnumalloc
="no"
1015 ac_cv_header_gnumalloc_h
="no"
1016 ac_cv_lib_malloc
="no"
1017 ac_cv_enabled_dlmalloc
="yes"
1023 # Check whether --enable-gnuregex or --disable-gnuregex was given.
1024 if test "${enable_gnuregex+set}" = set; then
1025 enableval
="$enable_gnuregex"
1026 USE_GNUREGEX
=$enableval
1030 # Check whether --enable-xmalloc_debug or --disable-xmalloc_debug was given.
1031 if test "${enable_xmalloc_debug+set}" = set; then
1032 enableval
="$enable_xmalloc_debug"
1033 if test "$enableval" = "yes" ; then
1034 echo "Malloc debugging enabled"
1035 cat >> confdefs.h
<<\EOF
1036 #define XMALLOC_DEBUG 1
1044 # Check whether --enable-xmalloc_debug_trace or --disable-xmalloc_debug_trace was given.
1045 if test "${enable_xmalloc_debug_trace+set}" = set; then
1046 enableval
="$enable_xmalloc_debug_trace"
1047 if test "$enableval" = "yes" ; then
1048 echo "Malloc debug trace enabled"
1049 cat >> confdefs.h
<<\EOF
1050 #define XMALLOC_TRACE 1
1053 cat >> confdefs.h
<<\EOF
1054 #define XMALLOC_DEBUG 1
1062 # Check whether --enable-xmalloc_statistics or --disable-xmalloc_statistics was given.
1063 if test "${enable_xmalloc_statistics+set}" = set; then
1064 enableval
="$enable_xmalloc_statistics"
1065 if test "$enableval" = "yes" ; then
1066 echo "Malloc statistics enabled"
1067 cat >> confdefs.h
<<\EOF
1068 #define XMALLOC_STATISTICS 1
1076 # Check whether --enable-carp or --disable-carp was given.
1077 if test "${enable_carp+set}" = set; then
1078 enableval
="$enable_carp"
1079 if test "$enableval" = "yes" ; then
1080 echo "CARP support enabled"
1081 cat >> confdefs.h
<<\EOF
1090 # Check whether --enable-async_io or --disable-async_io was given.
1091 if test "${enable_async_io+set}" = set; then
1092 enableval
="$enable_async_io"
1093 case "$enableval" in
1102 cat >> confdefs.h
<<EOF
1103 #define NUMTHREADS $enableval
1112 if test -n "$async_io" ; then
1113 echo "Async I/O enabled"
1115 cat >> confdefs.h
<<\EOF
1116 #define USE_ASYNC_IO 1
1119 ASYNC_OBJS
='$(ASYNC_OBJS)'
1120 SQUID_PTHREAD_LIB
='$(PTHREADLIB)'
1121 CFLAGS
="$CFLAGS -D_REENTRANT"
1123 i386-unknown-freebsd
*)
1124 if test "$GCC" = "yes" ; then
1125 if test -z "$PRESET_LDFLAGS"; then
1126 LDFLAGS
="$LDFLAGS -pthread"
1135 # Check whether --enable-icmp or --disable-icmp was given.
1136 if test "${enable_icmp+set}" = set; then
1137 enableval
="$enable_icmp"
1138 if test "$enableval" = "yes" ; then
1140 cat >> confdefs.h
<<\EOF
1149 # Check whether --enable-delay_pools or --disable-delay_pools was given.
1150 if test "${enable_delay_pools+set}" = set; then
1151 enableval
="$enable_delay_pools"
1152 if test "$enableval" = "yes" ; then
1153 echo "Delay pools enabled"
1154 DELAY_OBJS
='$(DELAY_OBJS)'
1155 cat >> confdefs.h
<<\EOF
1156 #define DELAY_POOLS 1
1165 # Check whether --enable-mem-gen-trace or --disable-mem-gen-trace was given.
1166 if test "${enable_mem_gen_trace+set}" = set; then
1167 enableval
="$enable_mem_gen_trace"
1168 if test "$enableval" = "yes" ; then
1169 echo "Memory trace (to file) enabled"
1170 cat >> confdefs.h
<<\EOF
1171 #define MEM_GEN_TRACE 1
1179 # Check whether --enable-useragent_log or --disable-useragent_log was given.
1180 if test "${enable_useragent_log+set}" = set; then
1181 enableval
="$enable_useragent_log"
1182 if test "$enableval" = "yes" ; then
1183 echo "User-Agent logging enabled"
1184 cat >> confdefs.h
<<\EOF
1185 #define USE_USERAGENT_LOG 1
1193 # Check whether --enable-wccp or --disable-wccp was given.
1194 if test "${enable_wccp+set}" = set; then
1195 enableval
="$enable_wccp"
1196 if test "$enableval" = "no" ; then
1197 echo "Web Cache Coordination Protocol disabled"
1198 cat >> confdefs.h
<<\EOF
1203 cat >> confdefs.h
<<\EOF
1212 # Check whether --enable-kill_parent_hack or --disable-kill_parent_hack was given.
1213 if test "${enable_kill_parent_hack+set}" = set; then
1214 enableval
="$enable_kill_parent_hack"
1215 if test "$enableval" = "yes" ; then
1216 echo "Kill parent on shutdown"
1217 cat >> confdefs.h
<<\EOF
1218 #define KILL_PARENT_OPT 1
1226 # Check whether --enable-snmp or --disable-snmp was given.
1227 if test "${enable_snmp+set}" = set; then
1228 enableval
="$enable_snmp"
1229 if test "$enableval" = "yes" ; then
1230 echo "SNMP monitoring enabled"
1231 cat >> confdefs.h
<<\EOF
1232 #define SQUID_SNMP 1
1235 SNMPLIB
='-L../snmplib -lsnmp'
1236 SNMP_OBJS
='$(SNMP_OBJS)'
1237 SNMP_MAKEFILE
=.
/snmplib
/Makefile
1247 # Check whether --enable-time_hack or --disable-time_hack was given.
1248 if test "${enable_time_hack+set}" = set; then
1249 enableval
="$enable_time_hack"
1250 if test "$enableval" = "yes" ; then
1251 echo "Update internal timestamp only once per second"
1252 cat >> confdefs.h
<<\EOF
1253 #define ALARM_UPDATES_TIME 1
1261 # Check whether --enable-cachemgr_hostname or --disable-cachemgr_hostname was given.
1262 if test "${enable_cachemgr_hostname+set}" = set; then
1263 enableval
="$enable_cachemgr_hostname"
1266 cat >> confdefs.h
<<\EOF
1267 #define CACHEMGR_HOSTNAME getfullhostname()
1270 echo "Cachemgr default hostname == host where cachemgr runs"
1276 cat >> confdefs.h
<<EOF
1277 #define CACHEMGR_HOSTNAME "${enableval}"
1280 echo "Cachemgr default hostname set to ${enableval}"
1287 # Check whether --enable-arp_acl or --disable-arp_acl was given.
1288 if test "${enable_arp_acl+set}" = set; then
1289 enableval
="$enable_arp_acl"
1290 if test "$enableval" = "yes" ; then
1291 echo "ARP ACL lists enabled (ether address)"
1296 echo "WARNING: ARP ACL support is only currently supported on Linux"
1297 echo " ethernet interfaces, probably won't work on $host."
1301 cat >> confdefs.h
<<\EOF
1302 #define USE_ARP_ACL 1
1310 # Check whether --enable-htcp or --disable-htcp was given.
1311 if test "${enable_htcp+set}" = set; then
1312 enableval
="$enable_htcp"
1313 if test "$enableval" = "yes" ; then
1315 HTCP_OBJS
='$(HTCP_OBJS)'
1316 cat >> confdefs.h
<<\EOF
1326 # Check whether --enable-forw-via-db or --disable-forw-via-db was given.
1327 if test "${enable_forw_via_db+set}" = set; then
1328 enableval
="$enable_forw_via_db"
1329 if test "$enableval" = "yes" ; then
1330 echo "FORW-VIA enabled"
1331 cat >> confdefs.h
<<\EOF
1332 #define FORW_VIA_DB 1
1340 # Check whether --enable-cache-digests or --disable-cache-digests was given.
1341 if test "${enable_cache_digests+set}" = set; then
1342 enableval
="$enable_cache_digests"
1343 if test "$enableval" = "yes" ; then
1344 echo "USE_CACHE_DIGESTS enabled"
1345 cat >> confdefs.h
<<\EOF
1346 #define USE_CACHE_DIGESTS 1
1354 # Check whether --enable-err-language or --disable-err-language was given.
1355 if test "${enable_err_language+set}" = set; then
1356 enableval
="$enable_err_language"
1358 if test -d errors
/$enableval; then
1359 ERR_LANGUAGE
=$enableval
1361 echo "ERROR! Unknown language $enableval, see errors/"
1366 ERR_LANGUAGE
="English"
1371 # Check whether --enable-poll or --disable-poll was given.
1372 if test "${enable_poll+set}" = set; then
1373 enableval
="$enable_poll"
1375 case "$enableval" in
1377 echo "Forcing poll() to be enabled"
1378 ac_cv_func_poll
='yes'
1381 echo "Forcing poll() to be disabled"
1382 ac_cv_func_poll
='no'
1389 # Check whether --enable-http-violations or --disable-http-violations was given.
1390 if test "${enable_http_violations+set}" = set; then
1391 enableval
="$enable_http_violations"
1392 if test "$enableval" = "no" ; then
1393 echo "Disabling HTTP Violations"
1394 cat >> confdefs.h
<<\EOF
1395 #define HTTP_VIOLATIONS 0
1399 cat >> confdefs.h
<<\EOF
1400 #define HTTP_VIOLATIONS 1
1408 # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
1409 if test "${enable_ipf_transparent+set}" = set; then
1410 enableval
="$enable_ipf_transparent"
1411 if test "$enableval" = "yes" ; then
1412 echo "IP-Filter Transparent Proxy enabled"
1413 cat >> confdefs.h
<<\EOF
1414 #define IPF_TRANSPARENT 1
1417 IPF_TRANSPARENT
="yes"
1423 # Check whether --enable-leakfinder or --disable-leakfinder was given.
1424 if test "${enable_leakfinder+set}" = set; then
1425 enableval
="$enable_leakfinder"
1426 if test "$enableval" = "yes" ; then
1427 echo "Leak-Finding enabled"
1428 cat >> confdefs.h
<<\EOF
1429 #define USE_LEAKFINDER 1
1432 LEAKFINDER_OBJS
='$(LEAKFINDER_OBJS)'
1433 USE_LEAKFINDER
="yes"
1440 # Check whether --enable-ident-lookups or --disable-ident-lookups was given.
1441 if test "${enable_ident_lookups+set}" = set; then
1442 enableval
="$enable_ident_lookups"
1443 if test "$enableval" = "no" ; then
1444 echo "Disabling Ident Lookups"
1445 cat >> confdefs.h
<<\EOF
1450 cat >> confdefs.h
<<\EOF
1459 # Check whether --enable-internal-dns or --disable-internal-dns was given.
1460 if test "${enable_internal_dns+set}" = set; then
1461 enableval
="$enable_internal_dns"
1462 if test "$enableval" = "no" ; then
1463 echo "Disabling Internal DNS queries"
1464 cat >> confdefs.h
<<\EOF
1465 #define USE_DNSSERVERS 1
1469 cat >> confdefs.h
<<\EOF
1470 #define USE_DNSSERVERS 0
1478 # Check whether --enable-truncate or --disable-truncate was given.
1479 if test "${enable_truncate+set}" = set; then
1480 enableval
="$enable_truncate"
1481 if test "$enableval" = "yes" ; then
1482 echo "Enabling truncate instead of unlink"
1483 cat >> confdefs.h
<<\EOF
1484 #define USE_TRUNCATE 1
1492 # Check whether --enable-underscores or --disable-underscores was given.
1493 if test "${enable_underscores+set}" = set; then
1494 enableval
="$enable_underscores"
1495 if test "$enableval" = "yes" ; then
1496 echo "Enabling the use of underscores in host names"
1497 cat >> confdefs.h
<<\EOF
1498 #define ALLOW_HOSTNAME_UNDERSCORES 1
1506 # Check whether --enable-heap-replacement or --disable-heap-replacement was given.
1507 if test "${enable_heap_replacement+set}" = set; then
1508 enableval
="$enable_heap_replacement"
1509 if test "$enableval" = "yes" ; then
1510 echo "Enabling HEAP_REPLACEMENT"
1511 cat >> confdefs.h
<<\EOF
1512 #define HEAP_REPLACEMENT 1
1520 # Check whether --enable-diskd or --disable-diskd was given.
1521 if test "${enable_diskd+set}" = set; then
1522 enableval
="$enable_diskd"
1523 if test "$enableval" = "yes" ; then
1524 echo "DISKD enabled"
1525 cat >> confdefs.h
<<\EOF
1529 OPT_DISKD_EXE
='$(DISKD_EXE)'
1531 DISKD_OBJS
='diskd.o'
1538 # Force some compilers to use ANSI features
1542 if test "$ac_cv_prog_CC" = "cc" ; then
1543 echo "adding '-std1' to cc args for $host"
1549 if test "$ac_cv_prog_CC" = "cc" ; then
1550 echo "adding '-Ae' to cc args for $host"
1557 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1558 echo "configure:1559: checking how to run the C preprocessor" >&5
1559 # On Suns, sometimes $CPP names a directory.
1560 if test -n "$CPP" && test -d "$CPP"; then
1563 if test -z "$CPP"; then
1564 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 # This must be in double quotes, not single quotes, because CPP may get
1568 # substituted into the Makefile and "${CC-cc}" will confuse make.
1570 # On the NeXT, cc -E runs the code through the compiler's parser,
1571 # not just through cpp.
1572 cat > conftest.
$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure
:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err
=`grep -v '^ *+' conftest.out`
1581 if test -z "$ac_err"; then
1585 echo "configure: failed program was:" >&5
1586 cat conftest.
$ac_ext >&5
1588 CPP
="${CC-cc} -E -traditional-cpp"
1589 cat > conftest.
$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1595 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1596 { (eval echo configure
:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1597 ac_err
=`grep -v '^ *+' conftest.out`
1598 if test -z "$ac_err"; then
1602 echo "configure: failed program was:" >&5
1603 cat conftest.
$ac_ext >&5
1610 ac_cv_prog_CPP
="$CPP"
1612 CPP
="$ac_cv_prog_CPP"
1614 ac_cv_prog_CPP
="$CPP"
1616 echo "$ac_t""$CPP" 1>&6
1618 # Find a good install program. We prefer a C program (faster),
1619 # so one script is as good as another. But avoid the broken or
1620 # incompatible versions:
1621 # SysV /etc/install, /usr/sbin/install
1622 # SunOS /usr/etc/install
1623 # IRIX /sbin/install
1625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1627 # ./install, which can be erroneously created by make from ./install.sh.
1628 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1629 echo "configure:1630: checking for a BSD compatible install" >&5
1630 if test -z "$INSTALL"; then
1631 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1635 for ac_dir
in $PATH; do
1636 # Account for people who put trailing slashes in PATH elements.
1638 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1640 # OSF1 and SCO ODT 3.0 have their own names for install.
1641 for ac_prog
in ginstall installbsd scoinst
install; do
1642 if test -f $ac_dir/$ac_prog; then
1643 if test $ac_prog = install &&
1644 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1645 # AIX install. It has an incompatible calling convention.
1646 # OSF/1 installbsd also uses dspmsg, but is usable.
1649 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1660 if test "${ac_cv_path_install+set}" = set; then
1661 INSTALL
="$ac_cv_path_install"
1663 # As a last resort, use the slow shell script. We don't cache a
1664 # path for INSTALL within a source directory, because that will
1665 # break other packages using the cache if that directory is
1666 # removed, or if the path is relative.
1667 INSTALL
="$ac_install_sh"
1670 echo "$ac_t""$INSTALL" 1>&6
1672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1673 # It thinks the first close brace ends the variable substitution.
1674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1676 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1678 # Extract the first word of "ranlib", so it can be a program name with args.
1679 set dummy ranlib
; ac_word
=$2
1680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $ac_word" >&5
1682 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 if test -n "$RANLIB"; then
1686 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1688 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1689 for ac_dir
in $PATH; do
1690 test -z "$ac_dir" && ac_dir
=.
1691 if test -f $ac_dir/$ac_word; then
1692 ac_cv_prog_RANLIB
="ranlib"
1697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1700 RANLIB
="$ac_cv_prog_RANLIB"
1701 if test -n "$RANLIB"; then
1702 echo "$ac_t""$RANLIB" 1>&6
1704 echo "$ac_t""no" 1>&6
1707 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1708 echo "configure:1709: checking whether ln -s works" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1713 if ln -s X conftestdata
2>/dev
/null
1716 ac_cv_prog_LN_S
="ln -s"
1721 LN_S
="$ac_cv_prog_LN_S"
1722 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1723 echo "$ac_t""yes" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 # Extract the first word of "sh", so it can be a program name with args.
1729 set dummy sh
; ac_word
=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_SH
="$SH" # Let the user override the test with a path.
1740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1741 for ac_dir
in $PATH; do
1742 test -z "$ac_dir" && ac_dir
=.
1743 if test -f $ac_dir/$ac_word; then
1744 ac_cv_path_SH
="$ac_dir/$ac_word"
1749 test -z "$ac_cv_path_SH" && ac_cv_path_SH
="/bin/sh"
1754 if test -n "$SH"; then
1755 echo "$ac_t""$SH" 1>&6
1757 echo "$ac_t""no" 1>&6
1760 # Extract the first word of "false", so it can be a program name with args.
1761 set dummy false
; ac_word
=$2
1762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1763 echo "configure:1764: checking for $ac_word" >&5
1764 if eval "test \"`echo '$''{'ac_cv_path_FALSE'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1769 ac_cv_path_FALSE
="$FALSE" # Let the user override the test with a path.
1772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1773 for ac_dir
in $PATH; do
1774 test -z "$ac_dir" && ac_dir
=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_path_FALSE
="$ac_dir/$ac_word"
1781 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE
="/usr/bin/false"
1785 FALSE
="$ac_cv_path_FALSE"
1786 if test -n "$FALSE"; then
1787 echo "$ac_t""$FALSE" 1>&6
1789 echo "$ac_t""no" 1>&6
1792 # Extract the first word of "true", so it can be a program name with args.
1793 set dummy true
; ac_word
=$2
1794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_word" >&5
1796 if eval "test \"`echo '$''{'ac_cv_path_TRUE'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1801 ac_cv_path_TRUE
="$TRUE" # Let the user override the test with a path.
1804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1805 for ac_dir
in $PATH; do
1806 test -z "$ac_dir" && ac_dir
=.
1807 if test -f $ac_dir/$ac_word; then
1808 ac_cv_path_TRUE
="$ac_dir/$ac_word"
1813 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE
="/usr/bin/true"
1817 TRUE
="$ac_cv_path_TRUE"
1818 if test -n "$TRUE"; then
1819 echo "$ac_t""$TRUE" 1>&6
1821 echo "$ac_t""no" 1>&6
1824 # Extract the first word of "rm", so it can be a program name with args.
1825 set dummy
rm; ac_word
=$2
1826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1827 echo "configure:1828: checking for $ac_word" >&5
1828 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1833 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1837 for ac_dir
in $PATH; do
1838 test -z "$ac_dir" && ac_dir
=.
1839 if test -f $ac_dir/$ac_word; then
1840 ac_cv_path_RM
="$ac_dir/$ac_word"
1845 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="$FALSE"
1850 if test -n "$RM"; then
1851 echo "$ac_t""$RM" 1>&6
1853 echo "$ac_t""no" 1>&6
1856 # Extract the first word of "mv", so it can be a program name with args.
1857 set dummy
mv; ac_word
=$2
1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_word" >&5
1860 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1865 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
1868 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1869 for ac_dir
in $PATH; do
1870 test -z "$ac_dir" && ac_dir
=.
1871 if test -f $ac_dir/$ac_word; then
1872 ac_cv_path_MV
="$ac_dir/$ac_word"
1877 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="$FALSE"
1882 if test -n "$MV"; then
1883 echo "$ac_t""$MV" 1>&6
1885 echo "$ac_t""no" 1>&6
1888 # Extract the first word of "mkdir", so it can be a program name with args.
1889 set dummy mkdir
; ac_word
=$2
1890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1891 echo "configure:1892: checking for $ac_word" >&5
1892 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1897 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
1900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1901 for ac_dir
in $PATH; do
1902 test -z "$ac_dir" && ac_dir
=.
1903 if test -f $ac_dir/$ac_word; then
1904 ac_cv_path_MKDIR
="$ac_dir/$ac_word"
1909 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="$FALSE"
1913 MKDIR
="$ac_cv_path_MKDIR"
1914 if test -n "$MKDIR"; then
1915 echo "$ac_t""$MKDIR" 1>&6
1917 echo "$ac_t""no" 1>&6
1920 # Extract the first word of "ln", so it can be a program name with args.
1921 set dummy
ln; ac_word
=$2
1922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_word" >&5
1924 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1929 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
1932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1933 for ac_dir
in $PATH; do
1934 test -z "$ac_dir" && ac_dir
=.
1935 if test -f $ac_dir/$ac_word; then
1936 ac_cv_path_LN
="$ac_dir/$ac_word"
1941 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="cp"
1946 if test -n "$LN"; then
1947 echo "$ac_t""$LN" 1>&6
1949 echo "$ac_t""no" 1>&6
1952 # Extract the first word of "perl", so it can be a program name with args.
1953 set dummy perl
; ac_word
=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5
1956 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1961 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1965 for ac_dir
in $PATH; do
1966 test -z "$ac_dir" && ac_dir
=.
1967 if test -f $ac_dir/$ac_word; then
1968 ac_cv_path_PERL
="$ac_dir/$ac_word"
1973 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="/usr/local/bin/perl"
1977 PERL
="$ac_cv_path_PERL"
1978 if test -n "$PERL"; then
1979 echo "$ac_t""$PERL" 1>&6
1981 echo "$ac_t""no" 1>&6
1984 # Extract the first word of "makedepend", so it can be a program name with args.
1985 set dummy makedepend
; ac_word
=$2
1986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_word" >&5
1988 if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPEND'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 case "$MAKEDEPEND" in
1993 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
1996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1997 for ac_dir
in $PATH; do
1998 test -z "$ac_dir" && ac_dir
=.
1999 if test -f $ac_dir/$ac_word; then
2000 ac_cv_path_MAKEDEPEND
="$ac_dir/$ac_word"
2005 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUE"
2009 MAKEDEPEND
="$ac_cv_path_MAKEDEPEND"
2010 if test -n "$MAKEDEPEND"; then
2011 echo "$ac_t""$MAKEDEPEND" 1>&6
2013 echo "$ac_t""no" 1>&6
2016 # Extract the first word of "ar", so it can be a program name with args.
2017 set dummy
ar; ac_word
=$2
2018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_word" >&5
2020 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2025 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
2028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2029 for ac_dir
in $PATH; do
2030 test -z "$ac_dir" && ac_dir
=.
2031 if test -f $ac_dir/$ac_word; then
2032 ac_cv_path_AR
="$ac_dir/$ac_word"
2037 test -z "$ac_cv_path_AR" && ac_cv_path_AR
="$FALSE"
2042 if test -n "$AR"; then
2043 echo "$ac_t""$AR" 1>&6
2045 echo "$ac_t""no" 1>&6
2051 echo "Disabling 'ranlib' for HP-UX..."
2065 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2067 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_hdr that defines DIR" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 #include <sys/types.h>
2082 if { (eval echo configure
:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2084 eval "ac_cv_header_dirent_$ac_safe=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2089 eval "ac_cv_header_dirent_$ac_safe=no"
2093 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2096 cat >> confdefs.h
<<EOF
2097 #define $ac_tr_hdr 1
2099 ac_header_dirent
=$ac_hdr; break
2101 echo "$ac_t""no" 1>&6
2104 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2105 if test $ac_header_dirent = dirent.h
; then
2106 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2107 echo "configure:2108: checking for opendir in -ldir" >&5
2108 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 ac_save_LIBS
="$LIBS"
2114 cat > conftest.
$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 /* Override any gcc2 internal prototype to avoid an error. */
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2126 if { (eval echo configure
:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2128 eval "ac_cv_lib_$ac_lib_var=yes"
2130 echo "configure: failed program was:" >&5
2131 cat conftest.
$ac_ext >&5
2133 eval "ac_cv_lib_$ac_lib_var=no"
2136 LIBS
="$ac_save_LIBS"
2139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2143 echo "$ac_t""no" 1>&6
2147 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2148 echo "configure:2149: checking for opendir in -lx" >&5
2149 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 ac_save_LIBS
="$LIBS"
2155 cat > conftest.
$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* Override any gcc2 internal prototype to avoid an error. */
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2167 if { (eval echo configure
:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2169 eval "ac_cv_lib_$ac_lib_var=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2174 eval "ac_cv_lib_$ac_lib_var=no"
2177 LIBS
="$ac_save_LIBS"
2180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2184 echo "$ac_t""no" 1>&6
2189 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2190 echo "configure:2191: checking for ANSI C header files" >&5
2191 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2202 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure
:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err
=`grep -v '^ *+' conftest.out`
2205 if test -z "$ac_err"; then
2207 ac_cv_header_stdc
=yes
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 ac_cv_header_stdc
=no
2217 if test $ac_cv_header_stdc = yes; then
2218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2225 egrep "memchr" >/dev
/null
2>&1; then
2229 ac_cv_header_stdc
=no
2235 if test $ac_cv_header_stdc = yes; then
2236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2243 egrep "free" >/dev
/null
2>&1; then
2247 ac_cv_header_stdc
=no
2253 if test $ac_cv_header_stdc = yes; then
2254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2255 if test "$cross_compiling" = yes; then
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2262 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2263 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2265 int main () { int i; for (i = 0; i < 256; i++)
2266 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 ac_cv_header_stdc
=no
2285 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2286 if test $ac_cv_header_stdc = yes; then
2287 cat >> confdefs.h
<<\EOF
2288 #define STDC_HEADERS 1
2320 netinet
/ip_compat.h \
2356 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_hdr" >&5
2359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2368 { (eval echo configure
:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2369 ac_err
=`grep -v '^ *+' conftest.out`
2370 if test -z "$ac_err"; then
2372 eval "ac_cv_header_$ac_safe=yes"
2375 echo "configure: failed program was:" >&5
2376 cat conftest.
$ac_ext >&5
2378 eval "ac_cv_header_$ac_safe=no"
2382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2385 cat >> confdefs.h
<<EOF
2386 #define $ac_tr_hdr 1
2390 echo "$ac_t""no" 1>&6
2395 echo $ac_n "checking for working const""... $ac_c" 1>&6
2396 echo "configure:2397: checking for working const" >&5
2397 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2406 /* Ultrix mips cc rejects this. */
2407 typedef int charset[2]; const charset x;
2408 /* SunOS 4.1.1 cc rejects this. */
2409 char const *const *ccp;
2411 /* NEC SVR4.0.2 mips cc rejects this. */
2412 struct point {int x, y;};
2413 static struct point const zero = {0,0};
2414 /* AIX XL C 1.02.0.0 rejects this.
2415 It does not let you subtract one const X* pointer from another in an arm
2416 of an if-expression whose if-part is not a constant expression */
2417 const char *g = "string";
2418 ccp = &g + (g ? g-g : 0);
2419 /* HPUX 7.0 cc rejects these. */
2422 ccp = (char const *const *) p;
2423 { /* SCO 3.2v4 cc rejects this. */
2425 char const *s = 0 ? (char *) 0 : (char const *) 0;
2429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2431 const int *foo = &x[0];
2434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2435 typedef const int *iptr;
2439 { /* AIX XL C 1.02.0.0 rejects this saying
2440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2441 struct s { int j; const int *ap[3]; };
2442 struct s *b; b->j = 5;
2444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2450 if { (eval echo configure
:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2462 echo "$ac_t""$ac_cv_c_const" 1>&6
2463 if test $ac_cv_c_const = no
; then
2464 cat >> confdefs.h
<<\EOF
2470 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2471 echo "configure:2472: checking whether byte ordering is bigendian" >&5
2472 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 ac_cv_c_bigendian
=unknown
2476 # See if sys/param.h defines the BYTE_ORDER macro.
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 #include <sys/types.h>
2481 #include <sys/param.h>
2484 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2489 if { (eval echo configure
:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2491 # It does; now see whether it defined to BIG_ENDIAN or not.
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 #include <sys/types.h>
2496 #include <sys/param.h>
2499 #if BYTE_ORDER != BIG_ENDIAN
2504 if { (eval echo configure
:2505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2506 ac_cv_c_bigendian
=yes
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2511 ac_cv_c_bigendian
=no
2515 echo "configure: failed program was:" >&5
2516 cat conftest.
$ac_ext >&5
2519 if test $ac_cv_c_bigendian = unknown
; then
2520 if test "$cross_compiling" = yes; then
2521 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2523 cat > conftest.
$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2527 /* Are we little or big endian? From Harbison&Steele. */
2531 char c[sizeof (long)];
2534 exit (u.c[sizeof (long) - 1] == 1);
2537 if { (eval echo configure
:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2539 ac_cv_c_bigendian
=no
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 ac_cv_c_bigendian
=yes
2552 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2553 if test $ac_cv_c_bigendian = yes; then
2554 cat >> confdefs.h
<<\EOF
2555 #define WORDS_BIGENDIAN 1
2561 echo $ac_n "checking if ANSI prototypes work""... $ac_c" 1>&6
2562 echo "configure:2563: checking if ANSI prototypes work" >&5
2563 if eval "test \"`echo '$''{'ac_cv_have_ansi_prototypes'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 int foo(char *); int foo (char *bar) {return 1;}
2575 if { (eval echo configure
:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2577 ac_cv_have_ansi_prototypes
="yes"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.
$ac_ext >&5
2582 ac_cv_have_ansi_prototypes
="no"
2588 echo "$ac_t""$ac_cv_have_ansi_prototypes" 1>&6
2589 if test $ac_cv_have_ansi_prototypes = "yes" ; then
2590 cat >> confdefs.h
<<\EOF
2591 #define HAVE_ANSI_PROTOTYPES 1
2596 echo $ac_n "checking for tm->tm_gmtoff""... $ac_c" 1>&6
2597 echo "configure:2598: checking for tm->tm_gmtoff" >&5
2598 if eval "test \"`echo '$''{'ac_cv_have_tm_gmoff'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2606 #include <sys/time.h>
2612 if { (eval echo configure
:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 ac_cv_have_tm_gmoff
="yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2619 ac_cv_have_tm_gmoff
="no"
2625 echo "$ac_t""$ac_cv_have_tm_gmoff" 1>&6
2626 if test $ac_cv_have_tm_gmoff = "yes" ; then
2627 cat >> confdefs.h
<<\EOF
2628 #define HAVE_TM_GMTOFF 1
2633 echo $ac_n "checking for struct mallinfo""... $ac_c" 1>&6
2634 echo "configure:2635: checking for struct mallinfo" >&5
2635 if eval "test \"`echo '$''{'ac_cv_have_struct_mallinfo'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <sys/types.h>
2647 struct mallinfo foo;
2658 if { (eval echo configure
:2659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2660 ac_cv_have_struct_mallinfo
="yes"
2662 echo "configure: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2665 ac_cv_have_struct_mallinfo
="no"
2671 echo "$ac_t""$ac_cv_have_struct_mallinfo" 1>&6
2672 if test $ac_cv_have_struct_mallinfo = "yes" ; then
2673 cat >> confdefs.h
<<\EOF
2674 #define HAVE_STRUCT_MALLINFO 1
2679 echo $ac_n "checking for extended mallinfo""... $ac_c" 1>&6
2680 echo "configure:2681: checking for extended mallinfo" >&5
2681 if eval "test \"`echo '$''{'ac_cv_have_ext_mallinfo'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.
$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 #include <sys/types.h>
2691 struct mallinfo foo;
2695 if { (eval echo configure
:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 ac_cv_have_ext_mallinfo
="yes"
2699 echo "configure: failed program was:" >&5
2700 cat conftest.
$ac_ext >&5
2702 ac_cv_have_ext_mallinfo
="no"
2708 echo "$ac_t""$ac_cv_have_ext_mallinfo" 1>&6
2709 if test $ac_cv_have_ext_mallinfo = "yes" ; then
2710 cat >> confdefs.h
<<\EOF
2711 #define HAVE_EXT_MALLINFO 1
2716 echo $ac_n "checking for struct rusage""... $ac_c" 1>&6
2717 echo "configure:2718: checking for struct rusage" >&5
2718 if eval "test \"`echo '$''{'ac_cv_have_struct_rusage'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 #include <sys/time.h>
2729 #if HAVE_SYS_RESOURCE_H
2730 #include <sys/resource.h>
2736 if { (eval echo configure
:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2738 ac_cv_have_struct_rusage
="yes"
2740 echo "configure: failed program was:" >&5
2741 cat conftest.
$ac_ext >&5
2743 ac_cv_have_struct_rusage
="no"
2749 echo "$ac_t""$ac_cv_have_struct_rusage" 1>&6
2750 if test $ac_cv_have_struct_rusage = "yes" ; then
2751 cat >> confdefs.h
<<\EOF
2752 #define HAVE_STRUCT_RUSAGE 1
2757 echo $ac_n "checking for ip->ip_hl""... $ac_c" 1>&6
2758 echo "configure:2759: checking for ip->ip_hl" >&5
2759 if eval "test \"`echo '$''{'ac_cv_have_ip_hl'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2763 cat > conftest.
$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 #include <sys/types.h>
2767 #include <netinet/in.h>
2768 #include <netinet/in_systm.h>
2769 #include <netinet/ip.h>
2781 if { (eval echo configure
:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2783 ac_cv_have_ip_hl
="yes"
2785 echo "configure: failed program was:" >&5
2786 cat conftest.
$ac_ext >&5
2788 ac_cv_have_ip_hl
="no"
2794 echo "$ac_t""$ac_cv_have_ip_hl" 1>&6
2795 if test $ac_cv_have_ip_hl = "yes" ; then
2796 cat >> confdefs.h
<<\EOF
2797 #define HAVE_IP_HL 1
2802 echo $ac_n "checking size of int""... $ac_c" 1>&6
2803 echo "configure:2804: checking size of int" >&5
2804 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 if test "$cross_compiling" = yes; then
2808 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2810 cat > conftest.
$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2816 FILE *f=fopen("conftestval", "w");
2818 fprintf(f, "%d\n", sizeof(int));
2822 if { (eval echo configure
:2823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2824 ac_cv_sizeof_int
=`cat conftestval`
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2835 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2836 cat >> confdefs.h
<<EOF
2837 #define SIZEOF_INT $ac_cv_sizeof_int
2841 echo $ac_n "checking size of long""... $ac_c" 1>&6
2842 echo "configure:2843: checking size of long" >&5
2843 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 if test "$cross_compiling" = yes; then
2847 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2849 cat > conftest.
$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2855 FILE *f=fopen("conftestval", "w");
2857 fprintf(f, "%d\n", sizeof(long));
2861 if { (eval echo configure
:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2863 ac_cv_sizeof_long
=`cat conftestval`
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2874 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2875 cat >> confdefs.h
<<EOF
2876 #define SIZEOF_LONG $ac_cv_sizeof_long
2880 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2881 echo "configure:2882: checking size of void *" >&5
2882 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 if test "$cross_compiling" = yes; then
2886 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2888 cat > conftest.
$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2894 FILE *f=fopen("conftestval", "w");
2896 fprintf(f, "%d\n", sizeof(void *));
2900 if { (eval echo configure
:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2902 ac_cv_sizeof_void_p
=`cat conftestval`
2904 echo "configure: failed program was:" >&5
2905 cat conftest.
$ac_ext >&5
2907 ac_cv_sizeof_void_p
=0
2913 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2914 cat >> confdefs.h
<<EOF
2915 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2920 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2921 # for constant arguments. Useless!
2922 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2923 echo "configure:2924: checking for working alloca.h" >&5
2924 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 cat > conftest.
$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2932 char *p = alloca(2 * sizeof(int));
2935 if { (eval echo configure
:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2937 ac_cv_header_alloca_h
=yes
2939 echo "configure: failed program was:" >&5
2940 cat conftest.
$ac_ext >&5
2942 ac_cv_header_alloca_h
=no
2947 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2948 if test $ac_cv_header_alloca_h = yes; then
2949 cat >> confdefs.h
<<\EOF
2950 #define HAVE_ALLOCA_H 1
2955 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2956 echo "configure:2957: checking for alloca" >&5
2957 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 # define alloca __builtin_alloca
2968 # include <alloca.h>
2973 # ifndef alloca /* predefined by HP cc +Olibcalls */
2981 char *p = (char *) alloca(1);
2984 if { (eval echo configure
:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2986 ac_cv_func_alloca_works
=yes
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 ac_cv_func_alloca_works
=no
2996 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2997 if test $ac_cv_func_alloca_works = yes; then
2998 cat >> confdefs.h
<<\EOF
2999 #define HAVE_ALLOCA 1
3004 if test $ac_cv_func_alloca_works = no
; then
3005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3006 # that cause trouble. Some versions do not even contain alloca or
3007 # contain a buggy version. If you still want to use their alloca,
3008 # use ar to extract alloca.o from them instead of compiling alloca.c.
3010 cat >> confdefs.h
<<\EOF
3015 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3016 echo "configure:3017: checking whether alloca needs Cray hooks" >&5
3017 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.
$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #if defined(CRAY) && ! defined(CRAY2)
3030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3031 egrep "webecray" >/dev
/null
2>&1; then
3042 echo "$ac_t""$ac_cv_os_cray" 1>&6
3043 if test $ac_cv_os_cray = yes; then
3044 for ac_func
in _getb67 GETB67 getb67
; do
3045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_func" >&5
3047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.
$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 /* System header to define __stub macros and hopefully few prototypes,
3054 which can conflict with char $ac_func(); below. */
3056 /* Override any gcc2 internal prototype to avoid an error. */
3057 /* We use char because int might match the return type of a gcc2
3058 builtin and then its argument prototype would still apply. */
3063 /* The GNU C library defines this for functions which it implements
3064 to always fail with ENOSYS. Some functions are actually named
3065 something starting with __ and the normal name is an alias. */
3066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3074 if { (eval echo configure
:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3076 eval "ac_cv_func_$ac_func=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.
$ac_ext >&5
3081 eval "ac_cv_func_$ac_func=no"
3086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 cat >> confdefs.h
<<EOF
3089 #define CRAY_STACKSEG_END $ac_func
3094 echo "$ac_t""no" 1>&6
3100 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3101 echo "configure:3102: checking stack direction for C alloca" >&5
3102 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 if test "$cross_compiling" = yes; then
3106 ac_cv_c_stack_direction
=0
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 find_stack_direction ()
3113 static char *addr = 0;
3118 return find_stack_direction ();
3121 return (&dummy > addr) ? 1 : -1;
3125 exit (find_stack_direction() < 0);
3128 if { (eval echo configure
:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3130 ac_cv_c_stack_direction
=1
3132 echo "configure: failed program was:" >&5
3133 cat conftest.
$ac_ext >&5
3135 ac_cv_c_stack_direction
=-1
3142 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3143 cat >> confdefs.h
<<EOF
3144 #define STACK_DIRECTION $ac_cv_c_stack_direction
3150 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3151 echo "configure:3152: checking for pid_t" >&5
3152 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 cat > conftest.
$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 #include <sys/types.h>
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3167 ac_cv_type_pid_t
=yes
3175 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3176 if test $ac_cv_type_pid_t = no
; then
3177 cat >> confdefs.h
<<\EOF
3183 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3184 echo "configure:3185: checking for size_t" >&5
3185 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 cat > conftest.
$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #include <sys/types.h>
3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3198 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3200 ac_cv_type_size_t
=yes
3203 ac_cv_type_size_t
=no
3208 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3209 if test $ac_cv_type_size_t = no
; then
3210 cat >> confdefs.h
<<\EOF
3211 #define size_t unsigned int
3216 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3217 echo "configure:3218: checking for ssize_t" >&5
3218 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 cat > conftest.
$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 egrep "ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3233 ac_cv_type_ssize_t
=yes
3236 ac_cv_type_ssize_t
=no
3241 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3242 if test $ac_cv_type_ssize_t = no
; then
3243 cat >> confdefs.h
<<\EOF
3249 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3250 echo "configure:3251: checking for off_t" >&5
3251 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.
$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 #include <sys/types.h>
3263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3266 ac_cv_type_off_t
=yes
3274 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3275 if test $ac_cv_type_off_t = no
; then
3276 cat >> confdefs.h
<<\EOF
3282 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3283 echo "configure:3284: checking for mode_t" >&5
3284 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.
$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3299 ac_cv_type_mode_t
=yes
3302 ac_cv_type_mode_t
=no
3307 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3308 if test $ac_cv_type_mode_t = no
; then
3309 cat >> confdefs.h
<<\EOF
3310 #define mode_t u_short
3315 echo $ac_n "checking for fd_mask""... $ac_c" 1>&6
3316 echo "configure:3317: checking for fd_mask" >&5
3317 if eval "test \"`echo '$''{'ac_cv_type_fd_mask'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 #include <sys/types.h>
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 egrep "fd_mask[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3332 ac_cv_type_fd_mask
=yes
3335 ac_cv_type_fd_mask
=no
3340 echo "$ac_t""$ac_cv_type_fd_mask" 1>&6
3341 if test $ac_cv_type_fd_mask = no
; then
3342 cat >> confdefs.h
<<\EOF
3348 echo $ac_n "checking for mtyp_t""... $ac_c" 1>&6
3349 echo "configure:3350: checking for mtyp_t" >&5
3350 if eval "test \"`echo '$''{'ac_cv_type_mtyp_t'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.
$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3363 egrep "mtyp_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3365 ac_cv_type_mtyp_t
=yes
3368 ac_cv_type_mtyp_t
=no
3373 echo "$ac_t""$ac_cv_type_mtyp_t" 1>&6
3374 if test $ac_cv_type_mtyp_t = no
; then
3375 cat >> confdefs.h
<<\EOF
3382 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3383 echo "configure:3384: checking for socklen_t" >&5
3384 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3392 #include <sys/socket.h>
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3401 ac_cv_type_socklen_t
=yes
3404 ac_cv_type_socklen_t
=no
3411 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3412 if test $ac_cv_type_socklen_t = no
; then
3413 cat >> confdefs.h
<<\EOF
3414 #define socklen_t int
3419 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3420 echo "configure:3421: checking for main in -lnsl" >&5
3421 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 ac_save_LIBS
="$LIBS"
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3435 if { (eval echo configure
:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3437 eval "ac_cv_lib_$ac_lib_var=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.
$ac_ext >&5
3442 eval "ac_cv_lib_$ac_lib_var=no"
3445 LIBS
="$ac_save_LIBS"
3448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3450 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3452 cat >> confdefs.h
<<EOF
3453 #define $ac_tr_lib 1
3459 echo "$ac_t""no" 1>&6
3462 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3463 echo "configure:3464: checking for main in -lsocket" >&5
3464 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 ac_save_LIBS
="$LIBS"
3469 LIBS
="-lsocket $LIBS"
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3478 if { (eval echo configure
:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3480 eval "ac_cv_lib_$ac_lib_var=yes"
3482 echo "configure: failed program was:" >&5
3483 cat conftest.
$ac_ext >&5
3485 eval "ac_cv_lib_$ac_lib_var=no"
3488 LIBS
="$ac_save_LIBS"
3491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3495 cat >> confdefs.h
<<EOF
3496 #define $ac_tr_lib 1
3499 LIBS
="-lsocket $LIBS"
3502 echo "$ac_t""no" 1>&6
3506 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
3507 echo "skipping libmalloc check (--enable-dlmalloc specified)"
3509 echo $ac_n "checking for main in -lgnumalloc""... $ac_c" 1>&6
3510 echo "configure:3511: checking for main in -lgnumalloc" >&5
3511 ac_lib_var
=`echo gnumalloc'_'main | sed 'y%./+-%__p_%'`
3512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 ac_save_LIBS
="$LIBS"
3516 LIBS
="-lgnumalloc $LIBS"
3517 cat > conftest.
$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3525 if { (eval echo configure
:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3527 eval "ac_cv_lib_$ac_lib_var=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.
$ac_ext >&5
3532 eval "ac_cv_lib_$ac_lib_var=no"
3535 LIBS
="$ac_save_LIBS"
3538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 ac_tr_lib
=HAVE_LIB
`echo gnumalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3542 cat >> confdefs.h
<<EOF
3543 #define $ac_tr_lib 1
3546 LIBS
="-lgnumalloc $LIBS"
3549 echo "$ac_t""no" 1>&6
3552 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
3553 echo "Disabling extended malloc functions when using gnumalloc"
3554 ac_cv_func_mallinfo
=no
3555 ac_cv_func_mallocblksize
=no
3556 ac_cv_func_mallopt
=no
3560 echo "skipping libmalloc check for $host"
3563 echo "skipping libmalloc check for $host"
3567 echo $ac_n "checking for main in -lmalloc""... $ac_c" 1>&6
3568 echo "configure:3569: checking for main in -lmalloc" >&5
3569 ac_lib_var
=`echo malloc'_'main | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_save_LIBS
="$LIBS"
3574 LIBS
="-lmalloc $LIBS"
3575 cat > conftest.
$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3583 if { (eval echo configure
:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3585 eval "ac_cv_lib_$ac_lib_var=yes"
3587 echo "configure: failed program was:" >&5
3588 cat conftest.
$ac_ext >&5
3590 eval "ac_cv_lib_$ac_lib_var=no"
3593 LIBS
="$ac_save_LIBS"
3596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3598 ac_tr_lib
=HAVE_LIB
`echo malloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3600 cat >> confdefs.h
<<EOF
3601 #define $ac_tr_lib 1
3604 LIBS
="-lmalloc $LIBS"
3607 echo "$ac_t""no" 1>&6
3615 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3616 echo "configure:3617: checking for main in -lbsd" >&5
3617 ac_lib_var
=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 ac_save_LIBS
="$LIBS"
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3631 if { (eval echo configure
:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3633 eval "ac_cv_lib_$ac_lib_var=yes"
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 eval "ac_cv_lib_$ac_lib_var=no"
3641 LIBS
="$ac_save_LIBS"
3644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 ac_tr_lib
=HAVE_LIB
`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3648 cat >> confdefs.h
<<EOF
3649 #define $ac_tr_lib 1
3655 echo "$ac_t""no" 1>&6
3658 echo $ac_n "checking for main in -lregex""... $ac_c" 1>&6
3659 echo "configure:3660: checking for main in -lregex" >&5
3660 ac_lib_var
=`echo regex'_'main | sed 'y%./+-%__p_%'`
3661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3664 ac_save_LIBS
="$LIBS"
3665 LIBS
="-lregex $LIBS"
3666 cat > conftest.
$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3674 if { (eval echo configure
:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3676 eval "ac_cv_lib_$ac_lib_var=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.
$ac_ext >&5
3681 eval "ac_cv_lib_$ac_lib_var=no"
3684 LIBS
="$ac_save_LIBS"
3687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3688 echo "$ac_t""yes" 1>&6
3691 echo "$ac_t""no" 1>&6
3694 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3695 echo "configure:3696: checking for gethostbyname in -lbind" >&5
3696 ac_lib_var
=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 ac_save_LIBS
="$LIBS"
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3708 char gethostbyname();
3714 if { (eval echo configure
:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3716 eval "ac_cv_lib_$ac_lib_var=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.
$ac_ext >&5
3721 eval "ac_cv_lib_$ac_lib_var=no"
3724 LIBS
="$ac_save_LIBS"
3727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_lib
=HAVE_LIB
`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3731 cat >> confdefs.h
<<EOF
3732 #define $ac_tr_lib 1
3738 echo "$ac_t""no" 1>&6
3741 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
3744 echo "skipping libresolv checks for $host"
3747 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3748 echo "configure:3749: checking for inet_aton in -lresolv" >&5
3749 ac_lib_var
=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 ac_save_LIBS
="$LIBS"
3754 LIBS
="-lresolv $LIBS"
3755 cat > conftest.
$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 /* Override any gcc2 internal prototype to avoid an error. */
3759 /* We use char because int might match the return type of a gcc2
3760 builtin and then its argument prototype would still apply. */
3767 if { (eval echo configure
:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3769 eval "ac_cv_lib_$ac_lib_var=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.
$ac_ext >&5
3774 eval "ac_cv_lib_$ac_lib_var=no"
3777 LIBS
="$ac_save_LIBS"
3780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3782 echo $ac_n "checking for inet_aton in -l44bsd""... $ac_c" 1>&6
3783 echo "configure:3784: checking for inet_aton in -l44bsd" >&5
3784 ac_lib_var
=`echo 44bsd'_'inet_aton | sed 'y%./+-%__p_%'`
3785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 ac_save_LIBS
="$LIBS"
3789 LIBS
="-l44bsd $LIBS"
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* Override any gcc2 internal prototype to avoid an error. */
3794 /* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3802 if { (eval echo configure
:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3804 eval "ac_cv_lib_$ac_lib_var=yes"
3806 echo "configure: failed program was:" >&5
3807 cat conftest.
$ac_ext >&5
3809 eval "ac_cv_lib_$ac_lib_var=no"
3812 LIBS
="$ac_save_LIBS"
3815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 ac_tr_lib
=HAVE_LIB
`echo 44bsd | sed -e 's/^a-zA-Z0-9_/_/g' \
3818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3819 cat >> confdefs.h
<<EOF
3820 #define $ac_tr_lib 1
3823 LIBS
="-l44bsd $LIBS"
3826 echo "$ac_t""no" 1>&6
3830 echo "$ac_t""no" 1>&6
3833 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3834 echo "configure:3835: checking for main in -lresolv" >&5
3835 ac_lib_var
=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 ac_save_LIBS
="$LIBS"
3840 LIBS
="-lresolv $LIBS"
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3849 if { (eval echo configure
:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3851 eval "ac_cv_lib_$ac_lib_var=yes"
3853 echo "configure: failed program was:" >&5
3854 cat conftest.
$ac_ext >&5
3856 eval "ac_cv_lib_$ac_lib_var=no"
3859 LIBS
="$ac_save_LIBS"
3862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3863 echo "$ac_t""yes" 1>&6
3864 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3865 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3866 cat >> confdefs.h
<<EOF
3867 #define $ac_tr_lib 1
3870 LIBS
="-lresolv $LIBS"
3873 echo "$ac_t""no" 1>&6
3879 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3880 echo "configure:3881: checking for main in -lm" >&5
3881 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 ac_save_LIBS
="$LIBS"
3887 cat > conftest.
$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3895 if { (eval echo configure
:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3897 eval "ac_cv_lib_$ac_lib_var=yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3902 eval "ac_cv_lib_$ac_lib_var=no"
3905 LIBS
="$ac_save_LIBS"
3908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3912 cat >> confdefs.h
<<EOF
3913 #define $ac_tr_lib 1
3919 echo "$ac_t""no" 1>&6
3923 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3924 echo "configure:3925: checking for crypt in -lcrypt" >&5
3925 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 ac_save_LIBS
="$LIBS"
3930 LIBS
="-lcrypt $LIBS"
3931 cat > conftest.
$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3943 if { (eval echo configure
:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3945 eval "ac_cv_lib_$ac_lib_var=yes"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.
$ac_ext >&5
3950 eval "ac_cv_lib_$ac_lib_var=no"
3953 LIBS
="$ac_save_LIBS"
3956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3958 ac_tr_lib
=HAVE_LIB
`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3960 cat >> confdefs.h
<<EOF
3961 #define $ac_tr_lib 1
3964 LIBS
="-lcrypt $LIBS"
3967 echo "$ac_t""no" 1>&6
3970 if test $ac_cv_lib_crypt_crypt = "yes"; then
3975 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
3976 echo "configure:3977: checking for main in -lpthread" >&5
3977 ac_lib_var
=`echo pthread'_'main | sed 'y%./+-%__p_%'`
3978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 ac_save_LIBS
="$LIBS"
3982 LIBS
="-lpthread $LIBS"
3983 cat > conftest.
$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3991 if { (eval echo configure
:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3993 eval "ac_cv_lib_$ac_lib_var=yes"
3995 echo "configure: failed program was:" >&5
3996 cat conftest.
$ac_ext >&5
3998 eval "ac_cv_lib_$ac_lib_var=no"
4001 LIBS
="$ac_save_LIBS"
4004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4006 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4008 cat >> confdefs.h
<<EOF
4009 #define $ac_tr_lib 1
4012 LIBS
="-lpthread $LIBS"
4015 echo "$ac_t""no" 1>&6
4018 if test $ac_cv_lib_pthread_main = "yes"; then
4019 PTHREADLIB
="-lpthread"
4025 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4026 echo "configure:4027: checking for strftime in -lintl" >&5
4027 ac_lib_var
=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 ac_save_LIBS
="$LIBS"
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4045 if { (eval echo configure
:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4052 eval "ac_cv_lib_$ac_lib_var=no"
4055 LIBS
="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4061 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4062 cat >> confdefs.h
<<EOF
4063 #define $ac_tr_lib 1
4069 echo "$ac_t""no" 1>&6
4077 if test "$GCC" = "yes"; then
4078 echo "Removing -O for gcc on $host"
4079 CFLAGS
="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
4083 echo "Removing -lsocket for IRIX..."
4084 LIBS
=`echo $LIBS | sed -e s/-lsocket//`
4085 echo "Removing -lnsl for IRIX..."
4086 LIBS
=`echo $LIBS | sed -e s/-lnsl//`
4087 echo "Removing -lbsd for IRIX..."
4088 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
4091 echo "Removing -lbsd for AIX..."
4092 LIBS
=`echo $LIBS | sed -e s/-lbsd//`
4093 echo "disabling snprintf/vsnprintf for $host"
4094 ac_cv_func_snprintf
=no
4095 ac_cv_func_vsnprintf
=no
4098 CFLAGS
="$CFLAGS -D_SQUID_MOTOROLA_"
4099 cat >> confdefs.h
<<\EOF
4100 #define GETTIMEOFDAY_NO_TZP 1
4105 cat >> confdefs.h
<<\EOF
4106 #define GETTIMEOFDAY_NO_TZP 1
4111 cat >> confdefs.h
<<\EOF
4112 #define GETTIMEOFDAY_NO_TZP 1
4118 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
4121 if test `uname -v` = "2.03"; then
4122 echo "disabling mallinfo for $host"
4123 ac_cv_func_mallinfo
=no
4128 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
4129 # when running configure.
4130 if test -z "$ac_cv_func_poll"; then
4133 # John Kay (jkay@nlanr.net) 19970818
4134 echo "disabling poll for $host..."
4135 ac_cv_func_poll
='no'
4139 echo "disabling poll for $host..."
4140 ac_cv_func_poll
='no'
4143 # Henrik Nordstrom (hno@hem.passagen.se) 19980817
4144 # poll is problematic on Linux. We disable it
4145 # by default until Linux gets it right.
4146 rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
4147 if test $rev -lt 002002; then
4148 echo "disabling poll for $host < 2.2..."
4149 ac_cv_func_poll
='no'
4152 powerpc-ibm-aix4.1.
*)
4153 # Mike Laster (mlaster@metavillage.com) 19981021
4154 echo "disabling poll for $host..."
4155 ac_cv_func_poll
='no'
4158 # Robert Side <rside@aiinc.bc.ca>
4159 # Mon, 18 Jan 1999 17:48:00 GMT
4160 echo "disabling poll for $host..."
4161 ac_cv_func_poll
='no'
4206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4207 echo "configure:4208: checking for $ac_func" >&5
4208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 cat > conftest.
$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* System header to define __stub macros and hopefully few prototypes,
4215 which can conflict with char $ac_func(); below. */
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4224 /* The GNU C library defines this for functions which it implements
4225 to always fail with ENOSYS. Some functions are actually named
4226 something starting with __ and the normal name is an alias. */
4227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4235 if { (eval echo configure
:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4237 eval "ac_cv_func_$ac_func=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4242 eval "ac_cv_func_$ac_func=no"
4247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4250 cat >> confdefs.h
<<EOF
4251 #define $ac_tr_func 1
4255 echo "$ac_t""no" 1>&6
4260 if test "$async_io" = "yes" ; then
4262 pthread_attr_setscope \
4263 pthread_setschedparam \
4264 pthread_attr_setschedparam \
4267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4268 echo "configure:4269: checking for $ac_func" >&5
4269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.
$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* System header to define __stub macros and hopefully few prototypes,
4276 which can conflict with char $ac_func(); below. */
4278 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4285 /* The GNU C library defines this for functions which it implements
4286 to always fail with ENOSYS. Some functions are actually named
4287 something starting with __ and the normal name is an alias. */
4288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4296 if { (eval echo configure
:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4298 eval "ac_cv_func_$ac_func=yes"
4300 echo "configure: failed program was:" >&5
4301 cat conftest.
$ac_ext >&5
4303 eval "ac_cv_func_$ac_func=no"
4308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4311 cat >> confdefs.h
<<EOF
4312 #define $ac_tr_func 1
4316 echo "$ac_t""no" 1>&6
4322 echo $ac_n "checking if setresuid is implemented""... $ac_c" 1>&6
4323 echo "configure:4324: checking if setresuid is implemented" >&5
4324 if eval "test \"`echo '$''{'ac_cv_func_setresuid'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 if test "$cross_compiling" = yes; then
4328 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4330 cat > conftest.
$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4336 if(setresuid(-1,-1,-1)) {
4337 perror("setresuid:");
4344 if { (eval echo configure
:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4346 ac_cv_func_setresuid
="yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 ac_cv_func_setresuid
="no"
4359 echo "$ac_t""$ac_cv_func_setresuid" 1>&6
4360 if test "$ac_cv_func_setresuid" = "yes" ; then
4361 cat >> confdefs.h
<<\EOF
4362 #define HAVE_SETRESUID 1
4367 if test "$IPF_TRANSPARENT" ; then
4368 echo $ac_n "checking if IP-Filter header files are installed""... $ac_c" 1>&6
4369 echo "configure:4370: checking if IP-Filter header files are installed" >&5
4370 if test "$ac_cv_header_ip_compat_h" = "yes" &&
4371 test "$ac_cv_header_ip_fil_h" = "yes" &&
4372 test "$ac_cv_header_ip_nat_h" = "yes" ; then
4373 IPF_TRANSPARENT
="yes"
4374 cat >> confdefs.h
<<\EOF
4375 #define IPF_TRANSPARENT 1
4378 elif test "$ac_cv_header_netinet_ip_compat_h" = "yes" &&
4379 test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
4380 test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
4381 IPF_TRANSPARENT
="yes"
4382 cat >> confdefs.h
<<\EOF
4383 #define IPF_TRANSPARENT 1
4387 IPF_TRANSPARENT
="no"
4388 cat >> confdefs.h
<<\EOF
4389 #define IPF_TRANSPARENT 0
4393 echo "$ac_t""$IPF_TRANSPARENT" 1>&6
4395 if test "$IPF_TRANSPARENT" = "no" ; then
4396 echo "WARNING: Cannot find necessary IP-Filter header files"
4397 echo " Transparent Proxy support WILL NOT be enabled"
4401 if test -z "$USE_GNUREGEX" ; then
4403 *-sun-solaris2.
[0-4])
4411 echo $ac_n "checking if GNUregex needs to be compiled""... $ac_c" 1>&6
4412 echo "configure:4413: checking if GNUregex needs to be compiled" >&5
4413 if test -z "$USE_GNUREGEX"; then
4414 if test "$ac_cv_func_regcomp" = "no" ||
test "$USE_GNUREGEX" = "yes" ; then
4417 cat > conftest.
$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 #include <sys/types.h>
4423 regex_t t; regcomp(&t,"",0);
4426 if { (eval echo configure
:4427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4438 echo "$ac_t""$USE_GNUREGEX" 1>&6
4439 if test "$USE_GNUREGEX" = "yes"; then
4441 LIBREGEX
="libregex.a"
4442 cat >> confdefs.h
<<\EOF
4443 #define USE_GNUREGEX 1
4456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_func" >&5
4458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 cat > conftest.
$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 /* System header to define __stub macros and hopefully few prototypes,
4465 which can conflict with char $ac_func(); below. */
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 /* We use char because int might match the return type of a gcc2
4469 builtin and then its argument prototype would still apply. */
4474 /* The GNU C library defines this for functions which it implements
4475 to always fail with ENOSYS. Some functions are actually named
4476 something starting with __ and the normal name is an alias. */
4477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4485 if { (eval echo configure
:4486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4487 eval "ac_cv_func_$ac_func=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.
$ac_ext >&5
4492 eval "ac_cv_func_$ac_func=no"
4497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4500 cat >> confdefs.h
<<EOF
4501 #define $ac_tr_func 1
4505 echo "$ac_t""no" 1>&6
4506 LIBOBJS
="$LIBOBJS ${ac_func}.o"
4512 echo $ac_n "checking Default FD_SETSIZE value""... $ac_c" 1>&6
4513 echo "configure:4514: checking Default FD_SETSIZE value" >&5
4514 if test "$cross_compiling" = yes; then
4515 DEFAULT_FD_SETSIZE
=256
4517 cat > conftest.
$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4528 #include <sys/time.h>
4530 #if HAVE_SYS_SELECT_H
4531 #include <sys/select.h>
4533 #if HAVE_SYS_TYPES_H
4534 #include <sys/types.h>
4537 FILE *fp = fopen("conftestval", "w");
4538 fprintf (fp, "%d\n", FD_SETSIZE);
4543 if { (eval echo configure
:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4545 DEFAULT_FD_SETSIZE
=`cat conftestval`
4547 echo "configure: failed program was:" >&5
4548 cat conftest.
$ac_ext >&5
4550 DEFAULT_FD_SETSIZE
=256
4555 echo "$ac_t""$DEFAULT_FD_SETSIZE" 1>&6
4556 cat >> confdefs.h
<<EOF
4557 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
4561 echo $ac_n "checking Maximum number of filedescriptors we can open""... $ac_c" 1>&6
4562 echo "configure:4563: checking Maximum number of filedescriptors we can open" >&5
4565 i386-unknown-freebsd
*)
4566 if echo "$LDFLAGS" |
grep -q pthread
; then
4567 LDFLAGS
=`echo $LDFLAGS | sed -e "s/-pthread//"`
4570 if test "$cross_compiling" = yes; then
4573 cat > conftest.
$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4579 #include <sys/time.h> /* needed on FreeBSD */
4580 #include <sys/param.h>
4581 #include <sys/resource.h>
4586 /* getrlimit and sysconf returns bogous values on cygwin32.
4587 * Number of fds is virtually unlimited in cygwin (sys/param.h)
4590 #elif HAVE_SETRLIMIT
4592 #if defined(RLIMIT_NOFILE)
4593 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
4594 perror("getrlimit: RLIMIT_NOFILE");
4596 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4597 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
4598 perror("setrlimit: RLIMIT_NOFILE");
4601 #elif defined(RLIMIT_OFILE)
4602 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
4603 perror("getrlimit: RLIMIT_OFILE");
4605 rl.rlim_cur = rl.rlim_max; /* set it to the max */
4606 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
4607 perror("setrlimit: RLIMIT_OFILE");
4610 #endif /* RLIMIT_NOFILE */
4611 #endif /* HAVE_SETRLIMIT */
4612 /* by starting at 2^14, we will never get higher
4613 than 2^15 for SQUID_MAXFD */
4617 if (dup2(0, i) < 0) {
4625 fp = fopen("conftestval", "w");
4626 fprintf (fp, "%d\n", i);
4631 if { (eval echo configure
:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4633 SQUID_MAXFD
=`cat conftestval`
4635 echo "configure: failed program was:" >&5
4636 cat conftest.
$ac_ext >&5
4643 echo "$ac_t""$SQUID_MAXFD" 1>&6
4644 cat >> confdefs.h
<<EOF
4645 #define SQUID_MAXFD $SQUID_MAXFD
4648 if test "$SQUID_MAXFD" -lt 512 ; then
4649 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
4650 echo " cache will be very busy. Please see the FAQ page"
4651 echo " http://squid.nlanr.net/Squid/FAQ/FAQ-11.html#filedescriptors"
4652 echo " on how to increase your filedescriptor limit"
4657 echo $ac_n "checking Default UDP send buffer size""... $ac_c" 1>&6
4658 echo "configure:4659: checking Default UDP send buffer size" >&5
4659 if test "$cross_compiling" = yes; then
4660 SQUID_UDP_SO_SNDBUF
=16384
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4668 #include <sys/types.h>
4669 #include <sys/socket.h>
4670 #include <netinet/in.h>
4674 int fd,val=0,len=sizeof(int);
4675 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4676 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4677 if (val<=0) exit(1);
4678 fp = fopen("conftestval", "w");
4679 fprintf (fp, "%d\n", val);
4684 if { (eval echo configure
:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4686 SQUID_UDP_SO_SNDBUF
=`cat conftestval`
4688 echo "configure: failed program was:" >&5
4689 cat conftest.
$ac_ext >&5
4691 SQUID_UDP_SO_SNDBUF
=16384
4696 echo "$ac_t""$SQUID_UDP_SO_SNDBUF" 1>&6
4697 cat >> confdefs.h
<<EOF
4698 #define SQUID_UDP_SO_SNDBUF $SQUID_UDP_SO_SNDBUF
4702 echo $ac_n "checking Default UDP receive buffer size""... $ac_c" 1>&6
4703 echo "configure:4704: checking Default UDP receive buffer size" >&5
4704 if test "$cross_compiling" = yes; then
4705 SQUID_UDP_SO_RCVBUF
=16384
4707 cat > conftest.
$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4713 #include <sys/types.h>
4714 #include <sys/socket.h>
4715 #include <netinet/in.h>
4719 int fd,val=0,len=sizeof(int);
4720 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
4721 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4722 if (val <= 0) exit(1);
4723 fp = fopen("conftestval", "w");
4724 fprintf (fp, "%d\n", val);
4729 if { (eval echo configure
:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4731 SQUID_UDP_SO_RCVBUF
=`cat conftestval`
4733 echo "configure: failed program was:" >&5
4734 cat conftest.
$ac_ext >&5
4736 SQUID_UDP_SO_RCVBUF
=16384
4741 echo "$ac_t""$SQUID_UDP_SO_RCVBUF" 1>&6
4742 cat >> confdefs.h
<<EOF
4743 #define SQUID_UDP_SO_RCVBUF $SQUID_UDP_SO_RCVBUF
4747 echo $ac_n "checking Default TCP send buffer size""... $ac_c" 1>&6
4748 echo "configure:4749: checking Default TCP send buffer size" >&5
4749 if test "$cross_compiling" = yes; then
4750 SQUID_TCP_SO_SNDBUF
=16384
4752 cat > conftest.
$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4758 #include <sys/types.h>
4759 #include <sys/socket.h>
4760 #include <netinet/in.h>
4764 int fd,val=0,len=sizeof(int);
4765 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4766 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
4767 if (val <= 0) exit(1);
4768 fp = fopen("conftestval", "w");
4769 fprintf (fp, "%d\n", val);
4774 if { (eval echo configure
:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4776 SQUID_TCP_SO_SNDBUF
=`cat conftestval`
4778 echo "configure: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4781 SQUID_TCP_SO_SNDBUF
=16384
4786 echo "$ac_t""$SQUID_TCP_SO_SNDBUF" 1>&6
4787 cat >> confdefs.h
<<EOF
4788 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
4792 echo $ac_n "checking Default TCP receive buffer size""... $ac_c" 1>&6
4793 echo "configure:4794: checking Default TCP receive buffer size" >&5
4794 if test "$cross_compiling" = yes; then
4795 SQUID_TCP_SO_RCVBUF
=16384
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4803 #include <sys/types.h>
4804 #include <sys/socket.h>
4805 #include <netinet/in.h>
4809 int fd,val=0,len=sizeof(int);
4810 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
4811 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
4812 if (val <= 0) exit(1);
4813 fp = fopen("conftestval", "w");
4814 fprintf (fp, "%d\n", val);
4819 if { (eval echo configure
:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4821 SQUID_TCP_SO_RCVBUF
=`cat conftestval`
4823 echo "configure: failed program was:" >&5
4824 cat conftest.
$ac_ext >&5
4826 SQUID_TCP_SO_RCVBUF
=16384
4831 echo "$ac_t""$SQUID_TCP_SO_RCVBUF" 1>&6
4832 cat >> confdefs.h
<<EOF
4833 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
4837 echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
4838 echo "configure:4839: checking if sys_errlist is already defined" >&5
4839 if eval "test \"`echo '$''{'ac_cv_needs_sys_errlist'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 cat > conftest.
$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4847 char *s = sys_errlist;
4850 if { (eval echo configure
:4851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4852 ac_cv_needs_sys_errlist
="no"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4857 ac_cv_needs_sys_errlist
="yes"
4863 echo "$ac_t""$ac_cv_needs_sys_errlist" 1>&6
4864 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
4865 cat >> confdefs.h
<<\EOF
4866 #define NEED_SYS_ERRLIST 1
4871 echo $ac_n "checking for libresolv _dns_ttl_ hack""... $ac_c" 1>&6
4872 echo "configure:4873: checking for libresolv _dns_ttl_ hack" >&5
4873 cat > conftest.
$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 extern int _dns_ttl_;
4881 if { (eval echo configure
:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4883 echo "$ac_t""yes" 1>&6
4884 cat >> confdefs.h
<<\EOF
4885 #define LIBRESOLV_DNS_TTL_HACK 1
4889 echo "configure: failed program was:" >&5
4890 cat conftest.
$ac_ext >&5
4892 echo "$ac_t""no" 1>&6
4896 echo $ac_n "checking if inet_ntoa() actually works""... $ac_c" 1>&6
4897 echo "configure:4898: checking if inet_ntoa() actually works" >&5
4898 if test "$cross_compiling" = yes; then
4899 INET_NTOA_RESULT
="broken"
4901 cat > conftest.
$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4907 #include <sys/types.h>
4908 #include <netinet/in.h>
4909 #include <arpa/inet.h>
4914 in.s_addr = inet_addr("1.2.3.4");
4915 fp = fopen("conftestval", "w");
4916 fprintf (fp, "%s\n", inet_ntoa(in));
4921 if { (eval echo configure
:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4923 INET_NTOA_RESULT
=`cat conftestval`
4925 echo "configure: failed program was:" >&5
4926 cat conftest.
$ac_ext >&5
4928 INET_NTOA_RESULT
="broken"
4933 if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
4934 echo "$ac_t"""yes"" 1>&6
4936 echo "$ac_t"""no
"" 1>&6
4937 echo "Will use our own inet_ntoa()."
4938 LIBOBJS
="$LIBOBJS inet_ntoa.o"
4939 # echo "WARNING: This looks bad, and probably prevents Squid from working."
4940 # echo " If you're on IRIX and using GCC 2.8, you probably need"
4941 # echo " to use the IRIX C compiler instead."
4945 if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
4946 echo $ac_n "checking for working statvfs() interface""... $ac_c" 1>&6
4947 echo "configure:4948: checking for working statvfs() interface" >&5
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4954 #include <sys/types.h>
4955 #include <sys/statvfs.h>
4960 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
4961 sfs.f_files = sfs.f_ffree = 0;
4962 statvfs("/tmp", &sfs);
4966 if { (eval echo configure
:4967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4968 ac_cv_func_statvfs
=yes
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4973 ac_cv_func_statvfs
=no
4976 echo "$ac_t""$ac_cv_func_statvfs" 1>&6
4977 if test "$ac_cv_func_statvfs" = "yes" ; then
4978 cat >> confdefs.h
<<\EOF
4979 #define HAVE_STATVFS 1
4985 echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
4986 echo "configure:4987: checking for _res.nsaddr_list" >&5
4987 if eval "test \"`echo '$''{'ac_cv_have_res_nsaddr_list'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 cat > conftest.
$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4994 #if HAVE_SYS_TYPES_H
4995 #include <sys/types.h>
4997 #if HAVE_NETINET_IN_H
4998 #include <netinet/in.h>
5000 #if HAVE_ARPA_INET_H
5001 #include <arpa/inet.h>
5003 #if HAVE_ARPA_NAMESER_H
5004 #include <arpa/nameser.h>
5011 _res.nsaddr_list[0];
5014 if { (eval echo configure
:5015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5016 ac_cv_have_res_nsaddr_list
="yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.
$ac_ext >&5
5021 ac_cv_have_res_nsaddr_list
="no"
5026 echo "$ac_t""$ac_cv_have_res_nsaddr_list" 1>&6
5027 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
5028 cat >> confdefs.h
<<\EOF
5029 #define HAVE_RES_NSADDR_LIST 1
5034 if test $ac_cv_have_res_nsaddr_list = "no" ; then
5035 echo $ac_n "checking for _res.ns_list""... $ac_c" 1>&6
5036 echo "configure:5037: checking for _res.ns_list" >&5
5037 if eval "test \"`echo '$''{'ac_cv_have_res_ns_list'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 cat > conftest.
$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5044 #if HAVE_SYS_TYPES_H
5045 #include <sys/types.h>
5047 #if HAVE_NETINET_IN_H
5048 #include <netinet/in.h>
5050 #if HAVE_ARPA_INET_H
5051 #include <arpa/inet.h>
5053 #if HAVE_ARPA_NAMESER_H
5054 #include <arpa/nameser.h>
5061 _res.ns_list[0].addr;
5064 if { (eval echo configure
:5065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5066 ac_cv_have_res_ns_list
="yes"
5068 echo "configure: failed program was:" >&5
5069 cat conftest.
$ac_ext >&5
5071 ac_cv_have_res_ns_list
="no"
5076 echo "$ac_t""$ac_cv_have_res_ns_list" 1>&6
5077 if test $ac_cv_have_res_ns_list = "yes" ; then
5078 cat >> confdefs.h
<<\EOF
5079 #define HAVE_RES_NS_LIST 1
5086 if test "$ac_cv_lib_malloc_main" = "yes" ; then
5087 if test -r /usr
/lib
/debug
/malloc.o
; then
5088 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/malloc.o"
5090 if test -r /usr
/lib
/debug
/mallocmap.o
; then
5091 XTRA_OBJS
="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
5097 if test -z "$XTRA_LIBS"; then
5099 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lcrypt//"`
5100 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/-lpthread//"`
5101 XTRA_LIBS
=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
5109 cat > confcache
<<\EOF
5110 # This file is a shell script that caches the results of configure
5111 # tests run on this system so they can be shared between configure
5112 # scripts and configure runs. It is not useful on other systems.
5113 # If it contains results you don't want to keep, you may remove or edit it.
5115 # By default, configure uses ./config.cache as the cache file,
5116 # creating it if it does not exist already. You can give configure
5117 # the --cache-file=FILE option to use a different cache file; that is
5118 # what configure does when it calls configure scripts in
5119 # subdirectories, so they share the cache.
5120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5121 # config.status only pays attention to the cache file if you give it the
5122 # --recheck option to rerun configure.
5125 # The following way of writing the cache mishandles newlines in values,
5126 # but we know of no workaround that is simple, portable, and efficient.
5127 # So, don't put newlines in cache variables' values.
5128 # Ultrix sh set writes to stderr and can't be redirected directly,
5129 # and sets the high bit in the cache file unless we assign to the vars.
5131 case `(ac_space=' '; set) 2>&1` in
5133 # `set' does not quote correctly, so add quotes (double-quote substitution
5134 # turns \\\\ into \\, and sed turns \\ into \).
5136 -e "s/'/'\\\\''/g" \
5137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5140 # `set' quotes correctly as required by POSIX, so do not add quotes.
5141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5144 if cmp -s $cache_file confcache
; then
5147 if test -w $cache_file; then
5148 echo "updating cache $cache_file"
5149 cat confcache
> $cache_file
5151 echo "not updating unwritable cache $cache_file"
5156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5158 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5159 # Let make expand exec_prefix.
5160 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5162 # Any assignment to VPATH causes Sun make to only execute
5163 # the first set of double-colon rules, so remove it if not needed.
5164 # If there is a colon in the path, we need to keep it.
5165 if test "x$srcdir" = x.
; then
5166 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5171 DEFS
=-DHAVE_CONFIG_H
5173 # Without the "./", some shells look in PATH for config.status.
5174 : ${CONFIG_STATUS=./config.status}
5176 echo creating
$CONFIG_STATUS
5177 rm -f $CONFIG_STATUS
5178 cat > $CONFIG_STATUS <<EOF
5180 # Generated automatically by configure.
5181 # Run this file to recreate the current configuration.
5182 # This directory was configured as follows,
5183 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5185 # $0 $ac_configure_args
5187 # Compiler output produced by configure, useful for debugging
5188 # configure, is in ./config.log if it exists.
5190 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5193 case "\$ac_option" in
5194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5195 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5196 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5197 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5198 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5200 -help | --help | --hel | --he | --h)
5201 echo "\$ac_cs_usage"; exit 0 ;;
5202 *) echo "\$ac_cs_usage"; exit 1 ;;
5206 ac_given_srcdir=$srcdir
5207 ac_given_INSTALL="$INSTALL"
5209 trap 'rm -fr `echo "\
5212 ./include/config.h \
5213 ./scripts/Makefile \
5214 ./scripts/RunCache \
5215 ./scripts/RunAccel \
5217 ./contrib/Makefile \
5221 ./auth_modules/dummy \
5222 ./auth_modules/NCSA/Makefile \
5223 ./auth_modules/PAM/Makefile \
5224 ./auth_modules/SMB/Makefile
5225 ./auth_modules/getpwnam/Makefile \
5226 ./auth_modules/LDAP/Makefile \
5227 include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5229 cat >> $CONFIG_STATUS <<EOF
5231 # Protect against being on the right side of a sed subst in config.status.
5232 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5233 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5236 s%@CFLAGS@%$CFLAGS%g
5237 s%@CPPFLAGS@%$CPPFLAGS%g
5238 s%@CXXFLAGS@%$CXXFLAGS%g
5240 s%@LDFLAGS@%$LDFLAGS%g
5242 s%@exec_prefix@%$exec_prefix%g
5243 s%@prefix@%$prefix%g
5244 s%@program_transform_name@%$program_transform_name%g
5245 s%@bindir@%$bindir%g
5246 s%@sbindir@%$sbindir%g
5247 s%@libexecdir@%$libexecdir%g
5248 s%@datadir@%$datadir%g
5249 s%@sysconfdir@%$sysconfdir%g
5250 s%@sharedstatedir@%$sharedstatedir%g
5251 s%@localstatedir@%$localstatedir%g
5252 s%@libdir@%$libdir%g
5253 s%@includedir@%$includedir%g
5254 s%@oldincludedir@%$oldincludedir%g
5255 s%@infodir@%$infodir%g
5256 s%@mandir@%$mandir%g
5258 s%@host_alias@%$host_alias%g
5259 s%@host_cpu@%$host_cpu%g
5260 s%@host_vendor@%$host_vendor%g
5261 s%@host_os@%$host_os%g
5262 s%@exec_suffix@%$exec_suffix%g
5263 s%@cgi_suffix@%$cgi_suffix%g
5264 s%@CACHE_HTTP_PORT@%$CACHE_HTTP_PORT%g
5265 s%@CACHE_ICP_PORT@%$CACHE_ICP_PORT%g
5267 s%@LIBDLMALLOC@%$LIBDLMALLOC%g
5268 s%@LIB_MALLOC@%$LIB_MALLOC%g
5269 s%@ASYNC_OBJS@%$ASYNC_OBJS%g
5270 s%@SQUID_PTHREAD_LIB@%$SQUID_PTHREAD_LIB%g
5271 s%@DELAY_OBJS@%$DELAY_OBJS%g
5272 s%@SNMPLIB@%$SNMPLIB%g
5273 s%@SNMP_OBJS@%$SNMP_OBJS%g
5274 s%@makesnmplib@%$makesnmplib%g
5275 s%@HTCP_OBJS@%$HTCP_OBJS%g
5276 s%@ERR_LANGUAGE@%$ERR_LANGUAGE%g
5277 s%@LEAKFINDER_OBJS@%$LEAKFINDER_OBJS%g
5278 s%@OPT_DISKD_EXE@%$OPT_DISKD_EXE%g
5279 s%@DISKD_OBJS@%$DISKD_OBJS%g
5281 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5282 s%@INSTALL_DATA@%$INSTALL_DATA%g
5283 s%@RANLIB@%$RANLIB%g
5293 s%@MAKEDEPEND@%$MAKEDEPEND%g
5296 s%@ALLOCA@%$ALLOCA%g
5297 s%@CRYPTLIB@%$CRYPTLIB%g
5298 s%@PTHREADLIB@%$PTHREADLIB%g
5299 s%@REGEXLIB@%$REGEXLIB%g
5300 s%@LIBREGEX@%$LIBREGEX%g
5301 s%@LIBOBJS@%$LIBOBJS%g
5302 s%@XTRA_OBJS@%$XTRA_OBJS%g
5303 s%@XTRA_LIBS@%$XTRA_LIBS%g
5308 cat >> $CONFIG_STATUS <<\EOF
5310 # Split the substitutions into bite-sized pieces for seds with
5311 # small command number limits, like on Digital OSF/1 and HP-UX.
5312 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5313 ac_file
=1 # Number of current file.
5314 ac_beg
=1 # First line for current file.
5315 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5318 while $ac_more_lines; do
5319 if test $ac_beg -gt 1; then
5320 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5322 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5324 if test ! -s conftest.s
$ac_file; then
5326 rm -f conftest.s
$ac_file
5328 if test -z "$ac_sed_cmds"; then
5329 ac_sed_cmds
="sed -f conftest.s$ac_file"
5331 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5333 ac_file
=`expr $ac_file + 1`
5335 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5338 if test -z "$ac_sed_cmds"; then
5343 cat >> $CONFIG_STATUS <<EOF
5345 CONFIG_FILES=\${CONFIG_FILES-"\
5348 ./include/config.h \
5349 ./scripts/Makefile \
5350 ./scripts/RunCache \
5351 ./scripts/RunAccel \
5353 ./contrib/Makefile \
5357 ./auth_modules/dummy \
5358 ./auth_modules/NCSA/Makefile \
5359 ./auth_modules/PAM/Makefile \
5360 ./auth_modules/SMB/Makefile
5361 ./auth_modules/getpwnam/Makefile \
5362 ./auth_modules/LDAP/Makefile \
5365 cat >> $CONFIG_STATUS <<\EOF
5366 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5369 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5370 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5371 *) ac_file_in
="${ac_file}.in" ;;
5374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5376 # Remove last slash and all that follows it. Not all systems have dirname.
5377 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5379 # The file is in a subdirectory.
5380 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5381 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5382 # A "../" for each directory in $ac_dir_suffix.
5383 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5385 ac_dir_suffix
= ac_dots
=
5388 case "$ac_given_srcdir" in
5390 if test -z "$ac_dots"; then top_srcdir
=.
5391 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5392 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5394 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5395 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5398 case "$ac_given_INSTALL" in
5399 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5400 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5403 echo creating
"$ac_file"
5405 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5407 *Makefile
*) ac_comsub
="1i\\
5408 # $configure_input" ;;
5412 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5414 s%@configure_input@%$configure_input%g
5415 s%@srcdir@%$srcdir%g
5416 s%@top_srcdir@%$top_srcdir%g
5417 s%@INSTALL@%$INSTALL%g
5418 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5425 # ac_d sets the value in "#define NAME VALUE" lines.
5426 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5427 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5430 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5431 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5432 ac_uB
='\([ ]\)%\1#\2define\3'
5435 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5436 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5437 ac_eB
='$%\1#\2define\3'
5441 if test "${CONFIG_HEADERS+set}" != set; then
5443 cat >> $CONFIG_STATUS <<EOF
5444 CONFIG_HEADERS="include/autoconf.h"
5446 cat >> $CONFIG_STATUS <<\EOF
5448 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5451 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5452 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5453 *) ac_file_in
="${ac_file}.in" ;;
5456 echo creating
$ac_file
5458 rm -f conftest.frag conftest.
in conftest.out
5459 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5460 cat $ac_file_inputs > conftest.
in
5464 # Transform confdefs.h into a sed script conftest.vals that substitutes
5465 # the proper values into config.h.in to produce config.h. And first:
5466 # Protect against being on the right side of a sed subst in config.status.
5467 # Protect against being in an unquoted here document in config.status.
5469 cat > conftest.hdr
<<\EOF
5472 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5476 sed -n -f conftest.hdr confdefs.h > conftest.vals
5479 # This sed command replaces #undef with comments. This is necessary, for
5480 # example, in the case of _POSIX_SOURCE, which is predefined and required
5481 # on some systems where configure will not decide to define it.
5482 cat >> conftest.vals <<\EOF
5483 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5486 # Break up conftest.vals because some shells have a limit on
5487 # the size of here documents, and old seds have small limits too.
5492 ac_lines=`grep -c . conftest.vals
`
5493 # grep -c gives empty output for an empty file on some AIX systems.
5494 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5495 # Write a limited-size here document to conftest.frag.
5496 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5497 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5499 sed -f conftest.frag conftest.in > conftest.out
5501 mv conftest.out conftest.in
5503 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5505 mv conftest.tail conftest.vals
5509 cat >> $CONFIG_STATUS <<\EOF
5510 rm -f conftest.frag conftest.h
5511 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5512 cat conftest.in >> conftest.h
5514 if cmp -s $ac_file conftest.h 2>/dev/null; then
5515 echo "$ac_file is unchanged"
5518 # Remove last slash and all that follows it. Not all systems have dirname.
5519 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5520 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5521 # The file is in a subdirectory.
5522 test ! -d "$ac_dir" && mkdir "$ac_dir"
5525 mv conftest.h $ac_file
5530 cat >> $CONFIG_STATUS <<EOF
5533 cat >> $CONFIG_STATUS <<\EOF
5537 chmod +x $CONFIG_STATUS
5538 rm -fr confdefs* $ac_clean_files
5539 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1