3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
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-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
52 --enable-ldapd enable building ldapd (no)"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-wrappers enable tcp wrapper support (no)"
74 --enable-bdb2 enable bdb2 backend (no)"
76 --with-bdb2-module module type (static)"
78 --enable-ldap enable ldap backend (no)"
80 --with-ldap-module module type (static)"
82 --enable-ldbm enable ldbm backend (yes)"
84 --with-ldbm-module module type (static)"
86 --with-ldbm-api use LDBM API (auto)"
88 --with-ldbm-type use LDBM type (auto)"
90 --enable-passwd enable passwd backend (no)"
92 --with-passwd-module module type (static)"
94 --enable-perl enable perl backend (no)"
96 --with-perl-module module type (static)"
98 --enable-shell enable shell backend (no)"
100 --with-shell-module module type (static)"
102 --enable-tcl enable tcl backend (no)"
104 --with-tcl-module module type (static)"
108 --enable-slurpd enable building slurpd (auto)"
110 Library Generation & Linking Options"
112 --enable-static[=PKGS] build static libraries [default=yes]"
114 --enable-shared[=PKGS] build shared libraries [default=yes]"
116 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
118 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
120 --disable-libtool-lock avoid locking (might break parallel builds)"
122 # Initialize some variables set by options.
123 # The variables have the same names as the options, with
124 # dashes changed to underlines.
126 cache_file=./config.cache
135 program_transform_name=s,x,x,
143 bindir='${exec_prefix}/bin'
144 sbindir='${exec_prefix}/sbin'
145 libexecdir='${exec_prefix}/libexec'
146 datadir='${prefix}/share'
147 sysconfdir='${prefix}/etc'
148 sharedstatedir='${prefix}/com'
149 localstatedir='${prefix}/var'
150 libdir='${exec_prefix}/lib'
151 includedir='${prefix}/include'
152 oldincludedir='/usr/include'
153 infodir='${prefix}/info'
154 mandir='${prefix}/man'
156 # Initialize some other variables.
159 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Maximum number of lines to put in a shell here document.
167 # If the previous option needs an argument, assign it.
168 if test -n "$ac_prev"; then
169 eval "$ac_prev=\$ac_option"
175 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
179 # Accept the important Cygnus configure options, so we can diagnose typos.
183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
186 bindir="$ac_optarg" ;;
188 -build | --build | --buil | --bui | --bu)
190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
191 build="$ac_optarg" ;;
193 -cache-file | --cache-file | --cache-fil | --cache-fi \
194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
195 ac_prev=cache_file ;;
196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
198 cache_file="$ac_optarg" ;;
200 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
202 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
204 datadir="$ac_optarg" ;;
206 -disable-* | --disable-*)
207 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
208 # Reject names that are not valid shell variable names.
209 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
210 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}=no" ;;
215 -enable-* | --enable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
226 eval "enable_${ac_feature}='$ac_optarg'" ;;
228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
230 | --exec | --exe | --ex)
231 ac_prev=exec_prefix ;;
232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
234 | --exec=* | --exe=* | --ex=*)
235 exec_prefix="$ac_optarg" ;;
237 -gas | --gas | --ga | --g)
238 # Obsolete; use --with-gas.
241 -help | --help | --hel | --he)
242 # Omit some internal or obsolete options to make the list less imposing.
243 # This message is too long to be a string in the A/UX 3.1 sh.
245 Usage: configure [options] [host]
246 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
253 Directory and file names:
254 --prefix=PREFIX install architecture-independent files in PREFIX
256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
258 --bindir=DIR user executables in DIR [EPREFIX/bin]
259 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
260 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
261 --datadir=DIR read-only architecture-independent data in DIR
263 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
264 --sharedstatedir=DIR modifiable architecture-independent data in DIR
266 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
267 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
268 --includedir=DIR C header files in DIR [PREFIX/include]
269 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
270 --infodir=DIR info documentation in DIR [PREFIX/info]
271 --mandir=DIR man documentation in DIR [PREFIX/man]
272 --srcdir=DIR find the sources in DIR [configure dir or ..]
273 --program-prefix=PREFIX prepend PREFIX to installed program names
274 --program-suffix=SUFFIX append SUFFIX to installed program names
275 --program-transform-name=PROGRAM
276 run sed PROGRAM on installed program names
280 --build=BUILD configure for building on BUILD [BUILD=HOST]
281 --host=HOST configure for HOST [guessed]
282 --target=TARGET configure for TARGET [TARGET=HOST]
283 Features and packages:
284 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
285 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
288 --x-includes=DIR X include files are in DIR
289 --x-libraries=DIR X library files are in DIR
291 if test -n "$ac_help"; then
292 echo "--enable and --with options recognized:$ac_help"
296 -host | --host | --hos | --ho)
298 -host=* | --host=* | --hos=* | --ho=*)
301 -includedir | --includedir | --includedi | --included | --include \
302 | --includ | --inclu | --incl | --inc)
303 ac_prev=includedir ;;
304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
305 | --includ=* | --inclu=* | --incl=* | --inc=*)
306 includedir="$ac_optarg" ;;
308 -infodir | --infodir | --infodi | --infod | --info | --inf)
310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
311 infodir="$ac_optarg" ;;
313 -libdir | --libdir | --libdi | --libd)
315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
316 libdir="$ac_optarg" ;;
318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
319 | --libexe | --libex | --libe)
320 ac_prev=libexecdir ;;
321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
322 | --libexe=* | --libex=* | --libe=*)
323 libexecdir="$ac_optarg" ;;
325 -localstatedir | --localstatedir | --localstatedi | --localstated \
326 | --localstate | --localstat | --localsta | --localst \
327 | --locals | --local | --loca | --loc | --lo)
328 ac_prev=localstatedir ;;
329 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
330 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
331 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
332 localstatedir="$ac_optarg" ;;
334 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
336 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 mandir="$ac_optarg" ;;
340 # Obsolete; use --without-fp.
343 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
347 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
348 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
351 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
352 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
353 | --oldin | --oldi | --old | --ol | --o)
354 ac_prev=oldincludedir ;;
355 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
356 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
357 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
358 oldincludedir="$ac_optarg" ;;
360 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
362 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
363 prefix="$ac_optarg" ;;
365 -program-prefix | --program-prefix | --program-prefi | --program-pref \
366 | --program-pre | --program-pr | --program-p)
367 ac_prev=program_prefix ;;
368 -program-prefix=* | --program-prefix=* | --program-prefi=* \
369 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
370 program_prefix="$ac_optarg" ;;
372 -program-suffix | --program-suffix | --program-suffi | --program-suff \
373 | --program-suf | --program-su | --program-s)
374 ac_prev=program_suffix ;;
375 -program-suffix=* | --program-suffix=* | --program-suffi=* \
376 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
377 program_suffix="$ac_optarg" ;;
379 -program-transform-name | --program-transform-name \
380 | --program-transform-nam | --program-transform-na \
381 | --program-transform-n | --program-transform- \
382 | --program-transform | --program-transfor \
383 | --program-transfo | --program-transf \
384 | --program-trans | --program-tran \
385 | --progr-tra | --program-tr | --program-t)
386 ac_prev=program_transform_name ;;
387 -program-transform-name=* | --program-transform-name=* \
388 | --program-transform-nam=* | --program-transform-na=* \
389 | --program-transform-n=* | --program-transform-=* \
390 | --program-transform=* | --program-transfor=* \
391 | --program-transfo=* | --program-transf=* \
392 | --program-trans=* | --program-tran=* \
393 | --progr-tra=* | --program-tr=* | --program-t=*)
394 program_transform_name="$ac_optarg" ;;
396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
397 | -silent | --silent | --silen | --sile | --sil)
400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
404 sbindir="$ac_optarg" ;;
406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
408 | --sharedst | --shareds | --shared | --share | --shar \
410 ac_prev=sharedstatedir ;;
411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
415 sharedstatedir="$ac_optarg" ;;
417 -site | --site | --sit)
419 -site=* | --site=* | --sit=*)
422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
425 srcdir="$ac_optarg" ;;
427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
428 | --syscon | --sysco | --sysc | --sys | --sy)
429 ac_prev=sysconfdir ;;
430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
432 sysconfdir="$ac_optarg" ;;
434 -target | --target | --targe | --targ | --tar | --ta | --t)
436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
437 target="$ac_optarg" ;;
439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
442 -version | --version | --versio | --versi | --vers)
443 echo "configure generated by autoconf version 2.13.1"
447 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package=`echo $ac_package| sed 's/-/_/g'`
457 eval "with_${ac_package}='$ac_optarg'" ;;
459 -without-* | --without-*)
460 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}=no" ;;
469 # Obsolete; use --with-x.
472 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
473 | --x-incl | --x-inc | --x-in | --x-i)
474 ac_prev=x_includes ;;
475 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
476 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
477 x_includes="$ac_optarg" ;;
479 -x-libraries | --x-libraries | --x-librarie | --x-librari \
480 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
481 ac_prev=x_libraries ;;
482 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
483 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
484 x_libraries="$ac_optarg" ;;
486 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
490 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
491 echo "configure: warning: $ac_option: invalid host type" 1>&2
493 if test "x$nonopt" != xNONE; then
494 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
502 if test -n "$ac_prev"; then
503 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
506 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
508 # File descriptor usage:
511 # 2 errors and warnings
512 # 3 some systems may open it to /dev/tty
513 # 4 used on the Kubota Titan
514 # 6 checking for... messages and results
515 # 5 compiler messages saved in config.log
516 if test "$silent" = yes; then
524 This file contains any messages produced by compilers while
525 running configure, to aid debugging if configure makes a mistake.
528 # Strip out --no-create and --no-recursion so they do not pile up.
529 # Also quote any args containing shell metacharacters.
534 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
535 | --no-cr | --no-c) ;;
536 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
537 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
539 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
540 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
545 # Only set these to C if already set. These must not be set unconditionally
546 # because not all systems understand e.g. LANG=C (notably SCO).
547 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
548 # Non-C LC_CTYPE values break the ctype check.
549 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
550 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
551 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
552 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
555 rm -rf conftest* confdefs.h
556 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
559 # A filename unique to this package, relative to the directory that
560 # configure is in, which we can look for to find out if srcdir is correct.
561 ac_unique_file=build/version
563 # Find the source files, if location was not specified.
564 if test -z "$srcdir"; then
565 ac_srcdir_defaulted=yes
566 # Try the directory containing this script, then its parent.
568 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
569 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
571 if test ! -r $srcdir/$ac_unique_file; then
575 ac_srcdir_defaulted=no
577 if test ! -r $srcdir/$ac_unique_file; then
578 if test "$ac_srcdir_defaulted" = yes; then
579 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
581 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
584 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
586 # Prefer explicitly selected file to automatically selected ones.
587 if test -z "$CONFIG_SITE"; then
588 if test "x$prefix" != xNONE; then
589 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
591 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
594 for ac_site_file in $CONFIG_SITE; do
595 if test -r "$ac_site_file"; then
596 echo "loading site script $ac_site_file"
603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
604 ac_cpp='$CPP $CPPFLAGS'
605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
607 cross_compiling=$ac_cv_prog_cc_cross
611 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
612 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
613 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
620 ac_n= ac_c='\c' ac_t=
624 for ac_dir in build $srcdir/build; do
625 if test -f $ac_dir/install-sh; then
627 ac_install_sh="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh; then
631 ac_install_sh="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
638 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
639 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
640 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
642 OL_VERSION=`cat $ac_aux_dir/version`
643 if test -z "$OL_VERSION"; then
644 { echo "configure: error: could not determine version" 1>&2; exit 1; }
648 echo $ac_n "checking host system type""... $ac_c" 1>&6
649 echo "configure:650: checking host system type" >&5
650 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
652 # Make sure we can run config.sub.
653 if $ac_config_sub sun4 >/dev/null 2>&1; then :
654 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
657 ac_cv_host_alias=$host
658 case "$ac_cv_host_alias" in
662 if ac_cv_host_alias=`$ac_config_guess`; then :
663 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
665 *) ac_cv_host_alias=$nonopt ;;
669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
670 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo $ac_n "(cached) $ac_c" 1>&6
677 echo "$ac_t""$ac_cv_host" 1>&6
680 host_alias=$ac_cv_host_alias
681 host_cpu=$ac_cv_host_cpu
682 host_vendor=$ac_cv_host_vendor
683 host_os=$ac_cv_host_os
689 echo $ac_n "checking target system type""... $ac_c" 1>&6
690 echo "configure:691: checking target system type" >&5
691 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
693 # Make sure we can run config.sub.
694 if $ac_config_sub sun4 >/dev/null 2>&1; then :
695 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
698 ac_cv_target_alias=$target
699 case "$ac_cv_target_alias" in
703 ac_cv_target_alias=$host_alias ;;
705 *) ac_cv_target_alias=$nonopt ;;
709 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
710 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo $ac_n "(cached) $ac_c" 1>&6
717 echo "$ac_t""$ac_cv_target" 1>&6
720 target_alias=$ac_cv_target_alias
721 target_cpu=$ac_cv_target_cpu
722 target_vendor=$ac_cv_target_vendor
723 target_os=$ac_cv_target_os
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
731 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4 >/dev/null 2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 ac_cv_build_alias=$build
739 case "$ac_cv_build_alias" in
743 ac_cv_build_alias=$host_alias ;;
745 *) ac_cv_build_alias=$nonopt ;;
749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
750 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo $ac_n "(cached) $ac_c" 1>&6
757 echo "$ac_t""$ac_cv_build" 1>&6
760 build_alias=$ac_cv_build_alias
761 build_cpu=$ac_cv_build_cpu
762 build_vendor=$ac_cv_build_vendor
763 build_os=$ac_cv_build_os
769 # Do some error checking and defaulting for the host and target type.
771 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
774 # 1. You are not allowed to specify --host, --target, and nonopt at the
776 # 2. Host defaults to nonopt.
777 # 3. If nonopt is not specified, then host defaults to the current host,
778 # as determined by config.guess.
779 # 4. Target and build default to nonopt.
780 # 5. If nonopt is not specified, then target and build default to host.
782 # The aliases save the names the user supplied, while $host etc.
783 # will get canonicalized.
784 case $host---$target---$nonopt in
785 NONE---*---* | *---NONE---* | *---*---NONE) ;;
786 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
789 test "$host_alias" != "$target_alias" &&
790 test "$program_prefix$program_suffix$program_transform_name" = \
792 program_prefix=${target_alias}-
795 # Find a good install program. We prefer a C program (faster),
796 # so one script is as good as another. But avoid the broken or
797 # incompatible versions:
798 # SysV /etc/install, /usr/sbin/install
799 # SunOS /usr/etc/install
802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
805 # ./install, which can be erroneously created by make from ./install.sh.
806 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
807 echo "configure:808: checking for a BSD compatible install" >&5
808 if test -z "$INSTALL"; then
809 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
813 for ac_dir in $PATH; do
814 # Account for people who put trailing slashes in PATH elements.
816 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
818 # OSF1 and SCO ODT 3.0 have their own names for install.
819 # Don't use installbsd from OSF since it installs stuff as root
821 for ac_prog in ginstall scoinst install; do
822 if test -f $ac_dir/$ac_prog; then
823 if test $ac_prog = install &&
824 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
825 # AIX install. It has an incompatible calling convention.
827 elif test $ac_prog = install &&
828 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
829 # program-specific install script used by HP pwplus--don't use.
832 ac_cv_path_install="$ac_dir/$ac_prog -c"
843 if test "${ac_cv_path_install+set}" = set; then
844 INSTALL="$ac_cv_path_install"
846 # As a last resort, use the slow shell script. We don't cache a
847 # path for INSTALL within a source directory, because that will
848 # break other packages using the cache if that directory is
849 # removed, or if the path is relative.
850 INSTALL="$ac_install_sh"
853 echo "$ac_t""$INSTALL" 1>&6
855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
856 # It thinks the first close brace ends the variable substitution.
857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
863 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
864 echo "configure:865: checking whether build environment is sane" >&5
867 echo timestamp > conftestfile
868 # Do `set' in a subshell so we don't clobber the current shell's
869 # arguments. Must try -L first in case configure is actually a
870 # symlink; some systems play weird games with the mod time of symlinks
871 # (eg FreeBSD returns the mod time of the symlink's containing
874 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
875 if test "$*" = "X"; then
877 set X `ls -t $srcdir/configure conftestfile`
879 if test "$*" != "X $srcdir/configure conftestfile" \
880 && test "$*" != "X conftestfile $srcdir/configure"; then
882 # If neither matched, then we have a broken ls. This can happen
883 # if, for instance, CONFIG_SHELL is bash and it inherits a
884 # broken ls alias from the environment. This has actually
885 # happened. Such a system could not be considered "sane".
886 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
887 alias in your environment" 1>&2; exit 1; }
890 test "$2" = conftestfile
896 { echo "configure: error: newly created file is older than distributed files!
897 Check your system clock" 1>&2; exit 1; }
900 echo "$ac_t""yes" 1>&6
901 if test "$program_transform_name" = s,x,x,; then
902 program_transform_name=
904 # Double any \ or $. echo might interpret backslashes.
905 cat <<\EOF_SED > conftestsed
906 s,\\,\\\\,g; s,\$,$$,g
908 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
911 test "$program_prefix" != NONE &&
912 program_transform_name="s,^,${program_prefix},;$program_transform_name"
913 # Use a double $ so make ignores it.
914 test "$program_suffix" != NONE &&
915 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
917 # sed with no file args requires a program.
918 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
920 for ac_prog in mawk gawk nawk awk
922 # Extract the first word of "$ac_prog", so it can be a program name with args.
923 set dummy $ac_prog; ac_word=$2
924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925 echo "configure:926: checking for $ac_word" >&5
926 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 if test -n "$AWK"; then
930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
934 for ac_dir in $ac_dummy; do
935 test -z "$ac_dir" && ac_dir=.
936 if test -f $ac_dir/$ac_word; then
937 ac_cv_prog_AWK="$ac_prog"
944 AWK="$ac_cv_prog_AWK"
945 if test -n "$AWK"; then
946 echo "$ac_t""$AWK" 1>&6
948 echo "$ac_t""no" 1>&6
951 test -n "$AWK" && break
954 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
955 echo "configure:956: checking whether ${MAKE-make} sets \${MAKE}" >&5
956 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
957 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftestmake <<\EOF
962 @echo 'ac_maketemp="${MAKE}"'
964 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
965 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
966 if test -n "$ac_maketemp"; then
967 eval ac_cv_prog_make_${ac_make}_set=yes
969 eval ac_cv_prog_make_${ac_make}_set=no
973 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
974 echo "$ac_t""yes" 1>&6
977 echo "$ac_t""no" 1>&6
978 SET_MAKE="MAKE=${MAKE-make}"
987 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
988 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
993 missing_dir=`cd $ac_aux_dir && pwd`
994 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
995 echo "configure:996: checking for working aclocal" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1001 echo "$ac_t""found" 1>&6
1003 ACLOCAL="$missing_dir/missing aclocal"
1004 echo "$ac_t""missing" 1>&6
1007 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1008 echo "configure:1009: checking for working autoconf" >&5
1009 # Run test in a subshell; some versions of sh will print an error if
1010 # an executable is not found, even if stderr is redirected.
1011 # Redirect stdin to placate older versions of autoconf. Sigh.
1012 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1014 echo "$ac_t""found" 1>&6
1016 AUTOCONF="$missing_dir/missing autoconf"
1017 echo "$ac_t""missing" 1>&6
1020 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working automake" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (automake --version) < /dev/null > /dev/null 2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 AUTOMAKE="$missing_dir/missing automake"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoheader" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1039 AUTOHEADER=autoheader
1040 echo "$ac_t""found" 1>&6
1042 AUTOHEADER="$missing_dir/missing autoheader"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working makeinfo" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 MAKEINFO="$missing_dir/missing makeinfo"
1056 echo "$ac_t""missing" 1>&6
1059 install_sh="$missing_dir/install-sh"
1060 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1062 for ac_prog in gnutar gtar tar
1064 # Extract the first word of "$ac_prog", so it can be a program name with args.
1065 set dummy $ac_prog; ac_word=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$AMTAR"; then
1072 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 for ac_dir in $ac_dummy; do
1077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_prog_AMTAR="$ac_prog"
1086 AMTAR="$ac_cv_prog_AMTAR"
1087 if test -n "$AMTAR"; then
1088 echo "$ac_t""$AMTAR" 1>&6
1090 echo "$ac_t""no" 1>&6
1093 test -n "$AMTAR" && break
1098 if test -n "$AMTAR"; then
1099 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1106 cat >> confdefs.h <<EOF
1107 #define OPENLDAP_PACKAGE "$PACKAGE"
1110 cat >> confdefs.h <<EOF
1111 #define OPENLDAP_VERSION "$VERSION"
1117 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1118 echo "configure:1119: checking configure arguments" >&5
1123 ldap_subdir="openldap"
1125 # Check whether --with-subdir or --without-subdir was given.
1126 if test "${with_subdir+set}" = set; then
1127 withval="$with_subdir"
1129 if test "$withval" = "no"; then
1131 elif test "$withval" != "yes"; then
1132 ldap_subdir="$withval"
1138 # OpenLDAP --enable-debug
1139 # Check whether --enable-debug or --disable-debug was given.
1140 if test "${enable_debug+set}" = set; then
1141 enableval="$enable_debug"
1144 for ol_val in auto yes no ; do
1145 if test "$enableval" = "$ol_val" ; then
1149 if test "$ol_arg" = "invalid" ; then
1150 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1152 ol_enable_debug="$ol_arg"
1155 ol_enable_debug="yes"
1157 # end --enable-debug
1158 # OpenLDAP --enable-syslog
1159 # Check whether --enable-syslog or --disable-syslog was given.
1160 if test "${enable_syslog+set}" = set; then
1161 enableval="$enable_syslog"
1164 for ol_val in auto yes no ; do
1165 if test "$enableval" = "$ol_val" ; then
1169 if test "$ol_arg" = "invalid" ; then
1170 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1172 ol_enable_syslog="$ol_arg"
1175 ol_enable_syslog="auto"
1177 # end --enable-syslog
1178 # OpenLDAP --enable-proctitle
1179 # Check whether --enable-proctitle or --disable-proctitle was given.
1180 if test "${enable_proctitle+set}" = set; then
1181 enableval="$enable_proctitle"
1184 for ol_val in auto yes no ; do
1185 if test "$enableval" = "$ol_val" ; then
1189 if test "$ol_arg" = "invalid" ; then
1190 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1192 ol_enable_proctitle="$ol_arg"
1195 ol_enable_proctitle="yes"
1197 # end --enable-proctitle
1198 # OpenLDAP --enable-cache
1199 # Check whether --enable-cache or --disable-cache was given.
1200 if test "${enable_cache+set}" = set; then
1201 enableval="$enable_cache"
1204 for ol_val in auto yes no ; do
1205 if test "$enableval" = "$ol_val" ; then
1209 if test "$ol_arg" = "invalid" ; then
1210 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1212 ol_enable_cache="$ol_arg"
1215 ol_enable_cache="yes"
1217 # end --enable-cache
1218 # OpenLDAP --enable-dns
1219 # Check whether --enable-dns or --disable-dns was given.
1220 if test "${enable_dns+set}" = set; then
1221 enableval="$enable_dns"
1224 for ol_val in auto yes no ; do
1225 if test "$enableval" = "$ol_val" ; then
1229 if test "$ol_arg" = "invalid" ; then
1230 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1232 ol_enable_dns="$ol_arg"
1238 # OpenLDAP --enable-referrals
1239 # Check whether --enable-referrals or --disable-referrals was given.
1240 if test "${enable_referrals+set}" = set; then
1241 enableval="$enable_referrals"
1244 for ol_val in auto yes no ; do
1245 if test "$enableval" = "$ol_val" ; then
1249 if test "$ol_arg" = "invalid" ; then
1250 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1252 ol_enable_referrals="$ol_arg"
1255 ol_enable_referrals="yes"
1257 # end --enable-referrals
1258 # OpenLDAP --enable-cldap
1259 # Check whether --enable-cldap or --disable-cldap was given.
1260 if test "${enable_cldap+set}" = set; then
1261 enableval="$enable_cldap"
1264 for ol_val in auto yes no ; do
1265 if test "$enableval" = "$ol_val" ; then
1269 if test "$ol_arg" = "invalid" ; then
1270 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1272 ol_enable_cldap="$ol_arg"
1275 ol_enable_cldap="no"
1277 # end --enable-cldap
1278 # OpenLDAP --enable-x_compile
1279 # Check whether --enable-x_compile or --disable-x_compile was given.
1280 if test "${enable_x_compile+set}" = set; then
1281 enableval="$enable_x_compile"
1284 for ol_val in yes no ; do
1285 if test "$enableval" = "$ol_val" ; then
1289 if test "$ol_arg" = "invalid" ; then
1290 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1292 ol_enable_x_compile="$ol_arg"
1295 ol_enable_x_compile="no"
1297 # end --enable-x_compile
1299 # OpenLDAP --enable-dmalloc
1300 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1301 if test "${enable_dmalloc+set}" = set; then
1302 enableval="$enable_dmalloc"
1305 for ol_val in auto yes no ; do
1306 if test "$enableval" = "$ol_val" ; then
1310 if test "$ol_arg" = "invalid" ; then
1311 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1313 ol_enable_dmalloc="$ol_arg"
1316 ol_enable_dmalloc="no"
1318 # end --enable-dmalloc
1320 # OpenLDAP --with-cyrus_sasl
1321 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1322 if test "${with_cyrus_sasl+set}" = set; then
1323 withval="$with_cyrus_sasl"
1326 for ol_val in auto yes no ; do
1327 if test "$withval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1334 ol_with_cyrus_sasl="$ol_arg"
1337 ol_with_cyrus_sasl="auto"
1339 # end --with-cyrus_sasl
1341 # OpenLDAP --with-fetch
1342 # Check whether --with-fetch or --without-fetch was given.
1343 if test "${with_fetch+set}" = set; then
1344 withval="$with_fetch"
1347 for ol_val in auto yes no ; do
1348 if test "$withval" = "$ol_val" ; then
1352 if test "$ol_arg" = "invalid" ; then
1353 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1355 ol_with_fetch="$ol_arg"
1358 ol_with_fetch="auto"
1362 # OpenLDAP --with-kerberos
1363 # Check whether --with-kerberos or --without-kerberos was given.
1364 if test "${with_kerberos+set}" = set; then
1365 withval="$with_kerberos"
1368 for ol_val in auto k5 k4 afs yes no ; do
1369 if test "$withval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1376 ol_with_kerberos="$ol_arg"
1379 ol_with_kerberos="auto"
1381 # end --with-kerberos
1383 # OpenLDAP --with-readline
1384 # Check whether --with-readline or --without-readline was given.
1385 if test "${with_readline+set}" = set; then
1386 withval="$with_readline"
1389 for ol_val in auto yes no ; do
1390 if test "$withval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1397 ol_with_readline="$ol_arg"
1400 ol_with_readline="auto"
1402 # end --with-readline
1404 # OpenLDAP --with-threads
1405 # Check whether --with-threads or --without-threads was given.
1406 if test "${with_threads+set}" = set; then
1407 withval="$with_threads"
1410 for ol_val in auto posix mach lwp yes no manual ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1418 ol_with_threads="$ol_arg"
1421 ol_with_threads="auto"
1423 # end --with-threads
1425 # OpenLDAP --with-tls
1426 # Check whether --with-tls or --without-tls was given.
1427 if test "${with_tls+set}" = set; then
1431 for ol_val in auto ssleay openssl yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1439 ol_with_tls="$ol_arg"
1446 # OpenLDAP --with-yielding_select
1447 # Check whether --with-yielding_select or --without-yielding_select was given.
1448 if test "${with_yielding_select+set}" = set; then
1449 withval="$with_yielding_select"
1452 for ol_val in auto yes no manual ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1460 ol_with_yielding_select="$ol_arg"
1463 ol_with_yielding_select="auto"
1465 # end --with-yielding_select
1469 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1470 if test "${with_xxldapdoptions+set}" = set; then
1471 withval="$with_xxldapdoptions"
1475 # OpenLDAP --enable-ldapd
1476 # Check whether --enable-ldapd or --disable-ldapd was given.
1477 if test "${enable_ldapd+set}" = set; then
1478 enableval="$enable_ldapd"
1481 for ol_val in auto yes no ; do
1482 if test "$enableval" = "$ol_val" ; then
1486 if test "$ol_arg" = "invalid" ; then
1487 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1489 ol_enable_ldapd="$ol_arg"
1492 ol_enable_ldapd="no"
1494 # end --enable-ldapd
1496 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1497 if test "${with_xxslapdoptions+set}" = set; then
1498 withval="$with_xxslapdoptions"
1502 # OpenLDAP --enable-slapd
1503 # Check whether --enable-slapd or --disable-slapd was given.
1504 if test "${enable_slapd+set}" = set; then
1505 enableval="$enable_slapd"
1508 for ol_val in auto yes no ; do
1509 if test "$enableval" = "$ol_val" ; then
1513 if test "$ol_arg" = "invalid" ; then
1514 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1516 ol_enable_slapd="$ol_arg"
1519 ol_enable_slapd="yes"
1521 # end --enable-slapd
1522 # OpenLDAP --enable-cleartext
1523 # Check whether --enable-cleartext or --disable-cleartext was given.
1524 if test "${enable_cleartext+set}" = set; then
1525 enableval="$enable_cleartext"
1528 for ol_val in auto yes no ; do
1529 if test "$enableval" = "$ol_val" ; then
1533 if test "$ol_arg" = "invalid" ; then
1534 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1536 ol_enable_cleartext="$ol_arg"
1539 ol_enable_cleartext="yes"
1541 # end --enable-cleartext
1542 # OpenLDAP --enable-crypt
1543 # Check whether --enable-crypt or --disable-crypt was given.
1544 if test "${enable_crypt+set}" = set; then
1545 enableval="$enable_crypt"
1548 for ol_val in auto yes no ; do
1549 if test "$enableval" = "$ol_val" ; then
1553 if test "$ol_arg" = "invalid" ; then
1554 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1556 ol_enable_crypt="$ol_arg"
1559 ol_enable_crypt="auto"
1561 # end --enable-crypt
1562 # OpenLDAP --enable-modules
1563 # Check whether --enable-modules or --disable-modules was given.
1564 if test "${enable_modules+set}" = set; then
1565 enableval="$enable_modules"
1568 for ol_val in auto yes no ; do
1569 if test "$enableval" = "$ol_val" ; then
1573 if test "$ol_arg" = "invalid" ; then
1574 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1576 ol_enable_modules="$ol_arg"
1579 ol_enable_modules="no"
1581 # end --enable-modules
1582 # OpenLDAP --enable-multimaster
1583 # Check whether --enable-multimaster or --disable-multimaster was given.
1584 if test "${enable_multimaster+set}" = set; then
1585 enableval="$enable_multimaster"
1588 for ol_val in auto yes no ; do
1589 if test "$enableval" = "$ol_val" ; then
1593 if test "$ol_arg" = "invalid" ; then
1594 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1596 ol_enable_multimaster="$ol_arg"
1599 ol_enable_multimaster="no"
1601 # end --enable-multimaster
1602 # OpenLDAP --enable-phonetic
1603 # Check whether --enable-phonetic or --disable-phonetic was given.
1604 if test "${enable_phonetic+set}" = set; then
1605 enableval="$enable_phonetic"
1608 for ol_val in auto yes no ; do
1609 if test "$enableval" = "$ol_val" ; then
1613 if test "$ol_arg" = "invalid" ; then
1614 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1616 ol_enable_phonetic="$ol_arg"
1619 ol_enable_phonetic="no"
1621 # end --enable-phonetic
1622 # OpenLDAP --enable-quipu
1623 # Check whether --enable-quipu or --disable-quipu was given.
1624 if test "${enable_quipu+set}" = set; then
1625 enableval="$enable_quipu"
1628 for ol_val in auto yes no ; do
1629 if test "$enableval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1636 ol_enable_quipu="$ol_arg"
1639 ol_enable_quipu="no"
1641 # end --enable-quipu
1642 # OpenLDAP --enable-rlookups
1643 # Check whether --enable-rlookups or --disable-rlookups was given.
1644 if test "${enable_rlookups+set}" = set; then
1645 enableval="$enable_rlookups"
1648 for ol_val in auto yes no ; do
1649 if test "$enableval" = "$ol_val" ; then
1653 if test "$ol_arg" = "invalid" ; then
1654 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1656 ol_enable_rlookups="$ol_arg"
1659 ol_enable_rlookups="auto"
1661 # end --enable-rlookups
1662 # OpenLDAP --enable-wrappers
1663 # Check whether --enable-wrappers or --disable-wrappers was given.
1664 if test "${enable_wrappers+set}" = set; then
1665 enableval="$enable_wrappers"
1668 for ol_val in auto yes no ; do
1669 if test "$enableval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1676 ol_enable_wrappers="$ol_arg"
1679 ol_enable_wrappers="no"
1681 # end --enable-wrappers
1683 # OpenLDAP --enable-bdb2
1684 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1685 if test "${enable_bdb2+set}" = set; then
1686 enableval="$enable_bdb2"
1689 for ol_val in auto yes no ; do
1690 if test "$enableval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1697 ol_enable_bdb2="$ol_arg"
1703 # OpenLDAP --with-bdb2_module
1704 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1705 if test "${with_bdb2_module+set}" = set; then
1706 withval="$with_bdb2_module"
1709 for ol_val in static dynamic ; do
1710 if test "$withval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1717 ol_with_bdb2_module="$ol_arg"
1720 ol_with_bdb2_module="static"
1722 # end --with-bdb2_module
1724 # OpenLDAP --enable-ldap
1725 # Check whether --enable-ldap or --disable-ldap was given.
1726 if test "${enable_ldap+set}" = set; then
1727 enableval="$enable_ldap"
1730 for ol_val in auto yes no ; do
1731 if test "$enableval" = "$ol_val" ; then
1735 if test "$ol_arg" = "invalid" ; then
1736 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1738 ol_enable_ldap="$ol_arg"
1744 # OpenLDAP --with-ldap_module
1745 # Check whether --with-ldap_module or --without-ldap_module was given.
1746 if test "${with_ldap_module+set}" = set; then
1747 withval="$with_ldap_module"
1750 for ol_val in static dynamic ; do
1751 if test "$withval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1758 ol_with_ldap_module="$ol_arg"
1761 ol_with_ldap_module="static"
1763 # end --with-ldap_module
1765 # OpenLDAP --enable-ldbm
1766 # Check whether --enable-ldbm or --disable-ldbm was given.
1767 if test "${enable_ldbm+set}" = set; then
1768 enableval="$enable_ldbm"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1779 ol_enable_ldbm="$ol_arg"
1782 ol_enable_ldbm="yes"
1785 # OpenLDAP --with-ldbm_module
1786 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1787 if test "${with_ldbm_module+set}" = set; then
1788 withval="$with_ldbm_module"
1791 for ol_val in static dynamic ; do
1792 if test "$withval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1799 ol_with_ldbm_module="$ol_arg"
1802 ol_with_ldbm_module="static"
1804 # end --with-ldbm_module
1806 # OpenLDAP --with-ldbm_api
1807 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1808 if test "${with_ldbm_api+set}" = set; then
1809 withval="$with_ldbm_api"
1812 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1813 if test "$withval" = "$ol_val" ; then
1817 if test "$ol_arg" = "invalid" ; then
1818 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1820 ol_with_ldbm_api="$ol_arg"
1823 ol_with_ldbm_api="auto"
1825 # end --with-ldbm_api
1827 # OpenLDAP --with-ldbm_type
1828 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1829 if test "${with_ldbm_type+set}" = set; then
1830 withval="$with_ldbm_type"
1833 for ol_val in auto btree hash ; do
1834 if test "$withval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1841 ol_with_ldbm_type="$ol_arg"
1844 ol_with_ldbm_type="auto"
1846 # end --with-ldbm_type
1849 # OpenLDAP --enable-passwd
1850 # Check whether --enable-passwd or --disable-passwd was given.
1851 if test "${enable_passwd+set}" = set; then
1852 enableval="$enable_passwd"
1855 for ol_val in auto yes no ; do
1856 if test "$enableval" = "$ol_val" ; then
1860 if test "$ol_arg" = "invalid" ; then
1861 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1863 ol_enable_passwd="$ol_arg"
1866 ol_enable_passwd="no"
1868 # end --enable-passwd
1869 # OpenLDAP --with-passwd_module
1870 # Check whether --with-passwd_module or --without-passwd_module was given.
1871 if test "${with_passwd_module+set}" = set; then
1872 withval="$with_passwd_module"
1875 for ol_val in static dynamic ; do
1876 if test "$withval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1883 ol_with_passwd_module="$ol_arg"
1886 ol_with_passwd_module="static"
1888 # end --with-passwd_module
1890 # OpenLDAP --enable-perl
1891 # Check whether --enable-perl or --disable-perl was given.
1892 if test "${enable_perl+set}" = set; then
1893 enableval="$enable_perl"
1896 for ol_val in auto yes no ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1904 ol_enable_perl="$ol_arg"
1910 # OpenLDAP --with-perl_module
1911 # Check whether --with-perl_module or --without-perl_module was given.
1912 if test "${with_perl_module+set}" = set; then
1913 withval="$with_perl_module"
1916 for ol_val in static dynamic ; do
1917 if test "$withval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1924 ol_with_perl_module="$ol_arg"
1927 ol_with_perl_module="static"
1929 # end --with-perl_module
1931 # OpenLDAP --enable-shell
1932 # Check whether --enable-shell or --disable-shell was given.
1933 if test "${enable_shell+set}" = set; then
1934 enableval="$enable_shell"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1945 ol_enable_shell="$ol_arg"
1948 ol_enable_shell="no"
1950 # end --enable-shell
1951 # OpenLDAP --with-shell_module
1952 # Check whether --with-shell_module or --without-shell_module was given.
1953 if test "${with_shell_module+set}" = set; then
1954 withval="$with_shell_module"
1957 for ol_val in static dynamic ; do
1958 if test "$withval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1965 ol_with_shell_module="$ol_arg"
1968 ol_with_shell_module="static"
1970 # end --with-shell_module
1972 # OpenLDAP --enable-tcl
1973 # Check whether --enable-tcl or --disable-tcl was given.
1974 if test "${enable_tcl+set}" = set; then
1975 enableval="$enable_tcl"
1978 for ol_val in auto yes no ; do
1979 if test "$enableval" = "$ol_val" ; then
1983 if test "$ol_arg" = "invalid" ; then
1984 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1986 ol_enable_tcl="$ol_arg"
1992 # OpenLDAP --with-tcl_module
1993 # Check whether --with-tcl_module or --without-tcl_module was given.
1994 if test "${with_tcl_module+set}" = set; then
1995 withval="$with_tcl_module"
1998 for ol_val in static dynamic ; do
1999 if test "$withval" = "$ol_val" ; then
2003 if test "$ol_arg" = "invalid" ; then
2004 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2006 ol_with_tcl_module="$ol_arg"
2009 ol_with_tcl_module="static"
2011 # end --with-tcl_module
2014 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2015 if test "${with_xxslurpdoptions+set}" = set; then
2016 withval="$with_xxslurpdoptions"
2020 # OpenLDAP --enable-slurpd
2021 # Check whether --enable-slurpd or --disable-slurpd was given.
2022 if test "${enable_slurpd+set}" = set; then
2023 enableval="$enable_slurpd"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2034 ol_enable_slurpd="$ol_arg"
2037 ol_enable_slurpd="auto"
2039 # end --enable-slurpd
2041 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2042 if test "${with_xxliboptions+set}" = set; then
2043 withval="$with_xxliboptions"
2047 # Check whether --enable-static or --disable-static was given.
2048 if test "${enable_static+set}" = set; then
2049 enableval="$enable_static"
2050 p=${PACKAGE-default}
2051 case "$enableval" in
2052 yes) enable_static=yes ;;
2053 no) enable_static=no ;;
2056 # Look at the argument we got. We use all the common list separators.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2058 for pkg in $enableval; do
2059 if test "X$pkg" = "X$p"; then
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072 enableval="$enable_shared"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_shared=yes ;;
2076 no) enable_shared=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2095 if test $ol_enable_dns = yes ; then
2096 if test $ol_enable_referrals = no ; then
2097 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2099 if test $ol_enable_referrals = auto ; then
2100 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2101 ol_enable_referrals=yes
2105 if test $ol_enable_slapd = no ; then
2106 if test $ol_enable_bdb2 = yes ; then
2107 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2109 if test $ol_enable_ldap = yes ; then
2110 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2112 if test $ol_enable_ldbm = yes ; then
2113 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2115 if test $ol_enable_passwd = yes ; then
2116 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2118 if test $ol_enable_perl = yes ; then
2119 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2121 if test $ol_enable_shell = yes ; then
2122 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2124 if test $ol_enable_tcl = yes ; then
2125 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2127 if test $ol_enable_modules = yes ; then
2128 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2130 if test $ol_enable_multimaster = yes ; then
2131 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2133 if test $ol_enable_wrappers = yes ; then
2134 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2136 if test $ol_enable_phonetic = yes ; then
2137 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2139 if test $ol_enable_quipu = yes ; then
2140 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2142 if test $ol_enable_rlookups = yes ; then
2143 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2145 if test $ol_with_ldbm_api != auto ; then
2146 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2148 if test $ol_with_ldbm_type != auto ; then
2149 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2151 if test $ol_with_bdb2_module != static ; then
2152 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2154 if test $ol_with_ldap_module != static ; then
2155 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2157 if test $ol_with_ldbm_module != static ; then
2158 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2160 if test $ol_with_passwd_module != static ; then
2161 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2163 if test $ol_with_perl_module != static ; then
2164 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2166 if test $ol_with_shell_module != static ; then
2167 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2169 if test $ol_with_tcl_module != static ; then
2170 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2172 if test $ol_enable_slurpd = yes ; then
2173 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2176 # force settings to no
2185 ol_enable_modules=no
2186 ol_enable_multimaster=no
2187 ol_enable_phonetic=no
2189 ol_enable_rlookups=no
2190 ol_enable_wrappers=no
2193 ol_with_ldbm_type=no
2195 ol_with_bdb2_module=static
2196 ol_with_ldap_module=static
2197 ol_with_ldbm_module=static
2198 ol_with_passwd_module=static
2199 ol_with_perl_module=static
2200 ol_with_shell_module=static
2201 ol_with_tcl_module=static
2205 elif test $ol_enable_ldbm = no ; then
2207 if test $ol_with_ldbm_api != auto ; then
2208 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2211 if test $ol_with_ldbm_type != auto ; then
2212 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2215 if test $ol_with_ldbm_module != static ; then
2216 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2219 if test $ol_enable_bdb2 = yes ; then
2220 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2223 if test $ol_enable_modules != yes -a \
2224 $ol_enable_ldap = no -a \
2225 $ol_enable_passwd = no -a \
2226 $ol_enable_perl = no -a \
2227 $ol_enable_shell = no -a \
2228 $ol_enable_tcl = no ; then
2229 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2233 ol_with_ldbm_type=no
2234 ol_with_ldbm_module=static
2236 elif test $ol_enable_bdb2 = yes ; then
2238 if test $ol_with_ldbm_api != auto -a \
2239 $ol_with_ldbm_api != db2 ; then
2240 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2243 ol_with_ldbm_api=db2
2247 if test $ol_enable_bdb2 != no ; then
2248 if test $ol_with_ldbm_api != auto -a \
2249 $ol_with_ldbm_api != db2 ; then
2250 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2255 if test $ol_with_ldbm_api = gdbm -a \
2256 $ol_with_ldbm_type = btree ; then
2257 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2259 if test $ol_with_ldbm_api = mdbm -a \
2260 $ol_with_ldbm_type = btree ; then
2261 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2263 if test $ol_with_ldbm_api = ndbm -a \
2264 $ol_with_ldbm_type = btree ; then
2265 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2269 if test $ol_enable_slurpd = yes ; then
2270 if test $ol_with_threads = no ; then
2271 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2275 echo "$ac_t""done" 1>&6
2302 BUILD_BDB2_DYNAMIC=static
2303 BUILD_LDAP_DYNAMIC=static
2304 BUILD_LDBM_DYNAMIC=static
2305 BUILD_PASSWD_DYNAMIC=static
2306 BUILD_PERL_DYNAMIC=static
2307 BUILD_SHELL_DYNAMIC=static
2308 BUILD_TCL_DYNAMIC=static
2310 SLAPD_MODULES_LDFLAGS=
2311 SLAPD_MODULES_CPPFLAGS=
2315 SLAPD_PERL_CPPFLAGS=
2326 cat >> confdefs.h <<\EOF
2327 #define HAVE_MKVERSION 1
2336 *-*-aix*) if test -z "$CC" ; then
2337 case "$ol_with_threads" in
2338 auto | yes | posix) ol_aix_threads=yes ;;
2344 if test $ol_aix_threads = yes ; then
2345 if test -z "${CC}" ; then
2346 for ac_prog in cc_r xlc_r cc
2348 # Extract the first word of "$ac_prog", so it can be a program name with args.
2349 set dummy $ac_prog; ac_word=$2
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_word" >&5
2352 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2360 for ac_dir in $ac_dummy; do
2361 test -z "$ac_dir" && ac_dir=.
2362 if test -f $ac_dir/$ac_word; then
2363 ac_cv_prog_CC="$ac_prog"
2371 if test -n "$CC"; then
2372 echo "$ac_t""$CC" 1>&6
2374 echo "$ac_t""no" 1>&6
2377 test -n "$CC" && break
2381 if test "$CC" = cc ; then
2382 if test $ol_with_threads != auto ; then
2383 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2385 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2391 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2392 ol_with_threads=posix
2393 ol_cv_pthread_create=yes
2397 if test -z "${CC}"; then
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_word" >&5
2404 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2412 for ac_dir in $ac_dummy; do
2413 test -z "$ac_dir" && ac_dir=.
2414 if test -f $ac_dir/$ac_word; then
2415 ac_cv_prog_CC="$ac_prog"
2423 if test -n "$CC"; then
2424 echo "$ac_t""$CC" 1>&6
2426 echo "$ac_t""no" 1>&6
2429 test -n "$CC" && break
2436 # Check whether --enable-fast-install or --disable-fast-install was given.
2437 if test "${enable_fast_install+set}" = set; then
2438 enableval="$enable_fast_install"
2439 p=${PACKAGE-default}
2440 case "$enableval" in
2441 yes) enable_fast_install=yes ;;
2442 no) enable_fast_install=no ;;
2444 enable_fast_install=no
2445 # Look at the argument we got. We use all the common list separators.
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2447 for pkg in $enableval; do
2448 if test "X$pkg" = "X$p"; then
2449 enable_fast_install=yes
2456 enable_fast_install=yes
2459 # Extract the first word of "ranlib", so it can be a program name with args.
2460 set dummy ranlib; ac_word=$2
2461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_word" >&5
2463 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 if test -n "$RANLIB"; then
2467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2471 for ac_dir in $ac_dummy; do
2472 test -z "$ac_dir" && ac_dir=.
2473 if test -f $ac_dir/$ac_word; then
2474 ac_cv_prog_RANLIB="ranlib"
2479 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2482 RANLIB="$ac_cv_prog_RANLIB"
2483 if test -n "$RANLIB"; then
2484 echo "$ac_t""$RANLIB" 1>&6
2486 echo "$ac_t""no" 1>&6
2489 # Extract the first word of "gcc", so it can be a program name with args.
2490 set dummy gcc; ac_word=$2
2491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2492 echo "configure:2493: checking for $ac_word" >&5
2493 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2501 for ac_dir in $ac_dummy; do
2502 test -z "$ac_dir" && ac_dir=.
2503 if test -f $ac_dir/$ac_word; then
2512 if test -n "$CC"; then
2513 echo "$ac_t""$CC" 1>&6
2515 echo "$ac_t""no" 1>&6
2518 if test -z "$CC"; then
2519 # Extract the first word of "cc", so it can be a program name with args.
2520 set dummy cc; ac_word=$2
2521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2522 echo "configure:2523: checking for $ac_word" >&5
2523 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532 for ac_dir in $ac_dummy; do
2533 test -z "$ac_dir" && ac_dir=.
2534 if test -f $ac_dir/$ac_word; then
2535 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2544 if test $ac_prog_rejected = yes; then
2545 # We found a bogon in the path, so make sure we never use it.
2546 set dummy $ac_cv_prog_CC
2548 if test $# -gt 0; then
2549 # We chose a different compiler from the bogus one.
2550 # However, it has the same basename, so the bogon will be chosen
2551 # first if we set CC to just the basename; use the full file name.
2553 set dummy "$ac_dir/$ac_word" "$@"
2561 if test -n "$CC"; then
2562 echo "$ac_t""$CC" 1>&6
2564 echo "$ac_t""no" 1>&6
2567 if test -z "$CC"; then
2568 case "`uname -s`" in
2569 *win32* | *WIN32* | *CYGWIN*)
2570 # Extract the first word of "cl", so it can be a program name with args.
2571 set dummy cl; ac_word=$2
2572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_word" >&5
2574 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2582 for ac_dir in $ac_dummy; do
2583 test -z "$ac_dir" && ac_dir=.
2584 if test -f $ac_dir/$ac_word; then
2593 if test -n "$CC"; then
2594 echo "$ac_t""$CC" 1>&6
2596 echo "$ac_t""no" 1>&6
2601 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2604 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2605 echo "configure:2606: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2612 cross_compiling=$ac_cv_prog_cc_cross
2614 cat > conftest.$ac_ext << EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2622 ac_cv_prog_cc_works=yes
2623 # If we can't run a trivial program, we are probably using a cross compiler.
2624 if (./conftest; exit) 2>/dev/null; then
2625 ac_cv_prog_cc_cross=no
2627 ac_cv_prog_cc_cross=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 ac_cv_prog_cc_works=no
2636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2640 cross_compiling=$ac_cv_prog_cc_cross
2642 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2643 if test $ac_cv_prog_cc_works = no; then
2644 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2646 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2647 echo "configure:2648: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2648 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2649 cross_compiling=$ac_cv_prog_cc_cross
2651 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2652 echo "configure:2653: checking whether we are using GNU C" >&5
2653 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.c <<EOF
2661 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2668 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2670 if test $ac_cv_prog_gcc = yes; then
2676 ac_test_CFLAGS="${CFLAGS+set}"
2677 ac_save_CFLAGS="$CFLAGS"
2679 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2680 echo "configure:2681: checking whether ${CC-cc} accepts -g" >&5
2681 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 echo 'void f(){}' > conftest.c
2685 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2694 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2695 if test "$ac_test_CFLAGS" = set; then
2696 CFLAGS="$ac_save_CFLAGS"
2697 elif test $ac_cv_prog_cc_g = yes; then
2698 if test "$GCC" = yes; then
2704 if test "$GCC" = yes; then
2711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2712 if test "${with_gnu_ld+set}" = set; then
2713 withval="$with_gnu_ld"
2714 test "$withval" = no || with_gnu_ld=yes
2720 if test "$ac_cv_prog_gcc" = yes; then
2721 # Check if gcc -print-prog-name=ld gives a path.
2722 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2723 echo "configure:2724: checking for ld used by GCC" >&5
2724 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2726 # Accept absolute paths.
2727 [\\/]* | [A-Za-z]:[\\/]*)
2728 re_direlt='/[^/][^/]*/\.\./'
2729 # Canonicalize the path of ld
2730 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2731 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2732 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2734 test -z "$LD" && LD="$ac_prog"
2737 # If it fails, then pretend we aren't using GCC.
2741 # If it is relative, then search for the first ld in PATH.
2745 elif test "$with_gnu_ld" = yes; then
2746 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2747 echo "configure:2748: checking for GNU ld" >&5
2749 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2750 echo "configure:2751: checking for non-GNU ld" >&5
2752 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 if test -z "$LD"; then
2756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2757 for ac_dir in $PATH; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2760 ac_cv_path_LD="$ac_dir/$ac_prog"
2761 # Check to see if the program is GNU ld. I'd rather use --version,
2762 # but apparently some GNU ld's only accept -v.
2763 # Break only if it was the GNU/non-GNU ld that we prefer.
2764 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2765 test "$with_gnu_ld" != no && break
2767 test "$with_gnu_ld" != yes && break
2773 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2778 if test -n "$LD"; then
2779 echo "$ac_t""$LD" 1>&6
2781 echo "$ac_t""no" 1>&6
2783 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2785 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2786 echo "configure:2787: checking if the linker ($LD) is GNU ld" >&5
2787 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2791 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2792 ac_cv_prog_gnu_ld=yes
2794 ac_cv_prog_gnu_ld=no
2798 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2801 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2802 echo "configure:2803: checking for BSD-compatible nm" >&5
2803 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 if test -n "$NM"; then
2807 # Let the user override the test.
2810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2811 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2812 test -z "$ac_dir" && ac_dir=.
2813 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2814 # Check to see if the nm accepts a BSD-compat flag.
2815 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2816 # nm: unknown option "B" ignored
2817 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2818 ac_cv_path_NM="$ac_dir/nm -B"
2820 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2821 ac_cv_path_NM="$ac_dir/nm -p"
2824 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2825 continue # so that we can try to find one that supports BSD flags
2830 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2835 echo "$ac_t""$NM" 1>&6
2838 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2839 echo "configure:2840: checking whether ln -s works" >&5
2840 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2844 if ln -s X conftestdata 2>/dev/null
2847 ac_cv_prog_LN_S="ln -s"
2852 LN_S="$ac_cv_prog_LN_S"
2853 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2854 echo "$ac_t""yes" 1>&6
2856 echo "$ac_t""no" 1>&6
2860 # Check for any special flags to pass to ltconfig.
2861 libtool_flags="--cache-file=$cache_file"
2862 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2863 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2864 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2865 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2866 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2867 libtool_flags="$libtool_flags --enable-dlopen"
2869 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2870 if test "${enable_libtool_lock+set}" = set; then
2871 enableval="$enable_libtool_lock"
2875 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2876 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2878 # Some flags need to be propagated to the compiler or linker for good
2882 # Find out which ABI we are using.
2883 echo '#line 2884 "configure"' > conftest.$ac_ext
2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2885 case "`/usr/bin/file conftest.o`" in
2901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2902 SAVE_CFLAGS="$CFLAGS"
2903 CFLAGS="$CFLAGS -belf"
2904 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2905 echo "configure:2906: checking whether the C compiler needs -belf" >&5
2906 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2919 lt_cv_cc_needs_belf=yes
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2924 lt_cv_cc_needs_belf=no
2929 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2930 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2932 CFLAGS="$SAVE_CFLAGS"
2940 # Save cache, so that ltconfig can load it
2943 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2944 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2945 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2946 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2947 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2948 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2949 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2950 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2952 # Reload cache, that may have been modified by ltconfig
2955 # This can be used to rebuild libtool when needed
2956 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2958 # Always use our own libtool.
2959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2961 # Redirect the config.log output again, so that the ltconfig log is not
2962 # clobbered by the next message.
2963 exec 5>>./config.log
2966 for ac_prog in mawk gawk nawk awk
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_word" >&5
2972 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 if test -n "$AWK"; then
2976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2980 for ac_dir in $ac_dummy; do
2981 test -z "$ac_dir" && ac_dir=.
2982 if test -f $ac_dir/$ac_word; then
2983 ac_cv_prog_AWK="$ac_prog"
2990 AWK="$ac_cv_prog_AWK"
2991 if test -n "$AWK"; then
2992 echo "$ac_t""$AWK" 1>&6
2994 echo "$ac_t""no" 1>&6
2997 test -n "$AWK" && break
3000 # test for ln hardlink support
3001 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3002 echo "configure:3003: checking whether ln works" >&5
3003 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 rm -f conftest.src conftest.dst
3007 echo "conftest" > conftest.src
3008 if ln conftest.src conftest.dst 2>/dev/null
3010 ol_cv_prog_LN_H="ln"
3012 ol_cv_prog_LN_H="cp"
3014 rm -f conftest.src conftest.dst
3017 LN_H="$ol_cv_prog_LN_H"
3018 if test "$ol_cv_prog_LN_H" = "ln"; then
3019 echo "$ac_t""yes" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3025 echo "configure:3026: checking whether ln -s works" >&5
3026 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3030 if ln -s X conftestdata 2>/dev/null
3033 ac_cv_prog_LN_S="ln -s"
3038 LN_S="$ac_cv_prog_LN_S"
3039 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3040 echo "$ac_t""yes" 1>&6
3042 echo "$ac_t""no" 1>&6
3046 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3050 # Extract the first word of "sendmail", so it can be a program name with args.
3051 set dummy sendmail; ac_word=$2
3052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_word" >&5
3054 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3059 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3062 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3066 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3067 for ac_dir in $ac_dummy; do
3068 test -z "$ac_dir" && ac_dir=.
3069 if test -f $ac_dir/$ac_word; then
3070 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3075 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3079 SENDMAIL="$ac_cv_path_SENDMAIL"
3080 if test -n "$SENDMAIL"; then
3081 echo "$ac_t""$SENDMAIL" 1>&6
3083 echo "$ac_t""no" 1>&6
3086 # Extract the first word of "vi", so it can be a program name with args.
3087 set dummy vi; ac_word=$2
3088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_word" >&5
3090 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3095 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3098 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3102 ac_dummy="$PATH:/usr/ucb"
3103 for ac_dir in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir=.
3105 if test -f $ac_dir/$ac_word; then
3106 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3111 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3115 EDITOR="$ac_cv_path_EDITOR"
3116 if test -n "$EDITOR"; then
3117 echo "$ac_t""$EDITOR" 1>&6
3119 echo "$ac_t""no" 1>&6
3122 # Extract the first word of "finger", so it can be a program name with args.
3123 set dummy finger; ac_word=$2
3124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3125 echo "configure:3126: checking for $ac_word" >&5
3126 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3131 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3134 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3138 ac_dummy="$PATH:/usr/ucb"
3139 for ac_dir in $ac_dummy; do
3140 test -z "$ac_dir" && ac_dir=.
3141 if test -f $ac_dir/$ac_word; then
3142 ac_cv_path_FINGER="$ac_dir/$ac_word"
3147 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3151 FINGER="$ac_cv_path_FINGER"
3152 if test -n "$FINGER"; then
3153 echo "$ac_t""$FINGER" 1>&6
3155 echo "$ac_t""no" 1>&6
3160 if test $ol_enable_perl != no ; then
3161 # Extract the first word of "perl", so it can be a program name with args.
3162 set dummy perl; ac_word=$2
3163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_word" >&5
3165 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3173 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3178 for ac_dir in $ac_dummy; do
3179 test -z "$ac_dir" && ac_dir=.
3180 if test -f $ac_dir/$ac_word; then
3181 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3186 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3190 PERLBIN="$ac_cv_path_PERLBIN"
3191 if test -n "$PERLBIN"; then
3192 echo "$ac_t""$PERLBIN" 1>&6
3194 echo "$ac_t""no" 1>&6
3198 if test "no$PERLBIN" = "no" ; then
3199 if test $ol_enable_perl = yes ; then
3200 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3204 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3205 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3212 echo "configure:3213: checking how to run the C preprocessor" >&5
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 # This must be in double quotes, not single quotes, because CPP may get
3222 # substituted into the Makefile and "${CC-cc}" will confuse make.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp.
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3233 { (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3235 if test -z "$ac_err"; then
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3242 CPP="${CC-cc} -E -traditional-cpp"
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3250 { (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3252 if test -z "$ac_err"; then
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 CPP="${CC-cc} -nologo -E"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3267 { (eval echo configure:3268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3269 if test -z "$ac_err"; then
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3283 ac_cv_prog_CPP="$CPP"
3285 CPP="$ac_cv_prog_CPP"
3287 ac_cv_prog_CPP="$CPP"
3289 echo "$ac_t""$CPP" 1>&6
3292 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3293 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3295 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3296 echo "configure: warning: programs compiled here do run here..." 1>&2
3297 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3299 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3300 echo "configure: warning: programs compiled here do not run here..." 1>&2
3301 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3304 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3305 echo "configure:3306: checking for AIX" >&5
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315 egrep "yes" >/dev/null 2>&1; then
3317 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3318 #define _ALL_SOURCE 1
3323 echo "$ac_t""no" 1>&6
3328 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3329 echo "configure:3330: checking for POSIXized ISC" >&5
3330 if test -d /etc/conf/kconfig.d &&
3331 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3333 echo "$ac_t""yes" 1>&6
3334 ISC=yes # If later tests want to check for ISC.
3335 cat >> confdefs.h <<\EOF
3336 #define _POSIX_SOURCE 1
3339 if test "$GCC" = yes; then
3345 echo "$ac_t""no" 1>&6
3349 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3350 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3351 echo "configure:3352: checking for minix/config.h" >&5
3352 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <minix/config.h>
3360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3361 { (eval echo configure:3362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3363 if test -z "$ac_err"; then
3365 eval "ac_cv_header_$ac_safe=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 eval "ac_cv_header_$ac_safe=no"
3375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3379 echo "$ac_t""no" 1>&6
3383 if test "$MINIX" = yes; then
3384 cat >> confdefs.h <<\EOF
3385 #define _POSIX_SOURCE 1
3388 cat >> confdefs.h <<\EOF
3389 #define _POSIX_1_SOURCE 2
3392 cat >> confdefs.h <<\EOF
3399 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3400 echo "configure:3401: checking for Cygwin environment" >&5
3401 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3411 #define __CYGWIN__ __CYGWIN32__
3416 if { (eval echo configure:3417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3428 echo "$ac_t""$ac_cv_cygwin" 1>&6
3430 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3431 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3432 echo "configure:3433: checking for mingw32 environment" >&5
3433 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3444 if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3456 echo "$ac_t""$ac_cv_mingw32" 1>&6
3458 test "$ac_cv_mingw32" = yes && MINGW32=yes
3459 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3460 echo "configure:3461: checking for EMX OS/2 environment" >&5
3461 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3484 echo "$ac_t""$ac_cv_emxos2" 1>&6
3486 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3490 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3491 echo "configure:3492: checking for executable suffix" >&5
3492 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3499 echo 'int main () { return 0; }' > conftest.$ac_ext
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3502 for file in conftest.*; do
3504 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3505 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3509 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3512 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3517 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3518 echo "$ac_t""${ac_cv_exeext}" 1>&6
3521 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3522 echo "configure:3523: checking for object suffix" >&5
3523 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3527 echo 'int i = 1;' > conftest.$ac_ext
3528 if { (eval echo configure:3529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 for ac_file in conftest.*; do
3532 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3536 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3541 echo "$ac_t""$ac_cv_objext" 1>&6
3542 OBJEXT=$ac_cv_objext
3543 ac_objext=$ac_cv_objext
3546 cat >> confdefs.h <<EOF
3547 #define EXEEXT "${EXEEXT}"
3551 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3552 echo "configure:3553: checking for be_app in -lbe" >&5
3553 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3554 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS="$LIBS"
3558 LIBS="-lbe -lroot -lnet $LIBS"
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_lib_$ac_lib_var=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_lib_$ac_lib_var=no"
3581 LIBS="$ac_save_LIBS"
3584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 LIBS="$LIBS -lbe -lroot -lnet"
3588 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3597 echo "configure:3598: checking for ${CC-cc} option to accept ANSI C" >&5
3598 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 am_cv_prog_cc_stdc=no
3603 # Don't try gcc -ansi; that turns off useful extensions and
3604 # breaks some systems' header files.
3605 # AIX -qlanglvl=ansi
3606 # Ultrix and OSF/1 -std1
3607 # HP-UX 10.20 and later -Ae
3608 # HP-UX older versions -Aa -D_HPUX_SOURCE
3609 # SVR4 -Xc -D__EXTENSIONS__
3610 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3612 CC="$ac_save_CC $ac_arg"
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3618 #include <sys/types.h>
3619 #include <sys/stat.h>
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3634 s = g (p, va_arg (v,int));
3638 int test (int i, double x);
3639 struct s1 {int (*f) (int a);};
3640 struct s2 {int (*f) (double a);};
3641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3653 am_cv_prog_cc_stdc="$ac_arg"; break
3655 echo "configure: failed program was:" >&5
3656 cat conftest.$ac_ext >&5
3664 if test -z "$am_cv_prog_cc_stdc"; then
3665 echo "$ac_t""none needed" 1>&6
3667 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3669 case "x$am_cv_prog_cc_stdc" in
3671 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3674 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3675 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3678 # test for make depend flag
3681 if test -z "${MKDEP}"; then
3683 if test -z "${MKDEP_FLAGS}"; then
3684 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3685 echo "configure:3686: checking for ${OL_MKDEP} depend flag" >&5
3686 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3691 for flag in "-M" "-xM"; do
3692 cat > conftest.c <<EOF
3695 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3696 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3698 if test ! -f conftest."${ac_object}" ; then
3700 OL_MKDEP_FLAGS="$flag"
3709 echo "$ac_t""$ol_cv_mkdep" 1>&6
3712 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3717 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3722 if test "${ol_cv_mkdep}" = no ; then
3723 # this will soon become an error
3724 echo "configure: warning: do not know how to generate dependencies" 1>&2
3728 if test $ol_enable_modules != no ; then
3729 for ac_hdr in ltdl.h
3731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3733 echo "configure:3734: checking for $ac_hdr" >&5
3734 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3743 { (eval echo configure:3744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3745 if test -z "$ac_err"; then
3747 eval "ac_cv_header_$ac_safe=yes"
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 eval "ac_cv_header_$ac_safe=no"
3757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3760 cat >> confdefs.h <<EOF
3761 #define $ac_tr_hdr 1
3765 echo "$ac_t""no" 1>&6
3770 if test $ac_cv_header_ltdl_h = no ; then
3771 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3775 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3776 echo "configure:3777: checking for lt_dlinit in -lltdl" >&5
3777 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 ac_save_LIBS="$LIBS"
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 eval "ac_cv_lib_$ac_lib_var=yes"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3802 eval "ac_cv_lib_$ac_lib_var=no"
3805 LIBS="$ac_save_LIBS"
3808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3812 cat >> confdefs.h <<EOF
3813 #define $ac_tr_lib 1
3819 echo "$ac_t""no" 1>&6
3822 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3823 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3827 ol_with_bdb2_module=static
3828 ol_with_ldap_module=static
3829 ol_with_ldbm_module=static
3830 ol_with_passwd_module=static
3831 ol_with_perl_module=static
3832 ol_with_shell_module=static
3833 ol_with_tcl_module=static
3837 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3838 echo "configure:3839: checking for EBCDIC" >&5
3839 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 #include <__ASCII__/generate_error.h>
3852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3853 { (eval echo configure:3854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3855 if test -z "$ac_err"; then
3857 ol_cv_cpp_ebcdic=yes
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3868 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3869 if test $ol_cv_cpp_ebcdic = yes ; then
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_EBCDIC 1
3876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3877 echo "configure:3878: checking for ANSI C header files" >&5
3878 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3890 { (eval echo configure:3891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3892 if test -z "$ac_err"; then
3894 ol_cv_header_stdc=yes
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 ol_cv_header_stdc=no
3904 if test $ol_cv_header_stdc = yes; then
3905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 egrep "memchr" >/dev/null 2>&1; then
3916 ol_cv_header_stdc=no
3922 if test $ol_cv_header_stdc = yes; then
3923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3930 egrep "free" >/dev/null 2>&1; then
3934 ol_cv_header_stdc=no
3940 if test $ol_cv_header_stdc = yes; then
3941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3942 if test "$cross_compiling" = yes; then
3945 cat > conftest.$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
3956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3959 int main () { int i; for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3971 ol_cv_header_stdc=no
3979 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3980 if test $ol_cv_header_stdc = yes; then
3981 cat >> confdefs.h <<\EOF
3982 #define STDC_HEADERS 1
3986 ac_cv_header_stdc=disable
3989 if test $ol_cv_header_stdc != yes; then
3990 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3994 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3997 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_hdr that defines DIR" >&5
3999 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 #include <sys/types.h>
4011 if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4013 eval "ac_cv_header_dirent_$ac_safe=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_header_dirent_$ac_safe=no"
4022 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4025 cat >> confdefs.h <<EOF
4026 #define $ac_tr_hdr 1
4028 ac_header_dirent=$ac_hdr; break
4030 echo "$ac_t""no" 1>&6
4033 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4034 if test $ac_header_dirent = dirent.h; then
4035 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4036 echo "configure:4037: checking for opendir in -ldir" >&5
4037 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 ac_save_LIBS="$LIBS"
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4057 eval "ac_cv_lib_$ac_lib_var=yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 eval "ac_cv_lib_$ac_lib_var=no"
4065 LIBS="$ac_save_LIBS"
4068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4069 echo "$ac_t""yes" 1>&6
4072 echo "$ac_t""no" 1>&6
4076 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4077 echo "configure:4078: checking for opendir in -lx" >&5
4078 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4079 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 ac_save_LIBS="$LIBS"
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* Override any gcc2 internal prototype to avoid an error. */
4088 /* We use char because int might match the return type of a gcc2
4089 builtin and then its argument prototype would still apply. */
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4098 eval "ac_cv_lib_$ac_lib_var=yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 eval "ac_cv_lib_$ac_lib_var=no"
4106 LIBS="$ac_save_LIBS"
4109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4113 echo "$ac_t""no" 1>&6
4118 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4119 echo "configure:4120: checking for sys/wait.h that is POSIX.1 compatible" >&5
4120 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/types.h>
4127 #include <sys/wait.h>
4129 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4132 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4137 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4140 if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4142 ac_cv_header_sys_wait_h=yes
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 ac_cv_header_sys_wait_h=no
4152 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4153 if test $ac_cv_header_sys_wait_h = yes; then
4154 cat >> confdefs.h <<\EOF
4155 #define HAVE_SYS_WAIT_H 1
4160 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4161 echo "configure:4162: checking POSIX termios" >&5
4162 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 #include <sys/types.h>
4170 #include <termios.h>
4172 /* SunOS 4.0.3 has termios.h but not the library calls. */
4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 am_cv_sys_posix_termios=yes
4180 echo "configure: failed program was:" >&5
4181 cat conftest.$ac_ext >&5
4183 am_cv_sys_posix_termios=no
4188 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4191 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4192 echo "configure:4193: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4193 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4198 gwinsz_in_termios_h=no
4199 if test $am_cv_sys_posix_termios = yes; then
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <sys/types.h>
4204 # include <termios.h>
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 egrep "yes" >/dev/null 2>&1; then
4213 gwinsz_in_termios_h=yes
4219 if test $gwinsz_in_termios_h = no; then
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 #include <sys/types.h>
4224 # include <sys/ioctl.h>
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 egrep "yes" >/dev/null 2>&1; then
4233 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4241 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4242 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4243 cat >> confdefs.h <<\EOF
4244 #define GWINSZ_IN_SYS_IOCTL 1
4249 if test $am_cv_sys_posix_termios = yes ; then
4250 cat >> confdefs.h <<\EOF
4251 #define HAVE_POSIX_TERMIOS 1
4298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_hdr" >&5
4301 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4310 { (eval echo configure:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4312 if test -z "$ac_err"; then
4314 eval "ac_cv_header_$ac_safe=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_header_$ac_safe=no"
4324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4327 cat >> confdefs.h <<EOF
4328 #define $ac_tr_hdr 1
4332 echo "$ac_t""no" 1>&6
4339 echo $ac_n "checking for socket""... $ac_c" 1>&6
4340 echo "configure:4341: checking for socket" >&5
4341 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 /* System header to define __stub macros and hopefully few prototypes,
4348 which can conflict with char socket(); below. */
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4358 /* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
4361 #if defined (__stub_socket) || defined (__stub___socket)
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_func_socket=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_func_socket=no"
4381 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4385 echo "$ac_t""no" 1>&6
4387 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4388 echo "configure:4389: checking for main in -lsocket" >&5
4389 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS="$LIBS"
4394 LIBS="-lsocket $LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4405 eval "ac_cv_lib_$ac_lib_var=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 eval "ac_cv_lib_$ac_lib_var=no"
4413 LIBS="$ac_save_LIBS"
4416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4418 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4420 cat >> confdefs.h <<EOF
4421 #define $ac_tr_lib 1
4424 LIBS="-lsocket $LIBS"
4427 echo "$ac_t""no" 1>&6
4430 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4431 echo "configure:4432: checking for main in -lnet" >&5
4432 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 ac_save_LIBS="$LIBS"
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4463 cat >> confdefs.h <<EOF
4464 #define $ac_tr_lib 1
4470 echo "$ac_t""no" 1>&6
4473 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4474 echo "configure:4475: checking for socket in -lnet" >&5
4475 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4476 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 ac_save_LIBS="$LIBS"
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 /* Override any gcc2 internal prototype to avoid an error. */
4485 /* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 eval "ac_cv_lib_$ac_lib_var=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_lib_$ac_lib_var=no"
4503 LIBS="$ac_save_LIBS"
4506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4509 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4510 cat >> confdefs.h <<EOF
4511 #define $ac_tr_lib 1
4517 echo "$ac_t""no" 1>&6
4520 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4521 echo "configure:4522: checking for main in -lnsl_s" >&5
4522 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 ac_save_LIBS="$LIBS"
4527 LIBS="-lnsl_s $LIBS"
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538 eval "ac_cv_lib_$ac_lib_var=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 eval "ac_cv_lib_$ac_lib_var=no"
4546 LIBS="$ac_save_LIBS"
4549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4552 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_lib 1
4557 LIBS="-lnsl_s $LIBS"
4560 echo "$ac_t""no" 1>&6
4563 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4564 echo "configure:4565: checking for main in -lnsl" >&5
4565 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4566 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 ac_save_LIBS="$LIBS"
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 eval "ac_cv_lib_$ac_lib_var=yes"
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4586 eval "ac_cv_lib_$ac_lib_var=no"
4589 LIBS="$ac_save_LIBS"
4592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4594 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4596 cat >> confdefs.h <<EOF
4597 #define $ac_tr_lib 1
4603 echo "$ac_t""no" 1>&6
4606 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4607 echo "configure:4608: checking for socket in -linet" >&5
4608 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4609 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 ac_save_LIBS="$LIBS"
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4628 eval "ac_cv_lib_$ac_lib_var=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_lib_$ac_lib_var=no"
4636 LIBS="$ac_save_LIBS"
4639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4641 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4643 cat >> confdefs.h <<EOF
4644 #define $ac_tr_lib 1
4650 echo "$ac_t""no" 1>&6
4653 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4654 echo "configure:4655: checking for main in -lgen" >&5
4655 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4656 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 ac_save_LIBS="$LIBS"
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4671 eval "ac_cv_lib_$ac_lib_var=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 eval "ac_cv_lib_$ac_lib_var=no"
4679 LIBS="$ac_save_LIBS"
4682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_lib 1
4693 echo "$ac_t""no" 1>&6
4700 echo $ac_n "checking for select""... $ac_c" 1>&6
4701 echo "configure:4702: checking for select" >&5
4702 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 /* System header to define __stub macros and hopefully few prototypes,
4709 which can conflict with char select(); below. */
4711 /* Override any gcc2 internal prototype to avoid an error. */
4712 /* We use char because int might match the return type of a gcc2
4713 builtin and then its argument prototype would still apply. */
4719 /* The GNU C library defines this for functions which it implements
4720 to always fail with ENOSYS. Some functions are actually named
4721 something starting with __ and the normal name is an alias. */
4722 #if defined (__stub_select) || defined (__stub___select)
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732 eval "ac_cv_func_select=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4737 eval "ac_cv_func_select=no"
4742 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4746 echo "$ac_t""no" 1>&6
4747 { echo "configure: error: select() required." 1>&2; exit 1; }
4751 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4752 echo "configure:4753: checking types of arguments for select()" >&5
4753 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4763 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4764 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 #ifdef HAVE_SYS_TYPES_H
4769 #include <sys/types.h>
4771 #ifdef HAVE_SYS_TIME_H
4772 #include <sys/time.h>
4774 #ifdef HAVE_SYS_SELECT_H
4775 #include <sys/select.h>
4777 #ifdef HAVE_SYS_SOCKET_H
4778 #include <sys/socket.h>
4780 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
4785 if { (eval echo configure:4786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4787 ac_not_found=no ; break 3
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4804 if test "$ac_not_found" = yes; then
4805 ac_cv_func_select_arg1=int
4806 ac_cv_func_select_arg234='int *'
4807 ac_cv_func_select_arg5='struct timeval *'
4809 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4810 cat >> confdefs.h <<EOF
4811 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4814 cat >> confdefs.h <<EOF
4815 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4818 cat >> confdefs.h <<EOF
4819 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4825 for ac_hdr in regex.h
4827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_hdr" >&5
4830 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4839 { (eval echo configure:4840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4841 if test -z "$ac_err"; then
4843 eval "ac_cv_header_$ac_safe=yes"
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4849 eval "ac_cv_header_$ac_safe=no"
4853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4856 cat >> confdefs.h <<EOF
4857 #define $ac_tr_hdr 1
4861 echo "$ac_t""no" 1>&6
4865 if test "$ac_cv_header_regex_h" != yes ; then
4866 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4868 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4869 echo "configure:4870: checking for regfree" >&5
4870 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* System header to define __stub macros and hopefully few prototypes,
4877 which can conflict with char regfree(); below. */
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_regfree) || defined (__stub___regfree)
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 eval "ac_cv_func_regfree=yes"
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 eval "ac_cv_func_regfree=no"
4910 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4914 echo "$ac_t""no" 1>&6
4915 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4920 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4921 echo "configure:4922: checking for compatible POSIX regex" >&5
4922 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4926 if test "$cross_compiling" = yes; then
4927 ol_cv_c_posix_regex=cross
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4933 #include <sys/types.h>
4935 static char *pattern, *string;
4943 if(regcomp(&re, pattern, 0)) {
4947 string = "ALL MATCH";
4949 rc = regexec(&re, string, 0, (void*)0, 0);
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4958 ol_cv_c_posix_regex=yes
4960 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4963 ol_cv_c_posix_regex=no
4970 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4972 if test "$ol_cv_c_posix_regex" = no ; then
4973 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4977 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4978 echo "configure:4979: checking for sigset in -lV3" >&5
4979 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4980 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 ac_save_LIBS="$LIBS"
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4988 /* Override any gcc2 internal prototype to avoid an error. */
4989 /* We use char because int might match the return type of a gcc2
4990 builtin and then its argument prototype would still apply. */
4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4999 eval "ac_cv_lib_$ac_lib_var=yes"
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5004 eval "ac_cv_lib_$ac_lib_var=no"
5007 LIBS="$ac_save_LIBS"
5010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5011 echo "$ac_t""yes" 1>&6
5012 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5014 cat >> confdefs.h <<EOF
5015 #define $ac_tr_lib 1
5021 echo "$ac_t""no" 1>&6
5027 if test $ol_enable_dns != no ; then
5028 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5029 echo "configure:5030: checking for res_search" >&5
5030 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 /* System header to define __stub macros and hopefully few prototypes,
5037 which can conflict with char res_search(); below. */
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5047 /* The GNU C library defines this for functions which it implements
5048 to always fail with ENOSYS. Some functions are actually named
5049 something starting with __ and the normal name is an alias. */
5050 #if defined (__stub_res_search) || defined (__stub___res_search)
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060 eval "ac_cv_func_res_search=yes"
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 eval "ac_cv_func_res_search=no"
5070 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5071 echo "$ac_t""yes" 1>&6
5074 echo "$ac_t""no" 1>&6
5077 if test $ac_cv_func_res_search = no ; then
5078 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5079 echo "configure:5080: checking for res_search in -lbind" >&5
5080 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5081 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 ac_save_LIBS="$LIBS"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 builtin and then its argument prototype would still apply. */
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 eval "ac_cv_lib_$ac_lib_var=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 eval "ac_cv_lib_$ac_lib_var=no"
5108 LIBS="$ac_save_LIBS"
5111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5113 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5115 cat >> confdefs.h <<EOF
5116 #define $ac_tr_lib 1
5122 echo "$ac_t""no" 1>&6
5125 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5127 if test $ac_cv_func_res_search = no ; then
5128 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5129 echo "configure:5130: checking for __res_search in -lbind" >&5
5130 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5131 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 ac_save_LIBS="$LIBS"
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5139 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5142 char __res_search();
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 eval "ac_cv_lib_$ac_lib_var=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_lib_$ac_lib_var=no"
5158 LIBS="$ac_save_LIBS"
5161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5162 echo "$ac_t""yes" 1>&6
5163 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5165 cat >> confdefs.h <<EOF
5166 #define $ac_tr_lib 1
5172 echo "$ac_t""no" 1>&6
5175 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5177 if test $ac_cv_func_res_search = no ; then
5178 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5179 echo "configure:5180: checking for res_search in -lresolv" >&5
5180 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 ac_save_LIBS="$LIBS"
5185 LIBS="-lresolv $LIBS"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5200 eval "ac_cv_lib_$ac_lib_var=yes"
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5205 eval "ac_cv_lib_$ac_lib_var=no"
5208 LIBS="$ac_save_LIBS"
5211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5212 echo "$ac_t""yes" 1>&6
5213 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5215 cat >> confdefs.h <<EOF
5216 #define $ac_tr_lib 1
5219 LIBS="-lresolv $LIBS"
5222 echo "$ac_t""no" 1>&6
5225 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5228 if test "$ac_cv_func_res_search" = yes ; then
5229 cat >> confdefs.h <<\EOF
5230 #define HAVE_RES_SEARCH 1
5233 elif test $ol_enable_dns = yes ; then
5234 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5236 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5243 if test $ol_enable_ldapd != no ; then
5244 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5246 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5247 echo "configure:5248: checking for main in -lxtpp" >&5
5248 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5249 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 ac_save_LIBS="$LIBS"
5253 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 eval "ac_cv_lib_$ac_lib_var=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_lib_$ac_lib_var=no"
5272 LIBS="$ac_save_LIBS"
5275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5276 echo "$ac_t""yes" 1>&6
5279 cat >> confdefs.h <<\EOF
5283 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5286 echo "$ac_t""no" 1>&6
5290 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5291 echo "configure:5292: checking for main in -ldsap" >&5
5292 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5293 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 ac_save_LIBS="$LIBS"
5297 LIBS="-ldsap -lisode $LIBS"
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5308 eval "ac_cv_lib_$ac_lib_var=yes"
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 eval "ac_cv_lib_$ac_lib_var=no"
5316 LIBS="$ac_save_LIBS"
5319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5320 echo "$ac_t""yes" 1>&6
5323 cat >> confdefs.h <<\EOF
5327 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5330 echo "$ac_t""no" 1>&6
5334 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5335 echo "configure:5336: checking for main in -lisode" >&5
5336 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5337 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 ac_save_LIBS="$LIBS"
5341 LIBS="-lisode $LIBS"
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 eval "ac_cv_lib_$ac_lib_var=yes"
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5357 eval "ac_cv_lib_$ac_lib_var=no"
5360 LIBS="$ac_save_LIBS"
5363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5364 echo "$ac_t""yes" 1>&6
5367 cat >> confdefs.h <<\EOF
5368 #define HAVE_ISODE 1
5371 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5374 echo "$ac_t""no" 1>&6
5380 if test $ol_link_isode != no; then
5381 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5382 echo "configure:5383: checking for main in -lpp" >&5
5383 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5384 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5387 ac_save_LIBS="$LIBS"
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5399 eval "ac_cv_lib_$ac_lib_var=yes"
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 eval "ac_cv_lib_$ac_lib_var=no"
5407 LIBS="$ac_save_LIBS"
5410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5411 echo "$ac_t""yes" 1>&6
5413 cat >> confdefs.h <<\EOF
5417 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5420 echo "$ac_t""no" 1>&6
5425 # Extract the first word of "pepsy", so it can be a program name with args.
5426 set dummy pepsy; ac_word=$2
5427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_word" >&5
5429 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5434 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5437 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5442 for ac_dir in $ac_dummy; do
5443 test -z "$ac_dir" && ac_dir=.
5444 if test -f $ac_dir/$ac_word; then
5445 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5453 PEPSY="$ac_cv_path_PEPSY"
5454 if test -n "$PEPSY"; then
5455 echo "$ac_t""$PEPSY" 1>&6
5457 echo "$ac_t""no" 1>&6
5462 if test $ol_enable_quipu != no ; then
5463 for ac_hdr in quipu/commonarg.h
5465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5467 echo "configure:5468: checking for $ac_hdr" >&5
5468 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5477 { (eval echo configure:5478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5479 if test -z "$ac_err"; then
5481 eval "ac_cv_header_$ac_safe=yes"
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 eval "ac_cv_header_$ac_safe=no"
5491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5492 echo "$ac_t""yes" 1>&6
5493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5494 cat >> confdefs.h <<EOF
5495 #define $ac_tr_hdr 1
5499 echo "$ac_t""no" 1>&6
5504 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5506 elif test $ol_enable_quipu = auto ; then
5507 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5509 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5515 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5516 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_hdr" >&5
5521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5530 { (eval echo configure:5531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5532 if test -z "$ac_err"; then
5534 eval "ac_cv_header_$ac_safe=yes"
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5540 eval "ac_cv_header_$ac_safe=no"
5544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5547 cat >> confdefs.h <<EOF
5548 #define $ac_tr_hdr 1
5552 echo "$ac_t""no" 1>&6
5557 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5558 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5559 echo "configure:5560: checking for main in -lkrb4" >&5
5560 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5562 echo $ac_n "(cached) $ac_c" 1>&6
5564 ac_save_LIBS="$LIBS"
5565 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5576 eval "ac_cv_lib_$ac_lib_var=yes"
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 eval "ac_cv_lib_$ac_lib_var=no"
5584 LIBS="$ac_save_LIBS"
5587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5588 echo "$ac_t""yes" 1>&6
5591 echo "$ac_t""no" 1>&6
5596 if test $have_k5 = yes ; then
5597 ol_with_kerberos=found
5598 ol_link_kerberos=yes
5600 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5602 LIBS="$KRB_LIBS $LIBS"
5604 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5605 echo "configure:5606: checking for des_debug in Kerberos libraries" >&5
5606 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5611 LIBS="$KRB_LIBS $LIBS"
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5616 #include <kerberosIV/krb.h>
5617 #include <kerberosIV/des.h>
5618 extern int des_debug;
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 ol_cv_var_des_debug=yes
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 ol_cv_var_des_debug=no
5640 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5642 if test $ol_cv_var_des_debug = yes ; then
5643 cat >> confdefs.h <<\EOF
5644 #define HAVE_DES_DEBUG 1
5654 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5655 for ac_hdr in krb.h des.h
5657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_hdr" >&5
5660 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5669 { (eval echo configure:5670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5671 if test -z "$ac_err"; then
5673 eval "ac_cv_header_$ac_safe=yes"
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 eval "ac_cv_header_$ac_safe=no"
5683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_hdr 1
5691 echo "$ac_t""no" 1>&6
5696 if test $ac_cv_header_krb_h = yes ; then
5697 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5698 echo "configure:5699: checking for main in -lkrb" >&5
5699 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5700 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 ac_save_LIBS="$LIBS"
5704 LIBS="-lkrb -ldes $LIBS"
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 eval "ac_cv_lib_$ac_lib_var=yes"
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 eval "ac_cv_lib_$ac_lib_var=no"
5723 LIBS="$ac_save_LIBS"
5726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5730 echo "$ac_t""no" 1>&6
5735 if test $have_k4 = yes ; then
5736 ol_with_kerberos=found
5737 ol_link_kerberos=yes
5739 KRB_LIBS="-lkrb -ldes"
5744 if test $ol_link_kerberos = yes ; then
5745 cat >> confdefs.h <<\EOF
5746 #define HAVE_KERBEROS 1
5752 if test $ol_with_tls != no ; then
5754 for ac_hdr in openssl/ssl.h ssl.h
5756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_hdr" >&5
5759 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5768 { (eval echo configure:5769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5770 if test -z "$ac_err"; then
5772 eval "ac_cv_header_$ac_safe=yes"
5775 echo "configure: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5778 eval "ac_cv_header_$ac_safe=no"
5782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5785 cat >> confdefs.h <<EOF
5786 #define $ac_tr_hdr 1
5790 echo "$ac_t""no" 1>&6
5795 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5796 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5797 echo "configure:5798: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5798 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5799 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5800 echo $ac_n "(cached) $ac_c" 1>&6
5802 ac_save_LIBS="$LIBS"
5803 LIBS="-lssl -lcrypto $LIBS"
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5810 char SSLeay_add_ssl_algorithms();
5813 SSLeay_add_ssl_algorithms()
5816 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 eval "ac_cv_lib_$ac_lib_var=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 eval "ac_cv_lib_$ac_lib_var=no"
5826 LIBS="$ac_save_LIBS"
5829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5834 echo "$ac_t""no" 1>&6
5839 if test $have_ssleay = no ; then
5840 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5841 echo "configure:5842: checking for SSL_library_init in -lssl" >&5
5842 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5843 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5846 ac_save_LIBS="$LIBS"
5847 LIBS="-lssl -lcrypto $LIBS"
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5854 char SSL_library_init();
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 eval "ac_cv_lib_$ac_lib_var=yes"
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5867 eval "ac_cv_lib_$ac_lib_var=no"
5870 LIBS="$ac_save_LIBS"
5873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5878 echo "$ac_t""no" 1>&6
5884 if test $have_ssleay = no ; then
5885 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5886 echo "configure:5887: checking for ssl3_accept in -lssl" >&5
5887 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 ac_save_LIBS="$LIBS"
5892 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5907 eval "ac_cv_lib_$ac_lib_var=yes"
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5912 eval "ac_cv_lib_$ac_lib_var=no"
5915 LIBS="$ac_save_LIBS"
5918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5919 echo "$ac_t""yes" 1>&6
5923 echo "$ac_t""no" 1>&6
5929 if test $have_ssleay = yes ; then
5933 cat >> confdefs.h <<\EOF
5934 #define HAVE_SSLEAY 1
5938 if test $need_rsaref = yes; then
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_RSAREF 1
5944 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5946 TLS_LIBS="-lssl -lcrypto"
5952 if test $ol_link_tls = yes ; then
5953 cat >> confdefs.h <<\EOF
5961 gethostbyname_r gethostbyaddr_r \
5964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5965 echo "configure:5966: checking for $ac_func" >&5
5966 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char $ac_func(); below. */
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5983 /* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996 eval "ac_cv_func_$ac_func=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 eval "ac_cv_func_$ac_func=no"
6006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6009 cat >> confdefs.h <<EOF
6010 #define $ac_tr_func 1
6014 echo "$ac_t""no" 1>&6
6019 if test "$ac_cv_func_ctime_r" = no ; then
6020 ol_cv_func_ctime_r_nargs=0
6022 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6023 echo "configure:6024: checking number of arguments of ctime_r" >&5
6024 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6032 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6035 if { (eval echo configure:6036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6037 ol_cv_func_ctime_r_nargs=3
6039 echo "configure: failed program was:" >&5
6040 cat conftest.$ac_ext >&5
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6047 time_t ti; char *buffer; ctime_r(&ti,buffer);
6050 if { (eval echo configure:6051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6052 ol_cv_func_ctime_r_nargs=2
6054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 ol_cv_func_ctime_r_nargs=0
6064 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6065 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6066 cat >> confdefs.h <<EOF
6067 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6074 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6075 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6076 echo "configure:6077: checking number of arguments of gethostbyname_r" >&5
6077 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 #include <sys/types.h>
6084 #include <sys/socket.h>
6085 #include <netinet/in.h>
6087 #define BUFSIZE (sizeof(struct hostent)+10)
6089 struct hostent hent; char buffer[BUFSIZE];
6090 int bufsize=BUFSIZE;int h_errno;
6091 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6092 buffer, bufsize, &h_errno);
6095 if { (eval echo configure:6096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6097 ol_cv_func_gethostbyname_r_nargs=5
6099 echo "configure: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 #include <sys/types.h>
6106 #include <sys/socket.h>
6107 #include <netinet/in.h>
6109 #define BUFSIZE (sizeof(struct hostent)+10)
6111 struct hostent hent;struct hostent *rhent;
6112 char buffer[BUFSIZE];
6113 int bufsize=BUFSIZE;int h_errno;
6114 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6118 if { (eval echo configure:6119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6120 ol_cv_func_gethostbyname_r_nargs=6
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 ol_cv_func_gethostbyname_r_nargs=0
6132 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6133 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6134 cat >> confdefs.h <<EOF
6135 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6141 ol_cv_func_gethostbyname_r_nargs=0
6144 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6145 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6146 echo "configure:6147: checking number of arguments of gethostbyaddr_r" >&5
6147 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 #include <sys/types.h>
6154 #include <sys/socket.h>
6155 #include <netinet/in.h>
6157 #define BUFSIZE (sizeof(struct hostent)+10)
6159 struct hostent hent; char buffer[BUFSIZE];
6161 size_t alen=sizeof(struct in_addr);
6162 int bufsize=BUFSIZE;int h_errno;
6163 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6164 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6167 if { (eval echo configure:6168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6169 ol_cv_func_gethostbyaddr_r_nargs=7
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 #include <sys/types.h>
6178 #include <sys/socket.h>
6179 #include <netinet/in.h>
6181 #define BUFSIZE (sizeof(struct hostent)+10)
6183 struct hostent hent;
6184 struct hostent *rhent; char buffer[BUFSIZE];
6186 size_t alen=sizeof(struct in_addr);
6187 int bufsize=BUFSIZE;int h_errno;
6188 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6189 alen, AF_INET, &hent, buffer, bufsize,
6193 if { (eval echo configure:6194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6195 ol_cv_func_gethostbyaddr_r_nargs=8
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 ol_cv_func_gethostbyaddr_r_nargs=0
6207 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6208 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6209 cat >> confdefs.h <<EOF
6210 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6216 ol_cv_func_gethostbyaddr_r_nargs=0
6219 if test "$ac_cv_func_ctime_r" = yes \
6220 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6221 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6222 -a "$ac_cv_func_gethostbyname_r" = yes \
6223 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6224 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6225 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6226 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6227 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6230 cat >> confdefs.h <<\EOF
6231 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6237 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6238 -o $ol_with_threads = posix ; then
6240 for ac_hdr in pthread.h sched.h
6242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_hdr" >&5
6245 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6256 if test -z "$ac_err"; then
6258 eval "ac_cv_header_$ac_safe=yes"
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6264 eval "ac_cv_header_$ac_safe=no"
6268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6271 cat >> confdefs.h <<EOF
6272 #define $ac_tr_hdr 1
6276 echo "$ac_t""no" 1>&6
6281 if test $ac_cv_header_pthread_h = yes ; then
6282 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6283 echo "configure:6284: checking POSIX thread version" >&5
6284 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6292 # include <pthread.h>
6293 /* this check could be improved */
6294 # ifdef PTHREAD_ONCE_INIT
6295 pthread_version_final
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 egrep "pthread_version_final" >/dev/null 2>&1; then
6302 ol_pthread_final=yes
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6314 # include <pthread.h>
6315 /* this check could be improved */
6316 # ifdef pthread_once_init
6317 pthread_version_draft4
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6324 ol_pthread_draft4=yes
6327 ol_pthread_draft4=no
6332 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6333 ol_cv_pthread_version=final
6334 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6335 ol_cv_pthread_version=draft4
6337 ol_cv_pthread_version=unknown
6342 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6345 if test $ol_cv_pthread_version = final ; then
6346 cat >> confdefs.h <<\EOF
6347 #define HAVE_PTHREADS_FINAL 1
6350 elif test $ol_cv_pthread_version = draft4 ; then
6351 cat >> confdefs.h <<\EOF
6352 #define HAVE_PTHREADS_D4 1
6356 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6359 # consider threads found
6360 ol_with_threads=found
6363 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6364 echo "configure:6365: checking for LinuxThreads pthread.h" >&5
6365 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 #include <pthread.h>
6373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6374 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6376 ol_cv_header_linux_threads=yes
6379 ol_cv_header_linux_threads=no
6386 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6387 if test $ol_cv_header_linux_threads = yes; then
6388 cat >> confdefs.h <<\EOF
6389 #define HAVE_LINUX_THREADS 1
6396 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6397 echo "configure:6398: checking for pthread_create in default libraries" >&5
6398 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6402 if test "$cross_compiling" = yes; then
6403 ol_cv_pthread_create=yes
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6409 #include <pthread.h>
6411 #define NULL (void*)0
6414 static void *task(p)
6417 return (void *) (p == NULL);
6420 int main(argc, argv)
6427 /* make sure pthread_create() isn't just a stub */
6428 #if HAVE_PTHREADS_D4
6429 status = pthread_create(&t, pthread_attr_default, task, NULL);
6431 status = pthread_create(&t, NULL, task, NULL);
6434 if( status ) return status;
6436 /* make sure pthread_detach() isn't just a stub */
6437 #if HAVE_PTHREADS_D4
6438 status = pthread_detach( &t );
6440 status = pthread_detach( t );
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6449 ol_cv_pthread_create=yes
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6454 ol_cv_pthread_create=no
6461 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6463 if test $ol_cv_pthread_create != no ; then
6464 ol_link_threads=posix
6468 # Pthread try link: -mt (ol_cv_pthread_mt)
6469 if test "$ol_link_threads" = no ; then
6471 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
6472 echo "configure:6473: checking for pthread link with -mt" >&5
6473 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6485 #include <pthread.h>
6487 #define NULL (void*)0
6494 #if HAVE_PTHREADS_D4
6495 pthread_create(&t, pthread_attr_default, NULL, NULL);
6496 pthread_detach( &t );
6498 pthread_create(&t, NULL, NULL, NULL);
6499 pthread_detach( t );
6501 #ifdef HAVE_LINUX_THREADS
6502 pthread_kill_other_threads_np();
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 ol_cv_pthread_mt=yes
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6523 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
6525 if test $ol_cv_pthread_mt = yes ; then
6526 ol_link_pthreads="-mt"
6527 ol_link_threads=posix
6531 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6532 if test "$ol_link_threads" = no ; then
6534 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6535 echo "configure:6536: checking for pthread link with -kthread" >&5
6536 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6542 LIBS="-kthread $LIBS"
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6548 #include <pthread.h>
6550 #define NULL (void*)0
6557 #if HAVE_PTHREADS_D4
6558 pthread_create(&t, pthread_attr_default, NULL, NULL);
6559 pthread_detach( &t );
6561 pthread_create(&t, NULL, NULL, NULL);
6562 pthread_detach( t );
6564 #ifdef HAVE_LINUX_THREADS
6565 pthread_kill_other_threads_np();
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 ol_cv_pthread_kthread=yes
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 ol_cv_pthread_kthread=no
6586 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6588 if test $ol_cv_pthread_kthread = yes ; then
6589 ol_link_pthreads="-kthread"
6590 ol_link_threads=posix
6594 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6595 if test "$ol_link_threads" = no ; then
6597 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6598 echo "configure:6599: checking for pthread link with -pthread" >&5
6599 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6605 LIBS="-pthread $LIBS"
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6611 #include <pthread.h>
6613 #define NULL (void*)0
6620 #if HAVE_PTHREADS_D4
6621 pthread_create(&t, pthread_attr_default, NULL, NULL);
6622 pthread_detach( &t );
6624 pthread_create(&t, NULL, NULL, NULL);
6625 pthread_detach( t );
6627 #ifdef HAVE_LINUX_THREADS
6628 pthread_kill_other_threads_np();
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 ol_cv_pthread_pthread=yes
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 ol_cv_pthread_pthread=no
6649 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6651 if test $ol_cv_pthread_pthread = yes ; then
6652 ol_link_pthreads="-pthread"
6653 ol_link_threads=posix
6657 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6658 if test "$ol_link_threads" = no ; then
6660 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6661 echo "configure:6662: checking for pthread link with -pthreads" >&5
6662 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6668 LIBS="-pthreads $LIBS"
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6674 #include <pthread.h>
6676 #define NULL (void*)0
6683 #if HAVE_PTHREADS_D4
6684 pthread_create(&t, pthread_attr_default, NULL, NULL);
6685 pthread_detach( &t );
6687 pthread_create(&t, NULL, NULL, NULL);
6688 pthread_detach( t );
6690 #ifdef HAVE_LINUX_THREADS
6691 pthread_kill_other_threads_np();
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 ol_cv_pthread_pthreads=yes
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 ol_cv_pthread_pthreads=no
6712 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6714 if test $ol_cv_pthread_pthreads = yes ; then
6715 ol_link_pthreads="-pthreads"
6716 ol_link_threads=posix
6720 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6721 if test "$ol_link_threads" = no ; then
6723 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6724 echo "configure:6725: checking for pthread link with -mthreads" >&5
6725 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6731 LIBS="-mthreads $LIBS"
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6737 #include <pthread.h>
6739 #define NULL (void*)0
6746 #if HAVE_PTHREADS_D4
6747 pthread_create(&t, pthread_attr_default, NULL, NULL);
6748 pthread_detach( &t );
6750 pthread_create(&t, NULL, NULL, NULL);
6751 pthread_detach( t );
6753 #ifdef HAVE_LINUX_THREADS
6754 pthread_kill_other_threads_np();
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 ol_cv_pthread_mthreads=yes
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 ol_cv_pthread_mthreads=no
6775 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6777 if test $ol_cv_pthread_mthreads = yes ; then
6778 ol_link_pthreads="-mthreads"
6779 ol_link_threads=posix
6783 # Pthread try link: -thread (ol_cv_pthread_thread)
6784 if test "$ol_link_threads" = no ; then
6786 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6787 echo "configure:6788: checking for pthread link with -thread" >&5
6788 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6794 LIBS="-thread $LIBS"
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6800 #include <pthread.h>
6802 #define NULL (void*)0
6809 #if HAVE_PTHREADS_D4
6810 pthread_create(&t, pthread_attr_default, NULL, NULL);
6811 pthread_detach( &t );
6813 pthread_create(&t, NULL, NULL, NULL);
6814 pthread_detach( t );
6816 #ifdef HAVE_LINUX_THREADS
6817 pthread_kill_other_threads_np();
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 ol_cv_pthread_thread=yes
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 ol_cv_pthread_thread=no
6838 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6840 if test $ol_cv_pthread_thread = yes ; then
6841 ol_link_pthreads="-thread"
6842 ol_link_threads=posix
6847 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6848 if test "$ol_link_threads" = no ; then
6849 # try -lpthread -lmach -lexc -lc_r
6850 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6851 echo "configure:6852: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6852 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6858 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6864 #include <pthread.h>
6866 #define NULL (void*)0
6873 #if HAVE_PTHREADS_D4
6874 pthread_create(&t, pthread_attr_default, NULL, NULL);
6875 pthread_detach( &t );
6877 pthread_create(&t, NULL, NULL, NULL);
6878 pthread_detach( t );
6880 #ifdef HAVE_LINUX_THREADS
6881 pthread_kill_other_threads_np();
6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6902 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6904 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6905 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6906 ol_link_threads=posix
6910 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6911 if test "$ol_link_threads" = no ; then
6912 # try -lpthread -lmach -lexc
6913 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6914 echo "configure:6915: checking for pthread link with -lpthread -lmach -lexc" >&5
6915 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6921 LIBS="-lpthread -lmach -lexc $LIBS"
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6927 #include <pthread.h>
6929 #define NULL (void*)0
6936 #if HAVE_PTHREADS_D4
6937 pthread_create(&t, pthread_attr_default, NULL, NULL);
6938 pthread_detach( &t );
6940 pthread_create(&t, NULL, NULL, NULL);
6941 pthread_detach( t );
6943 #ifdef HAVE_LINUX_THREADS
6944 pthread_kill_other_threads_np();
6949 if { (eval echo configure:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6951 ol_cv_pthread_lpthread_lmach_lexc=yes
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6956 ol_cv_pthread_lpthread_lmach_lexc=no
6965 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6967 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6968 ol_link_pthreads="-lpthread -lmach -lexc"
6969 ol_link_threads=posix
6974 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6975 if test "$ol_link_threads" = no ; then
6976 # try -lpthread -Wl,-woff,85
6977 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6978 echo "configure:6979: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6979 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6985 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6991 #include <pthread.h>
6993 #define NULL (void*)0
7000 #if HAVE_PTHREADS_D4
7001 pthread_create(&t, pthread_attr_default, NULL, NULL);
7002 pthread_detach( &t );
7004 pthread_create(&t, NULL, NULL, NULL);
7005 pthread_detach( t );
7007 #ifdef HAVE_LINUX_THREADS
7008 pthread_kill_other_threads_np();
7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7015 ol_cv_pthread_lib_lpthread_woff=yes
7017 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 ol_cv_pthread_lib_lpthread_woff=no
7029 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7031 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7032 ol_link_pthreads="-lpthread -Wl,-woff,85"
7033 ol_link_threads=posix
7038 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7039 if test "$ol_link_threads" = no ; then
7041 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7042 echo "configure:7043: checking for pthread link with -lpthread" >&5
7043 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7044 echo $ac_n "(cached) $ac_c" 1>&6
7049 LIBS="-lpthread $LIBS"
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7055 #include <pthread.h>
7057 #define NULL (void*)0
7064 #if HAVE_PTHREADS_D4
7065 pthread_create(&t, pthread_attr_default, NULL, NULL);
7066 pthread_detach( &t );
7068 pthread_create(&t, NULL, NULL, NULL);
7069 pthread_detach( t );
7071 #ifdef HAVE_LINUX_THREADS
7072 pthread_kill_other_threads_np();
7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7079 ol_cv_pthread_lpthread=yes
7081 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7084 ol_cv_pthread_lpthread=no
7093 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7095 if test $ol_cv_pthread_lpthread = yes ; then
7096 ol_link_pthreads="-lpthread"
7097 ol_link_threads=posix
7101 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7102 if test "$ol_link_threads" = no ; then
7104 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7105 echo "configure:7106: checking for pthread link with -lc_r" >&5
7106 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7114 cat > conftest.$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7118 #include <pthread.h>
7120 #define NULL (void*)0
7127 #if HAVE_PTHREADS_D4
7128 pthread_create(&t, pthread_attr_default, NULL, NULL);
7129 pthread_detach( &t );
7131 pthread_create(&t, NULL, NULL, NULL);
7132 pthread_detach( t );
7134 #ifdef HAVE_LINUX_THREADS
7135 pthread_kill_other_threads_np();
7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7142 ol_cv_pthread_lc_r=yes
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 ol_cv_pthread_lc_r=no
7156 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
7158 if test $ol_cv_pthread_lc_r = yes ; then
7159 ol_link_pthreads="-lc_r"
7160 ol_link_threads=posix
7165 # Pthread try link: -threads (ol_cv_pthread_threads)
7166 if test "$ol_link_threads" = no ; then
7168 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
7169 echo "configure:7170: checking for pthread link with -threads" >&5
7170 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7176 LIBS="-threads $LIBS"
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7182 #include <pthread.h>
7184 #define NULL (void*)0
7191 #if HAVE_PTHREADS_D4
7192 pthread_create(&t, pthread_attr_default, NULL, NULL);
7193 pthread_detach( &t );
7195 pthread_create(&t, NULL, NULL, NULL);
7196 pthread_detach( t );
7198 #ifdef HAVE_LINUX_THREADS
7199 pthread_kill_other_threads_np();
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 ol_cv_pthread_threads=yes
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 ol_cv_pthread_threads=no
7220 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
7222 if test $ol_cv_pthread_threads = yes ; then
7223 ol_link_pthreads="-threads"
7224 ol_link_threads=posix
7229 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
7230 if test "$ol_link_threads" = no ; then
7231 # try -lpthreads -lmach -lexc -lc_r
7232 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
7233 echo "configure:7234: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
7234 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7240 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7246 #include <pthread.h>
7248 #define NULL (void*)0
7255 #if HAVE_PTHREADS_D4
7256 pthread_create(&t, pthread_attr_default, NULL, NULL);
7257 pthread_detach( &t );
7259 pthread_create(&t, NULL, NULL, NULL);
7260 pthread_detach( t );
7262 #ifdef HAVE_LINUX_THREADS
7263 pthread_kill_other_threads_np();
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7270 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7275 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7284 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
7286 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
7287 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
7288 ol_link_threads=posix
7292 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
7293 if test "$ol_link_threads" = no ; then
7294 # try -lpthreads -lmach -lexc
7295 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
7296 echo "configure:7297: checking for pthread link with -lpthreads -lmach -lexc" >&5
7297 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7303 LIBS="-lpthreads -lmach -lexc $LIBS"
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7309 #include <pthread.h>
7311 #define NULL (void*)0
7318 #if HAVE_PTHREADS_D4
7319 pthread_create(&t, pthread_attr_default, NULL, NULL);
7320 pthread_detach( &t );
7322 pthread_create(&t, NULL, NULL, NULL);
7323 pthread_detach( t );
7325 #ifdef HAVE_LINUX_THREADS
7326 pthread_kill_other_threads_np();
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7333 ol_cv_pthread_lpthreads_lmach_lexc=yes
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7338 ol_cv_pthread_lpthreads_lmach_lexc=no
7347 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
7349 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
7350 ol_link_pthreads="-lpthreads -lmach -lexc"
7351 ol_link_threads=posix
7355 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
7356 if test "$ol_link_threads" = no ; then
7357 # try -lpthreads -lexc
7358 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
7359 echo "configure:7360: checking for pthread link with -lpthreads -lexc" >&5
7360 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7366 LIBS="-lpthreads -lexc $LIBS"
7368 cat > conftest.$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7372 #include <pthread.h>
7374 #define NULL (void*)0
7381 #if HAVE_PTHREADS_D4
7382 pthread_create(&t, pthread_attr_default, NULL, NULL);
7383 pthread_detach( &t );
7385 pthread_create(&t, NULL, NULL, NULL);
7386 pthread_detach( t );
7388 #ifdef HAVE_LINUX_THREADS
7389 pthread_kill_other_threads_np();
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7396 ol_cv_pthread_lpthreads_lexc=yes
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7401 ol_cv_pthread_lpthreads_lexc=no
7410 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
7412 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
7413 ol_link_pthreads="-lpthreads -lexc"
7414 ol_link_threads=posix
7419 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
7420 if test "$ol_link_threads" = no ; then
7422 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
7423 echo "configure:7424: checking for pthread link with -lpthreads" >&5
7424 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7430 LIBS="-lpthreads $LIBS"
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7436 #include <pthread.h>
7438 #define NULL (void*)0
7445 #if HAVE_PTHREADS_D4
7446 pthread_create(&t, pthread_attr_default, NULL, NULL);
7447 pthread_detach( &t );
7449 pthread_create(&t, NULL, NULL, NULL);
7450 pthread_detach( t );
7452 #ifdef HAVE_LINUX_THREADS
7453 pthread_kill_other_threads_np();
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 ol_cv_pthread_lib_lpthreads=yes
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7465 ol_cv_pthread_lib_lpthreads=no
7474 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
7476 if test $ol_cv_pthread_lib_lpthreads = yes ; then
7477 ol_link_pthreads="-lpthreads"
7478 ol_link_threads=posix
7483 if test $ol_link_threads != no ; then
7484 cat >> confdefs.h <<\EOF
7485 #define HAVE_PTHREADS 1
7489 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
7491 save_CPPFLAGS="$CPPFLAGS"
7493 LIBS="$LTHREAD_LIBS $LIBS"
7495 for ac_func in sched_yield pthread_yield
7497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7498 echo "configure:7499: checking for $ac_func" >&5
7499 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 /* System header to define __stub macros and hopefully few prototypes,
7506 which can conflict with char $ac_func(); below. */
7508 /* Override any gcc2 internal prototype to avoid an error. */
7509 /* We use char because int might match the return type of a gcc2
7510 builtin and then its argument prototype would still apply. */
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7529 eval "ac_cv_func_$ac_func=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 eval "ac_cv_func_$ac_func=no"
7539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h <<EOF
7543 #define $ac_tr_func 1
7547 echo "$ac_t""no" 1>&6
7552 if test $ac_cv_func_sched_yield = no -a \
7553 $ac_cv_func_pthread_yield = no ; then
7554 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
7555 echo "configure:7556: checking for sched_yield in -lrt" >&5
7556 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
7557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7560 ac_save_LIBS="$LIBS"
7562 cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7574 if { (eval echo configure:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7576 eval "ac_cv_lib_$ac_lib_var=yes"
7578 echo "configure: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7581 eval "ac_cv_lib_$ac_lib_var=no"
7584 LIBS="$ac_save_LIBS"
7587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
7590 cat >> confdefs.h <<\EOF
7591 #define HAVE_SCHED_YIELD 1
7594 ac_cv_func_sched_yield=yes
7596 echo "$ac_t""no" 1>&6
7597 ac_cv_func_sched_yield=no
7601 if test $ac_cv_func_sched_yield = no -a \
7602 $ac_cv_func_pthread_yield = no ; then
7603 for ac_func in thr_yield
7605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7606 echo "configure:7607: checking for $ac_func" >&5
7607 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7610 cat > conftest.$ac_ext <<EOF
7611 #line 7612 "configure"
7612 #include "confdefs.h"
7613 /* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char $ac_func(); below. */
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7635 if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7637 eval "ac_cv_func_$ac_func=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_func_$ac_func=no"
7647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7648 echo "$ac_t""yes" 1>&6
7649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_func 1
7655 echo "$ac_t""no" 1>&6
7660 if test $ac_cv_func_sched_yield = no -a \
7661 $ac_cv_func_pthread_yield = no -a \
7662 "$ac_cv_func_thr_yield" = no ; then
7663 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
7666 for ac_func in pthread_kill
7668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7669 echo "configure:7670: checking for $ac_func" >&5
7670 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char $ac_func(); below. */
7679 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7687 /* The GNU C library defines this for functions which it implements
7688 to always fail with ENOSYS. Some functions are actually named
7689 something starting with __ and the normal name is an alias. */
7690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7698 if { (eval echo configure:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 eval "ac_cv_func_$ac_func=yes"
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7705 eval "ac_cv_func_$ac_func=no"
7710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7713 cat >> confdefs.h <<EOF
7714 #define $ac_tr_func 1
7718 echo "$ac_t""no" 1>&6
7723 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
7724 echo "configure:7725: checking for pthread_detach with <pthread.h>" >&5
7725 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7733 #include <pthread.h>
7735 #define NULL (void*)0
7739 pthread_detach(NULL);
7742 if { (eval echo configure:7743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 ol_cv_func_pthread_detach=yes
7746 echo "configure: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7749 ol_cv_func_pthread_detach=no
7755 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
7757 if test $ol_cv_func_pthread_detach = no ; then
7758 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7761 cat >> confdefs.h <<\EOF
7762 #define HAVE_PTHREAD_DETACH 1
7767 pthread_setconcurrency \
7768 pthread_getconcurrency \
7769 thr_setconcurrency \
7770 thr_getconcurrency \
7773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7774 echo "configure:7775: checking for $ac_func" >&5
7775 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* System header to define __stub macros and hopefully few prototypes,
7782 which can conflict with char $ac_func(); below. */
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7792 /* The GNU C library defines this for functions which it implements
7793 to always fail with ENOSYS. Some functions are actually named
7794 something starting with __ and the normal name is an alias. */
7795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 eval "ac_cv_func_$ac_func=yes"
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 eval "ac_cv_func_$ac_func=no"
7815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7818 cat >> confdefs.h <<EOF
7819 #define $ac_tr_func 1
7823 echo "$ac_t""no" 1>&6
7829 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7830 echo "configure:7831: checking for pthread_kill_other_threads_np" >&5
7831 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char pthread_kill_other_threads_np(); below. */
7840 /* Override any gcc2 internal prototype to avoid an error. */
7841 /* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7843 char pthread_kill_other_threads_np();
7848 /* The GNU C library defines this for functions which it implements
7849 to always fail with ENOSYS. Some functions are actually named
7850 something starting with __ and the normal name is an alias. */
7851 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7854 f = pthread_kill_other_threads_np;
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7871 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7872 echo "$ac_t""yes" 1>&6
7875 echo "$ac_t""no" 1>&6
7878 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7879 echo "configure:7880: checking for LinuxThreads implementation" >&5
7880 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7883 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7886 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7891 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7892 echo "configure:7893: checking for LinuxThreads consistency" >&5
7893 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7897 if test $ol_cv_header_linux_threads = yes -a \
7898 $ol_cv_sys_linux_threads = yes; then
7899 ol_cv_linux_threads=yes
7900 elif test $ol_cv_header_linux_threads = no -a \
7901 $ol_cv_sys_linux_threads = no; then
7902 ol_cv_linux_threads=no
7904 ol_cv_linux_threads=error
7909 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7912 if test $ol_cv_linux_threads = error; then
7913 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7916 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7917 echo "configure:7918: checking if pthread_create() works" >&5
7918 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7922 if test "$cross_compiling" = yes; then
7923 ol_cv_pthread_create_works=yes
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7929 #include <pthread.h>
7931 #define NULL (void*)0
7934 static void *task(p)
7937 return (void *) (p == NULL);
7940 int main(argc, argv)
7945 #if HAVE_PTHREADS_D4
7946 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7948 exit(pthread_create(&t, NULL, task, NULL));
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7955 ol_cv_pthread_create_works=yes
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7960 ol_cv_pthread_create_works=no
7967 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7969 if test $ol_cv_pthread_create_works = no ; then
7970 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7973 if test $ol_with_yielding_select = auto ; then
7974 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7975 echo "configure:7976: checking if select yields when using pthreads" >&5
7976 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7980 if test "$cross_compiling" = yes; then
7981 ol_cv_pthread_select_yields=cross
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7987 #include <sys/types.h>
7988 #include <sys/time.h>
7990 #include <pthread.h>
7992 #define NULL (void*) 0
7995 static int fildes[2];
7997 static void *task(p)
8009 FD_SET(fildes[0], &rfds);
8011 /* we're not interested in any fds */
8012 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
8019 exit(0); /* if we exit here, the select blocked the whole process */
8022 int main(argc, argv)
8028 /* create a pipe to select */
8029 if(pipe(&fildes[0])) {
8034 #ifdef HAVE_PTHREAD_SETCONCURRENCY
8035 (void) pthread_setconcurrency(2);
8037 #ifdef HAVE_THR_SETCONCURRENCY
8038 /* Set Solaris LWP concurrency to 2 */
8039 thr_setconcurrency(2);
8043 #if HAVE_PTHREADS_D4
8044 pthread_create(&t, pthread_attr_default, task, NULL);
8046 pthread_create(&t, NULL, task, NULL);
8049 #if HAVE_SCHED_YIELD
8050 sched_yield(); /* make sure task runs first */
8052 #ifdef HAVE_PTHREAD_YIELD
8053 pthread_yield(); /* make sure task runs first */
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8062 ol_cv_pthread_select_yields=no
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 ol_cv_pthread_select_yields=yes
8074 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
8076 if test $ol_cv_pthread_select_yields = cross ; then
8077 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
8080 if test $ol_cv_pthread_select_yields = yes ; then
8081 ol_with_yielding_select=yes
8085 CPPFLAGS="$save_CPPFLAGS"
8088 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
8092 if test $ol_with_threads = posix ; then
8093 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
8097 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8098 -o $ol_with_threads = mach ; then
8100 for ac_hdr in mach/cthreads.h
8102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8104 echo "configure:8105: checking for $ac_hdr" >&5
8105 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8114 { (eval echo configure:8115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8116 if test -z "$ac_err"; then
8118 eval "ac_cv_header_$ac_safe=yes"
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 eval "ac_cv_header_$ac_safe=no"
8128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8129 echo "$ac_t""yes" 1>&6
8130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8131 cat >> confdefs.h <<EOF
8132 #define $ac_tr_hdr 1
8136 echo "$ac_t""no" 1>&6
8140 if test $ac_cv_header_mach_cthreads_h = yes ; then
8141 ol_with_threads=found
8143 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
8144 echo "configure:8145: checking for cthread_fork" >&5
8145 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char cthread_fork(); below. */
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8157 char cthread_fork();
8162 /* The GNU C library defines this for functions which it implements
8163 to always fail with ENOSYS. Some functions are actually named
8164 something starting with __ and the normal name is an alias. */
8165 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8175 eval "ac_cv_func_cthread_fork=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 eval "ac_cv_func_cthread_fork=no"
8185 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
8186 echo "$ac_t""yes" 1>&6
8189 echo "$ac_t""no" 1>&6
8193 if test $ol_link_threads = no ; then
8194 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
8195 echo "configure:8196: checking for cthread_fork with -all_load" >&5
8196 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8201 LIBS="-all_load $LIBS"
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 #include <mach/cthreads.h>
8208 cthread_fork((void *)0, (void *)0);
8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8214 ol_cv_cthread_all_load=yes
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 ol_cv_cthread_all_load=no
8226 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
8228 if test $ol_cv_cthread_all_load = yes ; then
8229 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
8230 ol_link_threads=mach
8234 if test $ol_link_threads != no ; then
8235 : check for cthread specific functionality here
8236 cat >> confdefs.h <<\EOF
8237 #define HAVE_MACH_CTHREADS 1
8241 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
8245 if test $ol_with_threads = mach ; then
8246 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
8250 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8251 -o $ol_with_threads = lwp ; then
8253 for ac_hdr in thread.h synch.h
8255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_hdr" >&5
8258 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8267 { (eval echo configure:8268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8269 if test -z "$ac_err"; then
8271 eval "ac_cv_header_$ac_safe=yes"
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 eval "ac_cv_header_$ac_safe=no"
8281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8282 echo "$ac_t""yes" 1>&6
8283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8284 cat >> confdefs.h <<EOF
8285 #define $ac_tr_hdr 1
8289 echo "$ac_t""no" 1>&6
8293 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
8294 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
8295 echo "configure:8296: checking for thr_create in -lthread" >&5
8296 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
8297 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8298 echo $ac_n "(cached) $ac_c" 1>&6
8300 ac_save_LIBS="$LIBS"
8301 LIBS="-lthread $LIBS"
8302 cat > conftest.$ac_ext <<EOF
8303 #line 8304 "configure"
8304 #include "confdefs.h"
8305 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8314 if { (eval echo configure:8315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8316 eval "ac_cv_lib_$ac_lib_var=yes"
8318 echo "configure: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8321 eval "ac_cv_lib_$ac_lib_var=no"
8324 LIBS="$ac_save_LIBS"
8327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8328 echo "$ac_t""yes" 1>&6
8331 echo "$ac_t""no" 1>&6
8336 if test $have_thr = yes ; then
8337 cat >> confdefs.h <<\EOF
8341 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
8344 if test $ol_with_yielding_select = auto ; then
8345 ol_with_yielding_select=yes
8349 thr_setconcurrency \
8350 thr_getconcurrency \
8353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8354 echo "configure:8355: checking for $ac_func" >&5
8355 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* System header to define __stub macros and hopefully few prototypes,
8362 which can conflict with char $ac_func(); below. */
8364 /* Override any gcc2 internal prototype to avoid an error. */
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8372 /* The GNU C library defines this for functions which it implements
8373 to always fail with ENOSYS. Some functions are actually named
8374 something starting with __ and the normal name is an alias. */
8375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8385 eval "ac_cv_func_$ac_func=yes"
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 eval "ac_cv_func_$ac_func=no"
8395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8396 echo "$ac_t""yes" 1>&6
8397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8398 cat >> confdefs.h <<EOF
8399 #define $ac_tr_func 1
8403 echo "$ac_t""no" 1>&6
8410 for ac_hdr in lwp/lwp.h
8412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8414 echo "configure:8415: checking for $ac_hdr" >&5
8415 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8424 { (eval echo configure:8425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8426 if test -z "$ac_err"; then
8428 eval "ac_cv_header_$ac_safe=yes"
8431 echo "configure: failed program was:" >&5
8432 cat conftest.$ac_ext >&5
8434 eval "ac_cv_header_$ac_safe=no"
8438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8439 echo "$ac_t""yes" 1>&6
8440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8441 cat >> confdefs.h <<EOF
8442 #define $ac_tr_hdr 1
8446 echo "$ac_t""no" 1>&6
8450 if test $ac_cv_header_lwp_lwp_h = yes ; then
8451 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
8452 echo "configure:8453: checking for lwp_create in -llwp" >&5
8453 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
8454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8457 ac_save_LIBS="$LIBS"
8459 cat > conftest.$ac_ext <<EOF
8460 #line 8461 "configure"
8461 #include "confdefs.h"
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8471 if { (eval echo configure:8472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8473 eval "ac_cv_lib_$ac_lib_var=yes"
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 eval "ac_cv_lib_$ac_lib_var=no"
8481 LIBS="$ac_save_LIBS"
8484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8488 echo "$ac_t""no" 1>&6
8493 if test $have_lwp = yes ; then
8494 cat >> confdefs.h <<\EOF
8498 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
8501 if test $ol_with_yielding_select = auto ; then
8502 ol_with_yielding_select=no
8508 if test $ol_with_yielding_select = yes ; then
8509 cat >> confdefs.h <<\EOF
8510 #define HAVE_YIELDING_SELECT 1
8515 if test $ol_with_threads = manual ; then
8518 echo "configure: warning: thread defines and link options must be set manually" 1>&2
8520 for ac_hdr in pthread.h sched.h
8522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8524 echo "configure:8525: checking for $ac_hdr" >&5
8525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8528 cat > conftest.$ac_ext <<EOF
8529 #line 8530 "configure"
8530 #include "confdefs.h"
8533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8534 { (eval echo configure:8535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8536 if test -z "$ac_err"; then
8538 eval "ac_cv_header_$ac_safe=yes"
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8544 eval "ac_cv_header_$ac_safe=no"
8548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8549 echo "$ac_t""yes" 1>&6
8550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8551 cat >> confdefs.h <<EOF
8552 #define $ac_tr_hdr 1
8556 echo "$ac_t""no" 1>&6
8560 for ac_func in sched_yield pthread_yield
8562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8563 echo "configure:8564: checking for $ac_func" >&5
8564 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8565 echo $ac_n "(cached) $ac_c" 1>&6
8567 cat > conftest.$ac_ext <<EOF
8568 #line 8569 "configure"
8569 #include "confdefs.h"
8570 /* System header to define __stub macros and hopefully few prototypes,
8571 which can conflict with char $ac_func(); below. */
8573 /* Override any gcc2 internal prototype to avoid an error. */
8574 /* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8581 /* The GNU C library defines this for functions which it implements
8582 to always fail with ENOSYS. Some functions are actually named
8583 something starting with __ and the normal name is an alias. */
8584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8594 eval "ac_cv_func_$ac_func=yes"
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8599 eval "ac_cv_func_$ac_func=no"
8604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8605 echo "$ac_t""yes" 1>&6
8606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8607 cat >> confdefs.h <<EOF
8608 #define $ac_tr_func 1
8612 echo "$ac_t""no" 1>&6
8617 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
8618 echo "configure:8619: checking for LinuxThreads pthread.h" >&5
8619 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 #include <pthread.h>
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
8630 ol_cv_header_linux_threads=yes
8633 ol_cv_header_linux_threads=no
8640 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
8641 if test $ol_cv_header_linux_threads = yes; then
8642 cat >> confdefs.h <<\EOF
8643 #define HAVE_LINUX_THREADS 1
8649 for ac_hdr in mach/cthreads.h
8651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8653 echo "configure:8654: checking for $ac_hdr" >&5
8654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8663 { (eval echo configure:8664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8665 if test -z "$ac_err"; then
8667 eval "ac_cv_header_$ac_safe=yes"
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8673 eval "ac_cv_header_$ac_safe=no"
8677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6
8679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8680 cat >> confdefs.h <<EOF
8681 #define $ac_tr_hdr 1
8685 echo "$ac_t""no" 1>&6
8689 for ac_hdr in lwp/lwp.h
8691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8693 echo "configure:8694: checking for $ac_hdr" >&5
8694 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8703 { (eval echo configure:8704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8705 if test -z "$ac_err"; then
8707 eval "ac_cv_header_$ac_safe=yes"
8710 echo "configure: failed program was:" >&5
8711 cat conftest.$ac_ext >&5
8713 eval "ac_cv_header_$ac_safe=no"
8717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6
8719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8720 cat >> confdefs.h <<EOF
8721 #define $ac_tr_hdr 1
8725 echo "$ac_t""no" 1>&6
8729 for ac_hdr in thread.h synch.h
8731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8733 echo "configure:8734: checking for $ac_hdr" >&5
8734 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8743 { (eval echo configure:8744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8745 if test -z "$ac_err"; then
8747 eval "ac_cv_header_$ac_safe=yes"
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 eval "ac_cv_header_$ac_safe=no"
8757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8758 echo "$ac_t""yes" 1>&6
8759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8760 cat >> confdefs.h <<EOF
8761 #define $ac_tr_hdr 1
8765 echo "$ac_t""no" 1>&6
8771 if test $ol_link_threads != no ; then
8772 cat >> confdefs.h <<\EOF
8776 cat >> confdefs.h <<\EOF
8777 #define _REENTRANT 1
8780 cat >> confdefs.h <<\EOF
8781 #define THREAD_SAFE 1
8784 cat >> confdefs.h <<\EOF
8785 #define _THREAD_SAFE 1
8788 cat >> confdefs.h <<\EOF
8789 #define THREADSAFE 1
8792 cat >> confdefs.h <<\EOF
8793 #define _THREADSAFE 1
8796 cat >> confdefs.h <<\EOF
8797 #define _SGI_MP_SOURCE 1
8801 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8802 echo "configure:8803: checking for thread specific errno" >&5
8803 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8807 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8815 if { (eval echo configure:8816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8817 ol_cv_errno_thread_specific=yes
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8822 ol_cv_errno_thread_specific=no
8828 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8830 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8831 echo "configure:8832: checking for thread specific h_errno" >&5
8832 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
8833 echo $ac_n "(cached) $ac_c" 1>&6
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8844 if { (eval echo configure:8845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8846 ol_cv_h_errno_thread_specific=yes
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8851 ol_cv_h_errno_thread_specific=no
8857 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8859 if test $ol_cv_errno_thread_specific != yes \
8860 -o $ol_cv_h_errno_thread_specific != yes ; then
8861 LIBS="$LTHREAD_LIBS $LIBS"
8867 if test $ol_link_threads = no ; then
8868 if test $ol_with_threads = yes ; then
8869 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8872 if test $ol_with_threads = auto ; then
8873 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8877 cat >> confdefs.h <<\EOF
8878 #define NO_THREADS 1
8884 if test $ol_link_threads != no ; then
8885 cat >> confdefs.h <<\EOF
8886 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8893 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8894 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8895 echo "configure:8896: checking for DB2 library" >&5
8896 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8900 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8901 echo "configure:8902: checking for db_open in -ldb" >&5
8902 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
8903 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8906 ac_save_LIBS="$LIBS"
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 /* Override any gcc2 internal prototype to avoid an error. */
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8920 if { (eval echo configure:8921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8922 eval "ac_cv_lib_$ac_lib_var=yes"
8924 echo "configure: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8927 eval "ac_cv_lib_$ac_lib_var=no"
8930 LIBS="$ac_save_LIBS"
8933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8934 echo "$ac_t""yes" 1>&6
8937 echo "$ac_t""no" 1>&6
8945 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8951 echo "configure:8952: checking for $ac_hdr" >&5
8952 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8953 echo $ac_n "(cached) $ac_c" 1>&6
8955 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8961 { (eval echo configure:8962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8963 if test -z "$ac_err"; then
8965 eval "ac_cv_header_$ac_safe=yes"
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8971 eval "ac_cv_header_$ac_safe=no"
8975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8976 echo "$ac_t""yes" 1>&6
8977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8978 cat >> confdefs.h <<EOF
8979 #define $ac_tr_hdr 1
8983 echo "$ac_t""no" 1>&6
8987 if test $ac_cv_header_db_h = yes ; then
8988 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8989 echo "configure:8990: checking if db.h is DB2" >&5
8990 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8999 /* this check could be improved */
9000 # ifdef DB_VERSION_MAJOR
9001 # if DB_VERSION_MAJOR == 2
9007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008 egrep "__db_version_2" >/dev/null 2>&1; then
9010 ol_cv_header_db2=yes
9019 echo "$ac_t""$ol_cv_header_db2" 1>&6
9026 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
9027 echo "configure:9028: checking for Berkeley DB2" >&5
9028 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9032 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
9033 ol_cv_berkeley_db2=no
9035 ol_cv_berkeley_db2=yes
9040 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
9041 if test $ol_cv_berkeley_db2 = yes ; then
9042 cat >> confdefs.h <<\EOF
9043 #define HAVE_BERKELEY_DB2 1
9049 if test $ol_cv_berkeley_db2 = yes ; then
9051 ol_with_ldbm_api=db2
9053 if test $ol_with_ldbm_type = hash ; then
9054 cat >> confdefs.h <<\EOF
9055 #define LDBM_USE_DBHASH 1
9059 cat >> confdefs.h <<\EOF
9060 #define LDBM_USE_DBBTREE 1
9065 if test $ol_cv_lib_db2 != yes ; then
9066 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
9072 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
9076 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
9077 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
9078 echo "configure:9079: checking for Berkeley DB library" >&5
9079 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9083 for ac_hdr in db1/db.h
9085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9087 echo "configure:9088: checking for $ac_hdr" >&5
9088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9097 { (eval echo configure:9098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9099 if test -z "$ac_err"; then
9101 eval "ac_cv_header_$ac_safe=yes"
9104 echo "configure: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9107 eval "ac_cv_header_$ac_safe=no"
9111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9112 echo "$ac_t""yes" 1>&6
9113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9114 cat >> confdefs.h <<EOF
9115 #define $ac_tr_hdr 1
9119 echo "$ac_t""no" 1>&6
9124 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9125 echo "configure:9126: checking for dbopen" >&5
9126 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9129 cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure"
9131 #include "confdefs.h"
9132 /* System header to define __stub macros and hopefully few prototypes,
9133 which can conflict with char dbopen(); below. */
9135 /* Override any gcc2 internal prototype to avoid an error. */
9136 /* We use char because int might match the return type of a gcc2
9137 builtin and then its argument prototype would still apply. */
9143 /* The GNU C library defines this for functions which it implements
9144 to always fail with ENOSYS. Some functions are actually named
9145 something starting with __ and the normal name is an alias. */
9146 #if defined (__stub_dbopen) || defined (__stub___dbopen)
9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9156 eval "ac_cv_func_dbopen=yes"
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9161 eval "ac_cv_func_dbopen=no"
9166 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
9167 echo "$ac_t""yes" 1>&6
9170 echo "$ac_t""no" 1>&6
9172 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
9173 echo "configure:9174: checking for dbopen in -ldb1" >&5
9174 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
9175 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9178 ac_save_LIBS="$LIBS"
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9183 /* Override any gcc2 internal prototype to avoid an error. */
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9194 eval "ac_cv_lib_$ac_lib_var=yes"
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 eval "ac_cv_lib_$ac_lib_var=no"
9202 LIBS="$ac_save_LIBS"
9205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9206 echo "$ac_t""yes" 1>&6
9209 echo "$ac_t""no" 1>&6
9211 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9212 echo "configure:9213: checking for dbopen in -ldb" >&5
9213 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
9214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9217 ac_save_LIBS="$LIBS"
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9233 eval "ac_cv_lib_$ac_lib_var=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 eval "ac_cv_lib_$ac_lib_var=no"
9241 LIBS="$ac_save_LIBS"
9244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9245 echo "$ac_t""yes" 1>&6
9248 echo "$ac_t""no" 1>&6
9262 echo "$ac_t""$ol_cv_lib_db" 1>&6
9265 for ac_hdr in db_185.h
9267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9269 echo "configure:9270: checking for $ac_hdr" >&5
9270 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9273 cat > conftest.$ac_ext <<EOF
9274 #line 9275 "configure"
9275 #include "confdefs.h"
9278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9279 { (eval echo configure:9280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9281 if test -z "$ac_err"; then
9283 eval "ac_cv_header_$ac_safe=yes"
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9289 eval "ac_cv_header_$ac_safe=no"
9293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9294 echo "$ac_t""yes" 1>&6
9295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9296 cat >> confdefs.h <<EOF
9297 #define $ac_tr_hdr 1
9301 echo "$ac_t""no" 1>&6
9305 if test "$ol_cv_header_db2" = yes ; then
9307 ol_cv_header_db=$ac_cv_header_db_185_h
9309 ol_cv_header_db=$ac_cv_header_db_h
9314 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
9315 echo "configure:9316: checking for Berkeley DB" >&5
9316 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9320 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
9321 ol_cv_berkeley_db=no
9323 ol_cv_berkeley_db=yes
9328 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
9329 if test $ol_cv_berkeley_db = yes ; then
9330 cat >> confdefs.h <<\EOF
9331 #define HAVE_BERKELEY_DB 1
9337 if test $ol_cv_berkeley_db = yes ; then
9341 if test $ol_with_ldbm_type = hash ; then
9342 cat >> confdefs.h <<\EOF
9343 #define LDBM_USE_DBHASH 1
9347 cat >> confdefs.h <<\EOF
9348 #define LDBM_USE_DBBTREE 1
9353 if test $ol_cv_lib_db != yes ; then
9354 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
9359 if test $ol_with_ldbm_api = manual ; then
9362 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
9364 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
9366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9368 echo "configure:9369: checking for $ac_hdr" >&5
9369 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9378 { (eval echo configure:9379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9380 if test -z "$ac_err"; then
9382 eval "ac_cv_header_$ac_safe=yes"
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9388 eval "ac_cv_header_$ac_safe=no"
9392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9393 echo "$ac_t""yes" 1>&6
9394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9395 cat >> confdefs.h <<EOF
9396 #define $ac_tr_hdr 1
9400 echo "$ac_t""no" 1>&6
9406 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
9407 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
9408 ol_with_ldbm_api=none
9411 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
9412 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
9413 echo "configure:9414: checking for MDBM library" >&5
9414 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9418 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
9419 echo "configure:9420: checking for mdbm_set_chain" >&5
9420 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char mdbm_set_chain(); below. */
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 /* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9432 char mdbm_set_chain();
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9450 eval "ac_cv_func_mdbm_set_chain=yes"
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9455 eval "ac_cv_func_mdbm_set_chain=no"
9460 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9464 echo "$ac_t""no" 1>&6
9466 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
9467 echo "configure:9468: checking for mdbm_set_chain in -lmdbm" >&5
9468 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
9469 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9472 ac_save_LIBS="$LIBS"
9474 cat > conftest.$ac_ext <<EOF
9475 #line 9476 "configure"
9476 #include "confdefs.h"
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9480 char mdbm_set_chain();
9486 if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9488 eval "ac_cv_lib_$ac_lib_var=yes"
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9493 eval "ac_cv_lib_$ac_lib_var=no"
9496 LIBS="$ac_save_LIBS"
9499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9500 echo "$ac_t""yes" 1>&6
9501 ol_cv_lib_mdbm=-lmdbm
9503 echo "$ac_t""no" 1>&6
9514 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
9517 for ac_hdr in mdbm.h
9519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9521 echo "configure:9522: checking for $ac_hdr" >&5
9522 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9531 { (eval echo configure:9532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9533 if test -z "$ac_err"; then
9535 eval "ac_cv_header_$ac_safe=yes"
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9541 eval "ac_cv_header_$ac_safe=no"
9545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9546 echo "$ac_t""yes" 1>&6
9547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9548 cat >> confdefs.h <<EOF
9549 #define $ac_tr_hdr 1
9553 echo "$ac_t""no" 1>&6
9557 echo $ac_n "checking for db""... $ac_c" 1>&6
9558 echo "configure:9559: checking for db" >&5
9559 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
9560 echo $ac_n "(cached) $ac_c" 1>&6
9563 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
9571 echo "$ac_t""$ol_cv_mdbm" 1>&6
9572 if test $ol_cv_mdbm = yes ; then
9573 cat >> confdefs.h <<\EOF
9580 if test $ol_cv_mdbm = yes ; then
9582 ol_with_ldbm_api=mdbm
9583 if test $ol_cv_lib_mdbm != yes ; then
9584 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
9589 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
9590 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
9591 echo "configure:9592: checking for GDBM library" >&5
9592 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9596 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
9597 echo "configure:9598: checking for gdbm_open" >&5
9598 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char gdbm_open(); below. */
9607 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9615 /* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
9626 if { (eval echo configure:9627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9628 eval "ac_cv_func_gdbm_open=yes"
9630 echo "configure: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9633 eval "ac_cv_func_gdbm_open=no"
9638 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
9639 echo "$ac_t""yes" 1>&6
9642 echo "$ac_t""no" 1>&6
9644 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
9645 echo "configure:9646: checking for gdbm_open in -lgdbm" >&5
9646 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
9647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9650 ac_save_LIBS="$LIBS"
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 /* Override any gcc2 internal prototype to avoid an error. */
9656 /* We use char because int might match the return type of a gcc2
9657 builtin and then its argument prototype would still apply. */
9664 if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9666 eval "ac_cv_lib_$ac_lib_var=yes"
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9671 eval "ac_cv_lib_$ac_lib_var=no"
9674 LIBS="$ac_save_LIBS"
9677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9678 echo "$ac_t""yes" 1>&6
9679 ol_cv_lib_gdbm=-lgdbm
9681 echo "$ac_t""no" 1>&6
9692 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
9695 for ac_hdr in gdbm.h
9697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9699 echo "configure:9700: checking for $ac_hdr" >&5
9700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9703 cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9709 { (eval echo configure:9710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9711 if test -z "$ac_err"; then
9713 eval "ac_cv_header_$ac_safe=yes"
9716 echo "configure: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9719 eval "ac_cv_header_$ac_safe=no"
9723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9724 echo "$ac_t""yes" 1>&6
9725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9726 cat >> confdefs.h <<EOF
9727 #define $ac_tr_hdr 1
9731 echo "$ac_t""no" 1>&6
9735 echo $ac_n "checking for db""... $ac_c" 1>&6
9736 echo "configure:9737: checking for db" >&5
9737 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
9738 echo $ac_n "(cached) $ac_c" 1>&6
9741 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
9749 echo "$ac_t""$ol_cv_gdbm" 1>&6
9750 if test $ol_cv_gdbm = yes ; then
9751 cat >> confdefs.h <<\EOF
9758 if test $ol_cv_gdbm = yes ; then
9760 ol_with_ldbm_api=gdbm
9762 if test $ol_cv_lib_gdbm != yes ; then
9763 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9768 if test $ol_with_ldbm_api = auto ; then
9769 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9770 elif test $ol_with_ldbm_api = ndbm ; then
9771 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9772 echo "configure:9773: checking for NDBM library" >&5
9773 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9777 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9778 echo "configure:9779: checking for dbm_open" >&5
9779 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 /* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char dbm_open(); below. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9789 /* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9796 /* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 eval "ac_cv_func_dbm_open=yes"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 eval "ac_cv_func_dbm_open=no"
9819 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9820 echo "$ac_t""yes" 1>&6
9823 echo "$ac_t""no" 1>&6
9825 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9826 echo "configure:9827: checking for dbm_open in -lndbm" >&5
9827 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9828 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9831 ac_save_LIBS="$LIBS"
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9836 /* Override any gcc2 internal prototype to avoid an error. */
9837 /* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847 eval "ac_cv_lib_$ac_lib_var=yes"
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9852 eval "ac_cv_lib_$ac_lib_var=no"
9855 LIBS="$ac_save_LIBS"
9858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9859 echo "$ac_t""yes" 1>&6
9860 ol_cv_lib_ndbm=-lndbm
9862 echo "$ac_t""no" 1>&6
9864 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9865 echo "configure:9866: checking for dbm_open in -ldbm" >&5
9866 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9867 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9870 ac_save_LIBS="$LIBS"
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9875 /* Override any gcc2 internal prototype to avoid an error. */
9876 /* We use char because int might match the return type of a gcc2
9877 builtin and then its argument prototype would still apply. */
9884 if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9886 eval "ac_cv_lib_$ac_lib_var=yes"
9888 echo "configure: failed program was:" >&5
9889 cat conftest.$ac_ext >&5
9891 eval "ac_cv_lib_$ac_lib_var=no"
9894 LIBS="$ac_save_LIBS"
9897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9898 echo "$ac_t""yes" 1>&6
9899 ol_cv_lib_ndbm=-ldbm
9901 echo "$ac_t""no" 1>&6
9914 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9917 for ac_hdr in ndbm.h
9919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9921 echo "configure:9922: checking for $ac_hdr" >&5
9922 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9931 { (eval echo configure:9932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9933 if test -z "$ac_err"; then
9935 eval "ac_cv_header_$ac_safe=yes"
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9941 eval "ac_cv_header_$ac_safe=no"
9945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9946 echo "$ac_t""yes" 1>&6
9947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9948 cat >> confdefs.h <<EOF
9949 #define $ac_tr_hdr 1
9953 echo "$ac_t""no" 1>&6
9957 echo $ac_n "checking for db""... $ac_c" 1>&6
9958 echo "configure:9959: checking for db" >&5
9959 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9963 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9971 echo "$ac_t""$ol_cv_ndbm" 1>&6
9972 if test $ol_cv_ndbm = yes ; then
9973 cat >> confdefs.h <<\EOF
9980 if test $ol_cv_ndbm = yes ; then
9982 ol_with_ldbm_api=ndbm
9984 if test $ol_cv_lib_ndbm != yes ; then
9985 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9990 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9991 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9992 if test $ol_enable_ldbm = yes ; then
9993 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9996 echo "configure: warning: disabling LDBM" 1>&2
10000 if test $ol_enable_wrappers != no ; then
10001 for ac_hdr in tcpd.h
10003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10005 echo "configure:10006: checking for $ac_hdr" >&5
10006 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10009 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10015 { (eval echo configure:10016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10017 if test -z "$ac_err"; then
10019 eval "ac_cv_header_$ac_safe=yes"
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10025 eval "ac_cv_header_$ac_safe=no"
10029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10032 cat >> confdefs.h <<EOF
10033 #define $ac_tr_hdr 1
10037 echo "$ac_t""no" 1>&6
10042 if test $ac_cv_header_tcpd_h != yes ; then
10045 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
10046 echo "configure:10047: checking for main in -lwrap" >&5
10047 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
10048 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10049 echo $ac_n "(cached) $ac_c" 1>&6
10051 ac_save_LIBS="$LIBS"
10052 LIBS="-lwrap $LIBS"
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10061 if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10063 eval "ac_cv_lib_$ac_lib_var=yes"
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10068 eval "ac_cv_lib_$ac_lib_var=no"
10071 LIBS="$ac_save_LIBS"
10074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10075 echo "$ac_t""yes" 1>&6
10078 echo "$ac_t""no" 1>&6
10084 if test $have_wrappers = yes ; then
10085 cat >> confdefs.h <<\EOF
10086 #define HAVE_TCPD 1
10089 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
10091 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
10092 echo "configure:10093: checking for main in -lnsl" >&5
10093 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
10094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10097 ac_save_LIBS="$LIBS"
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10107 if { (eval echo configure:10108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10109 eval "ac_cv_lib_$ac_lib_var=yes"
10111 echo "configure: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10114 eval "ac_cv_lib_$ac_lib_var=no"
10117 LIBS="$ac_save_LIBS"
10120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10121 echo "$ac_t""yes" 1>&6
10122 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10124 cat >> confdefs.h <<EOF
10125 #define $ac_tr_lib 1
10131 echo "$ac_t""no" 1>&6
10135 echo "configure: warning: could not find -lwrap" 1>&2
10136 if test $ol_enable_wrappers = yes ; then
10137 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
10140 echo "configure: warning: disabling wrappers support" 1>&2
10141 ol_enable_wrappers=no
10145 if test $ol_enable_syslog != no ; then
10146 echo $ac_n "checking for openlog""... $ac_c" 1>&6
10147 echo "configure:10148: checking for openlog" >&5
10148 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char openlog(); below. */
10156 #include <assert.h>
10157 /* Override any gcc2 internal prototype to avoid an error. */
10158 /* We use char because int might match the return type of a gcc2
10159 builtin and then its argument prototype would still apply. */
10165 /* The GNU C library defines this for functions which it implements
10166 to always fail with ENOSYS. Some functions are actually named
10167 something starting with __ and the normal name is an alias. */
10168 #if defined (__stub_openlog) || defined (__stub___openlog)
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10178 eval "ac_cv_func_openlog=yes"
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10183 eval "ac_cv_func_openlog=no"
10188 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10192 echo "$ac_t""no" 1>&6
10195 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
10196 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
10198 ol_enable_syslog=$ac_cv_func_openlog
10201 if test $ol_enable_dmalloc != no ; then
10202 for ac_hdr in dmalloc.h
10204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10206 echo "configure:10207: checking for $ac_hdr" >&5
10207 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10216 { (eval echo configure:10217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10218 if test -z "$ac_err"; then
10220 eval "ac_cv_header_$ac_safe=yes"
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 eval "ac_cv_header_$ac_safe=no"
10230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10231 echo "$ac_t""yes" 1>&6
10232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10233 cat >> confdefs.h <<EOF
10234 #define $ac_tr_hdr 1
10238 echo "$ac_t""no" 1>&6
10242 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
10243 echo "configure:10244: checking for dmalloc_shutdown in -ldmalloc" >&5
10244 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
10245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10248 ac_save_LIBS="$LIBS"
10249 LIBS="-ldmalloc $LIBS"
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 /* Override any gcc2 internal prototype to avoid an error. */
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10256 char dmalloc_shutdown();
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10264 eval "ac_cv_lib_$ac_lib_var=yes"
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10269 eval "ac_cv_lib_$ac_lib_var=no"
10272 LIBS="$ac_save_LIBS"
10275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10276 echo "$ac_t""yes" 1>&6
10277 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10278 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_lib 1
10283 LIBS="-ldmalloc $LIBS"
10286 echo "$ac_t""no" 1>&6
10291 if test $ol_enable_tcl != no ; then
10292 for ac_hdr in tcl.h
10294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10296 echo "configure:10297: checking for $ac_hdr" >&5
10297 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10306 { (eval echo configure:10307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10308 if test -z "$ac_err"; then
10310 eval "ac_cv_header_$ac_safe=yes"
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 eval "ac_cv_header_$ac_safe=no"
10320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10321 echo "$ac_t""yes" 1>&6
10322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10323 cat >> confdefs.h <<EOF
10324 #define $ac_tr_hdr 1
10328 echo "$ac_t""no" 1>&6
10333 if test $ac_cv_header_tcl_h != yes ; then
10336 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
10337 echo "configure:10338: checking for main in -ltcl" >&5
10338 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
10339 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10342 ac_save_LIBS="$LIBS"
10344 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10352 if { (eval echo configure:10353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10354 eval "ac_cv_lib_$ac_lib_var=yes"
10356 echo "configure: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10359 eval "ac_cv_lib_$ac_lib_var=no"
10362 LIBS="$ac_save_LIBS"
10365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10366 echo "$ac_t""yes" 1>&6
10367 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
10369 echo "$ac_t""no" 1>&6
10374 if test $have_tcl != yes; then
10375 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
10376 echo "configure:10377: checking for main in -ltcl7.6" >&5
10377 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
10378 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10381 ac_save_LIBS="$LIBS"
10382 LIBS="-ltcl7.6 $LIBS"
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10391 if { (eval echo configure:10392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10393 eval "ac_cv_lib_$ac_lib_var=yes"
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10398 eval "ac_cv_lib_$ac_lib_var=no"
10401 LIBS="$ac_save_LIBS"
10404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10405 echo "$ac_t""yes" 1>&6
10406 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
10408 echo "$ac_t""no" 1>&6
10414 if test $have_tcl != yes; then
10415 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
10416 echo "configure:10417: checking for main in -ltcl8.0" >&5
10417 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
10418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10421 ac_save_LIBS="$LIBS"
10422 LIBS="-ltcl8.0 $LIBS"
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10433 eval "ac_cv_lib_$ac_lib_var=yes"
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10438 eval "ac_cv_lib_$ac_lib_var=no"
10441 LIBS="$ac_save_LIBS"
10444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
10448 echo "$ac_t""no" 1>&6
10455 if test $have_tcl != yes ; then
10456 echo "configure: warning: could not find -ltcl" 1>&2
10457 if test $ol_enable_tcl = yes ; then
10458 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
10465 # ud needs termcap (should insert check here)
10467 for ac_hdr in termcap.h ncurses.h
10469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10471 echo "configure:10472: checking for $ac_hdr" >&5
10472 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10477 "configure"
10477 #include "confdefs.h"
10480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10481 { (eval echo configure:10482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10483 if test -z "$ac_err"; then
10485 eval "ac_cv_header_$ac_safe=yes"
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10491 eval "ac_cv_header_$ac_safe=no"
10495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10496 echo "$ac_t""yes" 1>&6
10497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10498 cat >> confdefs.h <<EOF
10499 #define $ac_tr_hdr 1
10503 echo "$ac_t""no" 1>&6
10508 if test $ol_link_termcap = no ; then
10509 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
10510 echo "configure:10511: checking for tputs in -ltermcap" >&5
10511 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
10512 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10515 ac_save_LIBS="$LIBS"
10516 LIBS="-ltermcap $LIBS"
10517 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure"
10519 #include "confdefs.h"
10520 /* Override any gcc2 internal prototype to avoid an error. */
10521 /* We use char because int might match the return type of a gcc2
10522 builtin and then its argument prototype would still apply. */
10529 if { (eval echo configure:10530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10531 eval "ac_cv_lib_$ac_lib_var=yes"
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10536 eval "ac_cv_lib_$ac_lib_var=no"
10539 LIBS="$ac_save_LIBS"
10542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10543 echo "$ac_t""yes" 1>&6
10546 echo "$ac_t""no" 1>&6
10550 if test $have_termcap = yes ; then
10551 cat >> confdefs.h <<\EOF
10552 #define HAVE_TERMCAP 1
10555 ol_link_termcap=yes
10556 TERMCAP_LIBS=-ltermcap
10560 if test $ol_link_termcap = no ; then
10561 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
10562 echo "configure:10563: checking for initscr in -lncurses" >&5
10563 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
10564 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10567 ac_save_LIBS="$LIBS"
10568 LIBS="-lncurses $LIBS"
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10572 /* Override any gcc2 internal prototype to avoid an error. */
10573 /* We use char because int might match the return type of a gcc2
10574 builtin and then its argument prototype would still apply. */
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10583 eval "ac_cv_lib_$ac_lib_var=yes"
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10588 eval "ac_cv_lib_$ac_lib_var=no"
10591 LIBS="$ac_save_LIBS"
10594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10595 echo "$ac_t""yes" 1>&6
10598 echo "$ac_t""no" 1>&6
10602 if test $have_ncurses = yes ; then
10603 cat >> confdefs.h <<\EOF
10604 #define HAVE_NCURSES 1
10607 ol_link_termcap=yes
10608 TERMCAP_LIBS=-lncurses
10612 if test $ol_link_termcap = no ; then
10613 cat >> confdefs.h <<\EOF
10614 #define NO_TERMCAP 1
10621 if test $ol_with_cyrus_sasl != no ; then
10622 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
10623 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
10624 echo "configure:10625: checking for sasl.h" >&5
10625 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10628 cat > conftest.$ac_ext <<EOF
10629 #line 10630 "configure"
10630 #include "confdefs.h"
10633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10634 { (eval echo configure:10635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10636 if test -z "$ac_err"; then
10638 eval "ac_cv_header_$ac_safe=yes"
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10644 eval "ac_cv_header_$ac_safe=no"
10648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10652 echo "$ac_t""no" 1>&6
10656 if test $ac_cv_header_sasl_h = yes ; then
10657 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
10658 echo "configure:10659: checking for sasl_client_init in -lsasl" >&5
10659 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
10660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10663 ac_save_LIBS="$LIBS"
10664 LIBS="-lsasl $LIBS"
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 /* Override any gcc2 internal prototype to avoid an error. */
10669 /* We use char because int might match the return type of a gcc2
10670 builtin and then its argument prototype would still apply. */
10671 char sasl_client_init();
10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10679 eval "ac_cv_lib_$ac_lib_var=yes"
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10684 eval "ac_cv_lib_$ac_lib_var=no"
10687 LIBS="$ac_save_LIBS"
10690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10691 echo "$ac_t""yes" 1>&6
10692 have_cyrus_sasl=yes
10694 echo "$ac_t""no" 1>&6
10699 if test $have_cyrus_sasl != no ; then
10701 cat >> confdefs.h <<\EOF
10702 #define HAVE_CYRUS_SASL 1
10709 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
10710 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
10715 if test $ol_with_fetch != no ; then
10717 LIBS="-lfetch -lcom_err $LIBS"
10718 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
10719 echo "configure:10720: checking fetch(3) library" >&5
10720 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10728 #include <sys/param.h>
10732 struct url *u = fetchParseURL("file:///");
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10737 ol_cv_lib_fetch=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10747 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
10749 if test $ol_cv_lib_fetch != no ; then
10750 ol_link_fetch="-lfetch -lcom_err"
10751 cat >> confdefs.h <<\EOF
10752 #define HAVE_FETCH 1
10758 if test $ol_cv_lib_fetch != no ; then
10759 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
10760 ol_link_fetch=freebsd
10762 elif test $ol_with_fetch != auto ; then
10763 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
10767 ol_link_readline=no
10768 if test $ol_with_readline != no ; then
10769 for ac_hdr in readline/readline.h readline/history.h
10771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10773 echo "configure:10774: checking for $ac_hdr" >&5
10774 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10783 { (eval echo configure:10784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10785 if test -z "$ac_err"; then
10787 eval "ac_cv_header_$ac_safe=yes"
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10793 eval "ac_cv_header_$ac_safe=no"
10797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10798 echo "$ac_t""yes" 1>&6
10799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10800 cat >> confdefs.h <<EOF
10801 #define $ac_tr_hdr 1
10805 echo "$ac_t""no" 1>&6
10810 if test $ac_cv_header_readline_readline_h = yes ; then
10812 LIBS="$TERMCAP_LIBS $LIBS"
10813 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
10814 echo "configure:10815: checking for readline in -lreadline" >&5
10815 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
10816 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10817 echo $ac_n "(cached) $ac_c" 1>&6
10819 ac_save_LIBS="$LIBS"
10820 LIBS="-lreadline $LIBS"
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10833 if { (eval echo configure:10834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10835 eval "ac_cv_lib_$ac_lib_var=yes"
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10840 eval "ac_cv_lib_$ac_lib_var=no"
10843 LIBS="$ac_save_LIBS"
10846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10847 echo "$ac_t""yes" 1>&6
10850 echo "$ac_t""no" 1>&6
10856 if test $have_readline = yes ; then
10857 ol_with_readline=found
10858 ol_link_readline=yes
10860 READLINE_LIBS="-lreadline"
10865 if test $ol_link_readline = yes ; then
10866 cat >> confdefs.h <<\EOF
10867 #define HAVE_READLINE 1
10873 # FreeBSD (and others) have crypt(3) in -lcrypt
10874 if test $ol_enable_crypt != no ; then
10875 echo $ac_n "checking for crypt""... $ac_c" 1>&6
10876 echo "configure:10877: checking for crypt" >&5
10877 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char crypt(); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 /* We use char because int might match the return type of a gcc2
10888 builtin and then its argument prototype would still apply. */
10894 /* The GNU C library defines this for functions which it implements
10895 to always fail with ENOSYS. Some functions are actually named
10896 something starting with __ and the normal name is an alias. */
10897 #if defined (__stub_crypt) || defined (__stub___crypt)
10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10907 eval "ac_cv_func_crypt=yes"
10909 echo "configure: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10912 eval "ac_cv_func_crypt=no"
10917 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10921 echo "$ac_t""no" 1>&6
10923 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10924 echo "configure:10925: checking for crypt in -lcrypt" >&5
10925 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
10926 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10929 ac_save_LIBS="$LIBS"
10930 LIBS="-lcrypt $LIBS"
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 /* Override any gcc2 internal prototype to avoid an error. */
10935 /* We use char because int might match the return type of a gcc2
10936 builtin and then its argument prototype would still apply. */
10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10945 eval "ac_cv_lib_$ac_lib_var=yes"
10947 echo "configure: failed program was:" >&5
10948 cat conftest.$ac_ext >&5
10950 eval "ac_cv_lib_$ac_lib_var=no"
10953 LIBS="$ac_save_LIBS"
10956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10957 echo "$ac_t""yes" 1>&6
10958 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10961 echo "$ac_t""no" 1>&6
10968 if test $have_crypt = yes ; then
10969 cat >> confdefs.h <<\EOF
10970 #define HAVE_CRYPT 1
10974 echo "configure: warning: could not find crypt" 1>&2
10975 if test $ol_enable_crypt = yes ; then
10976 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10979 echo "configure: warning: disabling crypt support" 1>&2
10984 # FreeBSD (and others) have setproctitle(3) in -lutil
10985 if test $ol_enable_proctitle != no ; then
10986 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10987 echo "configure:10988: checking for setproctitle" >&5
10988 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10991 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure"
10993 #include "confdefs.h"
10994 /* System header to define __stub macros and hopefully few prototypes,
10995 which can conflict with char setproctitle(); below. */
10996 #include <assert.h>
10997 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11000 char setproctitle();
11005 /* The GNU C library defines this for functions which it implements
11006 to always fail with ENOSYS. Some functions are actually named
11007 something starting with __ and the normal name is an alias. */
11008 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
11016 if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11018 eval "ac_cv_func_setproctitle=yes"
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11023 eval "ac_cv_func_setproctitle=no"
11028 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
11029 echo "$ac_t""yes" 1>&6
11030 have_setproctitle=yes
11032 echo "$ac_t""no" 1>&6
11034 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
11035 echo "configure:11036: checking for setproctitle in -lutil" >&5
11036 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
11037 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11040 ac_save_LIBS="$LIBS"
11041 LIBS="-lutil $LIBS"
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11045 /* Override any gcc2 internal prototype to avoid an error. */
11046 /* We use char because int might match the return type of a gcc2
11047 builtin and then its argument prototype would still apply. */
11048 char setproctitle();
11054 if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11056 eval "ac_cv_lib_$ac_lib_var=yes"
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 eval "ac_cv_lib_$ac_lib_var=no"
11064 LIBS="$ac_save_LIBS"
11067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 have_setproctitle=yes
11070 LUTIL_LIBS="$LUTIL_LIBS -lutil"
11072 echo "$ac_t""no" 1>&6
11073 have_setproctitle=no
11074 LIBOBJS="$LIBOBJS setproctitle.o"
11080 if test $have_setproctitle = yes ; then
11081 cat >> confdefs.h <<\EOF
11082 #define HAVE_SETPROCTITLE 1
11088 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11089 echo "configure:11090: checking for uid_t in sys/types.h" >&5
11090 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
11091 echo $ac_n "(cached) $ac_c" 1>&6
11093 cat > conftest.$ac_ext <<EOF
11094 #line 11095 "configure"
11095 #include "confdefs.h"
11096 #include <sys/types.h>
11098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11099 egrep "uid_t" >/dev/null 2>&1; then
11101 ac_cv_type_uid_t=yes
11104 ac_cv_type_uid_t=no
11110 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11111 if test $ac_cv_type_uid_t = no; then
11112 cat >> confdefs.h <<\EOF
11116 cat >> confdefs.h <<\EOF
11122 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
11123 echo "configure:11124: checking type of array argument to getgroups" >&5
11124 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
11125 echo $ac_n "(cached) $ac_c" 1>&6
11127 if test "$cross_compiling" = yes; then
11128 ac_cv_type_getgroups=cross
11130 cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11134 /* Thanks to Mike Rendell for this test. */
11135 #include <sys/types.h>
11138 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11141 gid_t gidset[NGID];
11143 union { gid_t gval; long lval; } val;
11146 for (i = 0; i < NGID; i++)
11147 gidset[i] = val.gval;
11148 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11150 /* Exit non-zero if getgroups seems to require an array of ints. This
11151 happens when gid_t is short but getgroups modifies an array of ints. */
11152 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11158 ac_cv_type_getgroups=gid_t
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11163 ac_cv_type_getgroups=int
11168 if test $ac_cv_type_getgroups = cross; then
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 #include <unistd.h>
11174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11175 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
11177 ac_cv_type_getgroups=gid_t
11180 ac_cv_type_getgroups=int
11187 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
11188 cat >> confdefs.h <<EOF
11189 #define GETGROUPS_T $ac_cv_type_getgroups
11192 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11193 echo "configure:11194: checking for ANSI C header files" >&5
11194 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200 #include <stdlib.h>
11201 #include <stdarg.h>
11202 #include <string.h>
11205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11206 { (eval echo configure:11207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11208 if test -z "$ac_err"; then
11210 ac_cv_header_stdc=yes
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11216 ac_cv_header_stdc=no
11220 if test $ac_cv_header_stdc = yes; then
11221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 #include <string.h>
11227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 egrep "memchr" >/dev/null 2>&1; then
11232 ac_cv_header_stdc=no
11238 if test $ac_cv_header_stdc = yes; then
11239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 #include <stdlib.h>
11245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11246 egrep "free" >/dev/null 2>&1; then
11250 ac_cv_header_stdc=no
11256 if test $ac_cv_header_stdc = yes; then
11257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11258 if test "$cross_compiling" = yes; then
11261 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11265 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11266 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11268 int main () { int i; for (i = 0; i < 256; i++)
11269 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11280 ac_cv_header_stdc=no
11288 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11289 if test $ac_cv_header_stdc = yes; then
11290 cat >> confdefs.h <<\EOF
11291 #define STDC_HEADERS 1
11296 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11297 echo "configure:11298: checking for mode_t" >&5
11298 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11301 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11304 #include <sys/types.h>
11306 #include <stdlib.h>
11307 #include <stddef.h>
11310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11311 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11313 eval "ac_cv_type_mode_t=yes"
11316 eval "ac_cv_type_mode_t=no"
11321 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
11324 echo "$ac_t""no" 1>&6
11325 cat >> confdefs.h <<EOF
11331 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11332 echo "configure:11333: checking for off_t" >&5
11333 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11336 cat > conftest.$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11339 #include <sys/types.h>
11341 #include <stdlib.h>
11342 #include <stddef.h>
11345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11346 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11348 eval "ac_cv_type_off_t=yes"
11351 eval "ac_cv_type_off_t=no"
11356 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
11357 echo "$ac_t""yes" 1>&6
11359 echo "$ac_t""no" 1>&6
11360 cat >> confdefs.h <<EOF
11366 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11367 echo "configure:11368: checking for pid_t" >&5
11368 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
11369 echo $ac_n "(cached) $ac_c" 1>&6
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include <sys/types.h>
11376 #include <stdlib.h>
11377 #include <stddef.h>
11380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11381 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11383 eval "ac_cv_type_pid_t=yes"
11386 eval "ac_cv_type_pid_t=no"
11391 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
11392 echo "$ac_t""yes" 1>&6
11394 echo "$ac_t""no" 1>&6
11395 cat >> confdefs.h <<EOF
11401 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
11402 echo "configure:11403: checking for ptrdiff_t" >&5
11403 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
11404 echo $ac_n "(cached) $ac_c" 1>&6
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 #include <stddef.h>
11414 if { (eval echo configure:11415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11416 am_cv_type_ptrdiff_t=yes
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11421 am_cv_type_ptrdiff_t=no
11426 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11427 if test $am_cv_type_ptrdiff_t = yes; then
11428 cat >> confdefs.h <<\EOF
11429 #define HAVE_PTRDIFF_T 1
11434 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11435 echo "configure:11436: checking return type of signal handlers" >&5
11436 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11439 cat > conftest.$ac_ext <<EOF
11440 #line 11441 "configure"
11441 #include "confdefs.h"
11442 #include <sys/types.h>
11443 #include <signal.h>
11448 extern "C" void (*signal (int, void (*)(int)))(int);
11450 void (*signal ()) ();
11457 if { (eval echo configure:11458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11459 ac_cv_type_signal=void
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11464 ac_cv_type_signal=int
11469 echo "$ac_t""$ac_cv_type_signal" 1>&6
11470 cat >> confdefs.h <<EOF
11471 #define RETSIGTYPE $ac_cv_type_signal
11475 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11476 echo "configure:11477: checking for sig_atomic_t" >&5
11477 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
11478 echo $ac_n "(cached) $ac_c" 1>&6
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <signal.h>
11485 sig_atomic_t atomic;
11488 if { (eval echo configure:11489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11490 ol_cv_type_sig_atomic_t=yes
11492 echo "configure: failed program was:" >&5
11493 cat conftest.$ac_ext >&5
11495 ol_cv_type_sig_atomic_t=no
11500 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11501 if test $ol_cv_type_sig_atomic_t = no; then
11502 cat >> confdefs.h <<\EOF
11503 #define sig_atomic_t int
11508 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11509 echo "configure:11510: checking for size_t" >&5
11510 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
11511 echo $ac_n "(cached) $ac_c" 1>&6
11513 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11516 #include <sys/types.h>
11518 #include <stdlib.h>
11519 #include <stddef.h>
11522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11523 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11525 eval "ac_cv_type_size_t=yes"
11528 eval "ac_cv_type_size_t=no"
11533 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11536 echo "$ac_t""no" 1>&6
11537 cat >> confdefs.h <<EOF
11538 #define size_t unsigned
11543 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11544 echo "configure:11545: checking for socklen_t" >&5
11545 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
11546 echo $ac_n "(cached) $ac_c" 1>&6
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11552 #ifdef HAVE_SYS_TYPES_H
11553 #include <sys/types.h>
11555 #ifdef HAVE_SYS_SOCKET_H
11556 #include <sys/socket.h>
11563 if { (eval echo configure:11564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11565 ol_cv_type_socklen_t=yes
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11570 ol_cv_type_socklen_t=no
11575 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11576 if test $ol_cv_type_socklen_t = no; then
11577 cat >> confdefs.h <<\EOF
11578 #define socklen_t int
11583 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
11584 echo "configure:11585: checking for member st_blksize in aggregate type struct stat" >&5
11585 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11588 cat > conftest.$ac_ext <<EOF
11589 #line 11590 "configure"
11590 #include "confdefs.h"
11591 #include <sys/types.h>
11592 #include <sys/stat.h>
11594 struct stat foo; foo.st_blksize;
11597 if { (eval echo configure:11598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11599 ac_cv_c_struct_member_st_blksize=yes
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 ac_cv_c_struct_member_st_blksize=no
11609 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
11610 st_blksize="$ac_cv_c_struct_member_st_blksize"
11611 if test $ac_cv_c_struct_member_st_blksize = yes; then
11612 cat >> confdefs.h <<\EOF
11613 #define HAVE_ST_BLKSIZE 1
11618 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11619 echo "configure:11620: checking whether time.h and sys/time.h may both be included" >&5
11620 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
11621 echo $ac_n "(cached) $ac_c" 1>&6
11623 cat > conftest.$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11626 #include <sys/types.h>
11627 #include <sys/time.h>
11633 if { (eval echo configure:11634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11635 ac_cv_header_time=yes
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11640 ac_cv_header_time=no
11645 echo "$ac_t""$ac_cv_header_time" 1>&6
11646 if test $ac_cv_header_time = yes; then
11647 cat >> confdefs.h <<\EOF
11648 #define TIME_WITH_SYS_TIME 1
11653 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11654 echo "configure:11655: checking whether struct tm is in sys/time.h or time.h" >&5
11655 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11658 cat > conftest.$ac_ext <<EOF
11659 #line 11660 "configure"
11660 #include "confdefs.h"
11661 #include <sys/types.h>
11664 struct tm *tp; tp->tm_sec;
11667 if { (eval echo configure:11668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11669 ac_cv_struct_tm=time.h
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11674 ac_cv_struct_tm=sys/time.h
11679 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11680 if test $ac_cv_struct_tm = sys/time.h; then
11681 cat >> confdefs.h <<\EOF
11682 #define TM_IN_SYS_TIME 1
11687 # test for pw_gecos in struct passwd
11688 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11689 echo "configure:11690: checking struct passwd for pw_gecos" >&5
11690 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11701 pwd.pw_gecos = pwd.pw_name;
11705 if { (eval echo configure:11706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11707 ol_cv_struct_passwd_pw_gecos=yes
11709 echo "configure: failed program was:" >&5
11710 cat conftest.$ac_ext >&5
11712 ol_cv_struct_passwd_pw_gecos=no
11717 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11718 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11719 cat >> confdefs.h <<\EOF
11720 #define HAVE_PW_GECOS 1
11725 # test for pw_passwd in struct passwd
11726 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11727 echo "configure:11728: checking struct passwd for pw_passwd" >&5
11728 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11739 pwd.pw_passwd = pwd.pw_name;
11743 if { (eval echo configure:11744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11745 ol_cv_struct_passwd_pw_passwd=yes
11747 echo "configure: failed program was:" >&5
11748 cat conftest.$ac_ext >&5
11750 ol_cv_struct_passwd_pw_passwd=no
11755 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11756 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11757 cat >> confdefs.h <<\EOF
11758 #define HAVE_PW_PASSWD 1
11764 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11765 echo "configure:11766: checking if toupper() requires islower()" >&5
11766 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11767 echo $ac_n "(cached) $ac_c" 1>&6
11770 if test "$cross_compiling" = yes; then
11771 ol_cv_c_upper_lower=safe
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11780 if ('C' == toupper('C'))
11786 if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11788 ol_cv_c_upper_lower=no
11790 echo "configure: failed program was:" >&5
11791 cat conftest.$ac_ext >&5
11793 ol_cv_c_upper_lower=yes
11800 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11801 if test $ol_cv_c_upper_lower != no ; then
11802 cat >> confdefs.h <<\EOF
11803 #define C_UPPER_LOWER 1
11808 echo $ac_n "checking for working const""... $ac_c" 1>&6
11809 echo "configure:11810: checking for working const" >&5
11810 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11811 echo $ac_n "(cached) $ac_c" 1>&6
11813 cat > conftest.$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11819 /* Ultrix mips cc rejects this. */
11820 typedef int charset[2]; const charset x;
11821 /* SunOS 4.1.1 cc rejects this. */
11822 char const *const *ccp;
11824 /* NEC SVR4.0.2 mips cc rejects this. */
11825 struct point {int x, y;};
11826 static struct point const zero = {0,0};
11827 /* AIX XL C 1.02.0.0 rejects this.
11828 It does not let you subtract one const X* pointer from another in an arm
11829 of an if-expression whose if-part is not a constant expression */
11830 const char *g = "string";
11831 ccp = &g + (g ? g-g : 0);
11832 /* HPUX 7.0 cc rejects these. */
11835 ccp = (char const *const *) p;
11836 { /* SCO 3.2v4 cc rejects this. */
11838 char const *s = 0 ? (char *) 0 : (char const *) 0;
11842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11843 int x[] = {25, 17};
11844 const int *foo = &x[0];
11847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11848 typedef const int *iptr;
11852 { /* AIX XL C 1.02.0.0 rejects this saying
11853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11854 struct s { int j; const int *ap[3]; };
11855 struct s *b; b->j = 5;
11857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11858 const int foo = 10;
11863 if { (eval echo configure:11864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11875 echo "$ac_t""$ac_cv_c_const" 1>&6
11876 if test $ac_cv_c_const = no; then
11877 cat >> confdefs.h <<\EOF
11883 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11884 echo "configure:11885: checking if compiler understands volatile" >&5
11885 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11888 cat > conftest.$ac_ext <<EOF
11889 #line 11890 "configure"
11890 #include "confdefs.h"
11893 volatile int a; int * volatile b = x ? &y : &z;
11894 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11898 if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11900 ol_cv_c_volatile=yes
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 ol_cv_c_volatile=no
11910 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11911 if test $ol_cv_c_volatile = yes; then
11914 cat >> confdefs.h <<\EOF
11921 if test $cross_compiling = yes ; then
11922 cat >> confdefs.h <<\EOF
11923 #define CROSS_COMPILING 1
11927 cat >> confdefs.h <<\EOF
11928 #define LBER_INT_T long
11931 cat >> confdefs.h <<\EOF
11932 #define LBER_TAG_T long
11935 cat >> confdefs.h <<\EOF
11936 #define LBER_SOCKET_T int
11941 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11942 echo "configure:11943: checking whether byte ordering is bigendian" >&5
11943 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11944 echo $ac_n "(cached) $ac_c" 1>&6
11946 ac_cv_c_bigendian=unknown
11947 # See if sys/param.h defines the BYTE_ORDER macro.
11948 cat > conftest.$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 #include <sys/types.h>
11952 #include <sys/param.h>
11955 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11956 bogus endian macros
11960 if { (eval echo configure:11961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11962 # It does; now see whether it defined to BIG_ENDIAN or not.
11963 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11966 #include <sys/types.h>
11967 #include <sys/param.h>
11970 #if BYTE_ORDER != BIG_ENDIAN
11975 if { (eval echo configure:11976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11977 ac_cv_c_bigendian=yes
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11982 ac_cv_c_bigendian=no
11986 echo "configure: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11990 if test $ac_cv_c_bigendian = unknown; then
11991 if test "$cross_compiling" = yes; then
11992 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11998 /* Are we little or big endian? From Harbison&Steele. */
12002 char c[sizeof (long)];
12005 exit (u.c[sizeof (long) - 1] == 1);
12008 if { (eval echo configure:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12010 ac_cv_c_bigendian=no
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12015 ac_cv_c_bigendian=yes
12023 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12024 if test $ac_cv_c_bigendian = yes; then
12025 cat >> confdefs.h <<\EOF
12026 #define WORDS_BIGENDIAN 1
12031 echo $ac_n "checking size of short""... $ac_c" 1>&6
12032 echo "configure:12033: checking size of short" >&5
12033 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12036 if test "$cross_compiling" = yes; then
12037 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12045 FILE *f=fopen("conftestval", "w");
12047 fprintf(f, "%d\n", sizeof(short));
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12053 ac_cv_sizeof_short=`cat conftestval`
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12058 ac_cv_sizeof_short=0
12064 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12065 cat >> confdefs.h <<EOF
12066 #define SIZEOF_SHORT $ac_cv_sizeof_short
12070 echo $ac_n "checking size of int""... $ac_c" 1>&6
12071 echo "configure:12072: checking size of int" >&5
12072 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
12075 if test "$cross_compiling" = yes; then
12076 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12078 cat > conftest.$ac_ext <<EOF
12079 #line 12080 "configure"
12080 #include "confdefs.h"
12084 FILE *f=fopen("conftestval", "w");
12086 fprintf(f, "%d\n", sizeof(int));
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12092 ac_cv_sizeof_int=`cat conftestval`
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12103 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12104 cat >> confdefs.h <<EOF
12105 #define SIZEOF_INT $ac_cv_sizeof_int
12109 echo $ac_n "checking size of long""... $ac_c" 1>&6
12110 echo "configure:12111: checking size of long" >&5
12111 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12114 if test "$cross_compiling" = yes; then
12115 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12123 FILE *f=fopen("conftestval", "w");
12125 fprintf(f, "%d\n", sizeof(long));
12129 if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12131 ac_cv_sizeof_long=`cat conftestval`
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12136 ac_cv_sizeof_long=0
12142 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12143 cat >> confdefs.h <<EOF
12144 #define SIZEOF_LONG $ac_cv_sizeof_long
12149 if test "$ac_cv_sizeof_int" -lt 4 ; then
12150 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
12152 cat >> confdefs.h <<\EOF
12153 #define LBER_INT_T long
12156 cat >> confdefs.h <<\EOF
12157 #define LBER_TAG_T long
12160 cat >> confdefs.h <<\EOF
12161 #define LBER_SOCKET_T int
12165 cat >> confdefs.h <<\EOF
12166 #define LBER_INT_T int
12169 cat >> confdefs.h <<\EOF
12170 #define LBER_TAG_T long
12173 cat >> confdefs.h <<\EOF
12174 #define LBER_SOCKET_T int
12180 cat >> confdefs.h <<\EOF
12181 #define LBER_LEN_T long
12185 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
12186 echo "configure:12187: checking for 8-bit clean memcmp" >&5
12187 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
12188 echo $ac_n "(cached) $ac_c" 1>&6
12190 if test "$cross_compiling" = yes; then
12191 ac_cv_func_memcmp_clean=no
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure"
12195 #include "confdefs.h"
12199 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12200 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
12204 if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12206 ac_cv_func_memcmp_clean=yes
12208 echo "configure: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12211 ac_cv_func_memcmp_clean=no
12218 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
12219 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
12221 echo $ac_n "checking for strftime""... $ac_c" 1>&6
12222 echo "configure:12223: checking for strftime" >&5
12223 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char strftime(); below. */
12231 #include <assert.h>
12232 /* Override any gcc2 internal prototype to avoid an error. */
12233 /* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined (__stub_strftime) || defined (__stub___strftime)
12251 if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12253 eval "ac_cv_func_strftime=yes"
12255 echo "configure: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12258 eval "ac_cv_func_strftime=no"
12263 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
12264 echo "$ac_t""yes" 1>&6
12265 cat >> confdefs.h <<\EOF
12266 #define HAVE_STRFTIME 1
12270 echo "$ac_t""no" 1>&6
12271 # strftime is in -lintl on SCO UNIX.
12272 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
12273 echo "configure:12274: checking for strftime in -lintl" >&5
12274 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
12275 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12276 echo $ac_n "(cached) $ac_c" 1>&6
12278 ac_save_LIBS="$LIBS"
12279 LIBS="-lintl $LIBS"
12280 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 /* Override any gcc2 internal prototype to avoid an error. */
12284 /* We use char because int might match the return type of a gcc2
12285 builtin and then its argument prototype would still apply. */
12292 if { (eval echo configure:12293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12294 eval "ac_cv_lib_$ac_lib_var=yes"
12296 echo "configure: failed program was:" >&5
12297 cat conftest.$ac_ext >&5
12299 eval "ac_cv_lib_$ac_lib_var=no"
12302 LIBS="$ac_save_LIBS"
12305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12306 echo "$ac_t""yes" 1>&6
12307 cat >> confdefs.h <<\EOF
12308 #define HAVE_STRFTIME 1
12311 LIBS="-lintl $LIBS"
12313 echo "$ac_t""no" 1>&6
12319 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
12320 echo "configure:12321: checking for inet_aton()" >&5
12321 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12324 cat > conftest.$ac_ext <<EOF
12325 #line 12326 "configure"
12326 #include "confdefs.h"
12328 #ifdef HAVE_SYS_TYPES_H
12329 # include <sys/types.h>
12331 #ifdef HAVE_SYS_SOCKET_H
12332 # include <sys/socket.h>
12333 # ifdef HAVE_SYS_SELECT_H
12334 # include <sys/select.h>
12336 # include <netinet/in.h>
12337 # ifdef HAVE_ARPA_INET_H
12338 # include <arpa/inet.h>
12344 int rc = inet_aton( "255.255.255.255", &in );
12347 if { (eval echo configure:12348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12349 ol_cv_func_inet_aton=yes
12351 echo "configure: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12354 ol_cv_func_inet_aton=no
12359 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
12360 if test $ol_cv_func_inet_aton != no; then
12361 cat >> confdefs.h <<\EOF
12362 #define HAVE_INET_ATON 1
12368 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12369 echo "configure:12370: checking for vprintf" >&5
12370 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
12371 echo $ac_n "(cached) $ac_c" 1>&6
12373 cat > conftest.$ac_ext <<EOF
12374 #line 12375 "configure"
12375 #include "confdefs.h"
12376 /* System header to define __stub macros and hopefully few prototypes,
12377 which can conflict with char vprintf(); below. */
12378 #include <assert.h>
12379 /* Override any gcc2 internal prototype to avoid an error. */
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12387 /* The GNU C library defines this for functions which it implements
12388 to always fail with ENOSYS. Some functions are actually named
12389 something starting with __ and the normal name is an alias. */
12390 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12398 if { (eval echo configure:12399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12400 eval "ac_cv_func_vprintf=yes"
12402 echo "configure: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12405 eval "ac_cv_func_vprintf=no"
12410 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12411 echo "$ac_t""yes" 1>&6
12412 cat >> confdefs.h <<\EOF
12413 #define HAVE_VPRINTF 1
12417 echo "$ac_t""no" 1>&6
12420 if test "$ac_cv_func_vprintf" != yes; then
12421 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12422 echo "configure:12423: checking for _doprnt" >&5
12423 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
12424 echo $ac_n "(cached) $ac_c" 1>&6
12426 cat > conftest.$ac_ext <<EOF
12427 #line 12428 "configure"
12428 #include "confdefs.h"
12429 /* System header to define __stub macros and hopefully few prototypes,
12430 which can conflict with char _doprnt(); below. */
12431 #include <assert.h>
12432 /* Override any gcc2 internal prototype to avoid an error. */
12433 /* We use char because int might match the return type of a gcc2
12434 builtin and then its argument prototype would still apply. */
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12451 if { (eval echo configure:12452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12453 eval "ac_cv_func__doprnt=yes"
12455 echo "configure: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12458 eval "ac_cv_func__doprnt=no"
12463 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12464 echo "$ac_t""yes" 1>&6
12465 cat >> confdefs.h <<\EOF
12466 #define HAVE_DOPRNT 1
12470 echo "$ac_t""no" 1>&6
12476 if test $ac_cv_func_vprintf = yes ; then
12477 for ac_func in vsnprintf vsprintf
12479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12480 echo "configure:12481: checking for $ac_func" >&5
12481 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12484 cat > conftest.$ac_ext <<EOF
12485 #line 12486 "configure"
12486 #include "confdefs.h"
12487 /* System header to define __stub macros and hopefully few prototypes,
12488 which can conflict with char $ac_func(); below. */
12489 #include <assert.h>
12490 /* Override any gcc2 internal prototype to avoid an error. */
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12498 /* The GNU C library defines this for functions which it implements
12499 to always fail with ENOSYS. Some functions are actually named
12500 something starting with __ and the normal name is an alias. */
12501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12509 if { (eval echo configure:12510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12511 eval "ac_cv_func_$ac_func=yes"
12513 echo "configure: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12516 eval "ac_cv_func_$ac_func=no"
12521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12524 cat >> confdefs.h <<EOF
12525 #define $ac_tr_func 1
12529 echo "$ac_t""no" 1>&6
12583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12584 echo "configure:12585: checking for $ac_func" >&5
12585 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12586 echo $ac_n "(cached) $ac_c" 1>&6
12588 cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12591 /* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char $ac_func(); below. */
12593 #include <assert.h>
12594 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12613 if { (eval echo configure:12614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12615 eval "ac_cv_func_$ac_func=yes"
12617 echo "configure: failed program was:" >&5
12618 cat conftest.$ac_ext >&5
12620 eval "ac_cv_func_$ac_func=no"
12625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12626 echo "$ac_t""yes" 1>&6
12627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12628 cat >> confdefs.h <<EOF
12629 #define $ac_tr_func 1
12633 echo "$ac_t""no" 1>&6
12638 for ac_func in getopt tempnam
12640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12641 echo "configure:12642: checking for $ac_func" >&5
12642 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12643 echo $ac_n "(cached) $ac_c" 1>&6
12645 cat > conftest.$ac_ext <<EOF
12646 #line 12647 "configure"
12647 #include "confdefs.h"
12648 /* System header to define __stub macros and hopefully few prototypes,
12649 which can conflict with char $ac_func(); below. */
12650 #include <assert.h>
12651 /* Override any gcc2 internal prototype to avoid an error. */
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12659 /* The GNU C library defines this for functions which it implements
12660 to always fail with ENOSYS. Some functions are actually named
12661 something starting with __ and the normal name is an alias. */
12662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12670 if { (eval echo configure:12671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12672 eval "ac_cv_func_$ac_func=yes"
12674 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12677 eval "ac_cv_func_$ac_func=no"
12682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12685 cat >> confdefs.h <<EOF
12686 #define $ac_tr_func 1
12690 echo "$ac_t""no" 1>&6
12691 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12697 # Check Configuration
12698 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12699 echo "configure:12700: checking declaration of sys_errlist" >&5
12700 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12709 #include <sys/types.h>
12712 char *c = (char *) *sys_errlist
12715 if { (eval echo configure:12716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12717 ol_cv_dcl_sys_errlist=yes
12718 ol_cv_have_sys_errlist=yes
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 ol_cv_dcl_sys_errlist=no
12728 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12730 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12731 if test $ol_cv_dcl_sys_errlist = no ; then
12732 cat >> confdefs.h <<\EOF
12733 #define DECL_SYS_ERRLIST 1
12737 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12738 echo "configure:12739: checking existence of sys_errlist" >&5
12739 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12743 cat > conftest.$ac_ext <<EOF
12744 #line 12745 "configure"
12745 #include "confdefs.h"
12748 char *c = (char *) *sys_errlist
12751 if { (eval echo configure:12752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12753 ol_cv_have_sys_errlist=yes
12755 echo "configure: failed program was:" >&5
12756 cat conftest.$ac_ext >&5
12758 ol_cv_have_sys_errlist=no
12763 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12765 if test $ol_cv_have_sys_errlist = yes ; then
12766 cat >> confdefs.h <<\EOF
12767 #define HAVE_SYS_ERRLIST 1
12774 if test "$ol_enable_debug" != no ; then
12775 cat >> confdefs.h <<\EOF
12776 #define LDAP_DEBUG 1
12780 if test "$ol_enable_syslog" = yes ; then
12781 cat >> confdefs.h <<\EOF
12782 #define LDAP_SYSLOG 1
12786 if test "$ol_enable_libui" = yes ; then
12787 cat >> confdefs.h <<\EOF
12788 #define LDAP_LIBUI 1
12792 if test "$ol_enable_cache" = no ; then
12793 cat >> confdefs.h <<\EOF
12794 #define LDAP_NOCACHE 1
12798 if test "$ol_enable_dns" != no ; then
12799 cat >> confdefs.h <<\EOF
12800 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12804 if test "$ol_enable_proctitle" != no ; then
12805 cat >> confdefs.h <<\EOF
12806 #define LDAP_PROCTITLE 1
12810 if test "$ol_enable_referrals" != no ; then
12811 cat >> confdefs.h <<\EOF
12812 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12816 if test "$ol_enable_cldap" != no ; then
12817 cat >> confdefs.h <<\EOF
12818 #define LDAP_CONNECTIONLESS 1
12823 if test "$ol_enable_crypt" != no ; then
12824 cat >> confdefs.h <<\EOF
12825 #define SLAPD_CRYPT 1
12829 if test "$ol_enable_cleartext" != no ; then
12830 cat >> confdefs.h <<\EOF
12831 #define SLAPD_CLEARTEXT 1
12835 if test "$ol_enable_multimaster" != no ; then
12836 cat >> confdefs.h <<\EOF
12837 #define SLAPD_MULTIMASTER 1
12841 if test "$ol_enable_phonetic" != no ; then
12842 cat >> confdefs.h <<\EOF
12843 #define SLAPD_PHONETIC 1
12847 if test "$ol_enable_rlookups" != no ; then
12848 cat >> confdefs.h <<\EOF
12849 #define SLAPD_RLOOKUPS 1
12854 if test "$ol_link_modules" != no ; then
12855 cat >> confdefs.h <<\EOF
12856 #define SLAPD_MODULES 1
12860 MODULES_LIBS=-lltdl
12861 SLAPD_MODULES_LDFLAGS="-dlopen self"
12864 if test "$ol_link_bdb2" != no ; then
12865 cat >> confdefs.h <<\EOF
12866 #define SLAPD_BDB2 1
12871 if test "$ol_with_bdb2_module" != static ; then
12872 cat >> confdefs.h <<\EOF
12873 #define SLAPD_BDB2_DYNAMIC 1
12877 BUILD_BDB2_DYNAMIC=shared
12878 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
12882 if test "$ol_enable_ldap" != no ; then
12883 cat >> confdefs.h <<\EOF
12884 #define SLAPD_LDAP 1
12889 if test "$ol_with_ldap_module" != static ; then
12890 cat >> confdefs.h <<\EOF
12891 #define SLAPD_LDAP_DYNAMIC 1
12895 BUILD_LDAP_DYNAMIC=shared
12896 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
12900 if test "$ol_link_ldbm" != no ; then
12901 cat >> confdefs.h <<\EOF
12902 #define SLAPD_LDBM 1
12907 if test "$ol_with_ldbm_module" != static ; then
12908 cat >> confdefs.h <<\EOF
12909 #define SLAPD_LDBM_DYNAMIC 1
12913 BUILD_LDBM_DYNAMIC=shared
12914 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
12918 if test "$ol_enable_passwd" != no ; then
12919 cat >> confdefs.h <<\EOF
12920 #define SLAPD_PASSWD 1
12925 if test "$ol_with_passwd_module" != static ; then
12926 cat >> confdefs.h <<\EOF
12927 #define SLAPD_PASSWD_DYNAMIC 1
12931 BUILD_PASSWD_DYNAMIC=shared
12932 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
12936 if test "$ol_link_perl" != no ; then
12937 cat >> confdefs.h <<\EOF
12938 #define SLAPD_PERL 1
12943 if test "$ol_with_perl_module" != static ; then
12944 cat >> confdefs.h <<\EOF
12945 #define SLAPD_PERL_DYNAMIC 1
12949 BUILD_PERL_DYNAMIC=shared
12950 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
12954 if test "$ol_enable_shell" != no ; then
12955 cat >> confdefs.h <<\EOF
12956 #define SLAPD_SHELL 1
12961 if test "$ol_with_shell_module" != static ; then
12962 cat >> confdefs.h <<\EOF
12963 #define SLAPD_SHELL_DYNAMIC 1
12967 BUILD_SHELL_DYNAMIC=shared
12968 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
12972 if test "$ol_enable_tcl" != no ; then
12973 cat >> confdefs.h <<\EOF
12974 #define SLAPD_TCL 1
12979 if test "$ol_with_tcl_module" != static; then
12980 cat >> confdefs.h <<\EOF
12981 #define SLAPD_TCL_DYNAMIC 1
12985 BUILD_TCL_DYNAMIC=shared
12986 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
12990 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12991 $BUILD_SLAPD = yes ; then
12995 if test "$ol_link_isode" != no ; then
13045 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13048 # Let make expand exec_prefix.
13049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13051 # Any assignment to VPATH causes Sun make to only execute
13052 # the first set of double-colon rules, so remove it if not needed.
13053 # If there is a colon in the path, we need to keep it.
13054 if test "x$srcdir" = x.; then
13055 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13058 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13060 DEFS=-DHAVE_CONFIG_H
13062 # Without the "./", some shells look in PATH for config.status.
13063 : ${CONFIG_STATUS=./config.status}
13065 echo creating $CONFIG_STATUS
13066 rm -f $CONFIG_STATUS
13067 cat > $CONFIG_STATUS <<EOF
13069 # Generated automatically by configure.
13070 # Run this file to recreate the current configuration.
13071 # This directory was configured as follows,
13072 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13074 # $0 $ac_configure_args
13076 # Compiler output produced by configure, useful for debugging
13077 # configure, is in ./config.log if it exists.
13079 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13082 case "\$ac_option" in
13083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13084 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13085 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13086 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13087 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
13089 -help | --help | --hel | --he | --h)
13090 echo "\$ac_cs_usage"; exit 0 ;;
13091 *) echo "\$ac_cs_usage"; exit 1 ;;
13095 ac_given_srcdir=$srcdir
13096 ac_given_INSTALL="$INSTALL"
13098 trap 'rm -fr `echo "\
13099 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13100 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13101 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13102 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13103 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13104 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13105 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13106 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13107 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13108 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13109 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13110 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13111 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13112 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13113 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13114 include/Makefile:build/top.mk:include/Makefile.in \
13115 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13116 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13117 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13118 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13119 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13120 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13121 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13122 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13123 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13124 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13125 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13126 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13127 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13128 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13129 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13130 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13131 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13132 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13133 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13134 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13135 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13136 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13137 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13138 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13139 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13140 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13141 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13143 cat >> $CONFIG_STATUS <<EOF
13145 # Protect against being on the right side of a sed subst in config.status.
13146 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13147 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13151 s%@CFLAGS@%$CFLAGS%g
13152 s%@CPPFLAGS@%$CPPFLAGS%g
13153 s%@CXXFLAGS@%$CXXFLAGS%g
13154 s%@FFLAGS@%$FFLAGS%g
13156 s%@LDFLAGS@%$LDFLAGS%g
13158 s%@exec_prefix@%$exec_prefix%g
13159 s%@prefix@%$prefix%g
13160 s%@program_transform_name@%$program_transform_name%g
13161 s%@bindir@%$bindir%g
13162 s%@sbindir@%$sbindir%g
13163 s%@libexecdir@%$libexecdir%g
13164 s%@datadir@%$datadir%g
13165 s%@sysconfdir@%$sysconfdir%g
13166 s%@sharedstatedir@%$sharedstatedir%g
13167 s%@localstatedir@%$localstatedir%g
13168 s%@libdir@%$libdir%g
13169 s%@includedir@%$includedir%g
13170 s%@oldincludedir@%$oldincludedir%g
13171 s%@infodir@%$infodir%g
13172 s%@mandir@%$mandir%g
13174 s%@host_alias@%$host_alias%g
13175 s%@host_cpu@%$host_cpu%g
13176 s%@host_vendor@%$host_vendor%g
13177 s%@host_os@%$host_os%g
13178 s%@target@%$target%g
13179 s%@target_alias@%$target_alias%g
13180 s%@target_cpu@%$target_cpu%g
13181 s%@target_vendor@%$target_vendor%g
13182 s%@target_os@%$target_os%g
13184 s%@build_alias@%$build_alias%g
13185 s%@build_cpu@%$build_cpu%g
13186 s%@build_vendor@%$build_vendor%g
13187 s%@build_os@%$build_os%g
13188 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13189 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13190 s%@INSTALL_DATA@%$INSTALL_DATA%g
13191 s%@PACKAGE@%$PACKAGE%g
13192 s%@VERSION@%$VERSION%g
13193 s%@ACLOCAL@%$ACLOCAL%g
13194 s%@AUTOCONF@%$AUTOCONF%g
13195 s%@AUTOMAKE@%$AUTOMAKE%g
13196 s%@AUTOHEADER@%$AUTOHEADER%g
13197 s%@MAKEINFO@%$MAKEINFO%g
13198 s%@install_sh@%$install_sh%g
13201 s%@AMTARFLAGS@%$AMTARFLAGS%g
13202 s%@SET_MAKE@%$SET_MAKE%g
13203 s%@top_builddir@%$top_builddir%g
13204 s%@ldap_subdir@%$ldap_subdir%g
13206 s%@RANLIB@%$RANLIB%g
13210 s%@LIBTOOL@%$LIBTOOL%g
13212 s%@SENDMAIL@%$SENDMAIL%g
13213 s%@EDITOR@%$EDITOR%g
13214 s%@FINGER@%$FINGER%g
13215 s%@PERLBIN@%$PERLBIN%g
13217 s%@EXEEXT@%$EXEEXT%g
13218 s%@OBJEXT@%$OBJEXT%g
13219 s%@OL_MKDEP@%$OL_MKDEP%g
13220 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
13222 s%@LIBOBJS@%$LIBOBJS%g
13223 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
13224 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
13225 s%@BUILD_BDB2@%$BUILD_BDB2%g
13226 s%@BUILD_LDAP@%$BUILD_LDAP%g
13227 s%@BUILD_LDBM@%$BUILD_LDBM%g
13228 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
13229 s%@BUILD_PERL@%$BUILD_PERL%g
13230 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
13231 s%@BUILD_SHELL@%$BUILD_SHELL%g
13232 s%@BUILD_TCL@%$BUILD_TCL%g
13233 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
13234 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
13235 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
13236 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
13237 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
13238 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
13239 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
13240 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
13241 s%@LDAP_LIBS@%$LDAP_LIBS%g
13242 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
13243 s%@LDIF_LIBS@%$LDIF_LIBS%g
13244 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
13245 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
13246 s%@LDBM_LIBS@%$LDBM_LIBS%g
13247 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
13248 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
13249 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
13250 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
13251 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
13252 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
13253 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
13254 s%@KRB_LIBS@%$KRB_LIBS%g
13255 s%@READLINE_LIBS@%$READLINE_LIBS%g
13256 s%@SASL_LIBS@%$SASL_LIBS%g
13257 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
13258 s%@TLS_LIBS@%$TLS_LIBS%g
13259 s%@MODULES_LIBS@%$MODULES_LIBS%g
13264 cat >> $CONFIG_STATUS <<\EOF
13266 # Split the substitutions into bite-sized pieces for seds with
13267 # small command number limits, like on Digital OSF/1 and HP-UX.
13268 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13269 ac_file=1 # Number of current file.
13270 ac_beg=1 # First line for current file.
13271 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13274 while $ac_more_lines; do
13275 if test $ac_beg -gt 1; then
13276 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13278 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13280 if test ! -s conftest.s$ac_file; then
13281 ac_more_lines=false
13282 rm -f conftest.s$ac_file
13284 if test -z "$ac_sed_cmds"; then
13285 ac_sed_cmds="sed -f conftest.s$ac_file"
13287 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13289 ac_file=`expr $ac_file + 1`
13291 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13294 if test -z "$ac_sed_cmds"; then
13299 cat >> $CONFIG_STATUS <<EOF
13301 CONFIG_FILES=\${CONFIG_FILES-"\
13302 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13303 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13304 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13305 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13306 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13307 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13308 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13309 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13310 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13311 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13312 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13313 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13314 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13315 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13316 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13317 include/Makefile:build/top.mk:include/Makefile.in \
13318 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13319 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13320 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13321 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13322 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13323 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13324 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13325 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13326 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13327 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13328 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13329 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13330 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13331 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13332 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13333 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13334 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13335 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13336 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13337 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13338 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13339 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13340 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13341 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13342 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13343 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13346 cat >> $CONFIG_STATUS <<\EOF
13347 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13350 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13351 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13352 *) ac_file_in="${ac_file}.in" ;;
13355 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13357 # Remove last slash and all that follows it. Not all systems have dirname.
13358 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13359 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13360 # The file is in a subdirectory.
13361 test ! -d "$ac_dir" && mkdir "$ac_dir"
13362 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13363 # A "../" for each directory in $ac_dir_suffix.
13364 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13366 ac_dir_suffix= ac_dots=
13369 case "$ac_given_srcdir" in
13371 if test -z "$ac_dots"; then top_srcdir=.
13372 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13373 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13374 *) # Relative path.
13375 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13376 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13379 case "$ac_given_INSTALL" in
13380 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13381 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13384 echo creating "$ac_file"
13386 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13388 *Makefile*) ac_comsub="1i\\
13389 # $configure_input" ;;
13393 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13395 s%@configure_input@%$configure_input%g
13396 s%@srcdir@%$srcdir%g
13397 s%@top_srcdir@%$top_srcdir%g
13398 s%@INSTALL@%$INSTALL%g
13399 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13403 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13404 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13406 # ac_d sets the value in "#define NAME VALUE" lines.
13407 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13408 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13411 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13412 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13413 ac_uB='\([ ]\)%\1#\2define\3'
13416 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13417 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13418 ac_eB='$%\1#\2define\3'
13422 if test "${CONFIG_HEADERS+set}" != set; then
13424 cat >> $CONFIG_STATUS <<EOF
13425 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
13427 cat >> $CONFIG_STATUS <<\EOF
13429 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13430 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13432 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13433 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13434 *) ac_file_in="${ac_file}.in" ;;
13437 echo creating $ac_file
13439 rm -f conftest.frag conftest.in conftest.out
13440 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13441 cat $ac_file_inputs > conftest.in
13445 # Transform confdefs.h into a sed script conftest.vals that substitutes
13446 # the proper values into config.h.in to produce config.h. And first:
13447 # Protect against being on the right side of a sed subst in config.status.
13448 # Protect against being in an unquoted here document in config.status.
13449 rm -f conftest.vals
13450 cat > conftest.hdr <<\EOF
13453 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13457 sed -n -f conftest.hdr confdefs.h > conftest.vals
13460 # This sed command replaces #undef with comments. This is necessary, for
13461 # example, in the case of _POSIX_SOURCE, which is predefined and required
13462 # on some systems where configure will not decide to define it.
13463 cat >> conftest.vals <<\EOF
13464 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13467 # Break up conftest.vals because some shells have a limit on
13468 # the size of here documents, and old seds have small limits too.
13470 rm -f conftest.tail
13473 ac_lines=`grep -c . conftest.vals`
13474 # grep -c gives empty output for an empty file on some AIX systems.
13475 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13476 # Write a limited-size here document to conftest.frag.
13477 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13478 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13480 sed -f conftest.frag conftest.in > conftest.out
13482 mv conftest.out conftest.in
13483 ' >> $CONFIG_STATUS
13484 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13485 rm -f conftest.vals
13486 mv conftest.tail conftest.vals
13488 rm -f conftest.vals
13490 cat >> $CONFIG_STATUS <<\EOF
13491 rm -f conftest.frag conftest.h
13492 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13493 cat conftest.in >> conftest.h
13495 if cmp -s $ac_file conftest.h 2>/dev/null; then
13496 echo "$ac_file is unchanged"
13499 # Remove last slash and all that follows it. Not all systems have dirname.
13500 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13502 # The file is in a subdirectory.
13503 test ! -d "$ac_dir" && mkdir "$ac_dir"
13506 mv conftest.h $ac_file
13511 cat >> $CONFIG_STATUS <<EOF
13514 cat >> $CONFIG_STATUS <<\EOF
13517 echo Please \"make depend\" to build dependencies
13521 chmod +x $CONFIG_STATUS
13522 rm -fr confdefs* $ac_clean_files
13523 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1