3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
40 --with-tls with TLS/SSL support (auto)"
44 --enable-ldapd enable building ldapd (no)"
48 --enable-slapd enable building slapd (yes)"
50 --enable-aclgroups enable ACL group support (auto)"
52 --enable-cleartext enable cleartext passwords (yes)"
54 --enable-crypt enable crypt(3) passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-bdb2 enable bdb2 backend (no)"
64 --enable-ldbm enable ldbm backend (yes)"
66 --with-ldbm-api use LDBM API (auto)"
68 --with-ldbm-type use LDBM type (auto)"
70 --enable-passwd enable passwd backend (no)"
72 --enable-perl enable perl backend (no)"
74 --enable-shell enable shell backend (no)"
76 --enable-tcl enable tcl backend (no)"
80 --enable-slurpd enable building slurpd (auto)"
82 Library Generation & Linking Options"
84 --enable-static build static libraries [default=yes]
85 --enable-static=PKGS only build shared libraries if the current package
86 appears as an element in the PKGS list"
88 --enable-shared build shared libraries [default=yes]
89 --enable-shared=PKGS only build shared libraries if the current package
90 appears as an element in the PKGS list"
92 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file=./config.cache
107 program_transform_name=s,x,x,
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host | --host | --hos | --ho)
270 -host=* | --host=* | --hos=* | --ho=*)
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
391 -site=* | --site=* | --sit=*)
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=include/ldap.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='\c' ac_t=
603 for ac_dir in build $srcdir/build; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 # Find a good install program. We prefer a C program (faster),
621 # so one script is as good as another. But avoid the broken or
622 # incompatible versions:
623 # SysV /etc/install, /usr/sbin/install
624 # SunOS /usr/etc/install
627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
630 # ./install, which can be erroneously created by make from ./install.sh.
631 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
632 echo "configure:633: checking for a BSD compatible install" >&5
633 if test -z "$INSTALL"; then
634 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
638 for ac_dir in $PATH; do
639 # Account for people who put trailing slashes in PATH elements.
641 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
643 # OSF1 and SCO ODT 3.0 have their own names for install.
644 # Don't use installbsd from OSF since it installs stuff as root
646 for ac_prog in ginstall scoinst install; do
647 if test -f $ac_dir/$ac_prog; then
648 if test $ac_prog = install &&
649 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
650 # AIX install. It has an incompatible calling convention.
653 ac_cv_path_install="$ac_dir/$ac_prog -c"
664 if test "${ac_cv_path_install+set}" = set; then
665 INSTALL="$ac_cv_path_install"
667 # As a last resort, use the slow shell script. We don't cache a
668 # path for INSTALL within a source directory, because that will
669 # break other packages using the cache if that directory is
670 # removed, or if the path is relative.
671 INSTALL="$ac_install_sh"
674 echo "$ac_t""$INSTALL" 1>&6
676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
677 # It thinks the first close brace ends the variable substitution.
678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
684 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
685 echo "configure:686: checking whether build environment is sane" >&5
688 echo timestamp > conftestfile
689 # Do `set' in a subshell so we don't clobber the current shell's
690 # arguments. Must try -L first in case configure is actually a
691 # symlink; some systems play weird games with the mod time of symlinks
692 # (eg FreeBSD returns the mod time of the symlink's containing
695 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
696 if test "$*" = "X"; then
698 set X `ls -t $srcdir/configure conftestfile`
700 if test "$*" != "X $srcdir/configure conftestfile" \
701 && test "$*" != "X conftestfile $srcdir/configure"; then
703 # If neither matched, then we have a broken ls. This can happen
704 # if, for instance, CONFIG_SHELL is bash and it inherits a
705 # broken ls alias from the environment. This has actually
706 # happened. Such a system could not be considered "sane".
707 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
708 alias in your environment" 1>&2; exit 1; }
711 test "$2" = conftestfile
717 { echo "configure: error: newly created file is older than distributed files!
718 Check your system clock" 1>&2; exit 1; }
721 echo "$ac_t""yes" 1>&6
722 if test "$program_transform_name" = s,x,x,; then
723 program_transform_name=
725 # Double any \ or $. echo might interpret backslashes.
726 cat <<\EOF_SED > conftestsed
727 s,\\,\\\\,g; s,\$,$$,g
729 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
732 test "$program_prefix" != NONE &&
733 program_transform_name="s,^,${program_prefix},; $program_transform_name"
734 # Use a double $ so make ignores it.
735 test "$program_suffix" != NONE &&
736 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
738 # sed with no file args requires a program.
739 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
741 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
742 echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
743 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
744 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 cat > conftestmake <<\EOF
749 @echo 'ac_maketemp="${MAKE}"'
751 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
752 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
753 if test -n "$ac_maketemp"; then
754 eval ac_cv_prog_make_${ac_make}_set=yes
756 eval ac_cv_prog_make_${ac_make}_set=no
760 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
764 echo "$ac_t""no" 1>&6
765 SET_MAKE="MAKE=${MAKE-make}"
773 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
774 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
779 missing_dir=`cd $ac_aux_dir && pwd`
780 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
781 echo "configure:782: checking for working aclocal" >&5
782 # Run test in a subshell; some versions of sh will print an error if
783 # an executable is not found, even if stderr is redirected.
784 # Redirect stdin to placate older versions of autoconf. Sigh.
785 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
787 echo "$ac_t""found" 1>&6
789 ACLOCAL="$missing_dir/missing aclocal"
790 echo "$ac_t""missing" 1>&6
793 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
794 echo "configure:795: checking for working autoconf" >&5
795 # Run test in a subshell; some versions of sh will print an error if
796 # an executable is not found, even if stderr is redirected.
797 # Redirect stdin to placate older versions of autoconf. Sigh.
798 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
800 echo "$ac_t""found" 1>&6
802 AUTOCONF="$missing_dir/missing autoconf"
803 echo "$ac_t""missing" 1>&6
806 echo $ac_n "checking for working automake""... $ac_c" 1>&6
807 echo "configure:808: checking for working automake" >&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf. Sigh.
811 if (automake --version) < /dev/null > /dev/null 2>&1; then
813 echo "$ac_t""found" 1>&6
815 AUTOMAKE="$missing_dir/missing automake"
816 echo "$ac_t""missing" 1>&6
819 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
820 echo "configure:821: checking for working autoheader" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
825 AUTOHEADER=autoheader
826 echo "$ac_t""found" 1>&6
828 AUTOHEADER="$missing_dir/missing autoheader"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
833 echo "configure:834: checking for working makeinfo" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
839 echo "$ac_t""found" 1>&6
841 MAKEINFO="$missing_dir/missing makeinfo"
842 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
849 echo "configure:850: checking configure arguments" >&5
854 ldap_subdir="openldap"
856 # Check whether --with-subdir or --without-subdir was given.
857 if test "${with_subdir+set}" = set; then
858 withval="$with_subdir"
860 if test "$withval" = "no"; then
862 elif test "$withval" != "yes"; then
863 ldap_subdir="$withval"
869 # OpenLDAP --enable-debug
870 # Check whether --enable-debug or --disable-debug was given.
871 if test "${enable_debug+set}" = set; then
872 enableval="$enable_debug"
875 for ol_val in auto yes no ; do
876 if test "$enableval" = "$ol_val" ; then
880 if test "$ol_arg" = "invalid" ; then
881 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
883 ol_enable_debug="$ol_arg"
886 ol_enable_debug="yes"
890 # OpenLDAP --enable-proctitle
891 # Check whether --enable-proctitle or --disable-proctitle was given.
892 if test "${enable_proctitle+set}" = set; then
893 enableval="$enable_proctitle"
896 for ol_val in auto yes no ; do
897 if test "$enableval" = "$ol_val" ; then
901 if test "$ol_arg" = "invalid" ; then
902 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
904 ol_enable_proctitle="$ol_arg"
907 ol_enable_proctitle="yes"
909 # end --enable-proctitle
910 # OpenLDAP --enable-cache
911 # Check whether --enable-cache or --disable-cache was given.
912 if test "${enable_cache+set}" = set; then
913 enableval="$enable_cache"
916 for ol_val in auto yes no ; do
917 if test "$enableval" = "$ol_val" ; then
921 if test "$ol_arg" = "invalid" ; then
922 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
924 ol_enable_cache="$ol_arg"
927 ol_enable_cache="yes"
930 # OpenLDAP --enable-dns
931 # Check whether --enable-dns or --disable-dns was given.
932 if test "${enable_dns+set}" = set; then
933 enableval="$enable_dns"
936 for ol_val in auto yes no ; do
937 if test "$enableval" = "$ol_val" ; then
941 if test "$ol_arg" = "invalid" ; then
942 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
944 ol_enable_dns="$ol_arg"
950 # OpenLDAP --enable-referrals
951 # Check whether --enable-referrals or --disable-referrals was given.
952 if test "${enable_referrals+set}" = set; then
953 enableval="$enable_referrals"
956 for ol_val in auto yes no ; do
957 if test "$enableval" = "$ol_val" ; then
961 if test "$ol_arg" = "invalid" ; then
962 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
964 ol_enable_referrals="$ol_arg"
967 ol_enable_referrals="yes"
969 # end --enable-referrals
970 # OpenLDAP --enable-cldap
971 # Check whether --enable-cldap or --disable-cldap was given.
972 if test "${enable_cldap+set}" = set; then
973 enableval="$enable_cldap"
976 for ol_val in auto yes no ; do
977 if test "$enableval" = "$ol_val" ; then
981 if test "$ol_arg" = "invalid" ; then
982 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
984 ol_enable_cldap="$ol_arg"
990 # OpenLDAP --enable-x_compile
991 # Check whether --enable-x_compile or --disable-x_compile was given.
992 if test "${enable_x_compile+set}" = set; then
993 enableval="$enable_x_compile"
996 for ol_val in yes no ; do
997 if test "$enableval" = "$ol_val" ; then
1001 if test "$ol_arg" = "invalid" ; then
1002 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1004 ol_enable_x_compile="$ol_arg"
1007 ol_enable_x_compile="no"
1009 # end --enable-x_compile
1011 # OpenLDAP --enable-dmalloc
1012 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1013 if test "${enable_dmalloc+set}" = set; then
1014 enableval="$enable_dmalloc"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1025 ol_enable_dmalloc="$ol_arg"
1028 ol_enable_dmalloc="no"
1030 # end --enable-dmalloc
1032 # OpenLDAP --with-kerberos
1033 # Check whether --with-kerberos or --without-kerberos was given.
1034 if test "${with_kerberos+set}" = set; then
1035 withval="$with_kerberos"
1038 for ol_val in auto k5 k4 afs yes no ; do
1039 if test "$withval" = "$ol_val" ; then
1043 if test "$ol_arg" = "invalid" ; then
1044 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1046 ol_with_kerberos="$ol_arg"
1049 ol_with_kerberos="auto"
1051 # end --with-kerberos
1053 # OpenLDAP --with-threads
1054 # Check whether --with-threads or --without-threads was given.
1055 if test "${with_threads+set}" = set; then
1056 withval="$with_threads"
1059 for ol_val in auto posix mach lwp yes no manual ; do
1060 if test "$withval" = "$ol_val" ; then
1064 if test "$ol_arg" = "invalid" ; then
1065 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1067 ol_with_threads="$ol_arg"
1070 ol_with_threads="auto"
1072 # end --with-threads
1074 # OpenLDAP --with-yielding_select
1075 # Check whether --with-yielding_select or --without-yielding_select was given.
1076 if test "${with_yielding_select+set}" = set; then
1077 withval="$with_yielding_select"
1080 for ol_val in auto yes no manual ; do
1081 if test "$withval" = "$ol_val" ; then
1085 if test "$ol_arg" = "invalid" ; then
1086 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1088 ol_with_yielding_select="$ol_arg"
1091 ol_with_yielding_select="auto"
1093 # end --with-yielding_select
1095 # OpenLDAP --with-tls
1096 # Check whether --with-tls or --without-tls was given.
1097 if test "${with_tls+set}" = set; then
1101 for ol_val in auto ssleay openssl yes no ; do
1102 if test "$withval" = "$ol_val" ; then
1106 if test "$ol_arg" = "invalid" ; then
1107 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1109 ol_with_tls="$ol_arg"
1118 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1119 if test "${with_xxldapdoptions+set}" = set; then
1120 withval="$with_xxldapdoptions"
1124 # OpenLDAP --enable-ldapd
1125 # Check whether --enable-ldapd or --disable-ldapd was given.
1126 if test "${enable_ldapd+set}" = set; then
1127 enableval="$enable_ldapd"
1130 for ol_val in auto yes no ; do
1131 if test "$enableval" = "$ol_val" ; then
1135 if test "$ol_arg" = "invalid" ; then
1136 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1138 ol_enable_ldapd="$ol_arg"
1141 ol_enable_ldapd="no"
1143 # end --enable-ldapd
1145 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1146 if test "${with_xxslapdoptions+set}" = set; then
1147 withval="$with_xxslapdoptions"
1151 # OpenLDAP --enable-slapd
1152 # Check whether --enable-slapd or --disable-slapd was given.
1153 if test "${enable_slapd+set}" = set; then
1154 enableval="$enable_slapd"
1157 for ol_val in auto yes no ; do
1158 if test "$enableval" = "$ol_val" ; then
1162 if test "$ol_arg" = "invalid" ; then
1163 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1165 ol_enable_slapd="$ol_arg"
1168 ol_enable_slapd="yes"
1170 # end --enable-slapd
1171 # OpenLDAP --enable-aclgroups
1172 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1173 if test "${enable_aclgroups+set}" = set; then
1174 enableval="$enable_aclgroups"
1177 for ol_val in auto yes no ; do
1178 if test "$enableval" = "$ol_val" ; then
1182 if test "$ol_arg" = "invalid" ; then
1183 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1185 ol_enable_aclgroups="$ol_arg"
1188 ol_enable_aclgroups="auto"
1190 # end --enable-aclgroups
1191 # OpenLDAP --enable-cleartext
1192 # Check whether --enable-cleartext or --disable-cleartext was given.
1193 if test "${enable_cleartext+set}" = set; then
1194 enableval="$enable_cleartext"
1197 for ol_val in auto yes no ; do
1198 if test "$enableval" = "$ol_val" ; then
1202 if test "$ol_arg" = "invalid" ; then
1203 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1205 ol_enable_cleartext="$ol_arg"
1208 ol_enable_cleartext="yes"
1210 # end --enable-cleartext
1211 # OpenLDAP --enable-crypt
1212 # Check whether --enable-crypt or --disable-crypt was given.
1213 if test "${enable_crypt+set}" = set; then
1214 enableval="$enable_crypt"
1217 for ol_val in auto yes no ; do
1218 if test "$enableval" = "$ol_val" ; then
1222 if test "$ol_arg" = "invalid" ; then
1223 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1225 ol_enable_crypt="$ol_arg"
1228 ol_enable_crypt="auto"
1230 # end --enable-crypt
1231 # OpenLDAP --enable-wrappers
1232 # Check whether --enable-wrappers or --disable-wrappers was given.
1233 if test "${enable_wrappers+set}" = set; then
1234 enableval="$enable_wrappers"
1237 for ol_val in auto yes no ; do
1238 if test "$enableval" = "$ol_val" ; then
1242 if test "$ol_arg" = "invalid" ; then
1243 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1245 ol_enable_wrappers="$ol_arg"
1248 ol_enable_wrappers="no"
1250 # end --enable-wrappers
1251 # OpenLDAP --enable-phonetic
1252 # Check whether --enable-phonetic or --disable-phonetic was given.
1253 if test "${enable_phonetic+set}" = set; then
1254 enableval="$enable_phonetic"
1257 for ol_val in auto yes no ; do
1258 if test "$enableval" = "$ol_val" ; then
1262 if test "$ol_arg" = "invalid" ; then
1263 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1265 ol_enable_phonetic="$ol_arg"
1268 ol_enable_phonetic="no"
1270 # end --enable-phonetic
1271 # OpenLDAP --enable-rlookups
1272 # Check whether --enable-rlookups or --disable-rlookups was given.
1273 if test "${enable_rlookups+set}" = set; then
1274 enableval="$enable_rlookups"
1277 for ol_val in auto yes no ; do
1278 if test "$enableval" = "$ol_val" ; then
1282 if test "$ol_arg" = "invalid" ; then
1283 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1285 ol_enable_rlookups="$ol_arg"
1288 ol_enable_rlookups="auto"
1290 # end --enable-rlookups
1292 # OpenLDAP --enable-bdb2
1293 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1294 if test "${enable_bdb2+set}" = set; then
1295 enableval="$enable_bdb2"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1306 ol_enable_bdb2="$ol_arg"
1312 # OpenLDAP --enable-ldbm
1313 # Check whether --enable-ldbm or --disable-ldbm was given.
1314 if test "${enable_ldbm+set}" = set; then
1315 enableval="$enable_ldbm"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1326 ol_enable_ldbm="$ol_arg"
1329 ol_enable_ldbm="yes"
1332 # OpenLDAP --with-ldbm_api
1333 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1334 if test "${with_ldbm_api+set}" = set; then
1335 withval="$with_ldbm_api"
1338 for ol_val in auto db2 db gdbm ndbm manual ; do
1339 if test "$withval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1346 ol_with_ldbm_api="$ol_arg"
1349 ol_with_ldbm_api="auto"
1351 # end --with-ldbm_api
1353 # OpenLDAP --with-ldbm_type
1354 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1355 if test "${with_ldbm_type+set}" = set; then
1356 withval="$with_ldbm_type"
1359 for ol_val in auto btree hash ; do
1360 if test "$withval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1367 ol_with_ldbm_type="$ol_arg"
1370 ol_with_ldbm_type="auto"
1372 # end --with-ldbm_type
1375 # OpenLDAP --enable-passwd
1376 # Check whether --enable-passwd or --disable-passwd was given.
1377 if test "${enable_passwd+set}" = set; then
1378 enableval="$enable_passwd"
1381 for ol_val in auto yes no ; do
1382 if test "$enableval" = "$ol_val" ; then
1386 if test "$ol_arg" = "invalid" ; then
1387 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1389 ol_enable_passwd="$ol_arg"
1392 ol_enable_passwd="no"
1394 # end --enable-passwd
1395 # OpenLDAP --enable-perl
1396 # Check whether --enable-perl or --disable-perl was given.
1397 if test "${enable_perl+set}" = set; then
1398 enableval="$enable_perl"
1401 for ol_val in auto yes no ; do
1402 if test "$enableval" = "$ol_val" ; then
1406 if test "$ol_arg" = "invalid" ; then
1407 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1409 ol_enable_perl="$ol_arg"
1415 # OpenLDAP --enable-shell
1416 # Check whether --enable-shell or --disable-shell was given.
1417 if test "${enable_shell+set}" = set; then
1418 enableval="$enable_shell"
1421 for ol_val in auto yes no ; do
1422 if test "$enableval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1429 ol_enable_shell="$ol_arg"
1432 ol_enable_shell="no"
1434 # end --enable-shell
1435 # OpenLDAP --enable-tcl
1436 # Check whether --enable-tcl or --disable-tcl was given.
1437 if test "${enable_tcl+set}" = set; then
1438 enableval="$enable_tcl"
1441 for ol_val in auto yes no ; do
1442 if test "$enableval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1449 ol_enable_tcl="$ol_arg"
1456 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1457 if test "${with_xxslurpdoptions+set}" = set; then
1458 withval="$with_xxslurpdoptions"
1462 # OpenLDAP --enable-slurpd
1463 # Check whether --enable-slurpd or --disable-slurpd was given.
1464 if test "${enable_slurpd+set}" = set; then
1465 enableval="$enable_slurpd"
1468 for ol_val in auto yes no ; do
1469 if test "$enableval" = "$ol_val" ; then
1473 if test "$ol_arg" = "invalid" ; then
1474 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1476 ol_enable_slurpd="$ol_arg"
1479 ol_enable_slurpd="auto"
1481 # end --enable-slurpd
1483 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1484 if test "${with_xxliboptions+set}" = set; then
1485 withval="$with_xxliboptions"
1489 # Check whether --enable-static or --disable-static was given.
1490 if test "${enable_static+set}" = set; then
1491 enableval="$enable_static"
1492 p=${PACKAGE-default}
1493 case "$enableval" in
1494 yes) enable_static=yes ;;
1495 no) enable_static=no ;;
1498 # Look at the argument we got. We use all the common list separators.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1500 for pkg in $enableval; do
1501 if test "X$pkg" = "X$p"; then
1512 # Check whether --enable-shared or --disable-shared was given.
1513 if test "${enable_shared+set}" = set; then
1514 enableval="$enable_shared"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_shared=yes ;;
1518 no) enable_shared=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1537 if test $ol_enable_dns = yes ; then
1538 if test $ol_enable_referrals = no ; then
1539 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1541 if test $ol_enable_referrals = auto ; then
1542 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1543 ol_enable_referrals=yes
1547 if test $ol_enable_slapd = no ; then
1548 if test $ol_enable_bdb2 = yes ; then
1549 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1551 if test $ol_enable_ldbm = yes ; then
1552 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1554 if test $ol_enable_passwd = yes ; then
1555 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1557 if test $ol_enable_perl = yes ; then
1558 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1560 if test $ol_enable_shell = yes ; then
1561 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1563 if test $ol_enable_tcl = yes ; then
1564 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1566 if test $ol_enable_aclgroups = yes ; then
1567 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1569 if test $ol_enable_wrappers = yes ; then
1570 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1572 if test $ol_enable_phonetic = yes ; then
1573 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1575 if test $ol_enable_rlookups = yes ; then
1576 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1578 if test $ol_with_ldbm_api != auto ; then
1579 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1581 if test $ol_with_ldbm_type != auto ; then
1582 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1584 if test $ol_enable_slurpd = yes ; then
1585 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1588 # force settings to no
1595 ol_enable_aclgroups=no
1596 ol_enable_wrappers=no
1597 ol_enable_phonetic=no
1598 ol_enable_rlookups=no
1600 ol_with_ldbm_type=no
1603 elif test $ol_enable_ldbm = no ; then
1605 if test $ol_with_ldbm_api != auto ; then
1606 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1609 if test $ol_with_ldbm_type != auto ; then
1610 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1613 if test $ol_enable_bdb2 = yes ; then
1614 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1617 if test $ol_enable_passwd = no -a \
1618 $ol_enable_perl = no -a \
1619 $ol_enable_shell = no -a \
1620 $ol_enable_tcl = no ; then
1621 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1625 ol_with_ldbm_type=no
1627 elif test $ol_enable_bdb2 = yes ; then
1629 if test $ol_with_ldbm_api != auto -a \
1630 $ol_with_ldbm_api != db2 ; then
1631 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1634 ol_with_ldbm_api=db2
1638 if test $ol_enable_bdb2 != no ; then
1639 if test $ol_with_ldbm_api != auto -a \
1640 $ol_with_ldbm_api != db2 ; then
1641 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1646 if test $ol_with_ldbm_api = gdbm -a \
1647 $ol_with_ldbm_type = btree ; then
1648 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1650 if test $ol_with_ldbm_api = ndbm -a \
1651 $ol_with_ldbm_type = btree ; then
1652 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1656 if test $ol_enable_slurpd = yes ; then
1657 if test $ol_with_threads = no ; then
1658 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1662 echo "$ac_t""done" 1>&6
1665 # Make sure we can run config.sub.
1666 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1667 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1670 echo $ac_n "checking host system type""... $ac_c" 1>&6
1671 echo "configure:1672: checking host system type" >&5
1674 case "$host_alias" in
1678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1679 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1681 *) host_alias=$nonopt ;;
1685 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1686 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689 echo "$ac_t""$host" 1>&6
1715 SLAPD_PERL_CPPFLAGS=
1722 # Find a good install program. We prefer a C program (faster),
1723 # so one script is as good as another. But avoid the broken or
1724 # incompatible versions:
1725 # SysV /etc/install, /usr/sbin/install
1726 # SunOS /usr/etc/install
1727 # IRIX /sbin/install
1729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1734 echo "configure:1735: checking for a BSD compatible install" >&5
1735 if test -z "$INSTALL"; then
1736 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1740 for ac_dir in $PATH; do
1741 # Account for people who put trailing slashes in PATH elements.
1743 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1745 # OSF1 and SCO ODT 3.0 have their own names for install.
1746 # Don't use installbsd from OSF since it installs stuff as root
1748 for ac_prog in ginstall scoinst install; do
1749 if test -f $ac_dir/$ac_prog; then
1750 if test $ac_prog = install &&
1751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1752 # AIX install. It has an incompatible calling convention.
1755 ac_cv_path_install="$ac_dir/$ac_prog -c"
1766 if test "${ac_cv_path_install+set}" = set; then
1767 INSTALL="$ac_cv_path_install"
1769 # As a last resort, use the slow shell script. We don't cache a
1770 # path for INSTALL within a source directory, because that will
1771 # break other packages using the cache if that directory is
1772 # removed, or if the path is relative.
1773 INSTALL="$ac_install_sh"
1776 echo "$ac_t""$INSTALL" 1>&6
1778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1779 # It thinks the first close brace ends the variable substitution.
1780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1790 # Extract the first word of "ranlib", so it can be a program name with args.
1791 set dummy ranlib; ac_word=$2
1792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1793 echo "configure:1794: checking for $ac_word" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test -n "$RANLIB"; then
1798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1802 for ac_dir in $ac_dummy; do
1803 test -z "$ac_dir" && ac_dir=.
1804 if test -f $ac_dir/$ac_word; then
1805 ac_cv_prog_RANLIB="ranlib"
1810 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1813 RANLIB="$ac_cv_prog_RANLIB"
1814 if test -n "$RANLIB"; then
1815 echo "$ac_t""$RANLIB" 1>&6
1817 echo "$ac_t""no" 1>&6
1820 # Extract the first word of "gcc", so it can be a program name with args.
1821 set dummy gcc; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 for ac_dir in $ac_dummy; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/$ac_word; then
1843 if test -n "$CC"; then
1844 echo "$ac_t""$CC" 1>&6
1846 echo "$ac_t""no" 1>&6
1849 if test -z "$CC"; then
1850 # Extract the first word of "cc", so it can be a program name with args.
1851 set dummy cc; ac_word=$2
1852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_word" >&5
1854 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1863 for ac_dir in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir=.
1865 if test -f $ac_dir/$ac_word; then
1866 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1867 ac_prog_rejected=yes
1875 if test $ac_prog_rejected = yes; then
1876 # We found a bogon in the path, so make sure we never use it.
1877 set dummy $ac_cv_prog_CC
1879 if test $# -gt 0; then
1880 # We chose a different compiler from the bogus one.
1881 # However, it has the same basename, so the bogon will be chosen
1882 # first if we set CC to just the basename; use the full file name.
1884 set dummy "$ac_dir/$ac_word" "$@"
1892 if test -n "$CC"; then
1893 echo "$ac_t""$CC" 1>&6
1895 echo "$ac_t""no" 1>&6
1898 if test -z "$CC"; then
1899 case "`uname -s`" in
1901 # Extract the first word of "cl", so it can be a program name with args.
1902 set dummy cl; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 for ac_dir in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir=.
1915 if test -f $ac_dir/$ac_word; then
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1943 cross_compiling=$ac_cv_prog_cc_cross
1945 cat > conftest.$ac_ext << EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1953 ac_cv_prog_cc_works=yes
1954 # If we can't run a trivial program, we are probably using a cross compiler.
1955 if (./conftest; exit) 2>/dev/null; then
1956 ac_cv_prog_cc_cross=no
1958 ac_cv_prog_cc_cross=yes
1961 echo "configure: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1963 ac_cv_prog_cc_works=no
1967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1971 cross_compiling=$ac_cv_prog_cc_cross
1973 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1974 if test $ac_cv_prog_cc_works = no; then
1975 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1979 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1980 cross_compiling=$ac_cv_prog_cc_cross
1982 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1983 echo "configure:1984: checking whether we are using GNU C" >&5
1984 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.c <<EOF
1992 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1999 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2001 if test $ac_cv_prog_gcc = yes; then
2007 ac_test_CFLAGS="${CFLAGS+set}"
2008 ac_save_CFLAGS="$CFLAGS"
2010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2011 echo "configure:2012: checking whether ${CC-cc} accepts -g" >&5
2012 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 echo 'void f(){}' > conftest.c
2016 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2025 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2026 if test "$ac_test_CFLAGS" = set; then
2027 CFLAGS="$ac_save_CFLAGS"
2028 elif test $ac_cv_prog_cc_g = yes; then
2029 if test "$GCC" = yes; then
2035 if test "$GCC" = yes; then
2042 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2043 if test "${with_gnu_ld+set}" = set; then
2044 withval="$with_gnu_ld"
2045 test "$withval" = no || with_gnu_ld=yes
2052 if test "$ac_cv_prog_gcc" = yes; then
2053 # Check if gcc -print-prog-name=ld gives a path.
2054 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2055 echo "configure:2056: checking for ld used by GCC" >&5
2056 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2058 # Accept absolute paths.
2060 test -z "$LD" && LD="$ac_prog"
2063 # If it fails, then pretend we aren't using GCC.
2067 # If it is relative, then search for the first ld in PATH.
2071 elif test "$with_gnu_ld" = yes; then
2072 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2073 echo "configure:2074: checking for GNU ld" >&5
2075 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2076 echo "configure:2077: checking for non-GNU ld" >&5
2078 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 if test -z "$LD"; then
2082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2083 for ac_dir in $PATH; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f "$ac_dir/$ac_prog"; then
2086 ac_cv_path_LD="$ac_dir/$ac_prog"
2087 # Check to see if the program is GNU ld. I'd rather use --version,
2088 # but apparently some GNU ld's only accept -v.
2089 # Break only if it was the GNU/non-GNU ld that we prefer.
2090 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2091 test "$with_gnu_ld" != no && break
2093 test "$with_gnu_ld" != yes && break
2099 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2104 if test -n "$LD"; then
2105 echo "$ac_t""$LD" 1>&6
2107 echo "$ac_t""no" 1>&6
2109 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2111 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2112 echo "configure:2113: checking if the linker ($LD) is GNU ld" >&5
2113 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2117 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2118 ac_cv_prog_gnu_ld=yes
2120 ac_cv_prog_gnu_ld=no
2124 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2127 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2128 echo "configure:2129: checking for BSD-compatible nm" >&5
2129 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2134 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2138 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/nm; then
2141 # Check to see if the nm accepts a BSD-compat flag.
2142 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2143 # nm: unknown option "B" ignored
2144 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2145 ac_cv_path_NM="$ac_dir/nm -B"
2146 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2147 ac_cv_path_NM="$ac_dir/nm -p"
2149 ac_cv_path_NM="$ac_dir/nm"
2155 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2161 echo "$ac_t""$NM" 1>&6
2164 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether ln -s works" >&5
2166 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2170 if ln -s X conftestdata 2>/dev/null
2173 ac_cv_prog_LN_S="ln -s"
2178 LN_S="$ac_cv_prog_LN_S"
2179 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2180 echo "$ac_t""yes" 1>&6
2182 echo "$ac_t""no" 1>&6
2185 # Always use our own libtool.
2186 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2188 # Check for any special flags to pass to ltconfig.
2190 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2191 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2192 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2193 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2194 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2196 # Some flags need to be propagated to the compiler or linker for good
2200 # Find out which ABI we are using.
2201 echo '#line 2202 "configure"' > conftest.$ac_ext
2202 if { (eval echo configure:2203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2203 case "`/usr/bin/file conftest.o`" in
2219 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2220 CFLAGS="$CFLAGS -belf"
2224 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2225 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2226 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2227 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2228 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2229 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2232 for ac_prog in mawk gawk nawk awk
2234 # Extract the first word of "$ac_prog", so it can be a program name with args.
2235 set dummy $ac_prog; ac_word=$2
2236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_word" >&5
2238 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 if test -n "$AWK"; then
2242 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2246 for ac_dir in $ac_dummy; do
2247 test -z "$ac_dir" && ac_dir=.
2248 if test -f $ac_dir/$ac_word; then
2249 ac_cv_prog_AWK="$ac_prog"
2256 AWK="$ac_cv_prog_AWK"
2257 if test -n "$AWK"; then
2258 echo "$ac_t""$AWK" 1>&6
2260 echo "$ac_t""no" 1>&6
2263 test -n "$AWK" && break
2266 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether ln -s works" >&5
2268 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2272 if ln -s X conftestdata 2>/dev/null
2275 ac_cv_prog_LN_S="ln -s"
2280 LN_S="$ac_cv_prog_LN_S"
2281 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2282 echo "$ac_t""yes" 1>&6
2284 echo "$ac_t""no" 1>&6
2288 # Extract the first word of "sendmail", so it can be a program name with args.
2289 set dummy sendmail; ac_word=$2
2290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2291 echo "configure:2292: checking for $ac_word" >&5
2292 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2297 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2300 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2304 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2305 for ac_dir in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir=.
2307 if test -f $ac_dir/$ac_word; then
2308 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2313 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2317 SENDMAIL="$ac_cv_path_SENDMAIL"
2318 if test -n "$SENDMAIL"; then
2319 echo "$ac_t""$SENDMAIL" 1>&6
2321 echo "$ac_t""no" 1>&6
2324 # Extract the first word of "vi", so it can be a program name with args.
2325 set dummy vi; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2333 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2336 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 ac_dummy="$PATH:/usr/ucb"
2341 for ac_dir in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir=.
2343 if test -f $ac_dir/$ac_word; then
2344 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2349 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2353 EDITOR="$ac_cv_path_EDITOR"
2354 if test -n "$EDITOR"; then
2355 echo "$ac_t""$EDITOR" 1>&6
2357 echo "$ac_t""no" 1>&6
2360 # Extract the first word of "finger", so it can be a program name with args.
2361 set dummy finger; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2369 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2372 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2376 ac_dummy="$PATH:/usr/ucb"
2377 for ac_dir in $ac_dummy; do
2378 test -z "$ac_dir" && ac_dir=.
2379 if test -f $ac_dir/$ac_word; then
2380 ac_cv_path_FINGER="$ac_dir/$ac_word"
2385 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2389 FINGER="$ac_cv_path_FINGER"
2390 if test -n "$FINGER"; then
2391 echo "$ac_t""$FINGER" 1>&6
2393 echo "$ac_t""no" 1>&6
2397 if test $ol_enable_perl = yes ; then
2398 # Extract the first word of "perl", so it can be a program name with args.
2399 set dummy perl; ac_word=$2
2400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2401 echo "configure:2402: checking for $ac_word" >&5
2402 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2407 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2410 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2415 for ac_dir in $ac_dummy; do
2416 test -z "$ac_dir" && ac_dir=.
2417 if test -f $ac_dir/$ac_word; then
2418 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2423 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2427 PERLBIN="$ac_cv_path_PERLBIN"
2428 if test -n "$PERLBIN"; then
2429 echo "$ac_t""$PERLBIN" 1>&6
2431 echo "$ac_t""no" 1>&6
2435 if test "no$PERLBIN" = "no" ; then
2439 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2440 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2443 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2444 echo "configure:2445: checking how to run the C preprocessor" >&5
2445 # On Suns, sometimes $CPP names a directory.
2446 if test -n "$CPP" && test -d "$CPP"; then
2449 if test -z "$CPP"; then
2450 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 # This must be in double quotes, not single quotes, because CPP may get
2454 # substituted into the Makefile and "${CC-cc}" will confuse make.
2456 # On the NeXT, cc -E runs the code through the compiler's parser,
2457 # not just through cpp.
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2465 { (eval echo configure:2466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2467 if test -z "$ac_err"; then
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 CPP="${CC-cc} -E -traditional-cpp"
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2484 if test -z "$ac_err"; then
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 CPP="${CC-cc} -nologo -E"
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2515 ac_cv_prog_CPP="$CPP"
2517 CPP="$ac_cv_prog_CPP"
2519 ac_cv_prog_CPP="$CPP"
2521 echo "$ac_t""$CPP" 1>&6
2524 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2525 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2527 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2528 echo "configure: warning: programs compiled here do run here..." 1>&2
2529 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2531 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2532 echo "configure: warning: programs compiled here do not run here..." 1>&2
2533 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2536 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2537 echo "configure:2538: checking for AIX" >&5
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2547 egrep "yes" >/dev/null 2>&1; then
2549 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2550 #define _ALL_SOURCE 1
2555 echo "$ac_t""no" 1>&6
2560 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2561 echo "configure:2562: checking for POSIXized ISC" >&5
2562 if test -d /etc/conf/kconfig.d &&
2563 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2565 echo "$ac_t""yes" 1>&6
2566 ISC=yes # If later tests want to check for ISC.
2567 cat >> confdefs.h <<\EOF
2568 #define _POSIX_SOURCE 1
2571 if test "$GCC" = yes; then
2577 echo "$ac_t""no" 1>&6
2581 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2583 echo "configure:2584: checking for minix/config.h" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <minix/config.h>
2592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2597 eval "ac_cv_header_$ac_safe=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2603 eval "ac_cv_header_$ac_safe=no"
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2611 echo "$ac_t""no" 1>&6
2615 if test "$MINIX" = yes; then
2616 cat >> confdefs.h <<\EOF
2617 #define _POSIX_SOURCE 1
2620 cat >> confdefs.h <<\EOF
2621 #define _POSIX_1_SOURCE 2
2624 cat >> confdefs.h <<\EOF
2631 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2632 echo "configure:2633: checking for Cygwin environment" >&5
2633 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2643 #define __CYGWIN__ __CYGWIN32__
2648 if { (eval echo configure:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2661 echo "$ac_t""$ac_cv_cygwin" 1>&6
2663 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2664 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2665 echo "configure:2666: checking for mingw32 environment" >&5
2666 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2690 echo "$ac_t""$ac_cv_mingw32" 1>&6
2692 test "$ac_cv_mingw32" = yes && MINGW32=yes
2695 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2696 echo "configure:2697: checking for executable suffix" >&5
2697 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2704 echo 'int main () { return 0; }' > conftest.$ac_ext
2706 if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2707 for file in conftest.*; do
2709 *.c | *.o | *.obj) ;;
2710 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2714 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2717 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2722 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2723 echo "$ac_t""${ac_cv_exeext}" 1>&6
2726 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2727 echo "configure:2728: checking for object suffix" >&5
2728 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2732 echo 'int i = 1;' > conftest.$ac_ext
2733 if { (eval echo configure:2734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2734 for ac_file in conftest.*; do
2737 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2741 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2746 echo "$ac_t""$ac_cv_objext" 1>&6
2747 OBJEXT=$ac_cv_objext
2748 ac_objext=$ac_cv_objext
2754 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2755 echo "configure:2756: checking for ${CC-cc} option to accept ANSI C" >&5
2756 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 am_cv_prog_cc_stdc=no
2761 # Don't try gcc -ansi; that turns off useful extensions and
2762 # breaks some systems' header files.
2763 # AIX -qlanglvl=ansi
2764 # Ultrix and OSF/1 -std1
2765 # HP-UX -Aa -D_HPUX_SOURCE
2766 # SVR4 -Xc -D__EXTENSIONS__
2767 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769 CC="$ac_save_CC $ac_arg"
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2791 s = g (p, va_arg (v,int));
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2808 if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2810 am_cv_prog_cc_stdc="$ac_arg"; break
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2821 if test -z "$am_cv_prog_cc_stdc"; then
2822 echo "$ac_t""none needed" 1>&6
2824 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2826 case "x$am_cv_prog_cc_stdc" in
2828 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2831 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2832 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2838 echo $ac_n "checking for socket""... $ac_c" 1>&6
2839 echo "configure:2840: checking for socket" >&5
2840 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 cat > conftest.$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2846 /* System header to define __stub macros and hopefully few prototypes,
2847 which can conflict with char socket(); below. */
2849 /* Override any gcc2 internal prototype to avoid an error. */
2850 /* We use char because int might match the return type of a gcc2
2851 builtin and then its argument prototype would still apply. */
2856 /* The GNU C library defines this for functions which it implements
2857 to always fail with ENOSYS. Some functions are actually named
2858 something starting with __ and the normal name is an alias. */
2859 #if defined (__stub_socket) || defined (__stub___socket)
2867 if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2869 eval "ac_cv_func_socket=yes"
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 eval "ac_cv_func_socket=no"
2879 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2883 echo "$ac_t""no" 1>&6
2885 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2886 echo "configure:2887: checking for main in -lsocket" >&5
2887 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 ac_save_LIBS="$LIBS"
2892 LIBS="-lsocket $LIBS"
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2903 eval "ac_cv_lib_$ac_lib_var=yes"
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 eval "ac_cv_lib_$ac_lib_var=no"
2911 LIBS="$ac_save_LIBS"
2914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2918 cat >> confdefs.h <<EOF
2919 #define $ac_tr_lib 1
2922 LIBS="-lsocket $LIBS"
2925 echo "$ac_t""no" 1>&6
2928 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2929 echo "configure:2930: checking for main in -lnet" >&5
2930 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 ac_save_LIBS="$LIBS"
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2946 eval "ac_cv_lib_$ac_lib_var=yes"
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2951 eval "ac_cv_lib_$ac_lib_var=no"
2954 LIBS="$ac_save_LIBS"
2957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2961 cat >> confdefs.h <<EOF
2962 #define $ac_tr_lib 1
2968 echo "$ac_t""no" 1>&6
2971 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2972 echo "configure:2973: checking for main in -lnsl_s" >&5
2973 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 ac_save_LIBS="$LIBS"
2978 LIBS="-lnsl_s $LIBS"
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2987 if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2989 eval "ac_cv_lib_$ac_lib_var=yes"
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 eval "ac_cv_lib_$ac_lib_var=no"
2997 LIBS="$ac_save_LIBS"
3000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3004 cat >> confdefs.h <<EOF
3005 #define $ac_tr_lib 1
3008 LIBS="-lnsl_s $LIBS"
3011 echo "$ac_t""no" 1>&6
3014 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3015 echo "configure:3016: checking for main in -lnsl" >&5
3016 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 ac_save_LIBS="$LIBS"
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3032 eval "ac_cv_lib_$ac_lib_var=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 eval "ac_cv_lib_$ac_lib_var=no"
3040 LIBS="$ac_save_LIBS"
3043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3047 cat >> confdefs.h <<EOF
3048 #define $ac_tr_lib 1
3054 echo "$ac_t""no" 1>&6
3057 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3058 echo "configure:3059: checking for socket in -linet" >&5
3059 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 ac_save_LIBS="$LIBS"
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3094 cat >> confdefs.h <<EOF
3095 #define $ac_tr_lib 1
3101 echo "$ac_t""no" 1>&6
3104 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3105 echo "configure:3106: checking for main in -lgen" >&5
3106 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 ac_save_LIBS="$LIBS"
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3120 if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3122 eval "ac_cv_lib_$ac_lib_var=yes"
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3127 eval "ac_cv_lib_$ac_lib_var=no"
3130 LIBS="$ac_save_LIBS"
3133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3135 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3136 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3137 cat >> confdefs.h <<EOF
3138 #define $ac_tr_lib 1
3144 echo "$ac_t""no" 1>&6
3151 for ac_func in res_search
3153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_func" >&5
3155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* System header to define __stub macros and hopefully few prototypes,
3162 which can conflict with char $ac_func(); below. */
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3171 /* The GNU C library defines this for functions which it implements
3172 to always fail with ENOSYS. Some functions are actually named
3173 something starting with __ and the normal name is an alias. */
3174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3184 eval "ac_cv_func_$ac_func=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "ac_cv_func_$ac_func=no"
3194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3197 cat >> confdefs.h <<EOF
3198 #define $ac_tr_func 1
3202 echo "$ac_t""no" 1>&6
3206 if test $ac_cv_func_res_search = "no" ; then
3207 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3208 echo "configure:3209: checking for res_search in -lbind" >&5
3209 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 ac_save_LIBS="$LIBS"
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3218 /* Override any gcc2 internal prototype to avoid an error. */
3219 /* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3229 eval "ac_cv_lib_$ac_lib_var=yes"
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 eval "ac_cv_lib_$ac_lib_var=no"
3237 LIBS="$ac_save_LIBS"
3240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3244 cat >> confdefs.h <<EOF
3245 #define $ac_tr_lib 1
3251 echo "$ac_t""no" 1>&6
3254 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3255 cat >> confdefs.h <<\EOF
3256 #define HAVE_RES_SEARCH 1
3260 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3261 echo "configure:3262: checking for res_search in -lresolv" >&5
3262 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 ac_save_LIBS="$LIBS"
3267 LIBS="-lresolv $LIBS"
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 /* Override any gcc2 internal prototype to avoid an error. */
3272 /* We use char because int might match the return type of a gcc2
3273 builtin and then its argument prototype would still apply. */
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3282 eval "ac_cv_lib_$ac_lib_var=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_lib_$ac_lib_var=no"
3290 LIBS="$ac_save_LIBS"
3293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3294 echo "$ac_t""yes" 1>&6
3295 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3297 cat >> confdefs.h <<EOF
3298 #define $ac_tr_lib 1
3301 LIBS="-lresolv $LIBS"
3304 echo "$ac_t""no" 1>&6
3307 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3308 cat >> confdefs.h <<\EOF
3309 #define HAVE_RES_SEARCH 1
3316 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3317 echo "configure:3318: checking for sigset in -lV3" >&5
3318 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 ac_save_LIBS="$LIBS"
3324 cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 /* Override any gcc2 internal prototype to avoid an error. */
3328 /* We use char because int might match the return type of a gcc2
3329 builtin and then its argument prototype would still apply. */
3336 if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3338 eval "ac_cv_lib_$ac_lib_var=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 eval "ac_cv_lib_$ac_lib_var=no"
3346 LIBS="$ac_save_LIBS"
3349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3350 echo "$ac_t""yes" 1>&6
3351 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3353 cat >> confdefs.h <<EOF
3354 #define $ac_tr_lib 1
3360 echo "$ac_t""no" 1>&6
3366 if test $ol_enable_ldapd != no ; then
3367 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3368 echo "configure:3369: checking for main in -lxtpp" >&5
3369 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 ac_save_LIBS="$LIBS"
3374 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3385 eval "ac_cv_lib_$ac_lib_var=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_lib_$ac_lib_var=no"
3393 LIBS="$ac_save_LIBS"
3396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3400 cat >> confdefs.h <<\EOF
3404 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3407 echo "$ac_t""no" 1>&6
3411 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3412 echo "configure:3413: checking for main in -ldsap" >&5
3413 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 ac_save_LIBS="$LIBS"
3418 LIBS="-ldsap -lisode $LIBS"
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3429 eval "ac_cv_lib_$ac_lib_var=yes"
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3434 eval "ac_cv_lib_$ac_lib_var=no"
3437 LIBS="$ac_save_LIBS"
3440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3444 cat >> confdefs.h <<\EOF
3448 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3451 echo "$ac_t""no" 1>&6
3455 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3456 echo "configure:3457: checking for main in -lisode" >&5
3457 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 ac_save_LIBS="$LIBS"
3462 LIBS="-lisode $LIBS"
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 eval "ac_cv_lib_$ac_lib_var=yes"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 eval "ac_cv_lib_$ac_lib_var=no"
3481 LIBS="$ac_save_LIBS"
3484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3488 cat >> confdefs.h <<\EOF
3489 #define HAVE_ISODE 1
3492 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3495 echo "$ac_t""no" 1>&6
3501 if test $ol_link_isode != no; then
3502 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3503 echo "configure:3504: checking for main in -lpp" >&5
3504 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 ac_save_LIBS="$LIBS"
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3534 cat >> confdefs.h <<\EOF
3538 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3541 echo "$ac_t""no" 1>&6
3546 # Extract the first word of "pepsy", so it can be a program name with args.
3547 set dummy pepsy; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3558 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3563 for ac_dir in $ac_dummy; do
3564 test -z "$ac_dir" && ac_dir=.
3565 if test -f $ac_dir/$ac_word; then
3566 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3574 PEPSY="$ac_cv_path_PEPSY"
3575 if test -n "$PEPSY"; then
3576 echo "$ac_t""$PEPSY" 1>&6
3578 echo "$ac_t""no" 1>&6
3585 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3586 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3590 echo "configure:3591: checking for $ac_hdr" >&5
3591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3600 { (eval echo configure:3601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3602 if test -z "$ac_err"; then
3604 eval "ac_cv_header_$ac_safe=yes"
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 eval "ac_cv_header_$ac_safe=no"
3614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3617 cat >> confdefs.h <<EOF
3618 #define $ac_tr_hdr 1
3622 echo "$ac_t""no" 1>&6
3627 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3628 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3629 echo "configure:3630: checking for main in -lkrb4" >&5
3630 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 ac_save_LIBS="$LIBS"
3635 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 eval "ac_cv_lib_$ac_lib_var=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 eval "ac_cv_lib_$ac_lib_var=no"
3654 LIBS="$ac_save_LIBS"
3657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3661 echo "$ac_t""no" 1>&6
3666 if test $have_k5 = yes ; then
3667 ol_with_kerberos=found
3668 ol_link_kerberos=yes
3670 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3672 LIBS="$KRB_LIBS $LIBS"
3674 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3675 echo "configure:3676: checking for des_debug in Kerberos libraries" >&5
3676 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3681 LIBS="$KRB_LIBS $LIBS"
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3686 #include <kerberosIV/krb.h>
3687 #include <kerberosIV/des.h>
3688 extern int des_debug;
3696 if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3698 ol_cv_var_des_debug=yes
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 ol_cv_var_des_debug=no
3710 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3712 if test $ol_cv_var_des_debug= yes ; then
3713 cat >> confdefs.h <<\EOF
3714 #define HAVE_DES_DEBUG 1
3724 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3725 for ac_hdr in krb.h des.h
3727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3729 echo "configure:3730: checking for $ac_hdr" >&5
3730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3739 { (eval echo configure:3740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3741 if test -z "$ac_err"; then
3743 eval "ac_cv_header_$ac_safe=yes"
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3749 eval "ac_cv_header_$ac_safe=no"
3753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3756 cat >> confdefs.h <<EOF
3757 #define $ac_tr_hdr 1
3761 echo "$ac_t""no" 1>&6
3766 if test $ac_cv_header_krb_h = yes ; then
3767 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3768 echo "configure:3769: checking for main in -lkrb" >&5
3769 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS="$LIBS"
3774 LIBS="-lkrb -ldes $LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_lib_$ac_lib_var=no"
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3800 echo "$ac_t""no" 1>&6
3805 if test $have_k4 = yes ; then
3806 ol_with_kerberos=found
3807 ol_link_kerberos=yes
3809 KRB_LIBS="-lkrb -ldes"
3814 if test $ol_link_kerberos = yes ; then
3815 cat >> confdefs.h <<\EOF
3816 #define HAVE_KERBEROS 1
3822 if test $ol_with_tls != no ; then
3826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3828 echo "configure:3829: checking for $ac_hdr" >&5
3829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3838 { (eval echo configure:3839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3840 if test -z "$ac_err"; then
3842 eval "ac_cv_header_$ac_safe=yes"
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3848 eval "ac_cv_header_$ac_safe=no"
3852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3855 cat >> confdefs.h <<EOF
3856 #define $ac_tr_hdr 1
3860 echo "$ac_t""no" 1>&6
3865 if test $ac_cv_header_ssl_h = yes ; then
3866 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3867 echo "configure:3868: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3868 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 ac_save_LIBS="$LIBS"
3873 LIBS="-lssl -lcrypto $LIBS"
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 /* We use char because int might match the return type of a gcc2
3879 builtin and then its argument prototype would still apply. */
3880 char SSLeay_add_ssl_algorithms();
3883 SSLeay_add_ssl_algorithms()
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 eval "ac_cv_lib_$ac_lib_var=yes"
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 eval "ac_cv_lib_$ac_lib_var=no"
3896 LIBS="$ac_save_LIBS"
3899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3904 echo "$ac_t""no" 1>&6
3909 if test $have_ssleay = no ; then
3910 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
3911 echo "configure:3912: checking for ssl3_accept in -lssl" >&5
3912 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
3913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 ac_save_LIBS="$LIBS"
3917 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3932 eval "ac_cv_lib_$ac_lib_var=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 eval "ac_cv_lib_$ac_lib_var=no"
3940 LIBS="$ac_save_LIBS"
3943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3948 echo "$ac_t""no" 1>&6
3954 if test $have_ssleay = yes ; then
3958 cat >> confdefs.h <<\EOF
3959 #define HAVE_SSLEAY 1
3963 if test $need_rsaref = yes; then
3964 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
3966 TLS_LIBS="-lssl -lcrypto"
3972 if test $ol_link_tls = yes ; then
3973 cat >> confdefs.h <<\EOF
3981 gethostbyname_r gethostbyaddr_r \
3984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_func" >&5
3986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* System header to define __stub macros and hopefully few prototypes,
3993 which can conflict with char $ac_func(); below. */
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4002 /* The GNU C library defines this for functions which it implements
4003 to always fail with ENOSYS. Some functions are actually named
4004 something starting with __ and the normal name is an alias. */
4005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 eval "ac_cv_func_$ac_func=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 eval "ac_cv_func_$ac_func=no"
4025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4028 cat >> confdefs.h <<EOF
4029 #define $ac_tr_func 1
4033 echo "$ac_t""no" 1>&6
4038 if test "$ac_cv_func_ctime_r" = no ; then
4039 ol_cv_func_ctime_r_nargs=0
4041 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4042 echo "configure:4043: checking number of arguments of ctime_r" >&5
4043 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4054 if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 ol_cv_func_ctime_r_nargs=3
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4066 time_t ti; char *buffer; ctime_r(&ti,buffer);
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 ol_cv_func_ctime_r_nargs=2
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 ol_cv_func_ctime_r_nargs=0
4083 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4084 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4085 cat >> confdefs.h <<EOF
4086 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4093 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4094 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4095 echo "configure:4096: checking number of arguments of gethostbyname_r" >&5
4096 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <sys/types.h>
4103 #include <sys/socket.h>
4104 #include <netinet/in.h>
4106 #define BUFSIZE (sizeof(struct hostent)+10)
4108 struct hostent hent; char buffer[BUFSIZE];
4109 int bufsize=BUFSIZE;int h_errno;
4110 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4111 buffer, bufsize, &h_errno);
4115 if { (eval echo configure:4116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4117 ol_cv_func_gethostbyname_r_nargs=5
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 #include <sys/types.h>
4126 #include <sys/socket.h>
4127 #include <netinet/in.h>
4129 #define BUFSIZE (sizeof(struct hostent)+10)
4131 struct hostent hent;struct hostent *rhent;
4132 char buffer[BUFSIZE];
4133 int bufsize=BUFSIZE;int h_errno;
4134 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4139 if { (eval echo configure:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4141 ol_cv_func_gethostbyname_r_nargs=6
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4146 ol_cv_func_gethostbyname_r_nargs=0
4153 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4154 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4155 cat >> confdefs.h <<EOF
4156 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4162 ol_cv_func_gethostbyname_r_nargs=0
4165 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4166 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4167 echo "configure:4168: checking number of arguments of gethostbyaddr_r" >&5
4168 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 #include <sys/types.h>
4175 #include <sys/socket.h>
4176 #include <netinet/in.h>
4178 #define BUFSIZE (sizeof(struct hostent)+10)
4180 struct hostent hent; char buffer[BUFSIZE];
4181 struct in_addr add={0x70707070};
4182 size_t alen=sizeof(struct in_addr);
4183 int bufsize=BUFSIZE;int h_errno;
4184 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4185 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4189 if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4191 ol_cv_func_gethostbyaddr_r_nargs=7
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 #include <sys/types.h>
4200 #include <sys/socket.h>
4201 #include <netinet/in.h>
4203 #define BUFSIZE (sizeof(struct hostent)+10)
4205 struct hostent hent;
4206 struct hostent *rhent; char buffer[BUFSIZE];
4207 struct in_addr add={0x70707070};
4208 size_t alen=sizeof(struct in_addr);
4209 int bufsize=BUFSIZE;int h_errno;
4210 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4211 alen, AF_INET, &hent, buffer, bufsize,
4216 if { (eval echo configure:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4218 ol_cv_func_gethostbyaddr_r_nargs=8
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 ol_cv_func_gethostbyaddr_r_nargs=0
4230 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4231 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4232 cat >> confdefs.h <<EOF
4233 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4239 ol_cv_func_gethostbyaddr_r_nargs=0
4242 if test "$ac_cv_func_ctime_r" = yes \
4243 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4244 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4245 -a "$ac_cv_func_gethostbyname_r" = yes \
4246 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4247 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4248 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4249 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4250 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4253 cat >> confdefs.h <<\EOF
4254 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4260 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4261 -o $ol_with_threads = posix ; then
4263 for ac_hdr in pthread.h sched.h
4265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4267 echo "configure:4268: checking for $ac_hdr" >&5
4268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4277 { (eval echo configure:4278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4279 if test -z "$ac_err"; then
4281 eval "ac_cv_header_$ac_safe=yes"
4284 echo "configure: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4287 eval "ac_cv_header_$ac_safe=no"
4291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4294 cat >> confdefs.h <<EOF
4295 #define $ac_tr_hdr 1
4299 echo "$ac_t""no" 1>&6
4304 if test $ac_cv_header_pthread_h = yes ; then
4305 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4306 echo "configure:4307: checking POSIX thread version" >&5
4307 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4315 # include <pthread.h>
4316 /* this check could be improved */
4317 # ifdef PTHREAD_ONCE_INIT
4318 pthread_version_final
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 egrep "pthread_version_final" >/dev/null 2>&1; then
4325 ol_pthread_final=yes
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4337 # include <pthread.h>
4338 /* this check could be improved */
4339 # ifdef pthread_once_init
4340 pthread_version_draft4
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4347 ol_pthread_draft4=yes
4350 ol_pthread_draft4=no
4355 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4356 ol_cv_pthread_version=final
4357 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4358 ol_cv_pthread_version=draft4
4360 ol_cv_pthread_version=unknown
4365 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4368 if test $ol_cv_pthread_version = final ; then
4369 cat >> confdefs.h <<\EOF
4370 #define HAVE_PTHREADS_FINAL 1
4373 elif test $ol_cv_pthread_version = draft4 ; then
4374 cat >> confdefs.h <<\EOF
4375 #define HAVE_PTHREADS_D4 1
4379 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4382 # consider threads found
4383 ol_with_threads=found
4386 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4387 echo "configure:4388: checking for LinuxThreads" >&5
4388 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4392 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4393 if test "$res" -gt 0 ; then
4394 ol_cv_linux_threads=yes
4396 ol_cv_linux_threads=no
4401 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4404 if test $ol_cv_linux_threads = yes ; then
4405 cat >> confdefs.h <<\EOF
4406 #define HAVE_LINUX_THREADS 1
4412 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4413 echo "configure:4414: checking for pthread_create" >&5
4414 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420 /* System header to define __stub macros and hopefully few prototypes,
4421 which can conflict with char pthread_create(); below. */
4423 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426 char pthread_create();
4430 /* The GNU C library defines this for functions which it implements
4431 to always fail with ENOSYS. Some functions are actually named
4432 something starting with __ and the normal name is an alias. */
4433 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4441 if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443 eval "ac_cv_func_pthread_create=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4448 eval "ac_cv_func_pthread_create=no"
4453 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4457 echo "$ac_t""no" 1>&6
4461 if test $ol_link_threads = no ; then
4462 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4463 echo "configure:4464: checking for pthread_create with -kthread" >&5
4464 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4469 LIBS="-kthread $LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 #include <pthread.h>
4476 #if HAVE_PTHREADS_D4
4477 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4479 pthread_create(NULL,NULL,NULL,NULL);
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 ol_cv_kthread_flag=yes
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 ol_cv_kthread_flag=no
4498 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4500 if test $ol_cv_kthread_flag = yes ; then
4501 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4502 ol_link_threads=posix
4506 if test $ol_link_threads = no ; then
4507 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4508 echo "configure:4509: checking for pthread_create with -pthread" >&5
4509 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4514 LIBS="-pthread $LIBS"
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 #include <pthread.h>
4521 #if HAVE_PTHREADS_D4
4522 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4524 pthread_create(NULL,NULL,NULL,NULL);
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4531 ol_cv_pthread_flag=yes
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 ol_cv_pthread_flag=no
4543 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4545 if test $ol_cv_pthread_flag = yes ; then
4546 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4547 ol_link_threads=posix
4551 if test $ol_link_threads = no ; then
4552 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4553 echo "configure:4554: checking for pthread_create with -pthreads" >&5
4554 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4559 LIBS="-pthreads $LIBS"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 #include <pthread.h>
4566 #if HAVE_PTHREADS_D4
4567 pthread_create(NULL,pthread_attr_default,NULL,NULL);
4569 pthread_create(NULL,NULL,NULL,NULL);
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 ol_cv_pthreads_flag=yes
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 ol_cv_pthreads_flag=no
4588 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4590 if test $ol_cv_pthreads_flag = yes ; then
4591 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4592 ol_link_threads=posix
4596 if test $ol_link_threads = no ; then
4597 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4598 echo "configure:4599: checking for pthread_create with -thread" >&5
4599 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4604 LIBS="-thread $LIBS"
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 char pthread_create();
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4615 ol_cv_thread_flag=yes
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 ol_cv_thread_flag=no
4627 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4629 if test $ol_cv_thread_flag = yes ; then
4630 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4631 ol_link_threads=posix
4635 if test $ol_link_threads = no ; then
4636 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4637 echo "configure:4638: checking for pthread_create with -mt" >&5
4638 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 char pthread_create();
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4654 ol_cv_thread_flag=yes
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 ol_cv_thread_flag=no
4666 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4668 if test $ol_cv_thread_flag = yes ; then
4669 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4670 ol_link_threads=posix
4674 if test $ol_link_threads = no ; then
4676 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4677 echo "configure:4678: checking for pthread_mutex_unlock in -lpthread" >&5
4678 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 ac_save_LIBS="$LIBS"
4683 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* Override any gcc2 internal prototype to avoid an error. */
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4690 char pthread_mutex_unlock();
4693 pthread_mutex_unlock()
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_lib_$ac_lib_var=no"
4706 LIBS="$ac_save_LIBS"
4709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4712 ol_link_threads=posix
4713 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4714 if test $ol_with_yielding_select = auto ; then
4715 ol_with_yielding_select=yes
4719 echo "$ac_t""no" 1>&6
4726 if test $ol_link_threads = no ; then
4728 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4729 echo "configure:4730: checking for pthread_mutex_lock in -lpthread" >&5
4730 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS="$LIBS"
4735 LIBS="-lpthread -lmach -lexc $LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4742 char pthread_mutex_lock();
4745 pthread_mutex_lock()
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4764 ol_link_threads=posix
4765 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4766 if test $ol_with_yielding_select = auto ; then
4767 ol_with_yielding_select=yes
4771 echo "$ac_t""no" 1>&6
4778 if test $ol_link_threads = no ; then
4780 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4781 echo "configure:4782: checking for pthread_mutex_trylock in -lpthread" >&5
4782 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 ac_save_LIBS="$LIBS"
4787 LIBS="-lpthread -lexc $LIBS"
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 /* Override any gcc2 internal prototype to avoid an error. */
4792 /* We use char because int might match the return type of a gcc2
4793 builtin and then its argument prototype would still apply. */
4794 char pthread_mutex_trylock();
4797 pthread_mutex_trylock()
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4802 eval "ac_cv_lib_$ac_lib_var=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4807 eval "ac_cv_lib_$ac_lib_var=no"
4810 LIBS="$ac_save_LIBS"
4813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4814 echo "$ac_t""yes" 1>&6
4816 ol_link_threads=posix
4817 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4818 if test $ol_with_yielding_select = auto ; then
4819 ol_with_yielding_select=yes
4823 echo "$ac_t""no" 1>&6
4830 if test $ol_link_threads = no ; then
4832 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4833 echo "configure:4834: checking for pthread_create in -lpthread" >&5
4834 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 ac_save_LIBS="$LIBS"
4839 LIBS="-lpthread $LIBS"
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* Override any gcc2 internal prototype to avoid an error. */
4844 /* We use char because int might match the return type of a gcc2
4845 builtin and then its argument prototype would still apply. */
4846 char pthread_create();
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 eval "ac_cv_lib_$ac_lib_var=yes"
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4859 eval "ac_cv_lib_$ac_lib_var=no"
4862 LIBS="$ac_save_LIBS"
4865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4866 echo "$ac_t""yes" 1>&6
4868 ol_link_threads=posix
4869 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4871 echo "$ac_t""no" 1>&6
4878 if test $ol_link_threads = no ; then
4880 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4881 echo "configure:4882: checking for pthread_create in -lc_r" >&5
4882 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 ac_save_LIBS="$LIBS"
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */
4894 char pthread_create();
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 eval "ac_cv_lib_$ac_lib_var=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4907 eval "ac_cv_lib_$ac_lib_var=no"
4910 LIBS="$ac_save_LIBS"
4913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4916 ol_link_threads=posix
4917 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4919 echo "$ac_t""no" 1>&6
4926 if test $ol_link_threads = no ; then
4928 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4929 echo "configure:4930: checking for pthread_create in -lpthreads" >&5
4930 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 ac_save_LIBS="$LIBS"
4935 LIBS="-lpthreads $LIBS"
4936 cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 /* Override any gcc2 internal prototype to avoid an error. */
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4942 char pthread_create();
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4950 eval "ac_cv_lib_$ac_lib_var=yes"
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4955 eval "ac_cv_lib_$ac_lib_var=no"
4958 LIBS="$ac_save_LIBS"
4961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4964 ol_link_threads=posix
4965 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4967 echo "$ac_t""no" 1>&6
4974 if test $ol_link_threads = no ; then
4976 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4977 echo "configure:4978: checking for pthread_join in -lpthreads" >&5
4978 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 ac_save_LIBS="$LIBS"
4983 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4990 char pthread_join();
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998 eval "ac_cv_lib_$ac_lib_var=yes"
5000 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5003 eval "ac_cv_lib_$ac_lib_var=no"
5006 LIBS="$ac_save_LIBS"
5009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5010 echo "$ac_t""yes" 1>&6
5012 ol_link_threads=posix
5013 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
5016 echo "$ac_t""no" 1>&6
5023 if test $ol_link_threads = no ; then
5024 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
5025 echo "configure:5026: checking for pthread_create with -threads" >&5
5026 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5031 LIBS="-threads $LIBS"
5032 cat > conftest.$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 char pthread_create();
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5044 ol_cv_thread_flag=yes
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 ol_cv_thread_flag=no
5056 echo "$ac_t""$ol_cv_thread_flag" 1>&6
5058 if test $ol_cv_thread_flag = yes ; then
5059 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
5060 ol_link_threads=posix
5064 if test $ol_link_threads = no ; then
5066 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
5067 echo "configure:5068: checking for pthread_mutex_unlock in -lpthreads" >&5
5068 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
5069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 ac_save_LIBS="$LIBS"
5073 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5080 char pthread_mutex_unlock();
5083 pthread_mutex_unlock()
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 eval "ac_cv_lib_$ac_lib_var=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 eval "ac_cv_lib_$ac_lib_var=no"
5096 LIBS="$ac_save_LIBS"
5099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5102 ol_link_threads=posix
5103 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
5104 if test $ol_with_yielding_select = auto ; then
5105 ol_with_yielding_select=yes
5109 echo "$ac_t""no" 1>&6
5116 if test $ol_link_threads = no ; then
5118 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
5119 echo "configure:5120: checking for pthread_mutex_lock in -lpthreads" >&5
5120 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
5121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 ac_save_LIBS="$LIBS"
5125 LIBS="-lpthreads -lmach -lexc $LIBS"
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5132 char pthread_mutex_lock();
5135 pthread_mutex_lock()
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5140 eval "ac_cv_lib_$ac_lib_var=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_lib_$ac_lib_var=no"
5148 LIBS="$ac_save_LIBS"
5151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5154 ol_link_threads=posix
5155 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
5156 if test $ol_with_yielding_select = auto ; then
5157 ol_with_yielding_select=yes
5161 echo "$ac_t""no" 1>&6
5168 if test $ol_link_threads = no ; then
5170 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
5171 echo "configure:5172: checking for pthread_mutex_trylock in -lpthreads" >&5
5172 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
5173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 ac_save_LIBS="$LIBS"
5177 LIBS="-lpthreads -lexc $LIBS"
5178 cat > conftest.$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5181 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184 char pthread_mutex_trylock();
5187 pthread_mutex_trylock()
5190 if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5192 eval "ac_cv_lib_$ac_lib_var=yes"
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 eval "ac_cv_lib_$ac_lib_var=no"
5200 LIBS="$ac_save_LIBS"
5203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5204 echo "$ac_t""yes" 1>&6
5206 ol_link_threads=posix
5207 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
5208 if test $ol_with_yielding_select = auto ; then
5209 ol_with_yielding_select=yes
5213 echo "$ac_t""no" 1>&6
5220 if test $ol_link_threads != no ; then
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_PTHREADS 1
5226 save_CPPFLAGS="$CPPFLAGS"
5228 LIBS="$LTHREAD_LIBS $LIBS"
5230 for ac_func in sched_yield pthread_yield
5232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5233 echo "configure:5234: checking for $ac_func" >&5
5234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* System header to define __stub macros and hopefully few prototypes,
5241 which can conflict with char $ac_func(); below. */
5243 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5250 /* The GNU C library defines this for functions which it implements
5251 to always fail with ENOSYS. Some functions are actually named
5252 something starting with __ and the normal name is an alias. */
5253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5263 eval "ac_cv_func_$ac_func=yes"
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 eval "ac_cv_func_$ac_func=no"
5273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5276 cat >> confdefs.h <<EOF
5277 #define $ac_tr_func 1
5281 echo "$ac_t""no" 1>&6
5286 if test $ac_cv_func_sched_yield = no -a \
5287 $ac_cv_func_pthread_yield = no ; then
5288 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5289 echo "configure:5290: checking for sched_yield in -lrt" >&5
5290 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 ac_save_LIBS="$LIBS"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5310 eval "ac_cv_lib_$ac_lib_var=yes"
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5315 eval "ac_cv_lib_$ac_lib_var=no"
5318 LIBS="$ac_save_LIBS"
5321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5322 echo "$ac_t""yes" 1>&6
5323 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5324 cat >> confdefs.h <<\EOF
5325 #define HAVE_SCHED_YIELD 1
5328 ac_cv_func_sched_yield=yes
5330 echo "$ac_t""no" 1>&6
5331 ac_cv_func_sched_yield=no
5335 if test $ac_cv_func_sched_yield = no -a \
5336 $ac_cv_func_pthread_yield = no ; then
5337 for ac_func in thr_yield
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func(); below. */
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5357 /* The GNU C library defines this for functions which it implements
5358 to always fail with ENOSYS. Some functions are actually named
5359 something starting with __ and the normal name is an alias. */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5370 eval "ac_cv_func_$ac_func=yes"
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 eval "ac_cv_func_$ac_func=no"
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381 echo "$ac_t""yes" 1>&6
5382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383 cat >> confdefs.h <<EOF
5384 #define $ac_tr_func 1
5388 echo "$ac_t""no" 1>&6
5393 if test $ac_cv_func_sched_yield = no -a \
5394 $ac_cv_func_pthread_yield = no -a \
5395 "$ac_cv_func_thr_yield" = no ; then
5396 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5399 for ac_func in pthread_kill
5401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5402 echo "configure:5403: checking for $ac_func" >&5
5403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 cat > conftest.$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 /* System header to define __stub macros and hopefully few prototypes,
5410 which can conflict with char $ac_func(); below. */
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5419 /* The GNU C library defines this for functions which it implements
5420 to always fail with ENOSYS. Some functions are actually named
5421 something starting with __ and the normal name is an alias. */
5422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5432 eval "ac_cv_func_$ac_func=yes"
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 eval "ac_cv_func_$ac_func=no"
5442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5445 cat >> confdefs.h <<EOF
5446 #define $ac_tr_func 1
5450 echo "$ac_t""no" 1>&6
5455 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5456 echo "configure:5457: checking for pthread_detach with <pthread.h>" >&5
5457 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <pthread.h>
5466 pthread_detach(NULL);
5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5471 ol_cv_func_pthread_detach=yes
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 ol_cv_func_pthread_detach=no
5482 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5484 if test $ol_cv_func_pthread_detach = no ; then
5485 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5488 cat >> confdefs.h <<\EOF
5489 #define HAVE_PTHREAD_DETACH 1
5494 pthread_setconcurrency \
5495 pthread_getconcurrency \
5496 thr_setconcurrency \
5497 thr_getconcurrency \
5500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5501 echo "configure:5502: checking for $ac_func" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char $ac_func(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531 eval "ac_cv_func_$ac_func=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 eval "ac_cv_func_$ac_func=no"
5541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5544 cat >> confdefs.h <<EOF
5545 #define $ac_tr_func 1
5549 echo "$ac_t""no" 1>&6
5554 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5555 echo "configure:5556: checking if pthread_create() works" >&5
5556 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5560 if test "$cross_compiling" = yes; then
5561 ol_cv_pthread_create_works=yes
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5567 #include <pthread.h>
5569 #define NULL (void*)0
5572 static void *task(p)
5575 return (void *) (p == NULL);
5578 int main(argc, argv)
5583 #if HAVE_PTHREADS_D4
5584 exit(pthread_create(&t, pthread_attr_default, task, NULL));
5586 exit(pthread_create(&t, NULL, task, NULL));
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5593 ol_cv_pthread_create_works=yes
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 ol_cv_pthread_create_works=no
5605 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5607 if test $ol_cv_pthread_create_works = no ; then
5608 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
5611 if test $ol_with_yielding_select = auto ; then
5612 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5613 echo "configure:5614: checking if select yields when using pthreads" >&5
5614 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5618 if test "$cross_compiling" = yes; then
5620 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5622 cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5626 #include <sys/types.h>
5627 #include <sys/time.h>
5629 #include <pthread.h>
5631 #define NULL (void*) 0
5634 static int fildes[2];
5636 static void *task(p)
5648 FD_SET(fildes[0], &rfds);
5650 /* we're not interested in any fds */
5651 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5658 exit(0); /* if we exit here, the select blocked the whole process */
5661 int main(argc, argv)
5667 /* create a pipe to select */
5668 if(pipe(&fildes[0])) {
5673 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5674 (void) pthread_setconcurrency(2);
5676 #ifdef HAVE_THR_SETCONCURRENCY
5677 /* Set Solaris LWP concurrency to 2 */
5678 thr_setconcurrency(2);
5682 #if HAVE_PTHREADS_D4
5683 pthread_create(&t, pthread_attr_default, task, NULL);
5685 pthread_create(&t, NULL, task, NULL);
5688 #if HAVE_SCHED_YIELD
5689 sched_yield(); /* make sure task runs first */
5691 #ifdef HAVE_PTHREAD_YIELD
5692 pthread_yield(); /* make sure task runs first */
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5701 ol_cv_pthread_select_yields=no
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5706 ol_cv_pthread_select_yields=yes
5713 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5715 if test $ol_cv_pthread_select_yields = yes ; then
5716 ol_with_yielding_select=yes
5720 CPPFLAGS="$save_CPPFLAGS"
5723 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5727 if test $ol_with_threads = posix ; then
5728 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5732 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5733 -o $ol_with_threads = mach ; then
5735 for ac_hdr in mach/cthreads.h
5737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5739 echo "configure:5740: checking for $ac_hdr" >&5
5740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5749 { (eval echo configure:5750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5751 if test -z "$ac_err"; then
5753 eval "ac_cv_header_$ac_safe=yes"
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 eval "ac_cv_header_$ac_safe=no"
5763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5766 cat >> confdefs.h <<EOF
5767 #define $ac_tr_hdr 1
5771 echo "$ac_t""no" 1>&6
5775 if test $ac_cv_header_mach_cthreads_h = yes ; then
5776 ol_with_threads=found
5778 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5779 echo "configure:5780: checking for cthread_fork" >&5
5780 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 /* System header to define __stub macros and hopefully few prototypes,
5787 which can conflict with char cthread_fork(); below. */
5789 /* Override any gcc2 internal prototype to avoid an error. */
5790 /* We use char because int might match the return type of a gcc2
5791 builtin and then its argument prototype would still apply. */
5792 char cthread_fork();
5796 /* The GNU C library defines this for functions which it implements
5797 to always fail with ENOSYS. Some functions are actually named
5798 something starting with __ and the normal name is an alias. */
5799 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5807 if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5809 eval "ac_cv_func_cthread_fork=yes"
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5814 eval "ac_cv_func_cthread_fork=no"
5819 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5820 echo "$ac_t""yes" 1>&6
5823 echo "$ac_t""no" 1>&6
5827 if test $ol_link_threads = no ; then
5828 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5829 echo "configure:5830: checking for cthread_fork with -all_load" >&5
5830 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5835 LIBS="-all_load $LIBS"
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 #include <mach/cthreads.h>
5842 cthread_fork((void *)0, (void *)0);
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 ol_cv_cthread_all_load=yes
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 ol_cv_cthread_all_load=no
5860 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5862 if test $ol_cv_cthread_all_load = yes ; then
5863 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5864 ol_link_threads=mach
5868 if test $ol_link_threads != no ; then
5869 : check for cthread specific functionality here
5870 cat >> confdefs.h <<\EOF
5871 #define HAVE_MACH_CTHREADS 1
5875 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5879 if test $ol_with_threads = mach ; then
5880 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5884 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5885 -o $ol_with_threads = lwp ; then
5887 for ac_hdr in thread.h synch.h
5889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_hdr" >&5
5892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 if test -z "$ac_err"; then
5905 eval "ac_cv_header_$ac_safe=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_header_$ac_safe=no"
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_hdr 1
5923 echo "$ac_t""no" 1>&6
5927 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5928 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5929 echo "configure:5930: checking for thr_create in -lthread" >&5
5930 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 ac_save_LIBS="$LIBS"
5935 LIBS="-lthread $LIBS"
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 eval "ac_cv_lib_$ac_lib_var=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_lib_$ac_lib_var=no"
5958 LIBS="$ac_save_LIBS"
5961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5965 echo "$ac_t""no" 1>&6
5970 if test $have_thr = yes ; then
5971 cat >> confdefs.h <<\EOF
5975 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5978 if test $ol_with_yielding_select = auto ; then
5979 ol_with_yielding_select=yes
5983 thr_setconcurrency \
5984 thr_getconcurrency \
5987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_func" >&5
5989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 /* System header to define __stub macros and hopefully few prototypes,
5996 which can conflict with char $ac_func(); below. */
5998 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6005 /* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018 eval "ac_cv_func_$ac_func=yes"
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 eval "ac_cv_func_$ac_func=no"
6028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6029 echo "$ac_t""yes" 1>&6
6030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6031 cat >> confdefs.h <<EOF
6032 #define $ac_tr_func 1
6036 echo "$ac_t""no" 1>&6
6043 for ac_hdr in lwp/lwp.h
6045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6047 echo "configure:6048: checking for $ac_hdr" >&5
6048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6057 { (eval echo configure:6058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6059 if test -z "$ac_err"; then
6061 eval "ac_cv_header_$ac_safe=yes"
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 eval "ac_cv_header_$ac_safe=no"
6071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6074 cat >> confdefs.h <<EOF
6075 #define $ac_tr_hdr 1
6079 echo "$ac_t""no" 1>&6
6083 if test $ac_cv_header_lwp_lwp_h = yes ; then
6084 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6085 echo "configure:6086: checking for lwp_create in -llwp" >&5
6086 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 ac_save_LIBS="$LIBS"
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6106 eval "ac_cv_lib_$ac_lib_var=yes"
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 eval "ac_cv_lib_$ac_lib_var=no"
6114 LIBS="$ac_save_LIBS"
6117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6118 echo "$ac_t""yes" 1>&6
6121 echo "$ac_t""no" 1>&6
6126 if test $have_lwp = yes ; then
6127 cat >> confdefs.h <<\EOF
6131 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6134 if test $ol_with_yielding_select = auto ; then
6135 ol_with_yielding_select=no
6141 if test $ol_with_yielding_select = yes ; then
6142 cat >> confdefs.h <<\EOF
6143 #define HAVE_YIELDING_SELECT 1
6148 if test $ol_with_threads = manual ; then
6151 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6153 for ac_hdr in pthread.h sched.h
6155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6157 echo "configure:6158: checking for $ac_hdr" >&5
6158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6167 { (eval echo configure:6168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6169 if test -z "$ac_err"; then
6171 eval "ac_cv_header_$ac_safe=yes"
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6177 eval "ac_cv_header_$ac_safe=no"
6181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6184 cat >> confdefs.h <<EOF
6185 #define $ac_tr_hdr 1
6189 echo "$ac_t""no" 1>&6
6193 for ac_func in sched_yield pthread_yield
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func(); below. */
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 eval "ac_cv_func_$ac_func=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 eval "ac_cv_func_$ac_func=no"
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239 cat >> confdefs.h <<EOF
6240 #define $ac_tr_func 1
6244 echo "$ac_t""no" 1>&6
6249 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
6250 echo "configure:6251: checking for LinuxThreads" >&5
6251 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6255 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
6256 if test "$res" -gt 0 ; then
6257 ol_cv_linux_threads=yes
6259 ol_cv_linux_threads=no
6264 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6267 for ac_hdr in mach/cthreads.h
6269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_hdr" >&5
6272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6281 { (eval echo configure:6282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6283 if test -z "$ac_err"; then
6285 eval "ac_cv_header_$ac_safe=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_header_$ac_safe=no"
6295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6298 cat >> confdefs.h <<EOF
6299 #define $ac_tr_hdr 1
6303 echo "$ac_t""no" 1>&6
6307 for ac_hdr in lwp/lwp.h
6309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_hdr" >&5
6312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6321 { (eval echo configure:6322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6323 if test -z "$ac_err"; then
6325 eval "ac_cv_header_$ac_safe=yes"
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 eval "ac_cv_header_$ac_safe=no"
6335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_hdr 1
6343 echo "$ac_t""no" 1>&6
6347 for ac_hdr in thread.h synch.h
6349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6351 echo "configure:6352: checking for $ac_hdr" >&5
6352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6361 { (eval echo configure:6362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6363 if test -z "$ac_err"; then
6365 eval "ac_cv_header_$ac_safe=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_header_$ac_safe=no"
6375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6378 cat >> confdefs.h <<EOF
6379 #define $ac_tr_hdr 1
6383 echo "$ac_t""no" 1>&6
6389 if test $ol_link_threads != no ; then
6390 cat >> confdefs.h <<\EOF
6394 cat >> confdefs.h <<\EOF
6395 #define _REENTRANT 1
6398 cat >> confdefs.h <<\EOF
6399 #define THREAD_SAFE 1
6402 cat >> confdefs.h <<\EOF
6403 #define _THREAD_SAFE 1
6406 cat >> confdefs.h <<\EOF
6407 #define THREADSAFE 1
6410 cat >> confdefs.h <<\EOF
6411 #define _THREADSAFE 1
6415 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6416 echo "configure:6417: checking for thread specific errno" >&5
6417 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431 ol_cv_errno_thread_specific=yes
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6436 ol_cv_errno_thread_specific=no
6442 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6444 if test $ol_cv_errno_thread_specific != yes ; then
6445 LIBS="$LTHREAD_LIBS $LIBS"
6451 if test $ol_link_threads = no ; then
6452 if test $ol_with_threads = yes ; then
6453 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6456 if test $ol_with_threads = auto ; then
6457 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6461 cat >> confdefs.h <<\EOF
6462 #define NO_THREADS 1
6468 if test $ol_link_threads != no ; then
6469 cat >> confdefs.h <<\EOF
6470 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
6477 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6478 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6479 echo "configure:6480: checking for DB2 library" >&5
6480 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6484 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6485 echo "configure:6486: checking for db_open in -ldb" >&5
6486 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 ac_save_LIBS="$LIBS"
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 eval "ac_cv_lib_$ac_lib_var=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 eval "ac_cv_lib_$ac_lib_var=no"
6514 LIBS="$ac_save_LIBS"
6517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6521 echo "$ac_t""no" 1>&6
6529 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6535 echo "configure:6536: checking for $ac_hdr" >&5
6536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6545 { (eval echo configure:6546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6547 if test -z "$ac_err"; then
6549 eval "ac_cv_header_$ac_safe=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_header_$ac_safe=no"
6559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6562 cat >> confdefs.h <<EOF
6563 #define $ac_tr_hdr 1
6567 echo "$ac_t""no" 1>&6
6571 if test $ac_cv_header_db_h = yes ; then
6572 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6573 echo "configure:6574: checking if db.h is DB2" >&5
6574 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6583 /* this check could be improved */
6584 # ifdef DB_VERSION_MAJOR
6585 # if DB_VERSION_MAJOR == 2
6591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6592 egrep "__db_version_2" >/dev/null 2>&1; then
6594 ol_cv_header_db2=yes
6603 echo "$ac_t""$ol_cv_header_db2" 1>&6
6610 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6611 echo "configure:6612: checking for Berkeley DB2" >&5
6612 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6613 echo $ac_n "(cached) $ac_c" 1>&6
6616 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6617 ol_cv_berkeley_db2=no
6619 ol_cv_berkeley_db2=yes
6624 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6625 if test $ol_cv_berkeley_db2 = yes ; then
6626 cat >> confdefs.h <<\EOF
6627 #define HAVE_BERKELEY_DB2 1
6633 if test $ol_cv_berkeley_db2 = yes ; then
6635 ol_with_ldbm_api=db2
6637 if test $ol_with_ldbm_type = hash ; then
6638 cat >> confdefs.h <<\EOF
6639 #define LDBM_USE_DBHASH 1
6643 cat >> confdefs.h <<\EOF
6644 #define LDBM_USE_DBBTREE 1
6649 if test $ol_cv_lib_db2 != yes ; then
6650 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6656 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6660 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6661 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6662 echo "configure:6663: checking for Berkeley DB library" >&5
6663 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6667 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6668 echo "configure:6669: checking for dbopen" >&5
6669 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char dbopen(); below. */
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 eval "ac_cv_func_dbopen=yes"
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 eval "ac_cv_func_dbopen=no"
6708 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6712 echo "$ac_t""no" 1>&6
6714 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6715 echo "configure:6716: checking for dbopen in -ldb" >&5
6716 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 ac_save_LIBS="$LIBS"
6722 cat > conftest.$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6736 eval "ac_cv_lib_$ac_lib_var=yes"
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 eval "ac_cv_lib_$ac_lib_var=no"
6744 LIBS="$ac_save_LIBS"
6747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6748 echo "$ac_t""yes" 1>&6
6751 echo "$ac_t""no" 1>&6
6762 echo "$ac_t""$ol_cv_lib_db" 1>&6
6765 for ac_hdr in db_185.h
6767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_hdr" >&5
6770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6779 { (eval echo configure:6780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6781 if test -z "$ac_err"; then
6783 eval "ac_cv_header_$ac_safe=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_header_$ac_safe=no"
6793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6796 cat >> confdefs.h <<EOF
6797 #define $ac_tr_hdr 1
6801 echo "$ac_t""no" 1>&6
6805 if test "$ol_cv_header_db2" = yes ; then
6807 ol_cv_header_db=$ac_cv_header_db_185_h
6809 ol_cv_header_db=$ac_cv_header_db_h
6814 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6815 echo "configure:6816: checking for Berkeley DB" >&5
6816 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6820 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6821 ol_cv_berkeley_db=no
6823 ol_cv_berkeley_db=yes
6828 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6829 if test $ol_cv_berkeley_db = yes ; then
6830 cat >> confdefs.h <<\EOF
6831 #define HAVE_BERKELEY_DB 1
6837 if test $ol_cv_berkeley_db = yes ; then
6841 if test $ol_with_ldbm_type = hash ; then
6842 cat >> confdefs.h <<\EOF
6843 #define LDBM_USE_DBHASH 1
6847 cat >> confdefs.h <<\EOF
6848 #define LDBM_USE_DBBTREE 1
6853 if test $ol_cv_lib_db != yes ; then
6854 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6859 if test $ol_with_ldbm_api = manual ; then
6862 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6864 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6868 echo "configure:6869: checking for $ac_hdr" >&5
6869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6878 { (eval echo configure:6879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6880 if test -z "$ac_err"; then
6882 eval "ac_cv_header_$ac_safe=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_header_$ac_safe=no"
6892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6893 echo "$ac_t""yes" 1>&6
6894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6895 cat >> confdefs.h <<EOF
6896 #define $ac_tr_hdr 1
6900 echo "$ac_t""no" 1>&6
6906 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6907 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6908 ol_with_ldbm_api=none
6911 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6912 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6913 echo "configure:6914: checking for GDBM library" >&5
6914 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6915 echo $ac_n "(cached) $ac_c" 1>&6
6918 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6919 echo "configure:6920: checking for gdbm_open" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char gdbm_open(); below. */
6929 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6949 eval "ac_cv_func_gdbm_open=yes"
6951 echo "configure: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6954 eval "ac_cv_func_gdbm_open=no"
6959 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6963 echo "$ac_t""no" 1>&6
6965 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6966 echo "configure:6967: checking for gdbm_open in -lgdbm" >&5
6967 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 ac_save_LIBS="$LIBS"
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6987 eval "ac_cv_lib_$ac_lib_var=yes"
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 eval "ac_cv_lib_$ac_lib_var=no"
6995 LIBS="$ac_save_LIBS"
6998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6999 echo "$ac_t""yes" 1>&6
7000 ol_cv_lib_gdbm=-lgdbm
7002 echo "$ac_t""no" 1>&6
7013 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7016 for ac_hdr in gdbm.h
7018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7020 echo "configure:7021: checking for $ac_hdr" >&5
7021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7030 { (eval echo configure:7031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7032 if test -z "$ac_err"; then
7034 eval "ac_cv_header_$ac_safe=yes"
7037 echo "configure: failed program was:" >&5
7038 cat conftest.$ac_ext >&5
7040 eval "ac_cv_header_$ac_safe=no"
7044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7047 cat >> confdefs.h <<EOF
7048 #define $ac_tr_hdr 1
7052 echo "$ac_t""no" 1>&6
7056 echo $ac_n "checking for db""... $ac_c" 1>&6
7057 echo "configure:7058: checking for db" >&5
7058 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7062 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7070 echo "$ac_t""$ol_cv_gdbm" 1>&6
7071 if test $ol_cv_gdbm = yes ; then
7072 cat >> confdefs.h <<\EOF
7079 if test $ol_cv_gdbm = yes ; then
7081 ol_with_ldbm_api=gdbm
7083 if test $ol_cv_lib_gdbm != yes ; then
7084 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7089 if test $ol_with_ldbm_api = auto ; then
7090 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7091 elif test $ol_with_ldbm_api = ndbm ; then
7092 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7093 echo "configure:7094: checking for NDBM library" >&5
7094 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7098 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7099 echo "configure:7100: checking for dbm_open" >&5
7100 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7106 /* System header to define __stub macros and hopefully few prototypes,
7107 which can conflict with char dbm_open(); below. */
7109 /* Override any gcc2 internal prototype to avoid an error. */
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7116 /* The GNU C library defines this for functions which it implements
7117 to always fail with ENOSYS. Some functions are actually named
7118 something starting with __ and the normal name is an alias. */
7119 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 eval "ac_cv_func_dbm_open=yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 eval "ac_cv_func_dbm_open=no"
7139 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7143 echo "$ac_t""no" 1>&6
7145 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7146 echo "configure:7147: checking for dbm_open in -lndbm" >&5
7147 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 ac_save_LIBS="$LIBS"
7153 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 /* Override any gcc2 internal prototype to avoid an error. */
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7165 if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7167 eval "ac_cv_lib_$ac_lib_var=yes"
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 eval "ac_cv_lib_$ac_lib_var=no"
7175 LIBS="$ac_save_LIBS"
7178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7179 echo "$ac_t""yes" 1>&6
7180 ol_cv_lib_ndbm=-lndbm
7182 echo "$ac_t""no" 1>&6
7184 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
7185 echo "configure:7186: checking for dbm_open in -ldbm" >&5
7186 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
7187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 ac_save_LIBS="$LIBS"
7192 cat > conftest.$ac_ext <<EOF
7193 #line 7194 "configure"
7194 #include "confdefs.h"
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 eval "ac_cv_lib_$ac_lib_var=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 eval "ac_cv_lib_$ac_lib_var=no"
7214 LIBS="$ac_save_LIBS"
7217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ol_cv_lib_ndbm=-ldbm
7221 echo "$ac_t""no" 1>&6
7234 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
7237 for ac_hdr in ndbm.h
7239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_hdr" >&5
7242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7251 { (eval echo configure:7252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7253 if test -z "$ac_err"; then
7255 eval "ac_cv_header_$ac_safe=yes"
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7261 eval "ac_cv_header_$ac_safe=no"
7265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7266 echo "$ac_t""yes" 1>&6
7267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7268 cat >> confdefs.h <<EOF
7269 #define $ac_tr_hdr 1
7273 echo "$ac_t""no" 1>&6
7277 echo $ac_n "checking for db""... $ac_c" 1>&6
7278 echo "configure:7279: checking for db" >&5
7279 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7283 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7291 echo "$ac_t""$ol_cv_ndbm" 1>&6
7292 if test $ol_cv_ndbm = yes ; then
7293 cat >> confdefs.h <<\EOF
7300 if test $ol_cv_ndbm = yes ; then
7302 ol_with_ldbm_api=ndbm
7304 if test $ol_cv_lib_ndbm != yes ; then
7305 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7310 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7311 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7312 if test $ol_enable_ldbm = yes ; then
7313 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7316 echo "configure: warning: disabling LDBM" 1>&2
7320 if test $ol_enable_wrappers != no ; then
7321 for ac_hdr in tcpd.h
7323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7325 echo "configure:7326: checking for $ac_hdr" >&5
7326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7335 { (eval echo configure:7336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7337 if test -z "$ac_err"; then
7339 eval "ac_cv_header_$ac_safe=yes"
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7345 eval "ac_cv_header_$ac_safe=no"
7349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7350 echo "$ac_t""yes" 1>&6
7351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7352 cat >> confdefs.h <<EOF
7353 #define $ac_tr_hdr 1
7357 echo "$ac_t""no" 1>&6
7362 if test $ac_cv_header_tcpd_h != yes ; then
7365 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7366 echo "configure:7367: checking for main in -lwrap" >&5
7367 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6
7371 ac_save_LIBS="$LIBS"
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7381 if { (eval echo configure:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7383 eval "ac_cv_lib_$ac_lib_var=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 eval "ac_cv_lib_$ac_lib_var=no"
7391 LIBS="$ac_save_LIBS"
7394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7395 echo "$ac_t""yes" 1>&6
7398 echo "$ac_t""no" 1>&6
7404 if test $have_wrappers = yes ; then
7405 cat >> confdefs.h <<\EOF
7409 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7411 echo "configure: warning: could not find -lwrap" 1>&2
7412 if test $ol_enable_wrappers = yes ; then
7413 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7416 echo "configure: warning: disabling wrappers support" 1>&2
7417 ol_enable_wrappers=no
7421 if test $ol_enable_syslog != no ; then
7422 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7423 echo "configure:7424: checking for openlog" >&5
7424 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char openlog(); below. */
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 /* We use char because int might match the return type of a gcc2
7435 builtin and then its argument prototype would still apply. */
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_openlog) || defined (__stub___openlog)
7451 if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7453 eval "ac_cv_func_openlog=yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7458 eval "ac_cv_func_openlog=no"
7463 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7467 echo "$ac_t""no" 1>&6
7470 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7471 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7473 ol_enable_syslog=$ac_cv_func_openlog
7476 if test $ol_enable_dmalloc != no ; then
7477 for ac_hdr in dmalloc.h
7479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7481 echo "configure:7482: checking for $ac_hdr" >&5
7482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7485 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7491 { (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7493 if test -z "$ac_err"; then
7495 eval "ac_cv_header_$ac_safe=yes"
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 eval "ac_cv_header_$ac_safe=no"
7505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7506 echo "$ac_t""yes" 1>&6
7507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7508 cat >> confdefs.h <<EOF
7509 #define $ac_tr_hdr 1
7513 echo "$ac_t""no" 1>&6
7517 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7518 echo "configure:7519: checking for dmalloc_shutdown in -ldmalloc" >&5
7519 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7521 echo $ac_n "(cached) $ac_c" 1>&6
7523 ac_save_LIBS="$LIBS"
7524 LIBS="-ldmalloc $LIBS"
7525 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 /* Override any gcc2 internal prototype to avoid an error. */
7529 /* We use char because int might match the return type of a gcc2
7530 builtin and then its argument prototype would still apply. */
7531 char dmalloc_shutdown();
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7539 eval "ac_cv_lib_$ac_lib_var=yes"
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7544 eval "ac_cv_lib_$ac_lib_var=no"
7547 LIBS="$ac_save_LIBS"
7550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7554 cat >> confdefs.h <<EOF
7555 #define $ac_tr_lib 1
7558 LIBS="-ldmalloc $LIBS"
7561 echo "$ac_t""no" 1>&6
7566 if test $ol_enable_tcl != no ; then
7569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7571 echo "configure:7572: checking for $ac_hdr" >&5
7572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7573 echo $ac_n "(cached) $ac_c" 1>&6
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7581 { (eval echo configure:7582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7583 if test -z "$ac_err"; then
7585 eval "ac_cv_header_$ac_safe=yes"
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7591 eval "ac_cv_header_$ac_safe=no"
7595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7598 cat >> confdefs.h <<EOF
7599 #define $ac_tr_hdr 1
7603 echo "$ac_t""no" 1>&6
7608 if test $ac_cv_header_tcl_h != yes ; then
7611 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7612 echo "configure:7613: checking for main in -ltcl" >&5
7613 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7617 ac_save_LIBS="$LIBS"
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7627 if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7629 eval "ac_cv_lib_$ac_lib_var=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 eval "ac_cv_lib_$ac_lib_var=no"
7637 LIBS="$ac_save_LIBS"
7640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7641 echo "$ac_t""yes" 1>&6
7642 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7644 echo "$ac_t""no" 1>&6
7649 if test $have_tcl != yes; then
7650 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7651 echo "configure:7652: checking for main in -ltcl7.6" >&5
7652 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7656 ac_save_LIBS="$LIBS"
7657 LIBS="-ltcl7.6 $LIBS"
7658 cat > conftest.$ac_ext <<EOF
7659 #line 7660 "configure"
7660 #include "confdefs.h"
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 eval "ac_cv_lib_$ac_lib_var=yes"
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7673 eval "ac_cv_lib_$ac_lib_var=no"
7676 LIBS="$ac_save_LIBS"
7679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7683 echo "$ac_t""no" 1>&6
7689 if test $have_tcl != yes; then
7690 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7691 echo "configure:7692: checking for main in -ltcl8.0" >&5
7692 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7696 ac_save_LIBS="$LIBS"
7697 LIBS="-ltcl8.0 $LIBS"
7698 cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 eval "ac_cv_lib_$ac_lib_var=yes"
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval "ac_cv_lib_$ac_lib_var=no"
7716 LIBS="$ac_save_LIBS"
7719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7720 echo "$ac_t""yes" 1>&6
7721 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7723 echo "$ac_t""no" 1>&6
7730 if test $have_tcl != yes ; then
7731 echo "configure: warning: could not find -ltcl" 1>&2
7732 if test $ol_enable_tcl = yes ; then
7733 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7740 # ud needs termcap (should insert check here)
7742 for ac_hdr in termcap.h ncurses.h
7744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_hdr" >&5
7747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7756 { (eval echo configure:7757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7758 if test -z "$ac_err"; then
7760 eval "ac_cv_header_$ac_safe=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 eval "ac_cv_header_$ac_safe=no"
7770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7773 cat >> confdefs.h <<EOF
7774 #define $ac_tr_hdr 1
7778 echo "$ac_t""no" 1>&6
7783 if test $ol_link_termcap = no ; then
7784 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7785 echo "configure:7786: checking for tputs in -ltermcap" >&5
7786 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 ac_save_LIBS="$LIBS"
7791 LIBS="-ltermcap $LIBS"
7792 cat > conftest.$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7806 eval "ac_cv_lib_$ac_lib_var=yes"
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 eval "ac_cv_lib_$ac_lib_var=no"
7814 LIBS="$ac_save_LIBS"
7817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7821 echo "$ac_t""no" 1>&6
7825 if test $have_termcap = yes ; then
7826 cat >> confdefs.h <<\EOF
7827 #define HAVE_TERMCAP 1
7831 TERMCAP_LIBS=-ltermcap
7835 if test $ol_link_termcap = no ; then
7836 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7837 echo "configure:7838: checking for initscr in -lncurses" >&5
7838 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7842 ac_save_LIBS="$LIBS"
7843 LIBS="-lncurses $LIBS"
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7847 /* Override any gcc2 internal prototype to avoid an error. */
7848 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7858 eval "ac_cv_lib_$ac_lib_var=yes"
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7863 eval "ac_cv_lib_$ac_lib_var=no"
7866 LIBS="$ac_save_LIBS"
7869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7870 echo "$ac_t""yes" 1>&6
7873 echo "$ac_t""no" 1>&6
7877 if test $have_ncurses = yes ; then
7878 cat >> confdefs.h <<\EOF
7879 #define HAVE_NCURSES 1
7883 TERMCAP_LIBS=-lncurses
7887 if test $ol_link_termcap = no ; then
7888 cat >> confdefs.h <<\EOF
7889 #define NO_TERMCAP 1
7895 # FreeBSD (and others) have crypt(3) in -lcrypt
7896 if test $ol_enable_crypt != no ; then
7897 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7898 echo "configure:7899: checking for crypt" >&5
7899 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* System header to define __stub macros and hopefully few prototypes,
7906 which can conflict with char crypt(); below. */
7908 /* Override any gcc2 internal prototype to avoid an error. */
7909 /* We use char because int might match the return type of a gcc2
7910 builtin and then its argument prototype would still apply. */
7915 /* The GNU C library defines this for functions which it implements
7916 to always fail with ENOSYS. Some functions are actually named
7917 something starting with __ and the normal name is an alias. */
7918 #if defined (__stub_crypt) || defined (__stub___crypt)
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 eval "ac_cv_func_crypt=yes"
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 eval "ac_cv_func_crypt=no"
7938 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7939 echo "$ac_t""yes" 1>&6
7942 echo "$ac_t""no" 1>&6
7944 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7945 echo "configure:7946: checking for crypt in -lcrypt" >&5
7946 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7950 ac_save_LIBS="$LIBS"
7951 LIBS="-lcrypt $LIBS"
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7971 eval "ac_cv_lib_$ac_lib_var=no"
7974 LIBS="$ac_save_LIBS"
7977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7982 echo "$ac_t""no" 1>&6
7989 if test $have_crypt = yes ; then
7990 cat >> confdefs.h <<\EOF
7991 #define HAVE_CRYPT 1
7995 echo "configure: warning: could not find crypt" 1>&2
7996 if test $ol_enable_crypt = yes ; then
7997 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8000 echo "configure: warning: disabling crypt support" 1>&2
8005 # FreeBSD (and others) have setproctitle(3) in -lutil
8006 if test $ol_enable_proctitle != no ; then
8007 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8008 echo "configure:8009: checking for setproctitle" >&5
8009 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* System header to define __stub macros and hopefully few prototypes,
8016 which can conflict with char setproctitle(); below. */
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8021 char setproctitle();
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8036 if { (eval echo configure:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8038 eval "ac_cv_func_setproctitle=yes"
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8043 eval "ac_cv_func_setproctitle=no"
8048 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 have_setproctitle=yes
8052 echo "$ac_t""no" 1>&6
8054 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8055 echo "configure:8056: checking for setproctitle in -lutil" >&5
8056 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8060 ac_save_LIBS="$LIBS"
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8065 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8068 char setproctitle();
8074 if { (eval echo configure:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8076 eval "ac_cv_lib_$ac_lib_var=yes"
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8081 eval "ac_cv_lib_$ac_lib_var=no"
8084 LIBS="$ac_save_LIBS"
8087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8088 echo "$ac_t""yes" 1>&6
8089 have_setproctitle=yes
8090 LUTIL_LIBS="$LUTIL_LIBS -lutil"
8092 echo "$ac_t""no" 1>&6
8093 have_setproctitle=no
8094 LIBOBJS="$LIBOBJS setproctitle.o"
8100 if test $have_setproctitle = yes ; then
8101 cat >> confdefs.h <<\EOF
8102 #define HAVE_SETPROCTITLE 1
8108 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8109 echo "configure:8110: checking for ANSI C header files" >&5
8110 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8124 if test -z "$ac_err"; then
8126 ac_cv_header_stdc=yes
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 ac_cv_header_stdc=no
8136 if test $ac_cv_header_stdc = yes; then
8137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144 egrep "memchr" >/dev/null 2>&1; then
8148 ac_cv_header_stdc=no
8154 if test $ac_cv_header_stdc = yes; then
8155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8162 egrep "free" >/dev/null 2>&1; then
8166 ac_cv_header_stdc=no
8172 if test $ac_cv_header_stdc = yes; then
8173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8174 if test "$cross_compiling" = yes; then
8177 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8181 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8182 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8184 int main () { int i; for (i = 0; i < 256; i++)
8185 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8196 ac_cv_header_stdc=no
8204 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8205 if test $ac_cv_header_stdc = yes; then
8206 cat >> confdefs.h <<\EOF
8207 #define STDC_HEADERS 1
8213 if test $ac_cv_header_stdc != yes; then
8214 echo "configure: warning: could not Standard C compliant headers" 1>&2
8218 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8221 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_hdr that defines DIR" >&5
8223 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 #include <sys/types.h>
8235 if { (eval echo configure:8236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8237 eval "ac_cv_header_dirent_$ac_safe=yes"
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8242 eval "ac_cv_header_dirent_$ac_safe=no"
8246 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8247 echo "$ac_t""yes" 1>&6
8248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8249 cat >> confdefs.h <<EOF
8250 #define $ac_tr_hdr 1
8252 ac_header_dirent=$ac_hdr; break
8254 echo "$ac_t""no" 1>&6
8257 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8258 if test $ac_header_dirent = dirent.h; then
8259 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8260 echo "configure:8261: checking for opendir in -ldir" >&5
8261 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8265 ac_save_LIBS="$LIBS"
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8279 if { (eval echo configure:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8281 eval "ac_cv_lib_$ac_lib_var=yes"
8283 echo "configure: failed program was:" >&5
8284 cat conftest.$ac_ext >&5
8286 eval "ac_cv_lib_$ac_lib_var=no"
8289 LIBS="$ac_save_LIBS"
8292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8293 echo "$ac_t""yes" 1>&6
8296 echo "$ac_t""no" 1>&6
8300 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8301 echo "configure:8302: checking for opendir in -lx" >&5
8302 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8306 ac_save_LIBS="$LIBS"
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8311 /* Override any gcc2 internal prototype to avoid an error. */
8312 /* We use char because int might match the return type of a gcc2
8313 builtin and then its argument prototype would still apply. */
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8322 eval "ac_cv_lib_$ac_lib_var=yes"
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 eval "ac_cv_lib_$ac_lib_var=no"
8330 LIBS="$ac_save_LIBS"
8333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8334 echo "$ac_t""yes" 1>&6
8337 echo "$ac_t""no" 1>&6
8342 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8343 echo "configure:8344: checking for sys/wait.h that is POSIX.1 compatible" >&5
8344 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8350 #include <sys/types.h>
8351 #include <sys/wait.h>
8353 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8356 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8364 if { (eval echo configure:8365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8366 ac_cv_header_sys_wait_h=yes
8368 echo "configure: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8371 ac_cv_header_sys_wait_h=no
8376 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8377 if test $ac_cv_header_sys_wait_h = yes; then
8378 cat >> confdefs.h <<\EOF
8379 #define HAVE_SYS_WAIT_H 1
8384 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8385 echo "configure:8386: checking POSIX termios" >&5
8386 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 #include <sys/types.h>
8394 #include <termios.h>
8396 /* SunOS 4.0.3 has termios.h but not the library calls. */
8400 if { (eval echo configure:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8402 am_cv_sys_posix_termios=yes
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8407 am_cv_sys_posix_termios=no
8412 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8415 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8416 echo "configure:8417: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8417 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8422 gwinsz_in_termios_h=no
8423 if test $am_cv_sys_posix_termios = yes; then
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427 #include <sys/types.h>
8428 # include <termios.h>
8434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8435 egrep "yes" >/dev/null 2>&1; then
8437 gwinsz_in_termios_h=yes
8443 if test $gwinsz_in_termios_h = no; then
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 #include <sys/types.h>
8448 # include <sys/ioctl.h>
8454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8455 egrep "yes" >/dev/null 2>&1; then
8457 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8465 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8466 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8467 cat >> confdefs.h <<\EOF
8468 #define GWINSZ_IN_SYS_IOCTL 1
8473 if test $am_cv_sys_posix_termios = yes ; then
8474 cat >> confdefs.h <<\EOF
8475 #define HAVE_POSIX_TERMIOS 1
8517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8519 echo "configure:8520: checking for $ac_hdr" >&5
8520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8529 { (eval echo configure:8530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8531 if test -z "$ac_err"; then
8533 eval "ac_cv_header_$ac_safe=yes"
8536 echo "configure: failed program was:" >&5
8537 cat conftest.$ac_ext >&5
8539 eval "ac_cv_header_$ac_safe=no"
8543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8544 echo "$ac_t""yes" 1>&6
8545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8546 cat >> confdefs.h <<EOF
8547 #define $ac_tr_hdr 1
8551 echo "$ac_t""no" 1>&6
8556 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8557 echo "configure:8558: checking for uid_t in sys/types.h" >&5
8558 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8559 echo $ac_n "(cached) $ac_c" 1>&6
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8564 #include <sys/types.h>
8566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8567 egrep "uid_t" >/dev/null 2>&1; then
8569 ac_cv_type_uid_t=yes
8578 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8579 if test $ac_cv_type_uid_t = no; then
8580 cat >> confdefs.h <<\EOF
8584 cat >> confdefs.h <<\EOF
8590 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8591 echo "configure:8592: checking type of array argument to getgroups" >&5
8592 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8593 echo $ac_n "(cached) $ac_c" 1>&6
8595 if test "$cross_compiling" = yes; then
8596 ac_cv_type_getgroups=cross
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8602 /* Thanks to Mike Rendell for this test. */
8603 #include <sys/types.h>
8606 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8611 union { gid_t gval; long lval; } val;
8614 for (i = 0; i < NGID; i++)
8615 gidset[i] = val.gval;
8616 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8618 /* Exit non-zero if getgroups seems to require an array of ints. This
8619 happens when gid_t is short but getgroups modifies an array of ints. */
8620 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8626 ac_cv_type_getgroups=gid_t
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8631 ac_cv_type_getgroups=int
8636 if test $ac_cv_type_getgroups = cross; then
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8643 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8645 ac_cv_type_getgroups=gid_t
8648 ac_cv_type_getgroups=int
8655 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8656 cat >> confdefs.h <<EOF
8657 #define GETGROUPS_T $ac_cv_type_getgroups
8660 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8661 echo "configure:8662: checking for mode_t" >&5
8662 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <sys/types.h>
8674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8675 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8677 ac_cv_type_mode_t=yes
8680 ac_cv_type_mode_t=no
8685 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8686 if test $ac_cv_type_mode_t = no; then
8687 cat >> confdefs.h <<\EOF
8693 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8694 echo "configure:8695: checking for off_t" >&5
8695 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8696 echo $ac_n "(cached) $ac_c" 1>&6
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 #include <sys/types.h>
8707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8708 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8710 ac_cv_type_off_t=yes
8718 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8719 if test $ac_cv_type_off_t = no; then
8720 cat >> confdefs.h <<\EOF
8726 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8727 echo "configure:8728: checking for pid_t" >&5
8728 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 #include <sys/types.h>
8740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8741 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8743 ac_cv_type_pid_t=yes
8751 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8752 if test $ac_cv_type_pid_t = no; then
8753 cat >> confdefs.h <<\EOF
8759 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8760 echo "configure:8761: checking for ptrdiff_t" >&5
8761 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8774 am_cv_type_ptrdiff_t=yes
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8779 am_cv_type_ptrdiff_t=no
8784 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8785 if test $am_cv_type_ptrdiff_t = yes; then
8786 cat >> confdefs.h <<\EOF
8787 #define HAVE_PTRDIFF_T 1
8792 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8793 echo "configure:8794: checking return type of signal handlers" >&5
8794 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8797 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure"
8799 #include "confdefs.h"
8800 #include <sys/types.h>
8806 extern "C" void (*signal (int, void (*)(int)))(int);
8808 void (*signal ()) ();
8815 if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8817 ac_cv_type_signal=void
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8822 ac_cv_type_signal=int
8827 echo "$ac_t""$ac_cv_type_signal" 1>&6
8828 cat >> confdefs.h <<EOF
8829 #define RETSIGTYPE $ac_cv_type_signal
8833 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8834 echo "configure:8835: checking for sig_atomic_t" >&5
8835 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8843 sig_atomic_t atomic;
8846 if { (eval echo configure:8847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8848 ol_cv_type_sig_atomic_t=yes
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 ol_cv_type_sig_atomic_t=no
8858 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8859 if test $ol_cv_type_sig_atomic_t = no; then
8860 cat >> confdefs.h <<\EOF
8861 #define sig_atomic_t int
8866 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8867 echo "configure:8868: checking for size_t" >&5
8868 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8874 #include <sys/types.h>
8880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8881 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8883 ac_cv_type_size_t=yes
8886 ac_cv_type_size_t=no
8891 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8892 if test $ac_cv_type_size_t = no; then
8893 cat >> confdefs.h <<\EOF
8894 #define size_t unsigned
8899 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8900 echo "configure:8901: checking for st_blksize in struct stat" >&5
8901 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 #include <sys/types.h>
8908 #include <sys/stat.h>
8910 struct stat s; s.st_blksize;
8913 if { (eval echo configure:8914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8915 ac_cv_struct_st_blksize=yes
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 ac_cv_struct_st_blksize=no
8925 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8926 if test $ac_cv_struct_st_blksize = yes; then
8927 cat >> confdefs.h <<\EOF
8928 #define HAVE_ST_BLKSIZE 1
8933 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8934 echo "configure:8935: checking whether time.h and sys/time.h may both be included" >&5
8935 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 #include <sys/types.h>
8942 #include <sys/time.h>
8948 if { (eval echo configure:8949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8950 ac_cv_header_time=yes
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 ac_cv_header_time=no
8960 echo "$ac_t""$ac_cv_header_time" 1>&6
8961 if test $ac_cv_header_time = yes; then
8962 cat >> confdefs.h <<\EOF
8963 #define TIME_WITH_SYS_TIME 1
8968 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8969 echo "configure:8970: checking whether struct tm is in sys/time.h or time.h" >&5
8970 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 #include <sys/types.h>
8979 struct tm *tp; tp->tm_sec;
8982 if { (eval echo configure:8983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8984 ac_cv_struct_tm=time.h
8986 echo "configure: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8989 ac_cv_struct_tm=sys/time.h
8994 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8995 if test $ac_cv_struct_tm = sys/time.h; then
8996 cat >> confdefs.h <<\EOF
8997 #define TM_IN_SYS_TIME 1
9004 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
9005 echo "configure:9006: checking if toupper() requires islower()" >&5
9006 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
9007 echo $ac_n "(cached) $ac_c" 1>&6
9010 if test "$cross_compiling" = yes; then
9011 ol_cv_c_upper_lower=safe
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9020 if ('C' == toupper('C'))
9026 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9028 ol_cv_c_upper_lower=no
9030 echo "configure: failed program was:" >&5
9031 cat conftest.$ac_ext >&5
9033 ol_cv_c_upper_lower=yes
9040 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
9041 if test $ol_cv_c_upper_lower != no ; then
9042 cat >> confdefs.h <<\EOF
9043 #define C_UPPER_LOWER 1
9048 echo $ac_n "checking for working const""... $ac_c" 1>&6
9049 echo "configure:9050: checking for working const" >&5
9050 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9059 /* Ultrix mips cc rejects this. */
9060 typedef int charset[2]; const charset x;
9061 /* SunOS 4.1.1 cc rejects this. */
9062 char const *const *ccp;
9064 /* NEC SVR4.0.2 mips cc rejects this. */
9065 struct point {int x, y;};
9066 static struct point const zero = {0,0};
9067 /* AIX XL C 1.02.0.0 rejects this.
9068 It does not let you subtract one const X* pointer from another in an arm
9069 of an if-expression whose if-part is not a constant expression */
9070 const char *g = "string";
9071 ccp = &g + (g ? g-g : 0);
9072 /* HPUX 7.0 cc rejects these. */
9075 ccp = (char const *const *) p;
9076 { /* SCO 3.2v4 cc rejects this. */
9078 char const *s = 0 ? (char *) 0 : (char const *) 0;
9082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9084 const int *foo = &x[0];
9087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9088 typedef const int *iptr;
9092 { /* AIX XL C 1.02.0.0 rejects this saying
9093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9094 struct s { int j; const int *ap[3]; };
9095 struct s *b; b->j = 5;
9097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9103 if { (eval echo configure:9104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9115 echo "$ac_t""$ac_cv_c_const" 1>&6
9116 if test $ac_cv_c_const = no; then
9117 cat >> confdefs.h <<\EOF
9123 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
9124 echo "configure:9125: checking if compiler understands volatile" >&5
9125 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
9126 echo $ac_n "(cached) $ac_c" 1>&6
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9133 volatile int a; int * volatile b = x ? &y : &z;
9134 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
9138 if { (eval echo configure:9139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9140 ol_cv_c_volatile=yes
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9150 echo "$ac_t""$ol_cv_c_volatile" 1>&6
9151 if test $ol_cv_c_volatile = yes; then
9154 cat >> confdefs.h <<\EOF
9161 if test $cross_compiling = yes ; then
9162 cat >> confdefs.h <<\EOF
9163 #define CROSS_COMPILING 1
9167 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9168 echo "configure:9169: checking whether byte ordering is bigendian" >&5
9169 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9172 ac_cv_c_bigendian=unknown
9173 # See if sys/param.h defines the BYTE_ORDER macro.
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 #include <sys/types.h>
9178 #include <sys/param.h>
9181 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9186 if { (eval echo configure:9187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9188 # It does; now see whether it defined to BIG_ENDIAN or not.
9189 cat > conftest.$ac_ext <<EOF
9190 #line 9191 "configure"
9191 #include "confdefs.h"
9192 #include <sys/types.h>
9193 #include <sys/param.h>
9196 #if BYTE_ORDER != BIG_ENDIAN
9201 if { (eval echo configure:9202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9203 ac_cv_c_bigendian=yes
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 ac_cv_c_bigendian=no
9212 echo "configure: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9216 if test $ac_cv_c_bigendian = unknown; then
9217 if test "$cross_compiling" = yes; then
9218 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 /* Are we little or big endian? From Harbison&Steele. */
9228 char c[sizeof (long)];
9231 exit (u.c[sizeof (long) - 1] == 1);
9234 if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9236 ac_cv_c_bigendian=no
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9241 ac_cv_c_bigendian=yes
9249 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9250 if test $ac_cv_c_bigendian = yes; then
9251 cat >> confdefs.h <<\EOF
9252 #define WORDS_BIGENDIAN 1
9257 echo $ac_n "checking size of short""... $ac_c" 1>&6
9258 echo "configure:9259: checking size of short" >&5
9259 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9262 if test "$cross_compiling" = yes; then
9263 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9271 FILE *f=fopen("conftestval", "w");
9273 fprintf(f, "%d\n", sizeof(short));
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9279 ac_cv_sizeof_short=`cat conftestval`
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 ac_cv_sizeof_short=0
9290 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9291 cat >> confdefs.h <<EOF
9292 #define SIZEOF_SHORT $ac_cv_sizeof_short
9296 echo $ac_n "checking size of int""... $ac_c" 1>&6
9297 echo "configure:9298: checking size of int" >&5
9298 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9301 if test "$cross_compiling" = yes; then
9302 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9310 FILE *f=fopen("conftestval", "w");
9312 fprintf(f, "%d\n", sizeof(int));
9316 if { (eval echo configure:9317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9318 ac_cv_sizeof_int=`cat conftestval`
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9329 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9330 cat >> confdefs.h <<EOF
9331 #define SIZEOF_INT $ac_cv_sizeof_int
9335 echo $ac_n "checking size of long""... $ac_c" 1>&6
9336 echo "configure:9337: checking size of long" >&5
9337 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9340 if test "$cross_compiling" = yes; then
9341 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9343 cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9349 FILE *f=fopen("conftestval", "w");
9351 fprintf(f, "%d\n", sizeof(long));
9355 if { (eval echo configure:9356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9357 ac_cv_sizeof_long=`cat conftestval`
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9368 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9369 cat >> confdefs.h <<EOF
9370 #define SIZEOF_LONG $ac_cv_sizeof_long
9376 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9377 echo "configure:9378: checking for 8-bit clean memcmp" >&5
9378 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9379 echo $ac_n "(cached) $ac_c" 1>&6
9381 if test "$cross_compiling" = yes; then
9382 ac_cv_func_memcmp_clean=no
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9390 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9391 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9395 if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9397 ac_cv_func_memcmp_clean=yes
9399 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9402 ac_cv_func_memcmp_clean=no
9409 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9410 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9412 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9413 echo "configure:9414: checking for strftime" >&5
9414 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 /* System header to define __stub macros and hopefully few prototypes,
9421 which can conflict with char strftime(); below. */
9423 /* Override any gcc2 internal prototype to avoid an error. */
9424 /* We use char because int might match the return type of a gcc2
9425 builtin and then its argument prototype would still apply. */
9430 /* The GNU C library defines this for functions which it implements
9431 to always fail with ENOSYS. Some functions are actually named
9432 something starting with __ and the normal name is an alias. */
9433 #if defined (__stub_strftime) || defined (__stub___strftime)
9441 if { (eval echo configure:9442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9443 eval "ac_cv_func_strftime=yes"
9445 echo "configure: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9448 eval "ac_cv_func_strftime=no"
9453 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9454 echo "$ac_t""yes" 1>&6
9455 cat >> confdefs.h <<\EOF
9456 #define HAVE_STRFTIME 1
9460 echo "$ac_t""no" 1>&6
9461 # strftime is in -lintl on SCO UNIX.
9462 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9463 echo "configure:9464: checking for strftime in -lintl" >&5
9464 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9466 echo $ac_n "(cached) $ac_c" 1>&6
9468 ac_save_LIBS="$LIBS"
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 /* Override any gcc2 internal prototype to avoid an error. */
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9482 if { (eval echo configure:9483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9484 eval "ac_cv_lib_$ac_lib_var=yes"
9486 echo "configure: failed program was:" >&5
9487 cat conftest.$ac_ext >&5
9489 eval "ac_cv_lib_$ac_lib_var=no"
9492 LIBS="$ac_save_LIBS"
9495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9496 echo "$ac_t""yes" 1>&6
9497 cat >> confdefs.h <<\EOF
9498 #define HAVE_STRFTIME 1
9503 echo "$ac_t""no" 1>&6
9508 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9509 echo "configure:9510: checking for vprintf" >&5
9510 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 /* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char vprintf(); below. */
9519 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9526 /* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9537 if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9539 eval "ac_cv_func_vprintf=yes"
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9544 eval "ac_cv_func_vprintf=no"
9549 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9550 echo "$ac_t""yes" 1>&6
9551 cat >> confdefs.h <<\EOF
9552 #define HAVE_VPRINTF 1
9556 echo "$ac_t""no" 1>&6
9559 if test "$ac_cv_func_vprintf" != yes; then
9560 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9561 echo "configure:9562: checking for _doprnt" >&5
9562 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char _doprnt(); below. */
9571 /* Override any gcc2 internal prototype to avoid an error. */
9572 /* We use char because int might match the return type of a gcc2
9573 builtin and then its argument prototype would still apply. */
9578 /* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9589 if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9591 eval "ac_cv_func__doprnt=yes"
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 eval "ac_cv_func__doprnt=no"
9601 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9602 echo "$ac_t""yes" 1>&6
9603 cat >> confdefs.h <<\EOF
9604 #define HAVE_DOPRNT 1
9608 echo "$ac_t""no" 1>&6
9614 if test $ac_cv_func_vprintf = yes ; then
9615 for ac_func in vsnprintf vsprintf
9617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9618 echo "configure:9619: checking for $ac_func" >&5
9619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9620 echo $ac_n "(cached) $ac_c" 1>&6
9622 cat > conftest.$ac_ext <<EOF
9623 #line 9624 "configure"
9624 #include "confdefs.h"
9625 /* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char $ac_func(); below. */
9628 /* Override any gcc2 internal prototype to avoid an error. */
9629 /* We use char because int might match the return type of a gcc2
9630 builtin and then its argument prototype would still apply. */
9635 /* The GNU C library defines this for functions which it implements
9636 to always fail with ENOSYS. Some functions are actually named
9637 something starting with __ and the normal name is an alias. */
9638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9646 if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9648 eval "ac_cv_func_$ac_func=yes"
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9653 eval "ac_cv_func_$ac_func=no"
9658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9659 echo "$ac_t""yes" 1>&6
9660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9661 cat >> confdefs.h <<EOF
9662 #define $ac_tr_func 1
9666 echo "$ac_t""no" 1>&6
9703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9704 echo "configure:9705: checking for $ac_func" >&5
9705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char $ac_func(); below. */
9714 /* Override any gcc2 internal prototype to avoid an error. */
9715 /* We use char because int might match the return type of a gcc2
9716 builtin and then its argument prototype would still apply. */
9721 /* The GNU C library defines this for functions which it implements
9722 to always fail with ENOSYS. Some functions are actually named
9723 something starting with __ and the normal name is an alias. */
9724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 eval "ac_cv_func_$ac_func=yes"
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 eval "ac_cv_func_$ac_func=no"
9744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9745 echo "$ac_t""yes" 1>&6
9746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9747 cat >> confdefs.h <<EOF
9748 #define $ac_tr_func 1
9752 echo "$ac_t""no" 1>&6
9757 for ac_func in getopt tempnam
9759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9760 echo "configure:9761: checking for $ac_func" >&5
9761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9764 cat > conftest.$ac_ext <<EOF
9765 #line 9766 "configure"
9766 #include "confdefs.h"
9767 /* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char $ac_func(); below. */
9770 /* Override any gcc2 internal prototype to avoid an error. */
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9790 eval "ac_cv_func_$ac_func=yes"
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9795 eval "ac_cv_func_$ac_func=no"
9800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9801 echo "$ac_t""yes" 1>&6
9802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9803 cat >> confdefs.h <<EOF
9804 #define $ac_tr_func 1
9808 echo "$ac_t""no" 1>&6
9809 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9815 # Check Configuration
9817 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9818 echo "configure:9819: checking declaration of sys_errlist" >&5
9819 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9828 #include <sys/types.h>
9831 char *c = (char *) *sys_errlist
9834 if { (eval echo configure:9835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9836 ol_cv_dcl_sys_errlist=yes
9838 echo "configure: failed program was:" >&5
9839 cat conftest.$ac_ext >&5
9841 ol_cv_dcl_sys_errlist=no
9846 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9847 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9848 if test $ol_cv_dcl_sys_errlist = no ; then
9849 cat >> confdefs.h <<\EOF
9850 #define DECL_SYS_ERRLIST 1
9853 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9854 echo "configure:9855: checking existence of sys_errlist" >&5
9855 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9859 cat > conftest.$ac_ext <<EOF
9860 #line 9861 "configure"
9861 #include "confdefs.h"
9864 char *c = (char *) *sys_errlist
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9869 ol_cv_have_sys_errlist=yes
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9874 ol_cv_have_sys_errlist=no
9879 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9884 if test "$ol_enable_debug" != no ; then
9885 cat >> confdefs.h <<\EOF
9886 #define LDAP_DEBUG 1
9890 if test "$ol_enable_syslog" = yes ; then
9891 cat >> confdefs.h <<\EOF
9892 #define LDAP_SYSLOG 1
9896 if test "$ol_enable_libui" = yes ; then
9897 cat >> confdefs.h <<\EOF
9898 #define LDAP_LIBUI 1
9902 if test "$ol_enable_cache" = no ; then
9903 cat >> confdefs.h <<\EOF
9904 #define LDAP_NOCACHE 1
9908 if test "$ol_enable_dns" != no ; then
9909 cat >> confdefs.h <<\EOF
9910 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9914 if test "$ol_enable_proctitle" != no ; then
9915 cat >> confdefs.h <<\EOF
9916 #define LDAP_PROCTITLE 1
9920 if test "$ol_enable_referrals" != no ; then
9921 cat >> confdefs.h <<\EOF
9922 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9926 if test "$ol_enable_cldap" != no ; then
9927 cat >> confdefs.h <<\EOF
9928 #define LDAP_CONNECTIONLESS 1
9933 if test "$ol_enable_aclgroups" != no ; then
9934 cat >> confdefs.h <<\EOF
9935 #define SLAPD_ACLGROUPS 1
9939 if test "$ol_enable_crypt" != no ; then
9940 cat >> confdefs.h <<\EOF
9941 #define SLAPD_CRYPT 1
9945 if test "$ol_enable_cleartext" != no ; then
9946 cat >> confdefs.h <<\EOF
9947 #define SLAPD_CLEARTEXT 1
9951 if test "$ol_enable_phonetic" != no ; then
9952 cat >> confdefs.h <<\EOF
9953 #define SLAPD_PHONETIC 1
9957 if test "$ol_enable_rlookups" != no ; then
9958 cat >> confdefs.h <<\EOF
9959 #define SLAPD_RLOOKUPS 1
9964 if test "$ol_link_bdb2" != no ; then
9965 cat >> confdefs.h <<\EOF
9966 #define SLAPD_BDB2 1
9973 if test "$ol_link_ldbm" != no ; then
9974 cat >> confdefs.h <<\EOF
9975 #define SLAPD_LDBM 1
9982 if test "$ol_enable_passwd" != no ; then
9983 cat >> confdefs.h <<\EOF
9984 #define SLAPD_PASSWD 1
9991 if test "$ol_enable_perl" != no ; then
9992 cat >> confdefs.h <<\EOF
9993 #define SLAPD_PERL 1
10000 if test "$ol_enable_shell" != no ; then
10001 cat >> confdefs.h <<\EOF
10002 #define SLAPD_SHELL 1
10009 if test "$ol_enable_tcl" != no ; then
10010 cat >> confdefs.h <<\EOF
10011 #define SLAPD_TCL 1
10018 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10019 $BUILD_SLAPD = yes ; then
10023 if test "$ol_link_isode" != no ; then
10055 cat > confcache <<\EOF
10056 # This file is a shell script that caches the results of configure
10057 # tests run on this system so they can be shared between configure
10058 # scripts and configure runs. It is not useful on other systems.
10059 # If it contains results you don't want to keep, you may remove or edit it.
10061 # By default, configure uses ./config.cache as the cache file,
10062 # creating it if it does not exist already. You can give configure
10063 # the --cache-file=FILE option to use a different cache file; that is
10064 # what configure does when it calls configure scripts in
10065 # subdirectories, so they share the cache.
10066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10067 # config.status only pays attention to the cache file if you give it the
10068 # --recheck option to rerun configure.
10071 # The following way of writing the cache mishandles newlines in values,
10072 # but we know of no workaround that is simple, portable, and efficient.
10073 # So, don't put newlines in cache variables' values.
10074 # Ultrix sh set writes to stderr and can't be redirected directly,
10075 # and sets the high bit in the cache file unless we assign to the vars.
10077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10079 # `set' does not quote correctly, so add quotes (double-quote substitution
10080 # turns \\\\ into \\, and sed turns \\ into \).
10082 -e "s/'/'\\\\''/g" \
10083 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10086 # `set' quotes correctly as required by POSIX, so do not add quotes.
10087 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10090 if cmp -s $cache_file confcache; then
10093 if test -w $cache_file; then
10094 echo "updating cache $cache_file"
10095 cat confcache > $cache_file
10097 echo "not updating unwritable cache $cache_file"
10102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10105 # Let make expand exec_prefix.
10106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10108 # Any assignment to VPATH causes Sun make to only execute
10109 # the first set of double-colon rules, so remove it if not needed.
10110 # If there is a colon in the path, we need to keep it.
10111 if test "x$srcdir" = x.; then
10112 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10117 DEFS=-DHAVE_CONFIG_H
10119 # Without the "./", some shells look in PATH for config.status.
10120 : ${CONFIG_STATUS=./config.status}
10122 echo creating $CONFIG_STATUS
10123 rm -f $CONFIG_STATUS
10124 cat > $CONFIG_STATUS <<EOF
10126 # Generated automatically by configure.
10127 # Run this file to recreate the current configuration.
10128 # This directory was configured as follows,
10129 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10131 # $0 $ac_configure_args
10133 # Compiler output produced by configure, useful for debugging
10134 # configure, is in ./config.log if it exists.
10136 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10139 case "\$ac_option" in
10140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10141 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10142 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10143 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10144 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10146 -help | --help | --hel | --he | --h)
10147 echo "\$ac_cs_usage"; exit 0 ;;
10148 *) echo "\$ac_cs_usage"; exit 1 ;;
10152 ac_given_srcdir=$srcdir
10153 ac_given_INSTALL="$INSTALL"
10155 trap 'rm -fr `echo "\
10156 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10157 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10158 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10159 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10160 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10161 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10162 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10163 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10164 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10165 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10166 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10167 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10168 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10169 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10170 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10171 include/Makefile:build/top.mk:include/Makefile.in \
10172 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10173 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10174 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10175 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10176 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10177 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10178 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10179 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10180 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10181 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10182 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10183 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10184 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10185 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10186 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10187 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10188 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10189 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10190 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10191 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10192 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10193 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10194 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10196 cat >> $CONFIG_STATUS <<EOF
10198 # Protect against being on the right side of a sed subst in config.status.
10199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10204 s%@CFLAGS@%$CFLAGS%g
10205 s%@CPPFLAGS@%$CPPFLAGS%g
10206 s%@CXXFLAGS@%$CXXFLAGS%g
10207 s%@FFLAGS@%$FFLAGS%g
10209 s%@LDFLAGS@%$LDFLAGS%g
10211 s%@exec_prefix@%$exec_prefix%g
10212 s%@prefix@%$prefix%g
10213 s%@program_transform_name@%$program_transform_name%g
10214 s%@bindir@%$bindir%g
10215 s%@sbindir@%$sbindir%g
10216 s%@libexecdir@%$libexecdir%g
10217 s%@datadir@%$datadir%g
10218 s%@sysconfdir@%$sysconfdir%g
10219 s%@sharedstatedir@%$sharedstatedir%g
10220 s%@localstatedir@%$localstatedir%g
10221 s%@libdir@%$libdir%g
10222 s%@includedir@%$includedir%g
10223 s%@oldincludedir@%$oldincludedir%g
10224 s%@infodir@%$infodir%g
10225 s%@mandir@%$mandir%g
10226 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10227 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10228 s%@INSTALL_DATA@%$INSTALL_DATA%g
10229 s%@PACKAGE@%$PACKAGE%g
10230 s%@VERSION@%$VERSION%g
10231 s%@ACLOCAL@%$ACLOCAL%g
10232 s%@AUTOCONF@%$AUTOCONF%g
10233 s%@AUTOMAKE@%$AUTOMAKE%g
10234 s%@AUTOHEADER@%$AUTOHEADER%g
10235 s%@MAKEINFO@%$MAKEINFO%g
10236 s%@SET_MAKE@%$SET_MAKE%g
10237 s%@top_builddir@%$top_builddir%g
10238 s%@ldap_subdir@%$ldap_subdir%g
10240 s%@host_alias@%$host_alias%g
10241 s%@host_cpu@%$host_cpu%g
10242 s%@host_vendor@%$host_vendor%g
10243 s%@host_os@%$host_os%g
10244 s%@RANLIB@%$RANLIB%g
10249 s%@LIBTOOL@%$LIBTOOL%g
10251 s%@SENDMAIL@%$SENDMAIL%g
10252 s%@EDITOR@%$EDITOR%g
10253 s%@FINGER@%$FINGER%g
10254 s%@PERLBIN@%$PERLBIN%g
10256 s%@EXEEXT@%$EXEEXT%g
10257 s%@OBJEXT@%$OBJEXT%g
10259 s%@LIBOBJS@%$LIBOBJS%g
10260 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10261 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10262 s%@BUILD_BDB2@%$BUILD_BDB2%g
10263 s%@BUILD_LDBM@%$BUILD_LDBM%g
10264 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10265 s%@BUILD_PERL@%$BUILD_PERL%g
10266 s%@BUILD_SHELL@%$BUILD_SHELL%g
10267 s%@BUILD_TCL@%$BUILD_TCL%g
10268 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10269 s%@LDAP_LIBS@%$LDAP_LIBS%g
10270 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10271 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10272 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10273 s%@LDBM_LIBS@%$LDBM_LIBS%g
10274 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10275 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10276 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10277 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10278 s%@KRB_LIBS@%$KRB_LIBS%g
10279 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10280 s%@TLS_LIBS@%$TLS_LIBS%g
10285 cat >> $CONFIG_STATUS <<\EOF
10287 # Split the substitutions into bite-sized pieces for seds with
10288 # small command number limits, like on Digital OSF/1 and HP-UX.
10289 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10290 ac_file=1 # Number of current file.
10291 ac_beg=1 # First line for current file.
10292 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10295 while $ac_more_lines; do
10296 if test $ac_beg -gt 1; then
10297 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10299 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10301 if test ! -s conftest.s$ac_file; then
10302 ac_more_lines=false
10303 rm -f conftest.s$ac_file
10305 if test -z "$ac_sed_cmds"; then
10306 ac_sed_cmds="sed -f conftest.s$ac_file"
10308 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10310 ac_file=`expr $ac_file + 1`
10312 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10315 if test -z "$ac_sed_cmds"; then
10320 cat >> $CONFIG_STATUS <<EOF
10322 CONFIG_FILES=\${CONFIG_FILES-"\
10323 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10324 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10325 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10326 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10327 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10328 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10329 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10330 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10331 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10332 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10333 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10334 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10335 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10336 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10337 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10338 include/Makefile:build/top.mk:include/Makefile.in \
10339 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10340 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10341 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10342 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10343 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10344 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10345 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10346 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10347 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10348 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10349 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10350 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10351 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10352 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10353 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10354 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10355 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10356 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10357 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10358 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10359 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10360 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10363 cat >> $CONFIG_STATUS <<\EOF
10364 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10365 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10367 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10368 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10369 *) ac_file_in="${ac_file}.in" ;;
10372 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10374 # Remove last slash and all that follows it. Not all systems have dirname.
10375 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10376 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10377 # The file is in a subdirectory.
10378 test ! -d "$ac_dir" && mkdir "$ac_dir"
10379 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10380 # A "../" for each directory in $ac_dir_suffix.
10381 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10383 ac_dir_suffix= ac_dots=
10386 case "$ac_given_srcdir" in
10388 if test -z "$ac_dots"; then top_srcdir=.
10389 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10390 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10391 *) # Relative path.
10392 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10393 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10396 case "$ac_given_INSTALL" in
10397 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10398 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10401 echo creating "$ac_file"
10403 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10405 *Makefile*) ac_comsub="1i\\
10406 # $configure_input" ;;
10410 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10412 s%@configure_input@%$configure_input%g
10413 s%@srcdir@%$srcdir%g
10414 s%@top_srcdir@%$top_srcdir%g
10415 s%@INSTALL@%$INSTALL%g
10416 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10420 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10421 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10423 # ac_d sets the value in "#define NAME VALUE" lines.
10424 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10425 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10428 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10429 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10430 ac_uB='\([ ]\)%\1#\2define\3'
10433 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10434 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10435 ac_eB='$%\1#\2define\3'
10439 if test "${CONFIG_HEADERS+set}" != set; then
10441 cat >> $CONFIG_STATUS <<EOF
10442 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10444 cat >> $CONFIG_STATUS <<\EOF
10446 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10447 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10449 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10450 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10451 *) ac_file_in="${ac_file}.in" ;;
10454 echo creating $ac_file
10456 rm -f conftest.frag conftest.in conftest.out
10457 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10458 cat $ac_file_inputs > conftest.in
10462 # Transform confdefs.h into a sed script conftest.vals that substitutes
10463 # the proper values into config.h.in to produce config.h. And first:
10464 # Protect against being on the right side of a sed subst in config.status.
10465 # Protect against being in an unquoted here document in config.status.
10466 rm -f conftest.vals
10467 cat > conftest.hdr <<\EOF
10470 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10474 sed -n -f conftest.hdr confdefs.h > conftest.vals
10477 # This sed command replaces #undef with comments. This is necessary, for
10478 # example, in the case of _POSIX_SOURCE, which is predefined and required
10479 # on some systems where configure will not decide to define it.
10480 cat >> conftest.vals <<\EOF
10481 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10484 # Break up conftest.vals because some shells have a limit on
10485 # the size of here documents, and old seds have small limits too.
10487 rm -f conftest.tail
10490 ac_lines=`grep -c . conftest.vals`
10491 # grep -c gives empty output for an empty file on some AIX systems.
10492 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10493 # Write a limited-size here document to conftest.frag.
10494 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10495 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10497 sed -f conftest.frag conftest.in > conftest.out
10499 mv conftest.out conftest.in
10500 ' >> $CONFIG_STATUS
10501 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10502 rm -f conftest.vals
10503 mv conftest.tail conftest.vals
10505 rm -f conftest.vals
10507 cat >> $CONFIG_STATUS <<\EOF
10508 rm -f conftest.frag conftest.h
10509 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10510 cat conftest.in >> conftest.h
10512 if cmp -s $ac_file conftest.h 2>/dev/null; then
10513 echo "$ac_file is unchanged"
10516 # Remove last slash and all that follows it. Not all systems have dirname.
10517 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10518 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10519 # The file is in a subdirectory.
10520 test ! -d "$ac_dir" && mkdir "$ac_dir"
10523 mv conftest.h $ac_file
10528 cat >> $CONFIG_STATUS <<EOF
10531 cat >> $CONFIG_STATUS <<\EOF
10534 echo Please \"make depend\" to build dependencies
10538 chmod +x $CONFIG_STATUS
10539 rm -fr confdefs* $ac_clean_files
10540 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1