3 # from OpenLDAP: pkg/ldap/configure.in,v 1.385 2001/12/18 01:54:49 hyc Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [no]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [yes]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-monitor enable monitor backend [no]"
119 --with-monitor-module module type [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
145 Library Generation & Linking Options"
147 --enable-static[=PKGS] build static libraries [default=yes]"
149 --enable-shared[=PKGS] build shared libraries [default=yes]"
151 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
153 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
155 --disable-libtool-lock avoid locking (might break parallel builds)"
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
161 cache_file=./config.cache
170 program_transform_name=s,x,x,
178 bindir='${exec_prefix}/bin'
179 sbindir='${exec_prefix}/sbin'
180 libexecdir='${exec_prefix}/libexec'
181 datadir='${prefix}/share'
182 sysconfdir='${prefix}/etc'
183 sharedstatedir='${prefix}/com'
184 localstatedir='${prefix}/var'
185 libdir='${exec_prefix}/lib'
186 includedir='${prefix}/include'
187 oldincludedir='/usr/include'
188 infodir='${prefix}/info'
189 mandir='${prefix}/man'
191 # Initialize some other variables.
194 SHELL=${CONFIG_SHELL-/bin/sh}
195 # Maximum number of lines to put in a shell here document.
202 # If the previous option needs an argument, assign it.
203 if test -n "$ac_prev"; then
204 eval "$ac_prev=\$ac_option"
210 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
214 # Accept the important Cygnus configure options, so we can diagnose typos.
218 -bindir | --bindir | --bindi | --bind | --bin | --bi)
220 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
221 bindir="$ac_optarg" ;;
223 -build | --build | --buil | --bui | --bu)
225 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
226 build="$ac_optarg" ;;
228 -cache-file | --cache-file | --cache-fil | --cache-fi \
229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
230 ac_prev=cache_file ;;
231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
233 cache_file="$ac_optarg" ;;
235 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
237 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
239 datadir="$ac_optarg" ;;
241 -disable-* | --disable-*)
242 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
254 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix="$ac_optarg" ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he)
277 # Omit some internal or obsolete options to make the list less imposing.
278 # This message is too long to be a string in the A/UX 3.1 sh.
280 Usage: configure [options] [host]
281 Options: [defaults in brackets after descriptions]
283 --cache-file=FILE cache test results in FILE
284 --help print this message
285 --no-create do not create output files
286 --quiet, --silent do not print \`checking...' messages
287 --version print the version of autoconf that created configure
288 Directory and file names:
289 --prefix=PREFIX install architecture-independent files in PREFIX
291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
293 --bindir=DIR user executables in DIR [EPREFIX/bin]
294 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
295 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
296 --datadir=DIR read-only architecture-independent data in DIR
298 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
299 --sharedstatedir=DIR modifiable architecture-independent data in DIR
301 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
302 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
303 --includedir=DIR C header files in DIR [PREFIX/include]
304 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
305 --infodir=DIR info documentation in DIR [PREFIX/info]
306 --mandir=DIR man documentation in DIR [PREFIX/man]
307 --srcdir=DIR find the sources in DIR [configure dir or ..]
308 --program-prefix=PREFIX prepend PREFIX to installed program names
309 --program-suffix=SUFFIX append SUFFIX to installed program names
310 --program-transform-name=PROGRAM
311 run sed PROGRAM on installed program names
315 --build=BUILD configure for building on BUILD [BUILD=HOST]
316 --host=HOST configure for HOST [guessed]
317 --target=TARGET configure for TARGET [TARGET=HOST]
318 Features and packages:
319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
323 --x-includes=DIR X include files are in DIR
324 --x-libraries=DIR X library files are in DIR
326 if test -n "$ac_help"; then
327 echo "--enable and --with options recognized:$ac_help"
331 -host | --host | --hos | --ho)
333 -host=* | --host=* | --hos=* | --ho=*)
336 -includedir | --includedir | --includedi | --included | --include \
337 | --includ | --inclu | --incl | --inc)
338 ac_prev=includedir ;;
339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
340 | --includ=* | --inclu=* | --incl=* | --inc=*)
341 includedir="$ac_optarg" ;;
343 -infodir | --infodir | --infodi | --infod | --info | --inf)
345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
346 infodir="$ac_optarg" ;;
348 -libdir | --libdir | --libdi | --libd)
350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
351 libdir="$ac_optarg" ;;
353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
354 | --libexe | --libex | --libe)
355 ac_prev=libexecdir ;;
356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
357 | --libexe=* | --libex=* | --libe=*)
358 libexecdir="$ac_optarg" ;;
360 -localstatedir | --localstatedir | --localstatedi | --localstated \
361 | --localstate | --localstat | --localsta | --localst \
362 | --locals | --local | --loca | --loc | --lo)
363 ac_prev=localstatedir ;;
364 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
365 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
366 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
367 localstatedir="$ac_optarg" ;;
369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
372 mandir="$ac_optarg" ;;
375 # Obsolete; use --without-fp.
378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
388 | --oldin | --oldi | --old | --ol | --o)
389 ac_prev=oldincludedir ;;
390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
393 oldincludedir="$ac_optarg" ;;
395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
398 prefix="$ac_optarg" ;;
400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
401 | --program-pre | --program-pr | --program-p)
402 ac_prev=program_prefix ;;
403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
405 program_prefix="$ac_optarg" ;;
407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
408 | --program-suf | --program-su | --program-s)
409 ac_prev=program_suffix ;;
410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
412 program_suffix="$ac_optarg" ;;
414 -program-transform-name | --program-transform-name \
415 | --program-transform-nam | --program-transform-na \
416 | --program-transform-n | --program-transform- \
417 | --program-transform | --program-transfor \
418 | --program-transfo | --program-transf \
419 | --program-trans | --program-tran \
420 | --progr-tra | --program-tr | --program-t)
421 ac_prev=program_transform_name ;;
422 -program-transform-name=* | --program-transform-name=* \
423 | --program-transform-nam=* | --program-transform-na=* \
424 | --program-transform-n=* | --program-transform-=* \
425 | --program-transform=* | --program-transfor=* \
426 | --program-transfo=* | --program-transf=* \
427 | --program-trans=* | --program-tran=* \
428 | --progr-tra=* | --program-tr=* | --program-t=*)
429 program_transform_name="$ac_optarg" ;;
431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
432 | -silent | --silent | --silen | --sile | --sil)
435 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
437 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
439 sbindir="$ac_optarg" ;;
441 -sharedstatedir | --sharedstatedir | --sharedstatedi \
442 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
443 | --sharedst | --shareds | --shared | --share | --shar \
445 ac_prev=sharedstatedir ;;
446 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
447 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
448 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
450 sharedstatedir="$ac_optarg" ;;
452 -site | --site | --sit)
454 -site=* | --site=* | --sit=*)
457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
460 srcdir="$ac_optarg" ;;
462 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
463 | --syscon | --sysco | --sysc | --sys | --sy)
464 ac_prev=sysconfdir ;;
465 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
466 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
467 sysconfdir="$ac_optarg" ;;
469 -target | --target | --targe | --targ | --tar | --ta | --t)
471 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
472 target="$ac_optarg" ;;
474 -v | -verbose | --verbose | --verbos | --verbo | --verb)
477 -version | --version | --versio | --versi | --vers)
478 echo "configure generated by autoconf version 2.13.1"
482 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
492 eval "with_${ac_package}='$ac_optarg'" ;;
494 -without-* | --without-*)
495 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package=`echo $ac_package| sed 's/-/_/g'`
501 eval "with_${ac_package}=no" ;;
504 # Obsolete; use --with-x.
507 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
508 | --x-incl | --x-inc | --x-in | --x-i)
509 ac_prev=x_includes ;;
510 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
511 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
512 x_includes="$ac_optarg" ;;
514 -x-libraries | --x-libraries | --x-librarie | --x-librari \
515 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
516 ac_prev=x_libraries ;;
517 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
518 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
519 x_libraries="$ac_optarg" ;;
521 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
525 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
526 echo "configure: warning: $ac_option: invalid host type" 1>&2
528 if test "x$nonopt" != xNONE; then
529 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
537 if test -n "$ac_prev"; then
538 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
543 # File descriptor usage:
546 # 2 errors and warnings
547 # 3 some systems may open it to /dev/tty
548 # 4 used on the Kubota Titan
549 # 6 checking for... messages and results
550 # 5 compiler messages saved in config.log
551 if test "$silent" = yes; then
559 This file contains any messages produced by compilers while
560 running configure, to aid debugging if configure makes a mistake.
563 # Strip out --no-create and --no-recursion so they do not pile up.
564 # Also quote any args containing shell metacharacters.
569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
570 | --no-cr | --no-c) ;;
571 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
572 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
573 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
574 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
575 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
580 # Only set these to C if already set. These must not be set unconditionally
581 # because not all systems understand e.g. LANG=C (notably SCO).
582 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
583 # Non-C LC_CTYPE values break the ctype check.
584 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
585 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
586 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
587 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
590 rm -rf conftest* confdefs.h
591 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
594 # A filename unique to this package, relative to the directory that
595 # configure is in, which we can look for to find out if srcdir is correct.
596 ac_unique_file=build/version.sh
598 # Find the source files, if location was not specified.
599 if test -z "$srcdir"; then
600 ac_srcdir_defaulted=yes
601 # Try the directory containing this script, then its parent.
603 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
604 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
606 if test ! -r $srcdir/$ac_unique_file; then
610 ac_srcdir_defaulted=no
612 if test ! -r $srcdir/$ac_unique_file; then
613 if test "$ac_srcdir_defaulted" = yes; then
614 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
616 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
619 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
621 # Prefer explicitly selected file to automatically selected ones.
622 if test -z "$CONFIG_SITE"; then
623 if test "x$prefix" != xNONE; then
624 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
626 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
629 for ac_site_file in $CONFIG_SITE; do
630 if test -r "$ac_site_file"; then
631 echo "loading site script $ac_site_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
655 ac_n= ac_c='\c' ac_t=
659 # set unset (borrowed from autoconf 2.49c)
660 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
666 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
669 for ac_dir in build $srcdir/build; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
678 elif test -f $ac_dir/shtool; then
680 ac_install_sh="$ac_aux_dir/shtool install -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
687 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
688 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
689 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
691 eval `$ac_aux_dir/version.sh`
692 if test -z "$OL_STRING"; then
693 { echo "configure: error: could not determine version" 1>&2; exit 1; }
696 echo "Configuring $OL_STRING ..."
699 echo $ac_n "checking host system type""... $ac_c" 1>&6
700 echo "configure:701: checking host system type" >&5
701 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
703 # Make sure we can run config.sub.
704 if $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 ac_cv_host_alias=$host
709 case "$ac_cv_host_alias" in
713 if ac_cv_host_alias=`$ac_config_guess`; then :
714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 *) ac_cv_host_alias=$nonopt ;;
720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
721 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo $ac_n "(cached) $ac_c" 1>&6
728 echo "$ac_t""$ac_cv_host" 1>&6
731 host_alias=$ac_cv_host_alias
732 host_cpu=$ac_cv_host_cpu
733 host_vendor=$ac_cv_host_vendor
734 host_os=$ac_cv_host_os
740 echo $ac_n "checking target system type""... $ac_c" 1>&6
741 echo "configure:742: checking target system type" >&5
742 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
744 # Make sure we can run config.sub.
745 if $ac_config_sub sun4 >/dev/null 2>&1; then :
746 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749 ac_cv_target_alias=$target
750 case "$ac_cv_target_alias" in
754 ac_cv_target_alias=$host_alias ;;
756 *) ac_cv_target_alias=$nonopt ;;
760 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
761 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo $ac_n "(cached) $ac_c" 1>&6
768 echo "$ac_t""$ac_cv_target" 1>&6
771 target_alias=$ac_cv_target_alias
772 target_cpu=$ac_cv_target_cpu
773 target_vendor=$ac_cv_target_vendor
774 target_os=$ac_cv_target_os
780 echo $ac_n "checking build system type""... $ac_c" 1>&6
781 echo "configure:782: checking build system type" >&5
782 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
784 # Make sure we can run config.sub.
785 if $ac_config_sub sun4 >/dev/null 2>&1; then :
786 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
789 ac_cv_build_alias=$build
790 case "$ac_cv_build_alias" in
794 ac_cv_build_alias=$host_alias ;;
796 *) ac_cv_build_alias=$nonopt ;;
800 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
801 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
805 echo $ac_n "(cached) $ac_c" 1>&6
808 echo "$ac_t""$ac_cv_build" 1>&6
811 build_alias=$ac_cv_build_alias
812 build_cpu=$ac_cv_build_cpu
813 build_vendor=$ac_cv_build_vendor
814 build_os=$ac_cv_build_os
820 # Do some error checking and defaulting for the host and target type.
822 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
825 # 1. You are not allowed to specify --host, --target, and nonopt at the
827 # 2. Host defaults to nonopt.
828 # 3. If nonopt is not specified, then host defaults to the current host,
829 # as determined by config.guess.
830 # 4. Target and build default to nonopt.
831 # 5. If nonopt is not specified, then target and build default to host.
833 # The aliases save the names the user supplied, while $host etc.
834 # will get canonicalized.
835 case $host---$target---$nonopt in
836 NONE---*---* | *---NONE---* | *---*---NONE) ;;
837 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
840 test "$host_alias" != "$target_alias" &&
841 test "$program_prefix$program_suffix$program_transform_name" = \
843 program_prefix=${target_alias}-
846 # Find a good install program. We prefer a C program (faster),
847 # so one script is as good as another. But avoid the broken or
848 # incompatible versions:
849 # SysV /etc/install, /usr/sbin/install
850 # SunOS /usr/etc/install
853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
856 # ./install, which can be erroneously created by make from ./install.sh.
857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
858 echo "configure:859: checking for a BSD compatible install" >&5
859 if test -z "$INSTALL"; then
860 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
864 for ac_dir in $PATH; do
865 # Account for people who put trailing slashes in PATH elements.
867 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 # OSF1 and SCO ODT 3.0 have their own names for install.
870 # Don't use installbsd from OSF since it installs stuff as root
872 for ac_prog in ginstall scoinst install; do
873 if test -f $ac_dir/$ac_prog; then
874 if test $ac_prog = install &&
875 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # AIX install. It has an incompatible calling convention.
878 elif test $ac_prog = install &&
879 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
880 # program-specific install script used by HP pwplus--don't use.
883 ac_cv_path_install="$ac_dir/$ac_prog -c"
894 if test "${ac_cv_path_install+set}" = set; then
895 INSTALL="$ac_cv_path_install"
897 # As a last resort, use the slow shell script. We don't cache a
898 # path for INSTALL within a source directory, because that will
899 # break other packages using the cache if that directory is
900 # removed, or if the path is relative.
901 INSTALL="$ac_install_sh"
904 echo "$ac_t""$INSTALL" 1>&6
906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
907 # It thinks the first close brace ends the variable substitution.
908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
914 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
915 echo "configure:916: checking whether build environment is sane" >&5
918 echo timestamp > conftestfile
919 # Do `set' in a subshell so we don't clobber the current shell's
920 # arguments. Must try -L first in case configure is actually a
921 # symlink; some systems play weird games with the mod time of symlinks
922 # (eg FreeBSD returns the mod time of the symlink's containing
925 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
926 if test "$*" = "X"; then
928 set X `ls -t $srcdir/configure conftestfile`
930 if test "$*" != "X $srcdir/configure conftestfile" \
931 && test "$*" != "X conftestfile $srcdir/configure"; then
933 # If neither matched, then we have a broken ls. This can happen
934 # if, for instance, CONFIG_SHELL is bash and it inherits a
935 # broken ls alias from the environment. This has actually
936 # happened. Such a system could not be considered "sane".
937 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
938 alias in your environment" 1>&2; exit 1; }
941 test "$2" = conftestfile
947 { echo "configure: error: newly created file is older than distributed files!
948 Check your system clock" 1>&2; exit 1; }
951 echo "$ac_t""yes" 1>&6
952 if test "$program_transform_name" = s,x,x,; then
953 program_transform_name=
955 # Double any \ or $. echo might interpret backslashes.
956 cat <<\EOF_SED > conftestsed
957 s,\\,\\\\,g; s,\$,$$,g
959 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
962 test "$program_prefix" != NONE &&
963 program_transform_name="s,^,${program_prefix},;$program_transform_name"
964 # Use a double $ so make ignores it.
965 test "$program_suffix" != NONE &&
966 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
968 # sed with no file args requires a program.
969 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
971 for ac_prog in mawk gawk nawk awk
973 # Extract the first word of "$ac_prog", so it can be a program name with args.
974 set dummy $ac_prog; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$AWK"; then
981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_AWK="$ac_prog"
995 AWK="$ac_cv_prog_AWK"
996 if test -n "$AWK"; then
997 echo "$ac_t""$AWK" 1>&6
999 echo "$ac_t""no" 1>&6
1002 test -n "$AWK" && break
1005 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${MAKE-make} sets \${MAKE}" >&5
1007 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1008 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftestmake <<\EOF
1013 @echo 'ac_maketemp="${MAKE}"'
1015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1016 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1017 if test -n "$ac_maketemp"; then
1018 eval ac_cv_prog_make_${ac_make}_set=yes
1020 eval ac_cv_prog_make_${ac_make}_set=no
1024 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1028 echo "$ac_t""no" 1>&6
1029 SET_MAKE="MAKE=${MAKE-make}"
1038 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1039 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1044 missing_dir=`cd $ac_aux_dir && pwd`
1045 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working aclocal" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 ACLOCAL="$missing_dir/missing aclocal"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoconf" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOCONF="$missing_dir/missing autoconf"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working automake" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (automake --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 AUTOMAKE="$missing_dir/missing automake"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working autoheader" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1090 AUTOHEADER=autoheader
1091 echo "$ac_t""found" 1>&6
1093 AUTOHEADER="$missing_dir/missing autoheader"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working makeinfo" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1104 echo "$ac_t""found" 1>&6
1106 MAKEINFO="$missing_dir/missing makeinfo"
1107 echo "$ac_t""missing" 1>&6
1110 install_sh="$missing_dir/install-sh"
1111 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1113 for ac_prog in gnutar gtar tar
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy $ac_prog; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$AMTAR"; then
1123 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AMTAR="$ac_prog"
1137 AMTAR="$ac_cv_prog_AMTAR"
1138 if test -n "$AMTAR"; then
1139 echo "$ac_t""$AMTAR" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AMTAR" && break
1149 if test -n "$AMTAR"; then
1150 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1155 cat >> confdefs.h <<EOF
1156 #define OPENLDAP_PACKAGE "$PACKAGE"
1159 cat >> confdefs.h <<EOF
1160 #define OPENLDAP_VERSION "$VERSION"
1164 cat >> confdefs.h <<EOF
1165 #define LDAP_VENDOR_VERSION $OL_API_INC
1168 cat >> confdefs.h <<EOF
1169 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1172 cat >> confdefs.h <<EOF
1173 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1176 cat >> confdefs.h <<EOF
1177 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1181 OPENLDAP_LIBVERSION=$OL_API_LIB
1185 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1186 echo "configure:1187: checking configure arguments" >&5
1191 ldap_subdir="/openldap"
1193 # Check whether --with-subdir or --without-subdir was given.
1194 if test "${with_subdir+set}" = set; then
1195 withval="$with_subdir"
1202 ldap_subdir="$withval"
1205 ldap_subdir="/$withval"
1212 # OpenLDAP --enable-debug
1213 # Check whether --enable-debug or --disable-debug was given.
1214 if test "${enable_debug+set}" = set; then
1215 enableval="$enable_debug"
1218 for ol_val in auto yes no ; do
1219 if test "$enableval" = "$ol_val" ; then
1223 if test "$ol_arg" = "invalid" ; then
1224 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1226 ol_enable_debug="$ol_arg"
1229 ol_enable_debug="yes"
1231 # end --enable-debug
1232 # OpenLDAP --enable-syslog
1233 # Check whether --enable-syslog or --disable-syslog was given.
1234 if test "${enable_syslog+set}" = set; then
1235 enableval="$enable_syslog"
1238 for ol_val in auto yes no ; do
1239 if test "$enableval" = "$ol_val" ; then
1243 if test "$ol_arg" = "invalid" ; then
1244 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1246 ol_enable_syslog="$ol_arg"
1249 ol_enable_syslog="auto"
1251 # end --enable-syslog
1252 # OpenLDAP --enable-proctitle
1253 # Check whether --enable-proctitle or --disable-proctitle was given.
1254 if test "${enable_proctitle+set}" = set; then
1255 enableval="$enable_proctitle"
1258 for ol_val in auto yes no ; do
1259 if test "$enableval" = "$ol_val" ; then
1263 if test "$ol_arg" = "invalid" ; then
1264 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1266 ol_enable_proctitle="$ol_arg"
1269 ol_enable_proctitle="yes"
1271 # end --enable-proctitle
1272 # OpenLDAP --enable-cache
1273 # Check whether --enable-cache or --disable-cache was given.
1274 if test "${enable_cache+set}" = set; then
1275 enableval="$enable_cache"
1278 for ol_val in auto yes no ; do
1279 if test "$enableval" = "$ol_val" ; then
1283 if test "$ol_arg" = "invalid" ; then
1284 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1286 ol_enable_cache="$ol_arg"
1289 ol_enable_cache="no"
1291 # end --enable-cache
1292 # OpenLDAP --enable-referrals
1293 # Check whether --enable-referrals or --disable-referrals was given.
1294 if test "${enable_referrals+set}" = set; then
1295 enableval="$enable_referrals"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1306 ol_enable_referrals="$ol_arg"
1309 ol_enable_referrals="no"
1311 # end --enable-referrals
1312 # OpenLDAP --enable-kbind
1313 # Check whether --enable-kbind or --disable-kbind was given.
1314 if test "${enable_kbind+set}" = set; then
1315 enableval="$enable_kbind"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1326 ol_enable_kbind="$ol_arg"
1329 ol_enable_kbind="no"
1331 # end --enable-kbind
1332 # OpenLDAP --enable-ipv6
1333 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1334 if test "${enable_ipv6+set}" = set; then
1335 enableval="$enable_ipv6"
1338 for ol_val in auto yes no ; do
1339 if test "$enableval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1346 ol_enable_ipv6="$ol_arg"
1349 ol_enable_ipv6="auto"
1352 # OpenLDAP --enable-local
1353 # Check whether --enable-local or --disable-local was given.
1354 if test "${enable_local+set}" = set; then
1355 enableval="$enable_local"
1358 for ol_val in auto yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1366 ol_enable_local="$ol_arg"
1369 ol_enable_local="auto"
1371 # end --enable-local
1372 # OpenLDAP --enable-rewrite
1373 # Check whether --enable-rewrite or --disable-rewrite was given.
1374 if test "${enable_rewrite+set}" = set; then
1375 enableval="$enable_rewrite"
1378 for ol_val in auto yes no ; do
1379 if test "$enableval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1386 ol_enable_rewrite="$ol_arg"
1389 ol_enable_rewrite="no"
1391 # end --enable-rewrite
1392 # OpenLDAP --enable-x_compile
1393 # Check whether --enable-x_compile or --disable-x_compile was given.
1394 if test "${enable_x_compile+set}" = set; then
1395 enableval="$enable_x_compile"
1398 for ol_val in yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1406 ol_enable_x_compile="$ol_arg"
1409 ol_enable_x_compile="no"
1411 # end --enable-x_compile
1414 # OpenLDAP --with-cyrus_sasl
1415 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1416 if test "${with_cyrus_sasl+set}" = set; then
1417 withval="$with_cyrus_sasl"
1420 for ol_val in auto yes no ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1428 ol_with_cyrus_sasl="$ol_arg"
1431 ol_with_cyrus_sasl="auto"
1433 # end --with-cyrus_sasl
1435 # OpenLDAP --with-fetch
1436 # Check whether --with-fetch or --without-fetch was given.
1437 if test "${with_fetch+set}" = set; then
1438 withval="$with_fetch"
1441 for ol_val in auto yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1449 ol_with_fetch="$ol_arg"
1452 ol_with_fetch="auto"
1456 # OpenLDAP --with-kerberos
1457 # Check whether --with-kerberos or --without-kerberos was given.
1458 if test "${with_kerberos+set}" = set; then
1459 withval="$with_kerberos"
1462 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1470 ol_with_kerberos="$ol_arg"
1473 ol_with_kerberos="auto"
1475 # end --with-kerberos
1477 # OpenLDAP --with-readline
1478 # Check whether --with-readline or --without-readline was given.
1479 if test "${with_readline+set}" = set; then
1480 withval="$with_readline"
1483 for ol_val in auto yes no ; do
1484 if test "$withval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1491 ol_with_readline="$ol_arg"
1494 ol_with_readline="auto"
1496 # end --with-readline
1498 # OpenLDAP --with-threads
1499 # Check whether --with-threads or --without-threads was given.
1500 if test "${with_threads+set}" = set; then
1501 withval="$with_threads"
1504 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1512 ol_with_threads="$ol_arg"
1515 ol_with_threads="auto"
1517 # end --with-threads
1519 # OpenLDAP --with-tls
1520 # Check whether --with-tls or --without-tls was given.
1521 if test "${with_tls+set}" = set; then
1525 for ol_val in auto ssleay openssl yes no ; do
1526 if test "$withval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1533 ol_with_tls="$ol_arg"
1540 # OpenLDAP --with-yielding_select
1541 # Check whether --with-yielding_select or --without-yielding_select was given.
1542 if test "${with_yielding_select+set}" = set; then
1543 withval="$with_yielding_select"
1546 for ol_val in auto yes no manual ; do
1547 if test "$withval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1554 ol_with_yielding_select="$ol_arg"
1557 ol_with_yielding_select="auto"
1559 # end --with-yielding_select
1563 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1564 if test "${with_xxslapdoptions+set}" = set; then
1565 withval="$with_xxslapdoptions"
1569 # OpenLDAP --enable-slapd
1570 # Check whether --enable-slapd or --disable-slapd was given.
1571 if test "${enable_slapd+set}" = set; then
1572 enableval="$enable_slapd"
1575 for ol_val in auto yes no ; do
1576 if test "$enableval" = "$ol_val" ; then
1580 if test "$ol_arg" = "invalid" ; then
1581 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1583 ol_enable_slapd="$ol_arg"
1586 ol_enable_slapd="yes"
1588 # end --enable-slapd
1589 # OpenLDAP --enable-aci
1590 # Check whether --enable-aci or --disable-aci was given.
1591 if test "${enable_aci+set}" = set; then
1592 enableval="$enable_aci"
1595 for ol_val in auto yes no ; do
1596 if test "$enableval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1603 ol_enable_aci="$ol_arg"
1609 # OpenLDAP --enable-cleartext
1610 # Check whether --enable-cleartext or --disable-cleartext was given.
1611 if test "${enable_cleartext+set}" = set; then
1612 enableval="$enable_cleartext"
1615 for ol_val in auto yes no ; do
1616 if test "$enableval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1623 ol_enable_cleartext="$ol_arg"
1626 ol_enable_cleartext="yes"
1628 # end --enable-cleartext
1629 # OpenLDAP --enable-crypt
1630 # Check whether --enable-crypt or --disable-crypt was given.
1631 if test "${enable_crypt+set}" = set; then
1632 enableval="$enable_crypt"
1635 for ol_val in auto yes no ; do
1636 if test "$enableval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1643 ol_enable_crypt="$ol_arg"
1646 ol_enable_crypt="no"
1648 # end --enable-crypt
1649 # OpenLDAP --enable-dynamic
1650 # Check whether --enable-dynamic or --disable-dynamic was given.
1651 if test "${enable_dynamic+set}" = set; then
1652 enableval="$enable_dynamic"
1655 for ol_val in auto yes no ; do
1656 if test "$enableval" = "$ol_val" ; then
1660 if test "$ol_arg" = "invalid" ; then
1661 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1663 ol_enable_dynamic="$ol_arg"
1666 ol_enable_dynamic="no"
1668 # end --enable-dynamic
1669 # OpenLDAP --enable-kpasswd
1670 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1671 if test "${enable_kpasswd+set}" = set; then
1672 enableval="$enable_kpasswd"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1683 ol_enable_kpasswd="$ol_arg"
1686 ol_enable_kpasswd="no"
1688 # end --enable-kpasswd
1689 # OpenLDAP --enable-lmpasswd
1690 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1691 if test "${enable_lmpasswd+set}" = set; then
1692 enableval="$enable_lmpasswd"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1703 ol_enable_lmpasswd="$ol_arg"
1706 ol_enable_lmpasswd="no"
1708 # end --enable-lmpasswd
1709 # OpenLDAP --enable-spasswd
1710 # Check whether --enable-spasswd or --disable-spasswd was given.
1711 if test "${enable_spasswd+set}" = set; then
1712 enableval="$enable_spasswd"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1723 ol_enable_spasswd="$ol_arg"
1726 ol_enable_spasswd="no"
1728 # end --enable-spasswd
1729 # OpenLDAP --enable-modules
1730 # Check whether --enable-modules or --disable-modules was given.
1731 if test "${enable_modules+set}" = set; then
1732 enableval="$enable_modules"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1743 ol_enable_modules="$ol_arg"
1746 ol_enable_modules="no"
1748 # end --enable-modules
1749 # OpenLDAP --enable-phonetic
1750 # Check whether --enable-phonetic or --disable-phonetic was given.
1751 if test "${enable_phonetic+set}" = set; then
1752 enableval="$enable_phonetic"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1763 ol_enable_phonetic="$ol_arg"
1766 ol_enable_phonetic="no"
1768 # end --enable-phonetic
1769 # OpenLDAP --enable-rlookups
1770 # Check whether --enable-rlookups or --disable-rlookups was given.
1771 if test "${enable_rlookups+set}" = set; then
1772 enableval="$enable_rlookups"
1775 for ol_val in auto yes no ; do
1776 if test "$enableval" = "$ol_val" ; then
1780 if test "$ol_arg" = "invalid" ; then
1781 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1783 ol_enable_rlookups="$ol_arg"
1786 ol_enable_rlookups="no"
1788 # end --enable-rlookups
1789 # OpenLDAP --enable-slp
1790 # Check whether --enable-slp or --disable-slp was given.
1791 if test "${enable_slp+set}" = set; then
1792 enableval="$enable_slp"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1803 ol_enable_slp="$ol_arg"
1809 # OpenLDAP --enable-wrappers
1810 # Check whether --enable-wrappers or --disable-wrappers was given.
1811 if test "${enable_wrappers+set}" = set; then
1812 enableval="$enable_wrappers"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1823 ol_enable_wrappers="$ol_arg"
1826 ol_enable_wrappers="no"
1828 # end --enable-wrappers
1830 # OpenLDAP --enable-bdb
1831 # Check whether --enable-bdb or --disable-bdb was given.
1832 if test "${enable_bdb+set}" = set; then
1833 enableval="$enable_bdb"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1844 ol_enable_bdb="$ol_arg"
1850 # OpenLDAP --with-bdb_module
1851 # Check whether --with-bdb_module or --without-bdb_module was given.
1852 if test "${with_bdb_module+set}" = set; then
1853 withval="$with_bdb_module"
1856 for ol_val in static dynamic ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1864 ol_with_bdb_module="$ol_arg"
1867 ol_with_bdb_module="static"
1869 # end --with-bdb_module
1871 # OpenLDAP --enable-dnssrv
1872 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1873 if test "${enable_dnssrv+set}" = set; then
1874 enableval="$enable_dnssrv"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1885 ol_enable_dnssrv="$ol_arg"
1888 ol_enable_dnssrv="no"
1890 # end --enable-dnssrv
1891 # OpenLDAP --with-dnssrv_module
1892 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1893 if test "${with_dnssrv_module+set}" = set; then
1894 withval="$with_dnssrv_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1905 ol_with_dnssrv_module="$ol_arg"
1908 ol_with_dnssrv_module="static"
1910 # end --with-dnssrv_module
1912 # OpenLDAP --enable-ldap
1913 # Check whether --enable-ldap or --disable-ldap was given.
1914 if test "${enable_ldap+set}" = set; then
1915 enableval="$enable_ldap"
1918 for ol_val in auto yes no ; do
1919 if test "$enableval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1926 ol_enable_ldap="$ol_arg"
1932 # OpenLDAP --with-ldap_module
1933 # Check whether --with-ldap_module or --without-ldap_module was given.
1934 if test "${with_ldap_module+set}" = set; then
1935 withval="$with_ldap_module"
1938 for ol_val in static dynamic ; do
1939 if test "$withval" = "$ol_val" ; then
1943 if test "$ol_arg" = "invalid" ; then
1944 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1946 ol_with_ldap_module="$ol_arg"
1949 ol_with_ldap_module="static"
1951 # end --with-ldap_module
1953 # OpenLDAP --enable-ldbm
1954 # Check whether --enable-ldbm or --disable-ldbm was given.
1955 if test "${enable_ldbm+set}" = set; then
1956 enableval="$enable_ldbm"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1967 ol_enable_ldbm="$ol_arg"
1970 ol_enable_ldbm="yes"
1973 # OpenLDAP --with-ldbm_api
1974 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1975 if test "${with_ldbm_api+set}" = set; then
1976 withval="$with_ldbm_api"
1979 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1980 if test "$withval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1987 ol_with_ldbm_api="$ol_arg"
1990 ol_with_ldbm_api="auto"
1992 # end --with-ldbm_api
1994 # OpenLDAP --with-ldbm_module
1995 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1996 if test "${with_ldbm_module+set}" = set; then
1997 withval="$with_ldbm_module"
2000 for ol_val in static dynamic ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2008 ol_with_ldbm_module="$ol_arg"
2011 ol_with_ldbm_module="static"
2013 # end --with-ldbm_module
2015 # OpenLDAP --with-ldbm_type
2016 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2017 if test "${with_ldbm_type+set}" = set; then
2018 withval="$with_ldbm_type"
2021 for ol_val in auto btree hash ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2029 ol_with_ldbm_type="$ol_arg"
2032 ol_with_ldbm_type="auto"
2034 # end --with-ldbm_type
2036 # OpenLDAP --enable-meta
2037 # Check whether --enable-meta or --disable-meta was given.
2038 if test "${enable_meta+set}" = set; then
2039 enableval="$enable_meta"
2042 for ol_val in auto yes no ; do
2043 if test "$enableval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2050 ol_enable_meta="$ol_arg"
2056 # OpenLDAP --with-meta_module
2057 # Check whether --with-meta_module or --without-meta_module was given.
2058 if test "${with_meta_module+set}" = set; then
2059 withval="$with_meta_module"
2062 for ol_val in static dynamic ; do
2063 if test "$withval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2070 ol_with_meta_module="$ol_arg"
2073 ol_with_meta_module="static"
2075 # end --with-meta_module
2077 # OpenLDAP --enable-monitor
2078 # Check whether --enable-monitor or --disable-monitor was given.
2079 if test "${enable_monitor+set}" = set; then
2080 enableval="$enable_monitor"
2083 for ol_val in auto yes no ; do
2084 if test "$enableval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2091 ol_enable_monitor="$ol_arg"
2094 ol_enable_monitor="no"
2096 # end --enable-monitor
2097 # OpenLDAP --with-monitor_module
2098 # Check whether --with-monitor_module or --without-monitor_module was given.
2099 if test "${with_monitor_module+set}" = set; then
2100 withval="$with_monitor_module"
2103 for ol_val in static dynamic ; do
2104 if test "$withval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2111 ol_with_monitor_module="$ol_arg"
2114 ol_with_monitor_module="static"
2116 # end --with-monitor_module
2118 # OpenLDAP --enable-passwd
2119 # Check whether --enable-passwd or --disable-passwd was given.
2120 if test "${enable_passwd+set}" = set; then
2121 enableval="$enable_passwd"
2124 for ol_val in auto yes no ; do
2125 if test "$enableval" = "$ol_val" ; then
2129 if test "$ol_arg" = "invalid" ; then
2130 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2132 ol_enable_passwd="$ol_arg"
2135 ol_enable_passwd="no"
2137 # end --enable-passwd
2138 # OpenLDAP --with-passwd_module
2139 # Check whether --with-passwd_module or --without-passwd_module was given.
2140 if test "${with_passwd_module+set}" = set; then
2141 withval="$with_passwd_module"
2144 for ol_val in static dynamic ; do
2145 if test "$withval" = "$ol_val" ; then
2149 if test "$ol_arg" = "invalid" ; then
2150 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2152 ol_with_passwd_module="$ol_arg"
2155 ol_with_passwd_module="static"
2157 # end --with-passwd_module
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in auto yes no ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --with-perl_module
2180 # Check whether --with-perl_module or --without-perl_module was given.
2181 if test "${with_perl_module+set}" = set; then
2182 withval="$with_perl_module"
2185 for ol_val in static dynamic ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2193 ol_with_perl_module="$ol_arg"
2196 ol_with_perl_module="static"
2198 # end --with-perl_module
2200 # OpenLDAP --enable-shell
2201 # Check whether --enable-shell or --disable-shell was given.
2202 if test "${enable_shell+set}" = set; then
2203 enableval="$enable_shell"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2214 ol_enable_shell="$ol_arg"
2217 ol_enable_shell="no"
2219 # end --enable-shell
2220 # OpenLDAP --with-shell_module
2221 # Check whether --with-shell_module or --without-shell_module was given.
2222 if test "${with_shell_module+set}" = set; then
2223 withval="$with_shell_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2234 ol_with_shell_module="$ol_arg"
2237 ol_with_shell_module="static"
2239 # end --with-shell_module
2241 # OpenLDAP --enable-sql
2242 # Check whether --enable-sql or --disable-sql was given.
2243 if test "${enable_sql+set}" = set; then
2244 enableval="$enable_sql"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2255 ol_enable_sql="$ol_arg"
2261 # OpenLDAP --with-sql_module
2262 # Check whether --with-sql_module or --without-sql_module was given.
2263 if test "${with_sql_module+set}" = set; then
2264 withval="$with_sql_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2275 ol_with_sql_module="$ol_arg"
2278 ol_with_sql_module="static"
2280 # end --with-sql_module
2282 # OpenLDAP --enable-tcl
2283 # Check whether --enable-tcl or --disable-tcl was given.
2284 if test "${enable_tcl+set}" = set; then
2285 enableval="$enable_tcl"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2296 ol_enable_tcl="$ol_arg"
2302 # OpenLDAP --with-tcl_module
2303 # Check whether --with-tcl_module or --without-tcl_module was given.
2304 if test "${with_tcl_module+set}" = set; then
2305 withval="$with_tcl_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2316 ol_with_tcl_module="$ol_arg"
2319 ol_with_tcl_module="static"
2321 # end --with-tcl_module
2324 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2325 if test "${with_xxslurpdoptions+set}" = set; then
2326 withval="$with_xxslurpdoptions"
2330 # OpenLDAP --enable-slurpd
2331 # Check whether --enable-slurpd or --disable-slurpd was given.
2332 if test "${enable_slurpd+set}" = set; then
2333 enableval="$enable_slurpd"
2336 for ol_val in auto yes no ; do
2337 if test "$enableval" = "$ol_val" ; then
2341 if test "$ol_arg" = "invalid" ; then
2342 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2344 ol_enable_slurpd="$ol_arg"
2347 ol_enable_slurpd="auto"
2349 # end --enable-slurpd
2351 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2352 if test "${with_xxliboptions+set}" = set; then
2353 withval="$with_xxliboptions"
2357 # Check whether --enable-static or --disable-static was given.
2358 if test "${enable_static+set}" = set; then
2359 enableval="$enable_static"
2360 p=${PACKAGE-default}
2361 case "$enableval" in
2362 yes) enable_static=yes ;;
2363 no) enable_static=no ;;
2366 # Look at the argument we got. We use all the common list separators.
2367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2368 for pkg in $enableval; do
2369 if test "X$pkg" = "X$p"; then
2380 # Check whether --enable-shared or --disable-shared was given.
2381 if test "${enable_shared+set}" = set; then
2382 enableval="$enable_shared"
2383 p=${PACKAGE-default}
2384 case "$enableval" in
2385 yes) enable_shared=yes ;;
2386 no) enable_shared=no ;;
2389 # Look at the argument we got. We use all the common list separators.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2391 for pkg in $enableval; do
2392 if test "X$pkg" = "X$p"; then
2406 if test $ol_enable_slapd = no ; then
2407 if test $ol_enable_bdb = yes ; then
2408 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2410 if test $ol_enable_dnssrv = yes ; then
2411 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2413 if test $ol_enable_ldap = yes ; then
2414 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2416 if test $ol_enable_ldbm = yes ; then
2417 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2419 if test $ol_enable_meta = yes ; then
2420 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2422 if test $ol_enable_monitor = yes ; then
2423 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2425 if test $ol_enable_passwd = yes ; then
2426 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2428 if test $ol_enable_perl = yes ; then
2429 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2431 if test $ol_enable_shell = yes ; then
2432 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2434 if test $ol_enable_tcl = yes ; then
2435 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2437 if test $ol_enable_sql = yes ; then
2438 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2440 if test $ol_enable_modules = yes ; then
2441 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2443 if test $ol_enable_wrappers = yes ; then
2444 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2446 if test $ol_enable_phonetic = yes ; then
2447 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2449 if test $ol_enable_rlookups = yes ; then
2450 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2452 if test $ol_enable_aci = yes ; then
2453 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2455 if test $ol_with_ldbm_api != auto ; then
2456 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2458 if test $ol_with_ldbm_type != auto ; then
2459 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2461 if test $ol_with_bdb_module != static ; then
2462 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2464 if test $ol_with_dnssrv_module != static ; then
2465 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2467 if test $ol_with_ldap_module != static ; then
2468 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2470 if test $ol_with_ldbm_module != static ; then
2471 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2473 if test $ol_with_meta_module != static ; then
2474 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2476 if test $ol_with_monitor_module != static ; then
2477 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2479 if test $ol_with_passwd_module != static ; then
2480 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2482 if test $ol_with_perl_module != static ; then
2483 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2485 if test $ol_with_shell_module != static ; then
2486 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2488 if test $ol_with_tcl_module != static ; then
2489 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2491 if test $ol_with_sql_module != static ; then
2492 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2494 if test $ol_enable_slurpd = yes ; then
2495 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2497 if test $ol_enable_rewrite = yes ; then
2498 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2501 # force settings to no
2507 ol_enable_monitor=no
2514 ol_enable_modules=no
2515 ol_enable_phonetic=no
2516 ol_enable_rlookups=no
2518 ol_enable_wrappers=no
2519 ol_enable_dynamic=no
2522 ol_with_ldbm_type=no
2524 ol_with_bdb_module=static
2525 ol_with_dnssrv_module=static
2526 ol_with_ldap_module=static
2527 ol_with_ldbm_module=static
2528 ol_with_meta_module=static
2529 ol_with_monitor_module=static
2530 ol_with_passwd_module=static
2531 ol_with_perl_module=static
2532 ol_with_shell_module=static
2533 ol_with_tcl_module=static
2534 ol_with_sql_module=static
2538 ol_enable_rewrite=no
2540 elif test $ol_enable_ldbm = no ; then
2542 if test $ol_with_ldbm_api != auto ; then
2543 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2546 if test $ol_with_ldbm_type != auto ; then
2547 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2550 if test $ol_with_ldbm_module != static ; then
2551 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2554 if test $ol_enable_modules != yes -a \
2555 $ol_enable_bdb = no -a \
2556 $ol_enable_dnssrv = no -a \
2557 $ol_enable_ldap = no -a \
2558 $ol_enable_meta = no -a \
2559 $ol_enable_monitor = no -a \
2560 $ol_enable_passwd = no -a \
2561 $ol_enable_perl = no -a \
2562 $ol_enable_shell = no -a \
2563 $ol_enable_sql = no -a \
2564 $ol_enable_tcl = no ; then
2566 if test $ol_enable_slapd = yes ; then
2567 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2569 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2575 ol_with_ldbm_type=no
2576 ol_with_ldbm_module=static
2578 if test $ol_enable_bdb != no ; then
2579 ol_with_ldbm_api=berkeley
2583 if test $ol_with_ldbm_api = gdbm -a \
2584 $ol_with_ldbm_type = btree ; then
2585 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2587 if test $ol_with_ldbm_api = mdbm -a \
2588 $ol_with_ldbm_type = btree ; then
2589 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2591 if test $ol_with_ldbm_api = ndbm -a \
2592 $ol_with_ldbm_type = btree ; then
2593 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2596 if test $ol_enable_bdb = yes ; then
2597 if test $ol_with_ldbm_api = auto ; then
2598 ol_with_ldbm_api=berkeley
2599 elif test $ol_with_ldbm_api != berkeley ; then
2600 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2603 elif test $ol_enable_bdb = auto ; then
2604 if test $ol_with_ldbm_api != berkeley \
2605 -o $ol_with_ldbm_api != auto ; then
2606 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2612 if test $ol_enable_slurpd = yes ; then
2613 if test $ol_with_threads = no ; then
2614 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2618 if test $ol_enable_lmpasswd = yes ; then
2619 if test $ol_with_tls = no ; then
2620 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2624 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2625 if test $ol_with_kerberos = no ; then
2626 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2627 elif test $ol_with_kerberos = auto ; then
2628 ol_with_kerberos=yes
2631 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2632 if test $ol_with_kerberos = auto ; then
2634 elif test $ol_with_kerberos != no ; then
2635 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2640 if test $ol_enable_spasswd = yes ; then
2641 if test $ol_with_cyrus_sasl = no ; then
2642 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2644 ol_with_cyrus_sasl=yes
2647 echo "$ac_t""done" 1>&6
2676 BUILD_BDB_DYNAMIC=static
2677 BUILD_DNSSRV_DYNAMIC=static
2678 BUILD_LDAP_DYNAMIC=static
2679 BUILD_LDBM_DYNAMIC=static
2680 BUILD_META_DYNAMIC=static
2681 BUILD_MONITOR_DYNAMIC=static
2682 BUILD_PASSWD_DYNAMIC=static
2683 BUILD_PERL_DYNAMIC=static
2684 BUILD_SHELL_DYNAMIC=static
2685 BUILD_TCL_DYNAMIC=static
2686 BUILD_SQL_DYNAMIC=static
2688 SLAPD_MODULES_LDFLAGS=
2689 SLAPD_MODULES_CPPFLAGS=
2692 SLAPD_STATIC_BACKENDS=
2693 SLAPD_DYNAMIC_BACKENDS=
2717 cat >> confdefs.h <<\EOF
2718 #define HAVE_MKVERSION 1
2726 *-*-aix*) if test -z "$CC" ; then
2727 case "$ol_with_threads" in
2728 auto | yes | posix) ol_aix_threads=yes ;;
2734 if test $ol_aix_threads = yes ; then
2735 if test -z "${CC}" ; then
2736 for ac_prog in cc_r xlc_r cc
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_word" >&5
2742 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2750 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 if test -f $ac_dir/$ac_word; then
2753 ac_cv_prog_CC="$ac_prog"
2761 if test -n "$CC"; then
2762 echo "$ac_t""$CC" 1>&6
2764 echo "$ac_t""no" 1>&6
2767 test -n "$CC" && break
2771 if test "$CC" = cc ; then
2772 if test $ol_with_threads != auto ; then
2773 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2775 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2781 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2782 ol_with_threads=posix
2783 ol_cv_pthread_create=yes
2787 if test -z "${CC}"; then
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_word" >&5
2794 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2805 ac_cv_prog_CC="$ac_prog"
2813 if test -n "$CC"; then
2814 echo "$ac_t""$CC" 1>&6
2816 echo "$ac_t""no" 1>&6
2819 test -n "$CC" && break
2825 for ac_prog in ar gar
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_word" >&5
2831 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 if test -n "$AR"; then
2835 ac_cv_prog_AR="$AR" # Let the user override the test.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2839 for ac_dir in $ac_dummy; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_prog_AR="$ac_prog"
2850 if test -n "$AR"; then
2851 echo "$ac_t""$AR" 1>&6
2853 echo "$ac_t""no" 1>&6
2856 test -n "$AR" && break
2858 test -n "$AR" || AR="ar"
2863 # Check whether --enable-fast-install or --disable-fast-install was given.
2864 if test "${enable_fast_install+set}" = set; then
2865 enableval="$enable_fast_install"
2866 p=${PACKAGE-default}
2867 case "$enableval" in
2868 yes) enable_fast_install=yes ;;
2869 no) enable_fast_install=no ;;
2871 enable_fast_install=no
2872 # Look at the argument we got. We use all the common list separators.
2873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2874 for pkg in $enableval; do
2875 if test "X$pkg" = "X$p"; then
2876 enable_fast_install=yes
2883 enable_fast_install=yes
2886 # Extract the first word of "ranlib", so it can be a program name with args.
2887 set dummy ranlib; ac_word=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 if test -n "$RANLIB"; then
2894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2898 for ac_dir in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_prog_RANLIB="ranlib"
2906 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2909 RANLIB="$ac_cv_prog_RANLIB"
2910 if test -n "$RANLIB"; then
2911 echo "$ac_t""$RANLIB" 1>&6
2913 echo "$ac_t""no" 1>&6
2916 # Extract the first word of "gcc", so it can be a program name with args.
2917 set dummy gcc; ac_word=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2939 if test -n "$CC"; then
2940 echo "$ac_t""$CC" 1>&6
2942 echo "$ac_t""no" 1>&6
2945 if test -z "$CC"; then
2946 # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2959 for ac_dir in $ac_dummy; do
2960 test -z "$ac_dir" && ac_dir=.
2961 if test -f $ac_dir/$ac_word; then
2962 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2963 ac_prog_rejected=yes
2971 if test $ac_prog_rejected = yes; then
2972 # We found a bogon in the path, so make sure we never use it.
2973 set dummy $ac_cv_prog_CC
2975 if test $# -gt 0; then
2976 # We chose a different compiler from the bogus one.
2977 # However, it has the same basename, so the bogon will be chosen
2978 # first if we set CC to just the basename; use the full file name.
2980 set dummy "$ac_dir/$ac_word" "$@"
2988 if test -n "$CC"; then
2989 echo "$ac_t""$CC" 1>&6
2991 echo "$ac_t""no" 1>&6
2994 if test -z "$CC"; then
2995 case "`uname -s`" in
2996 *win32* | *WIN32* | *CYGWIN*)
2997 # Extract the first word of "cl", so it can be a program name with args.
2998 set dummy cl; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 for ac_dir in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir=.
3011 if test -f $ac_dir/$ac_word; then
3020 if test -n "$CC"; then
3021 echo "$ac_t""$CC" 1>&6
3023 echo "$ac_t""no" 1>&6
3028 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3032 echo "configure:3033: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3039 cross_compiling=$ac_cv_prog_cc_cross
3041 cat > conftest.$ac_ext << EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 ac_cv_prog_cc_works=yes
3050 # If we can't run a trivial program, we are probably using a cross compiler.
3051 if (./conftest; exit) 2>/dev/null; then
3052 ac_cv_prog_cc_cross=no
3054 ac_cv_prog_cc_cross=yes
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 ac_cv_prog_cc_works=no
3063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3064 ac_cpp='$CPP $CPPFLAGS'
3065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3067 cross_compiling=$ac_cv_prog_cc_cross
3069 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3070 if test $ac_cv_prog_cc_works = no; then
3071 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3073 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3074 echo "configure:3075: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3075 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3076 cross_compiling=$ac_cv_prog_cc_cross
3078 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3079 echo "configure:3080: checking whether we are using GNU C" >&5
3080 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.c <<EOF
3088 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3095 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3097 if test $ac_cv_prog_gcc = yes; then
3103 ac_test_CFLAGS="${CFLAGS+set}"
3104 ac_save_CFLAGS="$CFLAGS"
3106 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3107 echo "configure:3108: checking whether ${CC-cc} accepts -g" >&5
3108 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 echo 'void f(){}' > conftest.c
3112 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3121 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3122 if test "$ac_test_CFLAGS" = set; then
3123 CFLAGS="$ac_save_CFLAGS"
3124 elif test $ac_cv_prog_cc_g = yes; then
3125 if test "$GCC" = yes; then
3131 if test "$GCC" = yes; then
3138 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3139 if test "${with_gnu_ld+set}" = set; then
3140 withval="$with_gnu_ld"
3141 test "$withval" = no || with_gnu_ld=yes
3147 if test "$ac_cv_prog_gcc" = yes; then
3148 # Check if gcc -print-prog-name=ld gives a path.
3149 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3150 echo "configure:3151: checking for ld used by GCC" >&5
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3153 # Accept absolute paths.
3154 [\\/]* | [A-Za-z]:[\\/]*)
3155 re_direlt='/[^/][^/]*/\.\./'
3156 # Canonicalize the path of ld
3157 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3159 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3161 test -z "$LD" && LD="$ac_prog"
3164 # If it fails, then pretend we aren't using GCC.
3168 # If it is relative, then search for the first ld in PATH.
3172 elif test "$with_gnu_ld" = yes; then
3173 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3174 echo "configure:3175: checking for GNU ld" >&5
3176 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3177 echo "configure:3178: checking for non-GNU ld" >&5
3179 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 if test -z "$LD"; then
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3184 for ac_dir in $PATH; do
3185 test -z "$ac_dir" && ac_dir=.
3186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3187 ac_cv_path_LD="$ac_dir/$ac_prog"
3188 # Check to see if the program is GNU ld. I'd rather use --version,
3189 # but apparently some GNU ld's only accept -v.
3190 # Break only if it was the GNU/non-GNU ld that we prefer.
3191 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3192 test "$with_gnu_ld" != no && break
3194 test "$with_gnu_ld" != yes && break
3200 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3205 if test -n "$LD"; then
3206 echo "$ac_t""$LD" 1>&6
3208 echo "$ac_t""no" 1>&6
3210 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3211 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3212 echo "configure:3213: checking if the linker ($LD) is GNU ld" >&5
3213 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3217 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3218 ac_cv_prog_gnu_ld=yes
3220 ac_cv_prog_gnu_ld=no
3224 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3227 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3228 echo "configure:3229: checking for BSD-compatible nm" >&5
3229 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 if test -n "$NM"; then
3233 # Let the user override the test.
3236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3237 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3238 test -z "$ac_dir" && ac_dir=.
3239 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3240 # Check to see if the nm accepts a BSD-compat flag.
3241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3242 # nm: unknown option "B" ignored
3243 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3244 ac_cv_path_NM="$ac_dir/nm -B"
3246 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3247 ac_cv_path_NM="$ac_dir/nm -p"
3250 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3251 continue # so that we can try to find one that supports BSD flags
3256 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3261 echo "$ac_t""$NM" 1>&6
3263 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether ln -s works" >&5
3265 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3269 if ln -s X conftestdata 2>/dev/null
3272 ac_cv_prog_LN_S="ln -s"
3277 LN_S="$ac_cv_prog_LN_S"
3278 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3279 echo "$ac_t""yes" 1>&6
3281 echo "$ac_t""no" 1>&6
3284 if test $host != $build; then
3285 ac_tool_prefix=${host_alias}-
3292 NONE) lt_target="$host" ;;
3293 *) lt_target="$target" ;;
3296 # Check for any special flags to pass to ltconfig.
3297 libtool_flags="--cache-file=$cache_file"
3298 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3299 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3300 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3301 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3302 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3303 libtool_flags="$libtool_flags --enable-dlopen"
3304 libtool_flags="$libtool_flags --enable-win32-dll"
3305 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3306 if test "${enable_libtool_lock+set}" = set; then
3307 enableval="$enable_libtool_lock"
3311 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3312 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3314 # Some flags need to be propagated to the compiler or linker for good
3316 case "$lt_target" in
3318 # Find out which ABI we are using.
3319 echo '#line 3320 "configure"' > conftest.$ac_ext
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321 case "`/usr/bin/file conftest.o`" in
3337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3338 SAVE_CFLAGS="$CFLAGS"
3339 CFLAGS="$CFLAGS -belf"
3340 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3341 echo "configure:3342: checking whether the C compiler needs -belf" >&5
3342 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 lt_cv_cc_needs_belf=yes
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 lt_cv_cc_needs_belf=no
3365 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3366 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3367 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3368 CFLAGS="$SAVE_CFLAGS"
3372 *-*-cygwin* | *-*-mingw*)
3373 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3374 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 if test -n "$DLLTOOL"; then
3381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3395 DLLTOOL="$ac_cv_prog_DLLTOOL"
3396 if test -n "$DLLTOOL"; then
3397 echo "$ac_t""$DLLTOOL" 1>&6
3399 echo "$ac_t""no" 1>&6
3403 if test -z "$ac_cv_prog_DLLTOOL"; then
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "dlltool", so it can be a program name with args.
3406 set dummy dlltool; ac_word=$2
3407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3408 echo "configure:3409: checking for $ac_word" >&5
3409 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 if test -n "$DLLTOOL"; then
3413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 for ac_dir in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir=.
3419 if test -f $ac_dir/$ac_word; then
3420 ac_cv_prog_DLLTOOL="dlltool"
3425 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3428 DLLTOOL="$ac_cv_prog_DLLTOOL"
3429 if test -n "$DLLTOOL"; then
3430 echo "$ac_t""$DLLTOOL" 1>&6
3432 echo "$ac_t""no" 1>&6
3440 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}as; ac_word=$2
3442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_word" >&5
3444 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 if test -n "$AS"; then
3448 ac_cv_prog_AS="$AS" # Let the user override the test.
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3452 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_prog_AS="${ac_tool_prefix}as"
3463 if test -n "$AS"; then
3464 echo "$ac_t""$AS" 1>&6
3466 echo "$ac_t""no" 1>&6
3470 if test -z "$ac_cv_prog_AS"; then
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "as", so it can be a program name with args.
3473 set dummy as; ac_word=$2
3474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3475 echo "configure:3476: checking for $ac_word" >&5
3476 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 if test -n "$AS"; then
3480 ac_cv_prog_AS="$AS" # Let the user override the test.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/$ac_word; then
3492 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3496 if test -n "$AS"; then
3497 echo "$ac_t""$AS" 1>&6
3499 echo "$ac_t""no" 1>&6
3507 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 if test -n "$OBJDUMP"; then
3515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 for ac_dir in $ac_dummy; do
3520 test -z "$ac_dir" && ac_dir=.
3521 if test -f $ac_dir/$ac_word; then
3522 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3529 OBJDUMP="$ac_cv_prog_OBJDUMP"
3530 if test -n "$OBJDUMP"; then
3531 echo "$ac_t""$OBJDUMP" 1>&6
3533 echo "$ac_t""no" 1>&6
3537 if test -z "$ac_cv_prog_OBJDUMP"; then
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "objdump", so it can be a program name with args.
3540 set dummy objdump; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 if test -n "$OBJDUMP"; then
3547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if test -f $ac_dir/$ac_word; then
3554 ac_cv_prog_OBJDUMP="objdump"
3559 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3562 OBJDUMP="$ac_cv_prog_OBJDUMP"
3563 if test -n "$OBJDUMP"; then
3564 echo "$ac_t""$OBJDUMP" 1>&6
3566 echo "$ac_t""no" 1>&6
3579 # Save cache, so that ltconfig can load it
3582 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3583 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3584 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3585 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3586 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3587 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3588 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3589 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3591 # Reload cache, that may have been modified by ltconfig
3594 # This can be used to rebuild libtool when needed
3595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3597 # Always use our own libtool.
3598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3600 # Redirect the config.log output again, so that the ltconfig log is not
3601 # clobbered by the next message.
3602 exec 5>>./config.log
3605 for ac_prog in mawk gawk nawk awk
3607 # Extract the first word of "$ac_prog", so it can be a program name with args.
3608 set dummy $ac_prog; ac_word=$2
3609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_word" >&5
3611 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 if test -n "$AWK"; then
3615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if test -f $ac_dir/$ac_word; then
3622 ac_cv_prog_AWK="$ac_prog"
3629 AWK="$ac_cv_prog_AWK"
3630 if test -n "$AWK"; then
3631 echo "$ac_t""$AWK" 1>&6
3633 echo "$ac_t""no" 1>&6
3636 test -n "$AWK" && break
3639 # test for ln hardlink support
3640 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3641 echo "configure:3642: checking whether ln works" >&5
3642 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 rm -f conftest.src conftest.dst
3646 echo "conftest" > conftest.src
3647 if ln conftest.src conftest.dst 2>/dev/null
3649 ol_cv_prog_LN_H="ln"
3651 ol_cv_prog_LN_H="cp"
3653 rm -f conftest.src conftest.dst
3656 LN_H="$ol_cv_prog_LN_H"
3657 if test "$ol_cv_prog_LN_H" = "ln"; then
3658 echo "$ac_t""yes" 1>&6
3660 echo "$ac_t""no" 1>&6
3663 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether ln -s works" >&5
3665 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3669 if ln -s X conftestdata 2>/dev/null
3672 ac_cv_prog_LN_S="ln -s"
3677 LN_S="$ac_cv_prog_LN_S"
3678 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3679 echo "$ac_t""yes" 1>&6
3681 echo "$ac_t""no" 1>&6
3685 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3689 # Extract the first word of "sendmail", so it can be a program name with args.
3690 set dummy sendmail; ac_word=$2
3691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $ac_word" >&5
3693 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3701 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3705 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3706 for ac_dir in $ac_dummy; do
3707 test -z "$ac_dir" && ac_dir=.
3708 if test -f $ac_dir/$ac_word; then
3709 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3714 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3718 SENDMAIL="$ac_cv_path_SENDMAIL"
3719 if test -n "$SENDMAIL"; then
3720 echo "$ac_t""$SENDMAIL" 1>&6
3722 echo "$ac_t""no" 1>&6
3725 # Extract the first word of "vi", so it can be a program name with args.
3726 set dummy vi; ac_word=$2
3727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_word" >&5
3729 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3734 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3737 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3741 ac_dummy="$PATH:/usr/ucb"
3742 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 if test -f $ac_dir/$ac_word; then
3745 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3750 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3754 EDITOR="$ac_cv_path_EDITOR"
3755 if test -n "$EDITOR"; then
3756 echo "$ac_t""$EDITOR" 1>&6
3758 echo "$ac_t""no" 1>&6
3761 # Extract the first word of "finger", so it can be a program name with args.
3762 set dummy finger; ac_word=$2
3763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_word" >&5
3765 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3773 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3777 ac_dummy="$PATH:/usr/ucb"
3778 for ac_dir in $ac_dummy; do
3779 test -z "$ac_dir" && ac_dir=.
3780 if test -f $ac_dir/$ac_word; then
3781 ac_cv_path_FINGER="$ac_dir/$ac_word"
3786 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3790 FINGER="$ac_cv_path_FINGER"
3791 if test -n "$FINGER"; then
3792 echo "$ac_t""$FINGER" 1>&6
3794 echo "$ac_t""no" 1>&6
3799 if test $ol_enable_perl != no ; then
3800 # Extract the first word of "perl", so it can be a program name with args.
3801 set dummy perl; ac_word=$2
3802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_word" >&5
3804 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3809 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3812 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3817 for ac_dir in $ac_dummy; do
3818 test -z "$ac_dir" && ac_dir=.
3819 if test -f $ac_dir/$ac_word; then
3820 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3825 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3829 PERLBIN="$ac_cv_path_PERLBIN"
3830 if test -n "$PERLBIN"; then
3831 echo "$ac_t""$PERLBIN" 1>&6
3833 echo "$ac_t""no" 1>&6
3837 if test "no$PERLBIN" = "no" ; then
3838 if test $ol_enable_perl = yes ; then
3839 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3843 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3844 if test x"$ol_with_perl_module" = "xstatic" ; then
3845 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3847 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3853 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3854 echo "configure:3855: checking how to run the C preprocessor" >&5
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3859 if test -z "$CPP"; then
3860 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 # This must be in double quotes, not single quotes, because CPP may get
3864 # substituted into the Makefile and "${CC-cc}" will confuse make.
3866 # On the NeXT, cc -E runs the code through the compiler's parser,
3867 # not just through cpp.
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 CPP="${CC-cc} -E -traditional-cpp"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3892 { (eval echo configure:3893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3894 if test -z "$ac_err"; then
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 CPP="${CC-cc} -nologo -E"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3909 { (eval echo configure:3910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3911 if test -z "$ac_err"; then
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3925 ac_cv_prog_CPP="$CPP"
3927 CPP="$ac_cv_prog_CPP"
3929 ac_cv_prog_CPP="$CPP"
3931 echo "$ac_t""$CPP" 1>&6
3934 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3935 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3937 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3938 echo "configure: warning: programs compiled here do run here..." 1>&2
3939 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3941 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3942 echo "configure: warning: programs compiled here do not run here..." 1>&2
3943 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3946 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3947 echo "configure:3948: checking for AIX" >&5
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 egrep "yes" >/dev/null 2>&1; then
3959 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3960 #define _ALL_SOURCE 1
3965 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3971 echo "configure:3972: checking for POSIXized ISC" >&5
3972 if test -d /etc/conf/kconfig.d &&
3973 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3975 echo "$ac_t""yes" 1>&6
3976 ISC=yes # If later tests want to check for ISC.
3977 cat >> confdefs.h <<\EOF
3978 #define _POSIX_SOURCE 1
3981 if test "$GCC" = yes; then
3987 echo "$ac_t""no" 1>&6
3991 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3992 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3993 echo "configure:3994: checking for minix/config.h" >&5
3994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <minix/config.h>
4002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4003 { (eval echo configure:4004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4005 if test -z "$ac_err"; then
4007 eval "ac_cv_header_$ac_safe=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 eval "ac_cv_header_$ac_safe=no"
4017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 echo "$ac_t""no" 1>&6
4025 if test "$MINIX" = yes; then
4026 cat >> confdefs.h <<\EOF
4027 #define _POSIX_SOURCE 1
4030 cat >> confdefs.h <<\EOF
4031 #define _POSIX_1_SOURCE 2
4034 cat >> confdefs.h <<\EOF
4041 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4042 echo "configure:4043: checking for Cygwin environment" >&5
4043 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4053 #define __CYGWIN__ __CYGWIN32__
4058 if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4070 echo "$ac_t""$ac_cv_cygwin" 1>&6
4072 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4073 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4074 echo "configure:4075: checking for mingw32 environment" >&5
4075 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4098 echo "$ac_t""$ac_cv_mingw32" 1>&6
4100 test "$ac_cv_mingw32" = yes && MINGW32=yes
4101 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4102 echo "configure:4103: checking for EMX OS/2 environment" >&5
4103 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4114 if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4126 echo "$ac_t""$ac_cv_emxos2" 1>&6
4128 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4132 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4133 echo "configure:4134: checking for executable suffix" >&5
4134 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4141 echo 'int main () { return 0; }' > conftest.$ac_ext
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4144 for file in conftest.*; do
4146 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4147 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4151 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4154 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4159 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4160 echo "$ac_t""${ac_cv_exeext}" 1>&6
4163 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4164 echo "configure:4165: checking for object suffix" >&5
4165 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4169 echo 'int i = 1;' > conftest.$ac_ext
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 for ac_file in conftest.*; do
4174 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4178 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4183 echo "$ac_t""$ac_cv_objext" 1>&6
4184 OBJEXT=$ac_cv_objext
4185 ac_objext=$ac_cv_objext
4188 cat >> confdefs.h <<EOF
4189 #define EXEEXT "${EXEEXT}"
4193 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4194 echo "configure:4195: checking for be_app in -lbe" >&5
4195 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 ac_save_LIBS="$LIBS"
4200 LIBS="-lbe -lroot -lnet $LIBS"
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 eval "ac_cv_lib_$ac_lib_var=no"
4223 LIBS="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 LIBS="$LIBS -lbe -lroot -lnet"
4230 echo "$ac_t""no" 1>&6
4238 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4239 echo "configure:4240: checking for ${CC-cc} option to accept ANSI C" >&5
4240 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 am_cv_prog_cc_stdc=no
4245 # Don't try gcc -ansi; that turns off useful extensions and
4246 # breaks some systems' header files.
4247 # AIX -qlanglvl=ansi
4248 # Ultrix and OSF/1 -std1
4249 # HP-UX 10.20 and later -Ae
4250 # HP-UX older versions -Aa -D_HPUX_SOURCE
4251 # SVR4 -Xc -D__EXTENSIONS__
4252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 CC="$ac_save_CC $ac_arg"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 #include <sys/types.h>
4261 #include <sys/stat.h>
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4276 s = g (p, va_arg (v,int));
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 if { (eval echo configure:4294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4295 am_cv_prog_cc_stdc="$ac_arg"; break
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4306 if test -z "$am_cv_prog_cc_stdc"; then
4307 echo "$ac_t""none needed" 1>&6
4309 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4311 case "x$am_cv_prog_cc_stdc" in
4313 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4316 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4317 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4320 # test for make depend flag
4323 if test -z "${MKDEP}"; then
4325 if test -z "${MKDEP_FLAGS}"; then
4326 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4327 echo "configure:4328: checking for ${OL_MKDEP} depend flag" >&5
4328 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4333 for flag in "-M" "-xM"; do
4334 cat > conftest.c <<EOF
4337 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4338 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4340 if test ! -f conftest."${ac_object}" ; then
4342 OL_MKDEP_FLAGS="$flag"
4351 echo "$ac_t""$ol_cv_mkdep" 1>&6
4354 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4359 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4364 if test "${ol_cv_mkdep}" = no ; then
4365 # this will soon become an error
4366 echo "configure: warning: do not know how to generate dependencies" 1>&2
4369 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4370 echo "configure:4371: checking for afopen in -ls" >&5
4371 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS="$LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4406 cat >> confdefs.h <<\EOF
4407 #define HAVE_AIX_SECURITY 1
4412 echo "$ac_t""no" 1>&6
4418 if test $ol_enable_modules != no ; then
4419 for ac_hdr in ltdl.h
4421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_hdr" >&5
4424 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4433 { (eval echo configure:4434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4435 if test -z "$ac_err"; then
4437 eval "ac_cv_header_$ac_safe=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_header_$ac_safe=no"
4447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_hdr 1
4455 echo "$ac_t""no" 1>&6
4460 if test $ac_cv_header_ltdl_h = no ; then
4461 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4464 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4465 echo "configure:4466: checking for lt_dlinit in -lltdl" >&5
4466 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 ac_save_LIBS="$LIBS"
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4494 LIBS="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4501 cat >> confdefs.h <<\EOF
4502 #define HAVE_LIBLTDL 1
4507 echo "$ac_t""no" 1>&6
4511 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4512 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4516 ol_with_bdb_module=static
4517 ol_with_dnssrv_module=static
4518 ol_with_ldap_module=static
4519 ol_with_ldbm_module=static
4520 ol_with_meta_module=static
4521 ol_with_monitor_module=static
4522 ol_with_passwd_module=static
4523 ol_with_perl_module=static
4524 ol_with_shell_module=static
4525 ol_with_tcl_module=static
4526 ol_with_sql_module=static
4530 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4531 echo "configure:4532: checking for EBCDIC" >&5
4532 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 #include <__ASCII__/generate_error.h>
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4550 ol_cv_cpp_ebcdic=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4561 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4562 if test $ol_cv_cpp_ebcdic = yes ; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_EBCDIC 1
4569 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4570 echo "configure:4571: checking for ANSI C header files" >&5
4571 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4583 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4585 if test -z "$ac_err"; then
4587 ol_cv_header_stdc=yes
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 ol_cv_header_stdc=no
4597 if test $ol_cv_header_stdc = yes; then
4598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 egrep "memchr" >/dev/null 2>&1; then
4609 ol_cv_header_stdc=no
4615 if test $ol_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 egrep "free" >/dev/null 2>&1; then
4627 ol_cv_header_stdc=no
4633 if test $ol_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652 int main () { int i; for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 ol_cv_header_stdc=no
4672 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4673 if test $ol_cv_header_stdc = yes; then
4674 cat >> confdefs.h <<\EOF
4675 #define STDC_HEADERS 1
4679 ac_cv_header_stdc=disable
4682 if test $ol_cv_header_stdc != yes; then
4683 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_hdr that defines DIR" >&5
4692 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <sys/types.h>
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4706 eval "ac_cv_header_dirent_$ac_safe=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_header_dirent_$ac_safe=no"
4715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4718 cat >> confdefs.h <<EOF
4719 #define $ac_tr_hdr 1
4721 ac_header_dirent=$ac_hdr; break
4723 echo "$ac_t""no" 1>&6
4726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4727 if test $ac_header_dirent = dirent.h; then
4728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4729 echo "configure:4730: checking for opendir in -ldir" >&5
4730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS="$LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4765 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4770 echo "configure:4771: checking for opendir in -lx" >&5
4771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4772 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4806 echo "$ac_t""no" 1>&6
4811 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4812 echo "configure:4813: checking for sys/wait.h that is POSIX.1 compatible" >&5
4813 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 #include <sys/types.h>
4820 #include <sys/wait.h>
4822 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4825 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4830 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 ac_cv_header_sys_wait_h=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 ac_cv_header_sys_wait_h=no
4845 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4846 if test $ac_cv_header_sys_wait_h = yes; then
4847 cat >> confdefs.h <<\EOF
4848 #define HAVE_SYS_WAIT_H 1
4853 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4854 echo "configure:4855: checking POSIX termios" >&5
4855 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 #include <sys/types.h>
4863 #include <termios.h>
4865 /* SunOS 4.0.3 has termios.h but not the library calls. */
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 am_cv_sys_posix_termios=yes
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 am_cv_sys_posix_termios=no
4881 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4884 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4885 echo "configure:4886: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4886 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4891 gwinsz_in_termios_h=no
4892 if test $am_cv_sys_posix_termios = yes; then
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <sys/types.h>
4897 # include <termios.h>
4903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4904 egrep "yes" >/dev/null 2>&1; then
4906 gwinsz_in_termios_h=yes
4912 if test $gwinsz_in_termios_h = no; then
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <sys/types.h>
4917 # include <sys/ioctl.h>
4923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4924 egrep "yes" >/dev/null 2>&1; then
4926 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4934 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4935 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4936 cat >> confdefs.h <<\EOF
4937 #define GWINSZ_IN_SYS_IOCTL 1
4942 if test $am_cv_sys_posix_termios = yes ; then
4943 cat >> confdefs.h <<\EOF
4944 #define HAVE_POSIX_TERMIOS 1
4997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4999 echo "configure:5000: checking for $ac_hdr" >&5
5000 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5009 { (eval echo configure:5010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5011 if test -z "$ac_err"; then
5013 eval "ac_cv_header_$ac_safe=yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 eval "ac_cv_header_$ac_safe=no"
5023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5026 cat >> confdefs.h <<EOF
5027 #define $ac_tr_hdr 1
5031 echo "$ac_t""no" 1>&6
5038 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5039 echo "configure:5040: checking for dlopen" >&5
5040 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* System header to define __stub macros and hopefully few prototypes,
5047 which can conflict with char dlopen(); below. */
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5057 /* The GNU C library defines this for functions which it implements
5058 to always fail with ENOSYS. Some functions are actually named
5059 something starting with __ and the normal name is an alias. */
5060 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 eval "ac_cv_func_dlopen=yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 eval "ac_cv_func_dlopen=no"
5080 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5084 echo "$ac_t""no" 1>&6
5085 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5086 echo "configure:5087: checking for dlopen in -ldl" >&5
5087 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5088 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 ac_save_LIBS="$LIBS"
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 eval "ac_cv_lib_$ac_lib_var=yes"
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5112 eval "ac_cv_lib_$ac_lib_var=no"
5115 LIBS="$ac_save_LIBS"
5118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5120 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5122 cat >> confdefs.h <<EOF
5123 #define $ac_tr_lib 1
5129 echo "$ac_t""no" 1>&6
5135 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5136 echo "configure:5137: checking for sigset in -lV3" >&5
5137 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5138 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5139 echo $ac_n "(cached) $ac_c" 1>&6
5141 ac_save_LIBS="$LIBS"
5143 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 /* Override any gcc2 internal prototype to avoid an error. */
5147 /* We use char because int might match the return type of a gcc2
5148 builtin and then its argument prototype would still apply. */
5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5157 eval "ac_cv_lib_$ac_lib_var=yes"
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5162 eval "ac_cv_lib_$ac_lib_var=no"
5165 LIBS="$ac_save_LIBS"
5168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5169 echo "$ac_t""yes" 1>&6
5170 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5172 cat >> confdefs.h <<EOF
5173 #define $ac_tr_lib 1
5179 echo "$ac_t""no" 1>&6
5183 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5184 echo "configure:5185: checking for winsock" >&5
5186 for curlib in ws2_32 wsock32; do
5187 LIBS="$LIBS -l$curlib"
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5194 char closesocket@4();
5195 char gethostname@8();
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5217 if test $have_winsock = yes; then
5218 cat >> confdefs.h <<\EOF
5219 #define HAVE_WINSOCK 1
5222 ac_cv_func_socket=yes
5223 ac_cv_func_select=yes
5224 ac_cv_func_closesocket=yes
5225 ac_cv_func_gethostname=yes
5226 if test $curlib = ws2_32; then
5227 have_winsock=winsock2
5228 cat >> confdefs.h <<\EOF
5229 #define HAVE_WINSOCK2 1
5237 echo "$ac_t""$have_winsock" 1>&6
5240 echo $ac_n "checking for socket""... $ac_c" 1>&6
5241 echo "configure:5242: checking for socket" >&5
5242 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248 /* System header to define __stub macros and hopefully few prototypes,
5249 which can conflict with char socket(); below. */
5251 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5259 /* The GNU C library defines this for functions which it implements
5260 to always fail with ENOSYS. Some functions are actually named
5261 something starting with __ and the normal name is an alias. */
5262 #if defined (__stub_socket) || defined (__stub___socket)
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5272 eval "ac_cv_func_socket=yes"
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 eval "ac_cv_func_socket=no"
5282 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5283 echo "$ac_t""yes" 1>&6
5286 echo "$ac_t""no" 1>&6
5288 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5289 echo "configure:5290: checking for main in -lsocket" >&5
5290 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5291 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 ac_save_LIBS="$LIBS"
5295 LIBS="-lsocket $LIBS"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5314 LIBS="$ac_save_LIBS"
5317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5321 cat >> confdefs.h <<EOF
5322 #define $ac_tr_lib 1
5325 LIBS="-lsocket $LIBS"
5328 echo "$ac_t""no" 1>&6
5331 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5332 echo "configure:5333: checking for main in -lnet" >&5
5333 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 ac_save_LIBS="$LIBS"
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349 eval "ac_cv_lib_$ac_lib_var=yes"
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 eval "ac_cv_lib_$ac_lib_var=no"
5357 LIBS="$ac_save_LIBS"
5360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5361 echo "$ac_t""yes" 1>&6
5362 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5364 cat >> confdefs.h <<EOF
5365 #define $ac_tr_lib 1
5371 echo "$ac_t""no" 1>&6
5374 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5375 echo "configure:5376: checking for main in -lnsl_s" >&5
5376 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5377 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5380 ac_save_LIBS="$LIBS"
5381 LIBS="-lnsl_s $LIBS"
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 eval "ac_cv_lib_$ac_lib_var=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 eval "ac_cv_lib_$ac_lib_var=no"
5400 LIBS="$ac_save_LIBS"
5403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5407 cat >> confdefs.h <<EOF
5408 #define $ac_tr_lib 1
5411 LIBS="-lnsl_s $LIBS"
5414 echo "$ac_t""no" 1>&6
5417 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5418 echo "configure:5419: checking for main in -lnsl" >&5
5419 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 ac_save_LIBS="$LIBS"
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 eval "ac_cv_lib_$ac_lib_var=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 eval "ac_cv_lib_$ac_lib_var=no"
5443 LIBS="$ac_save_LIBS"
5446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5450 cat >> confdefs.h <<EOF
5451 #define $ac_tr_lib 1
5457 echo "$ac_t""no" 1>&6
5460 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5461 echo "configure:5462: checking for socket in -linet" >&5
5462 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 ac_save_LIBS="$LIBS"
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5482 eval "ac_cv_lib_$ac_lib_var=yes"
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 eval "ac_cv_lib_$ac_lib_var=no"
5490 LIBS="$ac_save_LIBS"
5493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5495 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5497 cat >> confdefs.h <<EOF
5498 #define $ac_tr_lib 1
5504 echo "$ac_t""no" 1>&6
5507 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5508 echo "configure:5509: checking for main in -lgen" >&5
5509 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5510 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 ac_save_LIBS="$LIBS"
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 eval "ac_cv_lib_$ac_lib_var=yes"
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 eval "ac_cv_lib_$ac_lib_var=no"
5533 LIBS="$ac_save_LIBS"
5536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5537 echo "$ac_t""yes" 1>&6
5538 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5539 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5540 cat >> confdefs.h <<EOF
5541 #define $ac_tr_lib 1
5547 echo "$ac_t""no" 1>&6
5554 echo $ac_n "checking for select""... $ac_c" 1>&6
5555 echo "configure:5556: checking for select" >&5
5556 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char select(); below. */
5565 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_select) || defined (__stub___select)
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_func_select=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_func_select=no"
5596 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5600 echo "$ac_t""no" 1>&6
5601 { echo "configure: error: select() required." 1>&2; exit 1; }
5605 if test "${ac_cv_header_winsock_h}" != yes; then
5606 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5607 echo "configure:5608: checking types of arguments for select()" >&5
5608 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5618 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5619 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 #ifdef HAVE_SYS_TYPES_H
5624 #include <sys/types.h>
5626 #ifdef HAVE_SYS_TIME_H
5627 #include <sys/time.h>
5629 #ifdef HAVE_SYS_SELECT_H
5630 #include <sys/select.h>
5632 #ifdef HAVE_SYS_SOCKET_H
5633 #include <sys/socket.h>
5635 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);
5640 if { (eval echo configure:5641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5642 ac_not_found=no ; break 3
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5659 if test "$ac_not_found" = yes; then
5660 ac_cv_func_select_arg1=int
5661 ac_cv_func_select_arg234='int *'
5662 ac_cv_func_select_arg5='struct timeval *'
5664 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5665 cat >> confdefs.h <<EOF
5666 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5669 cat >> confdefs.h <<EOF
5670 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5673 cat >> confdefs.h <<EOF
5674 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5681 for ac_hdr in regex.h
5683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5685 echo "configure:5686: checking for $ac_hdr" >&5
5686 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5695 { (eval echo configure:5696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5697 if test -z "$ac_err"; then
5699 eval "ac_cv_header_$ac_safe=yes"
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 eval "ac_cv_header_$ac_safe=no"
5709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5712 cat >> confdefs.h <<EOF
5713 #define $ac_tr_hdr 1
5717 echo "$ac_t""no" 1>&6
5721 if test "$ac_cv_header_regex_h" != yes ; then
5722 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5725 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
5726 echo "configure:5727: checking for library containing regfree" >&5
5727 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5730 ac_func_search_save_LIBS="$LIBS"
5731 ac_cv_search_regfree="no"
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746 ac_cv_search_regfree="none required"
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5752 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
5753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5754 cat > conftest.$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5757 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5766 if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5768 ac_cv_search_regfree="-l$ac_lib"
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5776 LIBS="$ac_func_search_save_LIBS"
5779 echo "$ac_t""$ac_cv_search_regfree" 1>&6
5780 if test "$ac_cv_search_regfree" != "no"; then
5781 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
5784 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5788 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5789 echo "configure:5790: checking for compatible POSIX regex" >&5
5790 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5794 if test "$cross_compiling" = yes; then
5795 ol_cv_c_posix_regex=cross
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5801 #include <sys/types.h>
5803 static char *pattern, *string;
5811 if(regcomp(&re, pattern, 0)) {
5815 string = "ALL MATCH";
5817 rc = regexec(&re, string, 0, (void*)0, 0);
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5826 ol_cv_c_posix_regex=yes
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 ol_cv_c_posix_regex=no
5838 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5840 if test "$ol_cv_c_posix_regex" = no ; then
5841 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5844 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
5845 echo "configure:5846: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
5847 LIBS="$LIBS -lrpcrt4"
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5852 char UuidCreate@4();
5853 char UuidToStringA@8();
5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5872 if test $need_rpcrt = yes; then
5873 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
5876 echo "$ac_t""$need_rpcrt" 1>&6
5879 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5880 echo "configure:5881: checking for res_query" >&5
5881 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* System header to define __stub macros and hopefully few prototypes,
5888 which can conflict with char res_query(); below. */
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5898 /* The GNU C library defines this for functions which it implements
5899 to always fail with ENOSYS. Some functions are actually named
5900 something starting with __ and the normal name is an alias. */
5901 #if defined (__stub_res_query) || defined (__stub___res_query)
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_func_res_query=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_func_res_query=no"
5921 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5925 echo "$ac_t""no" 1>&6
5928 if test $ac_cv_func_res_query = no ; then
5929 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5930 echo "configure:5931: checking for __res_query" >&5
5931 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char __res_query(); below. */
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5948 /* The GNU C library defines this for functions which it implements
5949 to always fail with ENOSYS. Some functions are actually named
5950 something starting with __ and the normal name is an alias. */
5951 #if defined (__stub___res_query) || defined (__stub_____res_query)
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5961 eval "ac_cv_func___res_query=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_func___res_query=no"
5971 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5975 echo "$ac_t""no" 1>&6
5978 ac_cv_func_res_query=$ac_cv_func___res_query
5981 if test $ac_cv_func_res_query = no ; then
5982 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5983 echo "configure:5984: checking for res_query in -lbind" >&5
5984 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 ac_save_LIBS="$LIBS"
5990 cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
6002 if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 eval "ac_cv_lib_$ac_lib_var=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 eval "ac_cv_lib_$ac_lib_var=no"
6012 LIBS="$ac_save_LIBS"
6015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6019 cat >> confdefs.h <<EOF
6020 #define $ac_tr_lib 1
6026 echo "$ac_t""no" 1>&6
6029 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
6032 if test $ac_cv_func_res_query = no ; then
6033 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
6034 echo "configure:6035: checking for __res_query in -lbind" >&5
6035 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
6036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 ac_save_LIBS="$LIBS"
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6053 if { (eval echo configure:6054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 eval "ac_cv_lib_$ac_lib_var=yes"
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6060 eval "ac_cv_lib_$ac_lib_var=no"
6063 LIBS="$ac_save_LIBS"
6066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6069 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6070 cat >> confdefs.h <<EOF
6071 #define $ac_tr_lib 1
6077 echo "$ac_t""no" 1>&6
6080 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
6083 if test $ac_cv_func_res_query = no ; then
6084 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
6085 echo "configure:6086: checking for res_query in -lresolv" >&5
6086 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
6087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 ac_save_LIBS="$LIBS"
6091 LIBS="-lresolv $LIBS"
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6106 eval "ac_cv_lib_$ac_lib_var=yes"
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 eval "ac_cv_lib_$ac_lib_var=no"
6114 LIBS="$ac_save_LIBS"
6117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6118 echo "$ac_t""yes" 1>&6
6119 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6121 cat >> confdefs.h <<EOF
6122 #define $ac_tr_lib 1
6125 LIBS="-lresolv $LIBS"
6128 echo "$ac_t""no" 1>&6
6131 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
6134 if test $ac_cv_func_res_query = no ; then
6135 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
6136 echo "configure:6137: checking for __res_query in -lresolv" >&5
6137 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
6138 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6141 ac_save_LIBS="$LIBS"
6142 LIBS="-lresolv $LIBS"
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 eval "ac_cv_lib_$ac_lib_var=yes"
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 eval "ac_cv_lib_$ac_lib_var=no"
6165 LIBS="$ac_save_LIBS"
6168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6172 cat >> confdefs.h <<EOF
6173 #define $ac_tr_lib 1
6176 LIBS="-lresolv $LIBS"
6179 echo "$ac_t""no" 1>&6
6182 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
6185 if test "$ac_cv_func_res_query" = yes ; then
6186 cat >> confdefs.h <<\EOF
6187 #define HAVE_RES_QUERY 1
6191 if test $ol_enable_dnssrv != no ; then
6196 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
6197 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
6200 for ac_func in getaddrinfo gai_strerror inet_ntop
6202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6203 echo "configure:6204: checking for $ac_func" >&5
6204 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func(); below. */
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234 eval "ac_cv_func_$ac_func=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6239 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h <<EOF
6248 #define $ac_tr_func 1
6252 echo "$ac_t""no" 1>&6
6258 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6259 if test $ol_enable_ipv6 = yes ; then
6260 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6262 elif test $ol_enable_ipv6 != no ; then
6263 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6264 echo "configure:6265: checking INET6_ADDRSTRLEN" >&5
6265 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6273 # include <netinet/in.h>
6274 # ifdef INET6_ADDRSTRLEN
6275 __has_inet6_addrstrlen__;
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6282 ol_cv_inet6_addrstrlen=yes
6285 ol_cv_inet6_addrstrlen=no
6291 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6293 if test $ol_cv_inet6_addrstrlen = yes ; then
6295 elif test $ol_enable_ipv6 = yes ; then
6296 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6300 if test $ol_enable_local != no ; then
6301 for ac_hdr in sys/un.h
6303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6305 echo "configure:6306: checking for $ac_hdr" >&5
6306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6315 { (eval echo configure:6316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6317 if test -z "$ac_err"; then
6319 eval "ac_cv_header_$ac_safe=yes"
6322 echo "configure: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6325 eval "ac_cv_header_$ac_safe=no"
6329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6332 cat >> confdefs.h <<EOF
6333 #define $ac_tr_hdr 1
6337 echo "$ac_t""no" 1>&6
6342 if test $ol_enable_local = auto ; then
6343 ol_enable_local=$ac_cv_header_sys_un_h
6344 elif test $ac_cv_header_sys_un_h = no ; then
6345 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6354 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6355 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6356 -o $ol_with_kerberos = k425 ; then
6358 for ac_hdr in krb5.h
6360 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6362 echo "configure:6363: checking for $ac_hdr" >&5
6363 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6372 { (eval echo configure:6373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6374 if test -z "$ac_err"; then
6376 eval "ac_cv_header_$ac_safe=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 eval "ac_cv_header_$ac_safe=no"
6386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6389 cat >> confdefs.h <<EOF
6390 #define $ac_tr_hdr 1
6394 echo "$ac_t""no" 1>&6
6399 if test $ac_cv_header_krb5_h = yes ; then
6400 for ac_hdr in heim_err.h
6402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6404 echo "configure:6405: checking for $ac_hdr" >&5
6405 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6414 { (eval echo configure:6415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6416 if test -z "$ac_err"; then
6418 eval "ac_cv_header_$ac_safe=yes"
6421 echo "configure: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6424 eval "ac_cv_header_$ac_safe=no"
6428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6431 cat >> confdefs.h <<EOF
6432 #define $ac_tr_hdr 1
6436 echo "$ac_t""no" 1>&6
6440 if test $ac_cv_header_heim_err_h = yes ; then
6446 if test $krb5_impl = mit; then
6447 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
6448 echo "configure:6449: checking for main in -lk5crypto" >&5
6449 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
6450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6453 ac_save_LIBS="$LIBS"
6454 LIBS="-lk5crypto $LIBS"
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6463 if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6465 eval "ac_cv_lib_$ac_lib_var=yes"
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6470 eval "ac_cv_lib_$ac_lib_var=no"
6473 LIBS="$ac_save_LIBS"
6476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6480 echo "$ac_t""no" 1>&6
6485 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6486 echo "configure:6487: checking for main in -lkrb5" >&5
6487 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 ac_save_LIBS="$LIBS"
6492 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6503 eval "ac_cv_lib_$ac_lib_var=yes"
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6508 eval "ac_cv_lib_$ac_lib_var=no"
6511 LIBS="$ac_save_LIBS"
6514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6515 echo "$ac_t""yes" 1>&6
6517 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6519 echo "$ac_t""no" 1>&6
6524 elif test $krb5_impl = heimdal; then
6525 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6526 echo "configure:6527: checking for main in -lkrb5" >&5
6527 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6528 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6531 ac_save_LIBS="$LIBS"
6532 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 eval "ac_cv_lib_$ac_lib_var=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_lib_$ac_lib_var=no"
6551 LIBS="$ac_save_LIBS"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6557 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6559 echo "$ac_t""no" 1>&6
6564 cat >> confdefs.h <<\EOF
6565 #define HAVE_HEIMDAL_KERBEROS 1
6571 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6574 if test $have_krb5 = yes ; then
6577 cat >> confdefs.h <<\EOF
6582 if test $ol_enable_kpasswd != no ; then
6583 ol_link_kpasswd=yes;
6586 if test $ol_with_kerberos = k5only ; then
6587 ol_with_kerberos=found
6590 elif test $ol_with_kerberos != auto ; then
6591 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6597 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6598 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6600 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_hdr" >&5
6605 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6614 { (eval echo configure:6615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6616 if test -z "$ac_err"; then
6618 eval "ac_cv_header_$ac_safe=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_header_$ac_safe=no"
6628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6631 cat >> confdefs.h <<EOF
6632 #define $ac_tr_hdr 1
6636 echo "$ac_t""no" 1>&6
6641 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6642 if test $krb5_impl = mit; then
6643 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6644 echo "configure:6645: checking for main in -lkrb4" >&5
6645 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6646 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6649 ac_save_LIBS="$LIBS"
6650 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6651 cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 eval "ac_cv_lib_$ac_lib_var=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_lib_$ac_lib_var=no"
6669 LIBS="$ac_save_LIBS"
6672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6675 KRB4_LIBS="-lkrb4 -ldes425"
6677 echo "$ac_t""no" 1>&6
6682 elif test $krb5_impl = heimdal; then
6683 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6684 echo "configure:6685: checking for main in -lkrb4" >&5
6685 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6686 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6689 ac_save_LIBS="$LIBS"
6690 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6691 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6701 eval "ac_cv_lib_$ac_lib_var=yes"
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 eval "ac_cv_lib_$ac_lib_var=no"
6709 LIBS="$ac_save_LIBS"
6712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6717 echo "$ac_t""no" 1>&6
6724 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6727 if test $have_k425 = yes ; then
6728 ol_with_kerberos=found
6731 cat >> confdefs.h <<\EOF
6732 #define HAVE_KRB425 1
6735 cat >> confdefs.h <<\EOF
6740 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6741 echo "configure:6742: checking for des_debug in Kerberos libraries" >&5
6742 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6747 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6752 #include <kerberosIV/krb.h>
6753 #include <kerberosIV/des.h>
6754 extern int des_debug;
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 ol_cv_var_des_debug=yes
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 ol_cv_var_des_debug=no
6776 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6778 if test $ol_cv_var_des_debug = yes ; then
6779 cat >> confdefs.h <<\EOF
6780 #define HAVE_DES_DEBUG 1
6790 if test $ol_link_krb5 = yes ; then
6791 ol_with_kerberos=found
6794 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6795 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6797 for ac_hdr in krb.h des.h krb-archaeology.h
6799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_hdr" >&5
6802 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6811 { (eval echo configure:6812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6813 if test -z "$ac_err"; then
6815 eval "ac_cv_header_$ac_safe=yes"
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_header_$ac_safe=no"
6825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_hdr 1
6833 echo "$ac_t""no" 1>&6
6838 if test $ac_cv_header_krb_h = yes ; then
6839 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6840 echo "configure:6841: checking for main in -lkrb" >&5
6841 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6842 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 ac_save_LIBS="$LIBS"
6846 LIBS="-lkrb -ldes $LIBS"
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857 eval "ac_cv_lib_$ac_lib_var=yes"
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6862 eval "ac_cv_lib_$ac_lib_var=no"
6865 LIBS="$ac_save_LIBS"
6868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6869 echo "$ac_t""yes" 1>&6
6872 echo "$ac_t""no" 1>&6
6877 if test $have_k4 = yes ; then
6878 ol_with_kerberos=found
6881 cat >> confdefs.h <<\EOF
6886 KRB4_LIBS="-lkrb -ldes"
6888 if test $ac_cv_header_krb_archaeology_h = yes ; then
6889 cat >> confdefs.h <<\EOF
6890 #define HAVE_KTH_KERBEROS 1
6898 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6902 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6905 elif test $ol_enable_kbind = yes ; then
6906 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6909 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6910 cat >> confdefs.h <<\EOF
6911 #define HAVE_KERBEROS 1
6915 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6916 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6920 if test $ol_with_tls != no ; then
6921 for ac_hdr in openssl/ssl.h ssl.h
6923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6925 echo "configure:6926: checking for $ac_hdr" >&5
6926 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6935 { (eval echo configure:6936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6937 if test -z "$ac_err"; then
6939 eval "ac_cv_header_$ac_safe=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 eval "ac_cv_header_$ac_safe=no"
6949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6952 cat >> confdefs.h <<EOF
6953 #define $ac_tr_hdr 1
6957 echo "$ac_t""no" 1>&6
6962 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6963 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6964 echo "configure:6965: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6965 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 ac_save_LIBS="$LIBS"
6970 LIBS="-lssl -lcrypto $LIBS"
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6977 char SSLeay_add_ssl_algorithms();
6980 SSLeay_add_ssl_algorithms()
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 eval "ac_cv_lib_$ac_lib_var=yes"
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 eval "ac_cv_lib_$ac_lib_var=no"
6993 LIBS="$ac_save_LIBS"
6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
7001 echo "$ac_t""no" 1>&6
7006 if test $have_ssleay = no ; then
7007 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7008 echo "configure:7009: checking for SSL_library_init in -lssl" >&5
7009 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
7010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7013 ac_save_LIBS="$LIBS"
7014 LIBS="-lssl -lcrypto $LIBS"
7015 cat > conftest.$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021 char SSL_library_init();
7027 if { (eval echo configure:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7029 eval "ac_cv_lib_$ac_lib_var=yes"
7031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7034 eval "ac_cv_lib_$ac_lib_var=no"
7037 LIBS="$ac_save_LIBS"
7040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7041 echo "$ac_t""yes" 1>&6
7045 echo "$ac_t""no" 1>&6
7051 if test $have_ssleay = no ; then
7052 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
7053 echo "configure:7054: checking for ssl3_accept in -lssl" >&5
7054 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
7055 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7058 ac_save_LIBS="$LIBS"
7059 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
7060 cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7063 /* Override any gcc2 internal prototype to avoid an error. */
7064 /* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */
7072 if { (eval echo configure:7073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7074 eval "ac_cv_lib_$ac_lib_var=yes"
7076 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7079 eval "ac_cv_lib_$ac_lib_var=no"
7082 LIBS="$ac_save_LIBS"
7085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7086 echo "$ac_t""yes" 1>&6
7090 echo "$ac_t""no" 1>&6
7096 if test $have_ssleay = yes ; then
7100 cat >> confdefs.h <<\EOF
7101 #define HAVE_SSLEAY 1
7105 if test $need_rsaref = yes; then
7106 cat >> confdefs.h <<\EOF
7107 #define HAVE_RSAREF 1
7111 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
7113 TLS_LIBS="-lssl -lcrypto"
7119 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7122 if test $ol_link_tls = yes ; then
7123 cat >> confdefs.h <<\EOF
7128 elif test $ol_with_tls = auto ; then
7129 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
7130 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7132 elif test $ol_with_tls != no ; then
7133 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
7136 if test $ol_enable_lmpasswd != no; then
7137 if test $ol_link_tls != yes ; then
7138 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
7141 cat >> confdefs.h <<\EOF
7142 #define SLAPD_LMHASH 1
7149 gethostbyname_r gethostbyaddr_r \
7152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7153 echo "configure:7154: checking for $ac_func" >&5
7154 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7160 /* System header to define __stub macros and hopefully few prototypes,
7161 which can conflict with char $ac_func(); below. */
7163 /* Override any gcc2 internal prototype to avoid an error. */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7171 /* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184 eval "ac_cv_func_$ac_func=yes"
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7189 eval "ac_cv_func_$ac_func=no"
7194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7197 cat >> confdefs.h <<EOF
7198 #define $ac_tr_func 1
7202 echo "$ac_t""no" 1>&6
7207 if test "$ac_cv_func_ctime_r" = no ; then
7208 ol_cv_func_ctime_r_nargs=0
7210 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7211 echo "configure:7212: checking number of arguments of ctime_r" >&5
7212 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7220 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7223 if { (eval echo configure:7224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7225 ol_cv_func_ctime_r_nargs3=yes
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7230 ol_cv_func_ctime_r_nargs3=no
7234 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7239 time_t ti; char *buffer; ctime_r(&ti,buffer);
7242 if { (eval echo configure:7243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7244 ol_cv_func_ctime_r_nargs2=yes
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 ol_cv_func_ctime_r_nargs2=no
7253 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7254 $ol_cv_func_ctime_r_nargs2 = no ; then
7256 ol_cv_func_ctime_r_nargs=3
7258 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7259 $ol_cv_func_ctime_r_nargs2 = yes ; then
7261 ol_cv_func_ctime_r_nargs=2
7264 ol_cv_func_ctime_r_nargs=0
7269 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7271 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7272 cat >> confdefs.h <<EOF
7273 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7280 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7281 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7282 echo "configure:7283: checking number of arguments of gethostbyname_r" >&5
7283 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 #include <sys/types.h>
7290 #include <sys/socket.h>
7291 #include <netinet/in.h>
7293 #define BUFSIZE (sizeof(struct hostent)+10)
7295 struct hostent hent; char buffer[BUFSIZE];
7296 int bufsize=BUFSIZE;int h_errno;
7297 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7298 buffer, bufsize, &h_errno);
7301 if { (eval echo configure:7302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7303 ol_cv_func_gethostbyname_r_nargs5=yes
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 ol_cv_func_gethostbyname_r_nargs5=no
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 #include <sys/types.h>
7316 #include <sys/socket.h>
7317 #include <netinet/in.h>
7319 #define BUFSIZE (sizeof(struct hostent)+10)
7321 struct hostent hent;struct hostent *rhent;
7322 char buffer[BUFSIZE];
7323 int bufsize=BUFSIZE;int h_errno;
7324 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7328 if { (eval echo configure:7329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7330 ol_cv_func_gethostbyname_r_nargs6=yes
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7335 ol_cv_func_gethostbyname_r_nargs6=no
7339 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7340 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7342 ol_cv_func_gethostbyname_r_nargs=5
7344 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7345 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7347 ol_cv_func_gethostbyname_r_nargs=6
7350 ol_cv_func_gethostbyname_r_nargs=0
7355 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7356 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7357 cat >> confdefs.h <<EOF
7358 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7364 ol_cv_func_gethostbyname_r_nargs=0
7367 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7368 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7369 echo "configure:7370: checking number of arguments of gethostbyaddr_r" >&5
7370 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7376 #include <sys/types.h>
7377 #include <sys/socket.h>
7378 #include <netinet/in.h>
7380 #define BUFSIZE (sizeof(struct hostent)+10)
7382 struct hostent hent; char buffer[BUFSIZE];
7384 size_t alen=sizeof(struct in_addr);
7385 int bufsize=BUFSIZE;int h_errno;
7386 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7387 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7390 if { (eval echo configure:7391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7392 ol_cv_func_gethostbyaddr_r_nargs7=yes
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7397 ol_cv_func_gethostbyaddr_r_nargs7=no
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 #include <sys/types.h>
7405 #include <sys/socket.h>
7406 #include <netinet/in.h>
7408 #define BUFSIZE (sizeof(struct hostent)+10)
7410 struct hostent hent;
7411 struct hostent *rhent; char buffer[BUFSIZE];
7413 size_t alen=sizeof(struct in_addr);
7414 int bufsize=BUFSIZE;int h_errno;
7415 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7416 alen, AF_INET, &hent, buffer, bufsize,
7420 if { (eval echo configure:7421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7422 ol_cv_func_gethostbyaddr_r_nargs8=yes
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 ol_cv_func_gethostbyaddr_r_nargs8=no
7431 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7432 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7434 ol_cv_func_gethostbyaddr_r_nargs=7
7436 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7437 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7439 ol_cv_func_gethostbyaddr_r_nargs=8
7442 ol_cv_func_gethostbyaddr_r_nargs=0
7447 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7448 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7449 cat >> confdefs.h <<EOF
7450 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7456 ol_cv_func_gethostbyaddr_r_nargs=0
7459 if test "$ac_cv_func_ctime_r" = yes \
7460 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7461 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7462 -a "$ac_cv_func_gethostbyname_r" = yes \
7463 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7464 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7465 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7466 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7467 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7470 cat >> confdefs.h <<\EOF
7471 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7478 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7479 -o $ol_with_threads = nt ; then
7482 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7483 echo "configure:7484: checking for _beginthread" >&5
7484 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* System header to define __stub macros and hopefully few prototypes,
7491 which can conflict with char _beginthread(); below. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7496 char _beginthread();
7501 /* The GNU C library defines this for functions which it implements
7502 to always fail with ENOSYS. Some functions are actually named
7503 something starting with __ and the normal name is an alias. */
7504 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7512 if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7514 eval "ac_cv_func__beginthread=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7519 eval "ac_cv_func__beginthread=no"
7524 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7528 echo "$ac_t""no" 1>&6
7532 if test $ac_cv_func__beginthread = yes ; then
7533 cat >> confdefs.h <<\EOF
7534 #define HAVE_NT_THREADS 1
7537 ol_cv_nt_threads=yes
7541 if test "$ol_cv_nt_threads" = yes ; then
7543 ol_with_threads=found
7544 ol_with_yielding_select=yes
7546 cat >> confdefs.h <<\EOF
7547 #define HAVE_NT_SERVICE_MANAGER 1
7550 cat >> confdefs.h <<\EOF
7551 #define HAVE_NT_EVENT_LOG 1
7556 if test $ol_with_threads = nt ; then
7557 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7561 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7562 -o $ol_with_threads = posix ; then
7564 for ac_hdr in pthread.h
7566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_hdr" >&5
7569 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7578 { (eval echo configure:7579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7580 if test -z "$ac_err"; then
7582 eval "ac_cv_header_$ac_safe=yes"
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 eval "ac_cv_header_$ac_safe=no"
7592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7595 cat >> confdefs.h <<EOF
7596 #define $ac_tr_hdr 1
7600 echo "$ac_t""no" 1>&6
7605 if test $ac_cv_header_pthread_h = yes ; then
7606 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7607 echo "configure:7608: checking POSIX thread version" >&5
7608 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7616 # include <pthread.h>
7617 /* this check could be improved */
7618 # ifdef PTHREAD_ONCE_INIT
7619 pthread_version_final;
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 egrep "pthread_version_final" >/dev/null 2>&1; then
7626 ol_pthread_final=yes
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7638 # include <pthread.h>
7639 /* this check could be improved */
7640 # ifdef pthread_once_init
7641 pthread_version_draft4;
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7648 ol_pthread_draft4=yes
7651 ol_pthread_draft4=no
7656 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7657 ol_cv_pthread_version=final
7658 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7659 ol_cv_pthread_version=draft4
7661 ol_cv_pthread_version=unknown
7666 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7669 if test $ol_cv_pthread_version = final ; then
7670 cat >> confdefs.h <<\EOF
7671 #define HAVE_PTHREADS_FINAL 1
7674 elif test $ol_cv_pthread_version = draft4 ; then
7675 cat >> confdefs.h <<\EOF
7676 #define HAVE_PTHREADS_D4 1
7680 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7683 # consider threads found
7684 ol_with_threads=found
7687 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7688 echo "configure:7689: checking for LinuxThreads pthread.h" >&5
7689 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7692 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7695 #include <pthread.h>
7697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7698 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7700 ol_cv_header_linux_threads=yes
7703 ol_cv_header_linux_threads=no
7710 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7711 if test $ol_cv_header_linux_threads = yes; then
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_LINUX_THREADS 1
7719 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7720 echo "configure:7721: checking for GNU Pth pthread.h" >&5
7721 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 #include <pthread.h>
7728 #ifdef _POSIX_THREAD_IS_GNU_PTH
7733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7734 egrep "__gnu_pth__" >/dev/null 2>&1; then
7736 ol_cv_header_gnu_pth_pthread_h=yes
7739 ol_cv_header_gnu_pth_pthread_h=no
7746 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7749 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7750 for ac_hdr in sched.h
7752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7754 echo "configure:7755: checking for $ac_hdr" >&5
7755 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7764 { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7766 if test -z "$ac_err"; then
7768 eval "ac_cv_header_$ac_safe=yes"
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7774 eval "ac_cv_header_$ac_safe=no"
7778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7781 cat >> confdefs.h <<EOF
7782 #define $ac_tr_hdr 1
7786 echo "$ac_t""no" 1>&6
7793 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7794 echo "configure:7795: checking for pthread_create in default libraries" >&5
7795 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7799 if test "$cross_compiling" = yes; then
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* pthread test headers */
7804 #include <pthread.h>
7806 #define NULL (void*)0
7809 static void *task(p)
7812 return (void *) (p == NULL);
7817 /* pthread test function */
7822 #ifdef HAVE_PTHREADS_FINAL
7823 /* Final pthreads */
7824 pthread_attr_t attr;
7826 status = pthread_attr_init(&attr);
7827 if( status ) return status;
7829 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7831 #if defined( PTHREAD_CREATE_JOINABLE )
7832 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7834 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7837 #ifdef PTHREAD_CREATE_DETACHED
7839 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7842 if( status ) return status;
7845 status = pthread_create( &t, &attr, task, NULL );
7846 if( status ) return status;
7848 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7850 /* give thread a chance to complete */
7851 /* it should remain joinable and hence detachable */
7854 status = pthread_detach( t );
7855 if( status ) return status;
7860 /* Draft 4 pthreads */
7861 status = pthread_create( &t, pthread_attr_default, task, NULL );
7862 if( status ) return status;
7865 /* give thread a chance to complete */
7866 /* it should remain joinable and hence detachable */
7869 status = pthread_detach( &t );
7870 if( status ) return status;
7874 #ifdef HAVE_LINUX_THREADS
7875 pthread_kill_other_threads_np();
7882 if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7884 ol_cv_pthread_create=yes
7886 echo "configure: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7889 ol_cv_pthread_create=no
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* pthread test headers */
7897 #include <pthread.h>
7899 #define NULL (void*)0
7902 static void *task(p)
7905 return (void *) (p == NULL);
7909 int main(argc, argv)
7914 /* pthread test function */
7919 #ifdef HAVE_PTHREADS_FINAL
7920 /* Final pthreads */
7921 pthread_attr_t attr;
7923 status = pthread_attr_init(&attr);
7924 if( status ) return status;
7926 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7928 #if defined( PTHREAD_CREATE_JOINABLE )
7929 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7931 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7934 #ifdef PTHREAD_CREATE_DETACHED
7936 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7939 if( status ) return status;
7942 status = pthread_create( &t, &attr, task, NULL );
7943 if( status ) return status;
7945 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7947 /* give thread a chance to complete */
7948 /* it should remain joinable and hence detachable */
7951 status = pthread_detach( t );
7952 if( status ) return status;
7957 /* Draft 4 pthreads */
7958 status = pthread_create( &t, pthread_attr_default, task, NULL );
7959 if( status ) return status;
7962 /* give thread a chance to complete */
7963 /* it should remain joinable and hence detachable */
7966 status = pthread_detach( &t );
7967 if( status ) return status;
7971 #ifdef HAVE_LINUX_THREADS
7972 pthread_kill_other_threads_np();
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7982 ol_cv_pthread_create=yes
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 ol_cv_pthread_create=no
7994 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7996 if test $ol_cv_pthread_create != no ; then
7997 ol_link_threads=posix
8001 # Pthread try link: -kthread (ol_cv_pthread_kthread)
8002 if test "$ol_link_threads" = no ; then
8004 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
8005 echo "configure:8006: checking for pthread link with -kthread" >&5
8006 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8012 LIBS="-kthread $LIBS"
8014 if test "$cross_compiling" = yes; then
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* pthread test headers */
8019 #include <pthread.h>
8021 #define NULL (void*)0
8024 static void *task(p)
8027 return (void *) (p == NULL);
8032 /* pthread test function */
8037 #ifdef HAVE_PTHREADS_FINAL
8038 /* Final pthreads */
8039 pthread_attr_t attr;
8041 status = pthread_attr_init(&attr);
8042 if( status ) return status;
8044 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8046 #if defined( PTHREAD_CREATE_JOINABLE )
8047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8049 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8052 #ifdef PTHREAD_CREATE_DETACHED
8054 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8057 if( status ) return status;
8060 status = pthread_create( &t, &attr, task, NULL );
8061 if( status ) return status;
8063 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8065 /* give thread a chance to complete */
8066 /* it should remain joinable and hence detachable */
8069 status = pthread_detach( t );
8070 if( status ) return status;
8075 /* Draft 4 pthreads */
8076 status = pthread_create( &t, pthread_attr_default, task, NULL );
8077 if( status ) return status;
8080 /* give thread a chance to complete */
8081 /* it should remain joinable and hence detachable */
8084 status = pthread_detach( &t );
8085 if( status ) return status;
8089 #ifdef HAVE_LINUX_THREADS
8090 pthread_kill_other_threads_np();
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8099 ol_cv_pthread_kthread=yes
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 ol_cv_pthread_kthread=no
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8111 /* pthread test headers */
8112 #include <pthread.h>
8114 #define NULL (void*)0
8117 static void *task(p)
8120 return (void *) (p == NULL);
8124 int main(argc, argv)
8129 /* pthread test function */
8134 #ifdef HAVE_PTHREADS_FINAL
8135 /* Final pthreads */
8136 pthread_attr_t attr;
8138 status = pthread_attr_init(&attr);
8139 if( status ) return status;
8141 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8143 #if defined( PTHREAD_CREATE_JOINABLE )
8144 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8146 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8149 #ifdef PTHREAD_CREATE_DETACHED
8151 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8154 if( status ) return status;
8157 status = pthread_create( &t, &attr, task, NULL );
8158 if( status ) return status;
8160 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8162 /* give thread a chance to complete */
8163 /* it should remain joinable and hence detachable */
8166 status = pthread_detach( t );
8167 if( status ) return status;
8172 /* Draft 4 pthreads */
8173 status = pthread_create( &t, pthread_attr_default, task, NULL );
8174 if( status ) return status;
8177 /* give thread a chance to complete */
8178 /* it should remain joinable and hence detachable */
8181 status = pthread_detach( &t );
8182 if( status ) return status;
8186 #ifdef HAVE_LINUX_THREADS
8187 pthread_kill_other_threads_np();
8195 if { (eval echo configure:8196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8197 ol_cv_pthread_kthread=yes
8199 echo "configure: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 ol_cv_pthread_kthread=no
8213 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8215 if test $ol_cv_pthread_kthread = yes ; then
8216 ol_link_pthreads="-kthread"
8217 ol_link_threads=posix
8221 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8222 if test "$ol_link_threads" = no ; then
8224 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8225 echo "configure:8226: checking for pthread link with -pthread" >&5
8226 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8232 LIBS="-pthread $LIBS"
8234 if test "$cross_compiling" = yes; then
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* pthread test headers */
8239 #include <pthread.h>
8241 #define NULL (void*)0
8244 static void *task(p)
8247 return (void *) (p == NULL);
8252 /* pthread test function */
8257 #ifdef HAVE_PTHREADS_FINAL
8258 /* Final pthreads */
8259 pthread_attr_t attr;
8261 status = pthread_attr_init(&attr);
8262 if( status ) return status;
8264 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8266 #if defined( PTHREAD_CREATE_JOINABLE )
8267 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8269 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8272 #ifdef PTHREAD_CREATE_DETACHED
8274 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8277 if( status ) return status;
8280 status = pthread_create( &t, &attr, task, NULL );
8281 if( status ) return status;
8283 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8285 /* give thread a chance to complete */
8286 /* it should remain joinable and hence detachable */
8289 status = pthread_detach( t );
8290 if( status ) return status;
8295 /* Draft 4 pthreads */
8296 status = pthread_create( &t, pthread_attr_default, task, NULL );
8297 if( status ) return status;
8300 /* give thread a chance to complete */
8301 /* it should remain joinable and hence detachable */
8304 status = pthread_detach( &t );
8305 if( status ) return status;
8309 #ifdef HAVE_LINUX_THREADS
8310 pthread_kill_other_threads_np();
8317 if { (eval echo configure:8318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8319 ol_cv_pthread_pthread=yes
8321 echo "configure: failed program was:" >&5
8322 cat conftest.$ac_ext >&5
8324 ol_cv_pthread_pthread=no
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* pthread test headers */
8332 #include <pthread.h>
8334 #define NULL (void*)0
8337 static void *task(p)
8340 return (void *) (p == NULL);
8344 int main(argc, argv)
8349 /* pthread test function */
8354 #ifdef HAVE_PTHREADS_FINAL
8355 /* Final pthreads */
8356 pthread_attr_t attr;
8358 status = pthread_attr_init(&attr);
8359 if( status ) return status;
8361 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8363 #if defined( PTHREAD_CREATE_JOINABLE )
8364 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8366 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8369 #ifdef PTHREAD_CREATE_DETACHED
8371 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8374 if( status ) return status;
8377 status = pthread_create( &t, &attr, task, NULL );
8378 if( status ) return status;
8380 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8382 /* give thread a chance to complete */
8383 /* it should remain joinable and hence detachable */
8386 status = pthread_detach( t );
8387 if( status ) return status;
8392 /* Draft 4 pthreads */
8393 status = pthread_create( &t, pthread_attr_default, task, NULL );
8394 if( status ) return status;
8397 /* give thread a chance to complete */
8398 /* it should remain joinable and hence detachable */
8401 status = pthread_detach( &t );
8402 if( status ) return status;
8406 #ifdef HAVE_LINUX_THREADS
8407 pthread_kill_other_threads_np();
8415 if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8417 ol_cv_pthread_pthread=yes
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8422 ol_cv_pthread_pthread=no
8433 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8435 if test $ol_cv_pthread_pthread = yes ; then
8436 ol_link_pthreads="-pthread"
8437 ol_link_threads=posix
8441 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8442 if test "$ol_link_threads" = no ; then
8444 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8445 echo "configure:8446: checking for pthread link with -pthreads" >&5
8446 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8447 echo $ac_n "(cached) $ac_c" 1>&6
8452 LIBS="-pthreads $LIBS"
8454 if test "$cross_compiling" = yes; then
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 /* pthread test headers */
8459 #include <pthread.h>
8461 #define NULL (void*)0
8464 static void *task(p)
8467 return (void *) (p == NULL);
8472 /* pthread test function */
8477 #ifdef HAVE_PTHREADS_FINAL
8478 /* Final pthreads */
8479 pthread_attr_t attr;
8481 status = pthread_attr_init(&attr);
8482 if( status ) return status;
8484 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8486 #if defined( PTHREAD_CREATE_JOINABLE )
8487 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8489 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8492 #ifdef PTHREAD_CREATE_DETACHED
8494 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8497 if( status ) return status;
8500 status = pthread_create( &t, &attr, task, NULL );
8501 if( status ) return status;
8503 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8505 /* give thread a chance to complete */
8506 /* it should remain joinable and hence detachable */
8509 status = pthread_detach( t );
8510 if( status ) return status;
8515 /* Draft 4 pthreads */
8516 status = pthread_create( &t, pthread_attr_default, task, NULL );
8517 if( status ) return status;
8520 /* give thread a chance to complete */
8521 /* it should remain joinable and hence detachable */
8524 status = pthread_detach( &t );
8525 if( status ) return status;
8529 #ifdef HAVE_LINUX_THREADS
8530 pthread_kill_other_threads_np();
8537 if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8539 ol_cv_pthread_pthreads=yes
8541 echo "configure: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8544 ol_cv_pthread_pthreads=no
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 /* pthread test headers */
8552 #include <pthread.h>
8554 #define NULL (void*)0
8557 static void *task(p)
8560 return (void *) (p == NULL);
8564 int main(argc, argv)
8569 /* pthread test function */
8574 #ifdef HAVE_PTHREADS_FINAL
8575 /* Final pthreads */
8576 pthread_attr_t attr;
8578 status = pthread_attr_init(&attr);
8579 if( status ) return status;
8581 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8583 #if defined( PTHREAD_CREATE_JOINABLE )
8584 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8586 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8589 #ifdef PTHREAD_CREATE_DETACHED
8591 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8594 if( status ) return status;
8597 status = pthread_create( &t, &attr, task, NULL );
8598 if( status ) return status;
8600 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8602 /* give thread a chance to complete */
8603 /* it should remain joinable and hence detachable */
8606 status = pthread_detach( t );
8607 if( status ) return status;
8612 /* Draft 4 pthreads */
8613 status = pthread_create( &t, pthread_attr_default, task, NULL );
8614 if( status ) return status;
8617 /* give thread a chance to complete */
8618 /* it should remain joinable and hence detachable */
8621 status = pthread_detach( &t );
8622 if( status ) return status;
8626 #ifdef HAVE_LINUX_THREADS
8627 pthread_kill_other_threads_np();
8635 if { (eval echo configure:8636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8637 ol_cv_pthread_pthreads=yes
8639 echo "configure: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8642 ol_cv_pthread_pthreads=no
8653 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8655 if test $ol_cv_pthread_pthreads = yes ; then
8656 ol_link_pthreads="-pthreads"
8657 ol_link_threads=posix
8661 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8662 if test "$ol_link_threads" = no ; then
8664 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8665 echo "configure:8666: checking for pthread link with -mthreads" >&5
8666 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8672 LIBS="-mthreads $LIBS"
8674 if test "$cross_compiling" = yes; then
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 /* pthread test headers */
8679 #include <pthread.h>
8681 #define NULL (void*)0
8684 static void *task(p)
8687 return (void *) (p == NULL);
8692 /* pthread test function */
8697 #ifdef HAVE_PTHREADS_FINAL
8698 /* Final pthreads */
8699 pthread_attr_t attr;
8701 status = pthread_attr_init(&attr);
8702 if( status ) return status;
8704 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8706 #if defined( PTHREAD_CREATE_JOINABLE )
8707 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8709 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8712 #ifdef PTHREAD_CREATE_DETACHED
8714 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8717 if( status ) return status;
8720 status = pthread_create( &t, &attr, task, NULL );
8721 if( status ) return status;
8723 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8725 /* give thread a chance to complete */
8726 /* it should remain joinable and hence detachable */
8729 status = pthread_detach( t );
8730 if( status ) return status;
8735 /* Draft 4 pthreads */
8736 status = pthread_create( &t, pthread_attr_default, task, NULL );
8737 if( status ) return status;
8740 /* give thread a chance to complete */
8741 /* it should remain joinable and hence detachable */
8744 status = pthread_detach( &t );
8745 if( status ) return status;
8749 #ifdef HAVE_LINUX_THREADS
8750 pthread_kill_other_threads_np();
8757 if { (eval echo configure:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8759 ol_cv_pthread_mthreads=yes
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8764 ol_cv_pthread_mthreads=no
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8771 /* pthread test headers */
8772 #include <pthread.h>
8774 #define NULL (void*)0
8777 static void *task(p)
8780 return (void *) (p == NULL);
8784 int main(argc, argv)
8789 /* pthread test function */
8794 #ifdef HAVE_PTHREADS_FINAL
8795 /* Final pthreads */
8796 pthread_attr_t attr;
8798 status = pthread_attr_init(&attr);
8799 if( status ) return status;
8801 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8803 #if defined( PTHREAD_CREATE_JOINABLE )
8804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8806 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8809 #ifdef PTHREAD_CREATE_DETACHED
8811 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8814 if( status ) return status;
8817 status = pthread_create( &t, &attr, task, NULL );
8818 if( status ) return status;
8820 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8822 /* give thread a chance to complete */
8823 /* it should remain joinable and hence detachable */
8826 status = pthread_detach( t );
8827 if( status ) return status;
8832 /* Draft 4 pthreads */
8833 status = pthread_create( &t, pthread_attr_default, task, NULL );
8834 if( status ) return status;
8837 /* give thread a chance to complete */
8838 /* it should remain joinable and hence detachable */
8841 status = pthread_detach( &t );
8842 if( status ) return status;
8846 #ifdef HAVE_LINUX_THREADS
8847 pthread_kill_other_threads_np();
8855 if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8857 ol_cv_pthread_mthreads=yes
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 ol_cv_pthread_mthreads=no
8873 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8875 if test $ol_cv_pthread_mthreads = yes ; then
8876 ol_link_pthreads="-mthreads"
8877 ol_link_threads=posix
8881 # Pthread try link: -thread (ol_cv_pthread_thread)
8882 if test "$ol_link_threads" = no ; then
8884 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8885 echo "configure:8886: checking for pthread link with -thread" >&5
8886 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8892 LIBS="-thread $LIBS"
8894 if test "$cross_compiling" = yes; then
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* pthread test headers */
8899 #include <pthread.h>
8901 #define NULL (void*)0
8904 static void *task(p)
8907 return (void *) (p == NULL);
8912 /* pthread test function */
8917 #ifdef HAVE_PTHREADS_FINAL
8918 /* Final pthreads */
8919 pthread_attr_t attr;
8921 status = pthread_attr_init(&attr);
8922 if( status ) return status;
8924 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8926 #if defined( PTHREAD_CREATE_JOINABLE )
8927 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8929 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8932 #ifdef PTHREAD_CREATE_DETACHED
8934 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8937 if( status ) return status;
8940 status = pthread_create( &t, &attr, task, NULL );
8941 if( status ) return status;
8943 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8945 /* give thread a chance to complete */
8946 /* it should remain joinable and hence detachable */
8949 status = pthread_detach( t );
8950 if( status ) return status;
8955 /* Draft 4 pthreads */
8956 status = pthread_create( &t, pthread_attr_default, task, NULL );
8957 if( status ) return status;
8960 /* give thread a chance to complete */
8961 /* it should remain joinable and hence detachable */
8964 status = pthread_detach( &t );
8965 if( status ) return status;
8969 #ifdef HAVE_LINUX_THREADS
8970 pthread_kill_other_threads_np();
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8979 ol_cv_pthread_thread=yes
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8984 ol_cv_pthread_thread=no
8988 cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8991 /* pthread test headers */
8992 #include <pthread.h>
8994 #define NULL (void*)0
8997 static void *task(p)
9000 return (void *) (p == NULL);
9004 int main(argc, argv)
9009 /* pthread test function */
9014 #ifdef HAVE_PTHREADS_FINAL
9015 /* Final pthreads */
9016 pthread_attr_t attr;
9018 status = pthread_attr_init(&attr);
9019 if( status ) return status;
9021 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9023 #if defined( PTHREAD_CREATE_JOINABLE )
9024 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9026 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9029 #ifdef PTHREAD_CREATE_DETACHED
9031 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9034 if( status ) return status;
9037 status = pthread_create( &t, &attr, task, NULL );
9038 if( status ) return status;
9040 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9042 /* give thread a chance to complete */
9043 /* it should remain joinable and hence detachable */
9046 status = pthread_detach( t );
9047 if( status ) return status;
9052 /* Draft 4 pthreads */
9053 status = pthread_create( &t, pthread_attr_default, task, NULL );
9054 if( status ) return status;
9057 /* give thread a chance to complete */
9058 /* it should remain joinable and hence detachable */
9061 status = pthread_detach( &t );
9062 if( status ) return status;
9066 #ifdef HAVE_LINUX_THREADS
9067 pthread_kill_other_threads_np();
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9077 ol_cv_pthread_thread=yes
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 ol_cv_pthread_thread=no
9093 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
9095 if test $ol_cv_pthread_thread = yes ; then
9096 ol_link_pthreads="-thread"
9097 ol_link_threads=posix
9102 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
9103 if test "$ol_link_threads" = no ; then
9104 # try -lpthread -lmach -lexc -lc_r
9105 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
9106 echo "configure:9107: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
9107 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
9108 echo $ac_n "(cached) $ac_c" 1>&6
9113 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
9115 if test "$cross_compiling" = yes; then
9116 cat > conftest.$ac_ext <<EOF
9117 #line 9118 "configure"
9118 #include "confdefs.h"
9119 /* pthread test headers */
9120 #include <pthread.h>
9122 #define NULL (void*)0
9125 static void *task(p)
9128 return (void *) (p == NULL);
9133 /* pthread test function */
9138 #ifdef HAVE_PTHREADS_FINAL
9139 /* Final pthreads */
9140 pthread_attr_t attr;
9142 status = pthread_attr_init(&attr);
9143 if( status ) return status;
9145 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9147 #if defined( PTHREAD_CREATE_JOINABLE )
9148 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9150 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9153 #ifdef PTHREAD_CREATE_DETACHED
9155 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9158 if( status ) return status;
9161 status = pthread_create( &t, &attr, task, NULL );
9162 if( status ) return status;
9164 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9166 /* give thread a chance to complete */
9167 /* it should remain joinable and hence detachable */
9170 status = pthread_detach( t );
9171 if( status ) return status;
9176 /* Draft 4 pthreads */
9177 status = pthread_create( &t, pthread_attr_default, task, NULL );
9178 if( status ) return status;
9181 /* give thread a chance to complete */
9182 /* it should remain joinable and hence detachable */
9185 status = pthread_detach( &t );
9186 if( status ) return status;
9190 #ifdef HAVE_LINUX_THREADS
9191 pthread_kill_other_threads_np();
9198 if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9200 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9205 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 /* pthread test headers */
9213 #include <pthread.h>
9215 #define NULL (void*)0
9218 static void *task(p)
9221 return (void *) (p == NULL);
9225 int main(argc, argv)
9230 /* pthread test function */
9235 #ifdef HAVE_PTHREADS_FINAL
9236 /* Final pthreads */
9237 pthread_attr_t attr;
9239 status = pthread_attr_init(&attr);
9240 if( status ) return status;
9242 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9244 #if defined( PTHREAD_CREATE_JOINABLE )
9245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9247 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9250 #ifdef PTHREAD_CREATE_DETACHED
9252 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9255 if( status ) return status;
9258 status = pthread_create( &t, &attr, task, NULL );
9259 if( status ) return status;
9261 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9263 /* give thread a chance to complete */
9264 /* it should remain joinable and hence detachable */
9267 status = pthread_detach( t );
9268 if( status ) return status;
9273 /* Draft 4 pthreads */
9274 status = pthread_create( &t, pthread_attr_default, task, NULL );
9275 if( status ) return status;
9278 /* give thread a chance to complete */
9279 /* it should remain joinable and hence detachable */
9282 status = pthread_detach( &t );
9283 if( status ) return status;
9287 #ifdef HAVE_LINUX_THREADS
9288 pthread_kill_other_threads_np();
9296 if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9298 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9300 echo "configure: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9303 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9314 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9316 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9317 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9318 ol_link_threads=posix
9322 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9323 if test "$ol_link_threads" = no ; then
9324 # try -lpthread -lmach -lexc
9325 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9326 echo "configure:9327: checking for pthread link with -lpthread -lmach -lexc" >&5
9327 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9333 LIBS="-lpthread -lmach -lexc $LIBS"
9335 if test "$cross_compiling" = yes; then
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 /* pthread test headers */
9340 #include <pthread.h>
9342 #define NULL (void*)0
9345 static void *task(p)
9348 return (void *) (p == NULL);
9353 /* pthread test function */
9358 #ifdef HAVE_PTHREADS_FINAL
9359 /* Final pthreads */
9360 pthread_attr_t attr;
9362 status = pthread_attr_init(&attr);
9363 if( status ) return status;
9365 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9367 #if defined( PTHREAD_CREATE_JOINABLE )
9368 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9370 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9373 #ifdef PTHREAD_CREATE_DETACHED
9375 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9378 if( status ) return status;
9381 status = pthread_create( &t, &attr, task, NULL );
9382 if( status ) return status;
9384 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9386 /* give thread a chance to complete */
9387 /* it should remain joinable and hence detachable */
9390 status = pthread_detach( t );
9391 if( status ) return status;
9396 /* Draft 4 pthreads */
9397 status = pthread_create( &t, pthread_attr_default, task, NULL );
9398 if( status ) return status;
9401 /* give thread a chance to complete */
9402 /* it should remain joinable and hence detachable */
9405 status = pthread_detach( &t );
9406 if( status ) return status;
9410 #ifdef HAVE_LINUX_THREADS
9411 pthread_kill_other_threads_np();
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420 ol_cv_pthread_lpthread_lmach_lexc=yes
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 ol_cv_pthread_lpthread_lmach_lexc=no
9429 cat > conftest.$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9432 /* pthread test headers */
9433 #include <pthread.h>
9435 #define NULL (void*)0
9438 static void *task(p)
9441 return (void *) (p == NULL);
9445 int main(argc, argv)
9450 /* pthread test function */
9455 #ifdef HAVE_PTHREADS_FINAL
9456 /* Final pthreads */
9457 pthread_attr_t attr;
9459 status = pthread_attr_init(&attr);
9460 if( status ) return status;
9462 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9464 #if defined( PTHREAD_CREATE_JOINABLE )
9465 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9467 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9470 #ifdef PTHREAD_CREATE_DETACHED
9472 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9475 if( status ) return status;
9478 status = pthread_create( &t, &attr, task, NULL );
9479 if( status ) return status;
9481 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9483 /* give thread a chance to complete */
9484 /* it should remain joinable and hence detachable */
9487 status = pthread_detach( t );
9488 if( status ) return status;
9493 /* Draft 4 pthreads */
9494 status = pthread_create( &t, pthread_attr_default, task, NULL );
9495 if( status ) return status;
9498 /* give thread a chance to complete */
9499 /* it should remain joinable and hence detachable */
9502 status = pthread_detach( &t );
9503 if( status ) return status;
9507 #ifdef HAVE_LINUX_THREADS
9508 pthread_kill_other_threads_np();
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9518 ol_cv_pthread_lpthread_lmach_lexc=yes
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 ol_cv_pthread_lpthread_lmach_lexc=no
9534 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9536 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9537 ol_link_pthreads="-lpthread -lmach -lexc"
9538 ol_link_threads=posix
9543 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9544 if test "$ol_link_threads" = no ; then
9545 # try -lpthread -Wl,-woff,85
9546 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9547 echo "configure:9548: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9548 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9554 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9556 if test "$cross_compiling" = yes; then
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 /* pthread test headers */
9561 #include <pthread.h>
9563 #define NULL (void*)0
9566 static void *task(p)
9569 return (void *) (p == NULL);
9574 /* pthread test function */
9579 #ifdef HAVE_PTHREADS_FINAL
9580 /* Final pthreads */
9581 pthread_attr_t attr;
9583 status = pthread_attr_init(&attr);
9584 if( status ) return status;
9586 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9588 #if defined( PTHREAD_CREATE_JOINABLE )
9589 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9591 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9594 #ifdef PTHREAD_CREATE_DETACHED
9596 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9599 if( status ) return status;
9602 status = pthread_create( &t, &attr, task, NULL );
9603 if( status ) return status;
9605 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9607 /* give thread a chance to complete */
9608 /* it should remain joinable and hence detachable */
9611 status = pthread_detach( t );
9612 if( status ) return status;
9617 /* Draft 4 pthreads */
9618 status = pthread_create( &t, pthread_attr_default, task, NULL );
9619 if( status ) return status;
9622 /* give thread a chance to complete */
9623 /* it should remain joinable and hence detachable */
9626 status = pthread_detach( &t );
9627 if( status ) return status;
9631 #ifdef HAVE_LINUX_THREADS
9632 pthread_kill_other_threads_np();
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9641 ol_cv_pthread_lib_lpthread_woff=yes
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9646 ol_cv_pthread_lib_lpthread_woff=no
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9653 /* pthread test headers */
9654 #include <pthread.h>
9656 #define NULL (void*)0
9659 static void *task(p)
9662 return (void *) (p == NULL);
9666 int main(argc, argv)
9671 /* pthread test function */
9676 #ifdef HAVE_PTHREADS_FINAL
9677 /* Final pthreads */
9678 pthread_attr_t attr;
9680 status = pthread_attr_init(&attr);
9681 if( status ) return status;
9683 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9685 #if defined( PTHREAD_CREATE_JOINABLE )
9686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9688 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9691 #ifdef PTHREAD_CREATE_DETACHED
9693 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9696 if( status ) return status;
9699 status = pthread_create( &t, &attr, task, NULL );
9700 if( status ) return status;
9702 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9704 /* give thread a chance to complete */
9705 /* it should remain joinable and hence detachable */
9708 status = pthread_detach( t );
9709 if( status ) return status;
9714 /* Draft 4 pthreads */
9715 status = pthread_create( &t, pthread_attr_default, task, NULL );
9716 if( status ) return status;
9719 /* give thread a chance to complete */
9720 /* it should remain joinable and hence detachable */
9723 status = pthread_detach( &t );
9724 if( status ) return status;
9728 #ifdef HAVE_LINUX_THREADS
9729 pthread_kill_other_threads_np();
9737 if { (eval echo configure:9738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9739 ol_cv_pthread_lib_lpthread_woff=yes
9741 echo "configure: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9744 ol_cv_pthread_lib_lpthread_woff=no
9755 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9757 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9758 ol_link_pthreads="-lpthread -Wl,-woff,85"
9759 ol_link_threads=posix
9764 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9765 if test "$ol_link_threads" = no ; then
9767 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9768 echo "configure:9769: checking for pthread link with -lpthread" >&5
9769 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9775 LIBS="-lpthread $LIBS"
9777 if test "$cross_compiling" = yes; then
9778 cat > conftest.$ac_ext <<EOF
9779 #line 9780 "configure"
9780 #include "confdefs.h"
9781 /* pthread test headers */
9782 #include <pthread.h>
9784 #define NULL (void*)0
9787 static void *task(p)
9790 return (void *) (p == NULL);
9795 /* pthread test function */
9800 #ifdef HAVE_PTHREADS_FINAL
9801 /* Final pthreads */
9802 pthread_attr_t attr;
9804 status = pthread_attr_init(&attr);
9805 if( status ) return status;
9807 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9809 #if defined( PTHREAD_CREATE_JOINABLE )
9810 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9812 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9815 #ifdef PTHREAD_CREATE_DETACHED
9817 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9820 if( status ) return status;
9823 status = pthread_create( &t, &attr, task, NULL );
9824 if( status ) return status;
9826 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9828 /* give thread a chance to complete */
9829 /* it should remain joinable and hence detachable */
9832 status = pthread_detach( t );
9833 if( status ) return status;
9838 /* Draft 4 pthreads */
9839 status = pthread_create( &t, pthread_attr_default, task, NULL );
9840 if( status ) return status;
9843 /* give thread a chance to complete */
9844 /* it should remain joinable and hence detachable */
9847 status = pthread_detach( &t );
9848 if( status ) return status;
9852 #ifdef HAVE_LINUX_THREADS
9853 pthread_kill_other_threads_np();
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9862 ol_cv_pthread_lpthread=yes
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9867 ol_cv_pthread_lpthread=no
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 /* pthread test headers */
9875 #include <pthread.h>
9877 #define NULL (void*)0
9880 static void *task(p)
9883 return (void *) (p == NULL);
9887 int main(argc, argv)
9892 /* pthread test function */
9897 #ifdef HAVE_PTHREADS_FINAL
9898 /* Final pthreads */
9899 pthread_attr_t attr;
9901 status = pthread_attr_init(&attr);
9902 if( status ) return status;
9904 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9906 #if defined( PTHREAD_CREATE_JOINABLE )
9907 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9909 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9912 #ifdef PTHREAD_CREATE_DETACHED
9914 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9917 if( status ) return status;
9920 status = pthread_create( &t, &attr, task, NULL );
9921 if( status ) return status;
9923 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9925 /* give thread a chance to complete */
9926 /* it should remain joinable and hence detachable */
9929 status = pthread_detach( t );
9930 if( status ) return status;
9935 /* Draft 4 pthreads */
9936 status = pthread_create( &t, pthread_attr_default, task, NULL );
9937 if( status ) return status;
9940 /* give thread a chance to complete */
9941 /* it should remain joinable and hence detachable */
9944 status = pthread_detach( &t );
9945 if( status ) return status;
9949 #ifdef HAVE_LINUX_THREADS
9950 pthread_kill_other_threads_np();
9958 if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9960 ol_cv_pthread_lpthread=yes
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9965 ol_cv_pthread_lpthread=no
9976 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9978 if test $ol_cv_pthread_lpthread = yes ; then
9979 ol_link_pthreads="-lpthread"
9980 ol_link_threads=posix
9984 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9985 if test "$ol_link_threads" = no ; then
9987 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9988 echo "configure:9989: checking for pthread link with -lc_r" >&5
9989 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9990 echo $ac_n "(cached) $ac_c" 1>&6
9997 if test "$cross_compiling" = yes; then
9998 cat > conftest.$ac_ext <<EOF
9999 #line 10000 "configure"
10000 #include "confdefs.h"
10001 /* pthread test headers */
10002 #include <pthread.h>
10004 #define NULL (void*)0
10007 static void *task(p)
10010 return (void *) (p == NULL);
10015 /* pthread test function */
10020 #ifdef HAVE_PTHREADS_FINAL
10021 /* Final pthreads */
10022 pthread_attr_t attr;
10024 status = pthread_attr_init(&attr);
10025 if( status ) return status;
10027 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10029 #if defined( PTHREAD_CREATE_JOINABLE )
10030 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10032 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10035 #ifdef PTHREAD_CREATE_DETACHED
10037 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10040 if( status ) return status;
10043 status = pthread_create( &t, &attr, task, NULL );
10044 if( status ) return status;
10046 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10048 /* give thread a chance to complete */
10049 /* it should remain joinable and hence detachable */
10052 status = pthread_detach( t );
10053 if( status ) return status;
10058 /* Draft 4 pthreads */
10059 status = pthread_create( &t, pthread_attr_default, task, NULL );
10060 if( status ) return status;
10063 /* give thread a chance to complete */
10064 /* it should remain joinable and hence detachable */
10067 status = pthread_detach( &t );
10068 if( status ) return status;
10072 #ifdef HAVE_LINUX_THREADS
10073 pthread_kill_other_threads_np();
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10082 ol_cv_pthread_lc_r=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10087 ol_cv_pthread_lc_r=no
10091 cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 /* pthread test headers */
10095 #include <pthread.h>
10097 #define NULL (void*)0
10100 static void *task(p)
10103 return (void *) (p == NULL);
10107 int main(argc, argv)
10112 /* pthread test function */
10117 #ifdef HAVE_PTHREADS_FINAL
10118 /* Final pthreads */
10119 pthread_attr_t attr;
10121 status = pthread_attr_init(&attr);
10122 if( status ) return status;
10124 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10126 #if defined( PTHREAD_CREATE_JOINABLE )
10127 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10129 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10132 #ifdef PTHREAD_CREATE_DETACHED
10134 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10137 if( status ) return status;
10140 status = pthread_create( &t, &attr, task, NULL );
10141 if( status ) return status;
10143 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10145 /* give thread a chance to complete */
10146 /* it should remain joinable and hence detachable */
10149 status = pthread_detach( t );
10150 if( status ) return status;
10155 /* Draft 4 pthreads */
10156 status = pthread_create( &t, pthread_attr_default, task, NULL );
10157 if( status ) return status;
10160 /* give thread a chance to complete */
10161 /* it should remain joinable and hence detachable */
10164 status = pthread_detach( &t );
10165 if( status ) return status;
10169 #ifdef HAVE_LINUX_THREADS
10170 pthread_kill_other_threads_np();
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10180 ol_cv_pthread_lc_r=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 ol_cv_pthread_lc_r=no
10196 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10198 if test $ol_cv_pthread_lc_r = yes ; then
10199 ol_link_pthreads="-lc_r"
10200 ol_link_threads=posix
10205 # Pthread try link: -threads (ol_cv_pthread_threads)
10206 if test "$ol_link_threads" = no ; then
10208 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10209 echo "configure:10210: checking for pthread link with -threads" >&5
10210 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10216 LIBS="-threads $LIBS"
10218 if test "$cross_compiling" = yes; then
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10221 "configure"
10221 #include "confdefs.h"
10222 /* pthread test headers */
10223 #include <pthread.h>
10225 #define NULL (void*)0
10228 static void *task(p)
10231 return (void *) (p == NULL);
10236 /* pthread test function */
10241 #ifdef HAVE_PTHREADS_FINAL
10242 /* Final pthreads */
10243 pthread_attr_t attr;
10245 status = pthread_attr_init(&attr);
10246 if( status ) return status;
10248 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10250 #if defined( PTHREAD_CREATE_JOINABLE )
10251 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10253 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10256 #ifdef PTHREAD_CREATE_DETACHED
10258 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10261 if( status ) return status;
10264 status = pthread_create( &t, &attr, task, NULL );
10265 if( status ) return status;
10267 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10269 /* give thread a chance to complete */
10270 /* it should remain joinable and hence detachable */
10273 status = pthread_detach( t );
10274 if( status ) return status;
10279 /* Draft 4 pthreads */
10280 status = pthread_create( &t, pthread_attr_default, task, NULL );
10281 if( status ) return status;
10284 /* give thread a chance to complete */
10285 /* it should remain joinable and hence detachable */
10288 status = pthread_detach( &t );
10289 if( status ) return status;
10293 #ifdef HAVE_LINUX_THREADS
10294 pthread_kill_other_threads_np();
10301 if { (eval echo configure:10302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10303 ol_cv_pthread_threads=yes
10305 echo "configure: failed program was:" >&5
10306 cat conftest.$ac_ext >&5
10308 ol_cv_pthread_threads=no
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 /* pthread test headers */
10316 #include <pthread.h>
10318 #define NULL (void*)0
10321 static void *task(p)
10324 return (void *) (p == NULL);
10328 int main(argc, argv)
10333 /* pthread test function */
10338 #ifdef HAVE_PTHREADS_FINAL
10339 /* Final pthreads */
10340 pthread_attr_t attr;
10342 status = pthread_attr_init(&attr);
10343 if( status ) return status;
10345 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10347 #if defined( PTHREAD_CREATE_JOINABLE )
10348 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10350 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10353 #ifdef PTHREAD_CREATE_DETACHED
10355 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10358 if( status ) return status;
10361 status = pthread_create( &t, &attr, task, NULL );
10362 if( status ) return status;
10364 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10366 /* give thread a chance to complete */
10367 /* it should remain joinable and hence detachable */
10370 status = pthread_detach( t );
10371 if( status ) return status;
10376 /* Draft 4 pthreads */
10377 status = pthread_create( &t, pthread_attr_default, task, NULL );
10378 if( status ) return status;
10381 /* give thread a chance to complete */
10382 /* it should remain joinable and hence detachable */
10385 status = pthread_detach( &t );
10386 if( status ) return status;
10390 #ifdef HAVE_LINUX_THREADS
10391 pthread_kill_other_threads_np();
10399 if { (eval echo configure:10400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10401 ol_cv_pthread_threads=yes
10403 echo "configure: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10406 ol_cv_pthread_threads=no
10417 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10419 if test $ol_cv_pthread_threads = yes ; then
10420 ol_link_pthreads="-threads"
10421 ol_link_threads=posix
10426 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10427 if test "$ol_link_threads" = no ; then
10428 # try -lpthreads -lmach -lexc -lc_r
10429 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10430 echo "configure:10431: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10431 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10437 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10439 if test "$cross_compiling" = yes; then
10440 cat > conftest.$ac_ext <<EOF
10441 #line 10442 "configure"
10442 #include "confdefs.h"
10443 /* pthread test headers */
10444 #include <pthread.h>
10446 #define NULL (void*)0
10449 static void *task(p)
10452 return (void *) (p == NULL);
10457 /* pthread test function */
10462 #ifdef HAVE_PTHREADS_FINAL
10463 /* Final pthreads */
10464 pthread_attr_t attr;
10466 status = pthread_attr_init(&attr);
10467 if( status ) return status;
10469 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10471 #if defined( PTHREAD_CREATE_JOINABLE )
10472 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10474 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10477 #ifdef PTHREAD_CREATE_DETACHED
10479 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10482 if( status ) return status;
10485 status = pthread_create( &t, &attr, task, NULL );
10486 if( status ) return status;
10488 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10490 /* give thread a chance to complete */
10491 /* it should remain joinable and hence detachable */
10494 status = pthread_detach( t );
10495 if( status ) return status;
10500 /* Draft 4 pthreads */
10501 status = pthread_create( &t, pthread_attr_default, task, NULL );
10502 if( status ) return status;
10505 /* give thread a chance to complete */
10506 /* it should remain joinable and hence detachable */
10509 status = pthread_detach( &t );
10510 if( status ) return status;
10514 #ifdef HAVE_LINUX_THREADS
10515 pthread_kill_other_threads_np();
10522 if { (eval echo configure:10523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10524 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10529 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 /* pthread test headers */
10537 #include <pthread.h>
10539 #define NULL (void*)0
10542 static void *task(p)
10545 return (void *) (p == NULL);
10549 int main(argc, argv)
10554 /* pthread test function */
10559 #ifdef HAVE_PTHREADS_FINAL
10560 /* Final pthreads */
10561 pthread_attr_t attr;
10563 status = pthread_attr_init(&attr);
10564 if( status ) return status;
10566 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10568 #if defined( PTHREAD_CREATE_JOINABLE )
10569 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10571 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10574 #ifdef PTHREAD_CREATE_DETACHED
10576 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10579 if( status ) return status;
10582 status = pthread_create( &t, &attr, task, NULL );
10583 if( status ) return status;
10585 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10587 /* give thread a chance to complete */
10588 /* it should remain joinable and hence detachable */
10591 status = pthread_detach( t );
10592 if( status ) return status;
10597 /* Draft 4 pthreads */
10598 status = pthread_create( &t, pthread_attr_default, task, NULL );
10599 if( status ) return status;
10602 /* give thread a chance to complete */
10603 /* it should remain joinable and hence detachable */
10606 status = pthread_detach( &t );
10607 if( status ) return status;
10611 #ifdef HAVE_LINUX_THREADS
10612 pthread_kill_other_threads_np();
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10622 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10638 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10640 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10641 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10642 ol_link_threads=posix
10646 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10647 if test "$ol_link_threads" = no ; then
10648 # try -lpthreads -lmach -lexc
10649 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10650 echo "configure:10651: checking for pthread link with -lpthreads -lmach -lexc" >&5
10651 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10657 LIBS="-lpthreads -lmach -lexc $LIBS"
10659 if test "$cross_compiling" = yes; then
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10663 /* pthread test headers */
10664 #include <pthread.h>
10666 #define NULL (void*)0
10669 static void *task(p)
10672 return (void *) (p == NULL);
10677 /* pthread test function */
10682 #ifdef HAVE_PTHREADS_FINAL
10683 /* Final pthreads */
10684 pthread_attr_t attr;
10686 status = pthread_attr_init(&attr);
10687 if( status ) return status;
10689 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10691 #if defined( PTHREAD_CREATE_JOINABLE )
10692 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10694 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10697 #ifdef PTHREAD_CREATE_DETACHED
10699 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10702 if( status ) return status;
10705 status = pthread_create( &t, &attr, task, NULL );
10706 if( status ) return status;
10708 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10710 /* give thread a chance to complete */
10711 /* it should remain joinable and hence detachable */
10714 status = pthread_detach( t );
10715 if( status ) return status;
10720 /* Draft 4 pthreads */
10721 status = pthread_create( &t, pthread_attr_default, task, NULL );
10722 if( status ) return status;
10725 /* give thread a chance to complete */
10726 /* it should remain joinable and hence detachable */
10729 status = pthread_detach( &t );
10730 if( status ) return status;
10734 #ifdef HAVE_LINUX_THREADS
10735 pthread_kill_other_threads_np();
10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 ol_cv_pthread_lpthreads_lmach_lexc=yes
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10749 ol_cv_pthread_lpthreads_lmach_lexc=no
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10756 /* pthread test headers */
10757 #include <pthread.h>
10759 #define NULL (void*)0
10762 static void *task(p)
10765 return (void *) (p == NULL);
10769 int main(argc, argv)
10774 /* pthread test function */
10779 #ifdef HAVE_PTHREADS_FINAL
10780 /* Final pthreads */
10781 pthread_attr_t attr;
10783 status = pthread_attr_init(&attr);
10784 if( status ) return status;
10786 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10788 #if defined( PTHREAD_CREATE_JOINABLE )
10789 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10791 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10794 #ifdef PTHREAD_CREATE_DETACHED
10796 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10799 if( status ) return status;
10802 status = pthread_create( &t, &attr, task, NULL );
10803 if( status ) return status;
10805 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10807 /* give thread a chance to complete */
10808 /* it should remain joinable and hence detachable */
10811 status = pthread_detach( t );
10812 if( status ) return status;
10817 /* Draft 4 pthreads */
10818 status = pthread_create( &t, pthread_attr_default, task, NULL );
10819 if( status ) return status;
10822 /* give thread a chance to complete */
10823 /* it should remain joinable and hence detachable */
10826 status = pthread_detach( &t );
10827 if( status ) return status;
10831 #ifdef HAVE_LINUX_THREADS
10832 pthread_kill_other_threads_np();
10840 if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10842 ol_cv_pthread_lpthreads_lmach_lexc=yes
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10847 ol_cv_pthread_lpthreads_lmach_lexc=no
10858 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10860 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10861 ol_link_pthreads="-lpthreads -lmach -lexc"
10862 ol_link_threads=posix
10866 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10867 if test "$ol_link_threads" = no ; then
10868 # try -lpthreads -lexc
10869 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10870 echo "configure:10871: checking for pthread link with -lpthreads -lexc" >&5
10871 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10872 echo $ac_n "(cached) $ac_c" 1>&6
10877 LIBS="-lpthreads -lexc $LIBS"
10879 if test "$cross_compiling" = yes; then
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 /* pthread test headers */
10884 #include <pthread.h>
10886 #define NULL (void*)0
10889 static void *task(p)
10892 return (void *) (p == NULL);
10897 /* pthread test function */
10902 #ifdef HAVE_PTHREADS_FINAL
10903 /* Final pthreads */
10904 pthread_attr_t attr;
10906 status = pthread_attr_init(&attr);
10907 if( status ) return status;
10909 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10911 #if defined( PTHREAD_CREATE_JOINABLE )
10912 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10914 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10917 #ifdef PTHREAD_CREATE_DETACHED
10919 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10922 if( status ) return status;
10925 status = pthread_create( &t, &attr, task, NULL );
10926 if( status ) return status;
10928 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10930 /* give thread a chance to complete */
10931 /* it should remain joinable and hence detachable */
10934 status = pthread_detach( t );
10935 if( status ) return status;
10940 /* Draft 4 pthreads */
10941 status = pthread_create( &t, pthread_attr_default, task, NULL );
10942 if( status ) return status;
10945 /* give thread a chance to complete */
10946 /* it should remain joinable and hence detachable */
10949 status = pthread_detach( &t );
10950 if( status ) return status;
10954 #ifdef HAVE_LINUX_THREADS
10955 pthread_kill_other_threads_np();
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10964 ol_cv_pthread_lpthreads_lexc=yes
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10969 ol_cv_pthread_lpthreads_lexc=no
10973 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure"
10975 #include "confdefs.h"
10976 /* pthread test headers */
10977 #include <pthread.h>
10979 #define NULL (void*)0
10982 static void *task(p)
10985 return (void *) (p == NULL);
10989 int main(argc, argv)
10994 /* pthread test function */
10999 #ifdef HAVE_PTHREADS_FINAL
11000 /* Final pthreads */
11001 pthread_attr_t attr;
11003 status = pthread_attr_init(&attr);
11004 if( status ) return status;
11006 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11008 #if defined( PTHREAD_CREATE_JOINABLE )
11009 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11011 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11014 #ifdef PTHREAD_CREATE_DETACHED
11016 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11019 if( status ) return status;
11022 status = pthread_create( &t, &attr, task, NULL );
11023 if( status ) return status;
11025 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11027 /* give thread a chance to complete */
11028 /* it should remain joinable and hence detachable */
11031 status = pthread_detach( t );
11032 if( status ) return status;
11037 /* Draft 4 pthreads */
11038 status = pthread_create( &t, pthread_attr_default, task, NULL );
11039 if( status ) return status;
11042 /* give thread a chance to complete */
11043 /* it should remain joinable and hence detachable */
11046 status = pthread_detach( &t );
11047 if( status ) return status;
11051 #ifdef HAVE_LINUX_THREADS
11052 pthread_kill_other_threads_np();
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11062 ol_cv_pthread_lpthreads_lexc=yes
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11067 ol_cv_pthread_lpthreads_lexc=no
11078 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
11080 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
11081 ol_link_pthreads="-lpthreads -lexc"
11082 ol_link_threads=posix
11087 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
11088 if test "$ol_link_threads" = no ; then
11090 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
11091 echo "configure:11092: checking for pthread link with -lpthreads" >&5
11092 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11098 LIBS="-lpthreads $LIBS"
11100 if test "$cross_compiling" = yes; then
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11104 /* pthread test headers */
11105 #include <pthread.h>
11107 #define NULL (void*)0
11110 static void *task(p)
11113 return (void *) (p == NULL);
11118 /* pthread test function */
11123 #ifdef HAVE_PTHREADS_FINAL
11124 /* Final pthreads */
11125 pthread_attr_t attr;
11127 status = pthread_attr_init(&attr);
11128 if( status ) return status;
11130 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11132 #if defined( PTHREAD_CREATE_JOINABLE )
11133 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11135 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11138 #ifdef PTHREAD_CREATE_DETACHED
11140 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11143 if( status ) return status;
11146 status = pthread_create( &t, &attr, task, NULL );
11147 if( status ) return status;
11149 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11151 /* give thread a chance to complete */
11152 /* it should remain joinable and hence detachable */
11155 status = pthread_detach( t );
11156 if( status ) return status;
11161 /* Draft 4 pthreads */
11162 status = pthread_create( &t, pthread_attr_default, task, NULL );
11163 if( status ) return status;
11166 /* give thread a chance to complete */
11167 /* it should remain joinable and hence detachable */
11170 status = pthread_detach( &t );
11171 if( status ) return status;
11175 #ifdef HAVE_LINUX_THREADS
11176 pthread_kill_other_threads_np();
11183 if { (eval echo configure:11184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11185 ol_cv_pthread_lib_lpthreads=yes
11187 echo "configure: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11190 ol_cv_pthread_lib_lpthreads=no
11194 cat > conftest.$ac_ext <<EOF
11195 #line 11196 "configure"
11196 #include "confdefs.h"
11197 /* pthread test headers */
11198 #include <pthread.h>
11200 #define NULL (void*)0
11203 static void *task(p)
11206 return (void *) (p == NULL);
11210 int main(argc, argv)
11215 /* pthread test function */
11220 #ifdef HAVE_PTHREADS_FINAL
11221 /* Final pthreads */
11222 pthread_attr_t attr;
11224 status = pthread_attr_init(&attr);
11225 if( status ) return status;
11227 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11229 #if defined( PTHREAD_CREATE_JOINABLE )
11230 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11232 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11235 #ifdef PTHREAD_CREATE_DETACHED
11237 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11240 if( status ) return status;
11243 status = pthread_create( &t, &attr, task, NULL );
11244 if( status ) return status;
11246 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11248 /* give thread a chance to complete */
11249 /* it should remain joinable and hence detachable */
11252 status = pthread_detach( t );
11253 if( status ) return status;
11258 /* Draft 4 pthreads */
11259 status = pthread_create( &t, pthread_attr_default, task, NULL );
11260 if( status ) return status;
11263 /* give thread a chance to complete */
11264 /* it should remain joinable and hence detachable */
11267 status = pthread_detach( &t );
11268 if( status ) return status;
11272 #ifdef HAVE_LINUX_THREADS
11273 pthread_kill_other_threads_np();
11281 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11283 ol_cv_pthread_lib_lpthreads=yes
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11288 ol_cv_pthread_lib_lpthreads=no
11299 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11301 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11302 ol_link_pthreads="-lpthreads"
11303 ol_link_threads=posix
11308 if test $ol_link_threads != no ; then
11309 cat >> confdefs.h <<\EOF
11310 #define HAVE_PTHREADS 1
11314 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11316 save_CPPFLAGS="$CPPFLAGS"
11318 LIBS="$LTHREAD_LIBS $LIBS"
11320 for ac_func in sched_yield pthread_yield
11322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11323 echo "configure:11324: checking for $ac_func" >&5
11324 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func(); below. */
11332 #include <assert.h>
11333 /* Override any gcc2 internal prototype to avoid an error. */
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11341 /* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11352 if { (eval echo configure:11353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11354 eval "ac_cv_func_$ac_func=yes"
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11359 eval "ac_cv_func_$ac_func=no"
11364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11367 cat >> confdefs.h <<EOF
11368 #define $ac_tr_func 1
11372 echo "$ac_t""no" 1>&6
11377 if test $ac_cv_func_sched_yield = no -a \
11378 $ac_cv_func_pthread_yield = no ; then
11379 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11380 echo "configure:11381: checking for sched_yield in -lrt" >&5
11381 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11382 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 ac_save_LIBS="$LIBS"
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 /* Override any gcc2 internal prototype to avoid an error. */
11391 /* We use char because int might match the return type of a gcc2
11392 builtin and then its argument prototype would still apply. */
11393 char sched_yield();
11399 if { (eval echo configure:11400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11401 eval "ac_cv_lib_$ac_lib_var=yes"
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11406 eval "ac_cv_lib_$ac_lib_var=no"
11409 LIBS="$ac_save_LIBS"
11412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11413 echo "$ac_t""yes" 1>&6
11414 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11415 cat >> confdefs.h <<\EOF
11416 #define HAVE_SCHED_YIELD 1
11419 ac_cv_func_sched_yield=yes
11421 echo "$ac_t""no" 1>&6
11422 ac_cv_func_sched_yield=no
11426 if test $ac_cv_func_sched_yield = no -a \
11427 $ac_cv_func_pthread_yield = no ; then
11428 for ac_func in thr_yield
11430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11431 echo "configure:11432: checking for $ac_func" >&5
11432 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11433 echo $ac_n "(cached) $ac_c" 1>&6
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char $ac_func(); below. */
11440 #include <assert.h>
11441 /* Override any gcc2 internal prototype to avoid an error. */
11442 /* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11449 /* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11460 if { (eval echo configure:11461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11462 eval "ac_cv_func_$ac_func=yes"
11464 echo "configure: failed program was:" >&5
11465 cat conftest.$ac_ext >&5
11467 eval "ac_cv_func_$ac_func=no"
11472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11473 echo "$ac_t""yes" 1>&6
11474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11475 cat >> confdefs.h <<EOF
11476 #define $ac_tr_func 1
11480 echo "$ac_t""no" 1>&6
11485 if test $ac_cv_func_sched_yield = no -a \
11486 $ac_cv_func_pthread_yield = no -a \
11487 "$ac_cv_func_thr_yield" = no ; then
11488 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11491 for ac_func in pthread_kill pthread_rwlock_destroy
11493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11494 echo "configure:11495: checking for $ac_func" >&5
11495 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 /* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func(); below. */
11503 #include <assert.h>
11504 /* Override any gcc2 internal prototype to avoid an error. */
11505 /* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11523 if { (eval echo configure:11524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11525 eval "ac_cv_func_$ac_func=yes"
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11530 eval "ac_cv_func_$ac_func=no"
11535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11536 echo "$ac_t""yes" 1>&6
11537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11538 cat >> confdefs.h <<EOF
11539 #define $ac_tr_func 1
11543 echo "$ac_t""no" 1>&6
11548 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11549 echo "configure:11550: checking for pthread_detach with <pthread.h>" >&5
11550 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11551 echo $ac_n "(cached) $ac_c" 1>&6
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11558 #include <pthread.h>
11560 #define NULL (void*)0
11564 pthread_detach(NULL);
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11569 ol_cv_func_pthread_detach=yes
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11574 ol_cv_func_pthread_detach=no
11580 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11582 if test $ol_cv_func_pthread_detach = no ; then
11583 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11586 cat >> confdefs.h <<\EOF
11587 #define HAVE_PTHREAD_DETACH 1
11592 pthread_setconcurrency \
11593 pthread_getconcurrency \
11594 thr_setconcurrency \
11595 thr_getconcurrency \
11598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11599 echo "configure:11600: checking for $ac_func" >&5
11600 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11601 echo $ac_n "(cached) $ac_c" 1>&6
11603 cat > conftest.$ac_ext <<EOF
11604 #line 11605 "configure"
11605 #include "confdefs.h"
11606 /* System header to define __stub macros and hopefully few prototypes,
11607 which can conflict with char $ac_func(); below. */
11608 #include <assert.h>
11609 /* Override any gcc2 internal prototype to avoid an error. */
11610 /* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11617 /* The GNU C library defines this for functions which it implements
11618 to always fail with ENOSYS. Some functions are actually named
11619 something starting with __ and the normal name is an alias. */
11620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11628 if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11630 eval "ac_cv_func_$ac_func=yes"
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11635 eval "ac_cv_func_$ac_func=no"
11640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11641 echo "$ac_t""yes" 1>&6
11642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11643 cat >> confdefs.h <<EOF
11644 #define $ac_tr_func 1
11648 echo "$ac_t""no" 1>&6
11654 for ac_func in pthread_kill_other_threads_np
11656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11657 echo "configure:11658: checking for $ac_func" >&5
11658 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func(); below. */
11666 #include <assert.h>
11667 /* Override any gcc2 internal prototype to avoid an error. */
11668 /* We use char because int might match the return type of a gcc2
11669 builtin and then its argument prototype would still apply. */
11675 /* The GNU C library defines this for functions which it implements
11676 to always fail with ENOSYS. Some functions are actually named
11677 something starting with __ and the normal name is an alias. */
11678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11688 eval "ac_cv_func_$ac_func=yes"
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11693 eval "ac_cv_func_$ac_func=no"
11698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11699 echo "$ac_t""yes" 1>&6
11700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11701 cat >> confdefs.h <<EOF
11702 #define $ac_tr_func 1
11706 echo "$ac_t""no" 1>&6
11710 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11711 echo "configure:11712: checking for LinuxThreads implementation" >&5
11712 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11715 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11718 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11723 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11724 echo "configure:11725: checking for LinuxThreads consistency" >&5
11725 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11729 if test $ol_cv_header_linux_threads = yes -a \
11730 $ol_cv_sys_linux_threads = yes; then
11731 ol_cv_linux_threads=yes
11732 elif test $ol_cv_header_linux_threads = no -a \
11733 $ol_cv_sys_linux_threads = no; then
11734 ol_cv_linux_threads=no
11736 ol_cv_linux_threads=error
11741 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11744 if test $ol_cv_linux_threads = error; then
11745 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11748 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11749 echo "configure:11750: checking if pthread_create() works" >&5
11750 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11754 if test "$cross_compiling" = yes; then
11755 ol_cv_pthread_create_works=yes
11757 cat > conftest.$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760 /* pthread test headers */
11761 #include <pthread.h>
11763 #define NULL (void*)0
11766 static void *task(p)
11769 return (void *) (p == NULL);
11773 int main(argc, argv)
11778 /* pthread test function */
11783 #ifdef HAVE_PTHREADS_FINAL
11784 /* Final pthreads */
11785 pthread_attr_t attr;
11787 status = pthread_attr_init(&attr);
11788 if( status ) return status;
11790 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11792 #if defined( PTHREAD_CREATE_JOINABLE )
11793 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11795 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11798 #ifdef PTHREAD_CREATE_DETACHED
11800 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11803 if( status ) return status;
11806 status = pthread_create( &t, &attr, task, NULL );
11807 if( status ) return status;
11809 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11811 /* give thread a chance to complete */
11812 /* it should remain joinable and hence detachable */
11815 status = pthread_detach( t );
11816 if( status ) return status;
11821 /* Draft 4 pthreads */
11822 status = pthread_create( &t, pthread_attr_default, task, NULL );
11823 if( status ) return status;
11826 /* give thread a chance to complete */
11827 /* it should remain joinable and hence detachable */
11830 status = pthread_detach( &t );
11831 if( status ) return status;
11835 #ifdef HAVE_LINUX_THREADS
11836 pthread_kill_other_threads_np();
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11846 ol_cv_pthread_create_works=yes
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11851 ol_cv_pthread_create_works=no
11858 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11860 if test $ol_cv_pthread_create_works = no ; then
11861 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11864 if test $ol_with_yielding_select = auto ; then
11865 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11866 echo "configure:11867: checking if select yields when using pthreads" >&5
11867 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11871 if test "$cross_compiling" = yes; then
11872 ol_cv_pthread_select_yields=cross
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11878 #include <sys/types.h>
11879 #include <sys/time.h>
11880 #include <unistd.h>
11881 #include <pthread.h>
11883 #define NULL (void*) 0
11886 static int fildes[2];
11888 static void *task(p)
11900 FD_SET(fildes[0], &rfds);
11902 /* we're not interested in any fds */
11903 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11910 exit(0); /* if we exit here, the select blocked the whole process */
11913 int main(argc, argv)
11919 /* create a pipe to select */
11920 if(pipe(&fildes[0])) {
11925 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11926 (void) pthread_setconcurrency(2);
11928 #ifdef HAVE_THR_SETCONCURRENCY
11929 /* Set Solaris LWP concurrency to 2 */
11930 thr_setconcurrency(2);
11934 #if HAVE_PTHREADS_D4
11935 pthread_create(&t, pthread_attr_default, task, NULL);
11937 pthread_create(&t, NULL, task, NULL);
11940 #if HAVE_SCHED_YIELD
11941 sched_yield(); /* make sure task runs first */
11943 #ifdef HAVE_PTHREAD_YIELD
11944 pthread_yield(); /* make sure task runs first */
11951 if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11953 ol_cv_pthread_select_yields=no
11955 echo "configure: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11958 ol_cv_pthread_select_yields=yes
11965 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11967 if test $ol_cv_pthread_select_yields = cross ; then
11968 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11971 if test $ol_cv_pthread_select_yields = yes ; then
11972 ol_with_yielding_select=yes
11976 CPPFLAGS="$save_CPPFLAGS"
11979 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11983 if test $ol_with_threads = posix ; then
11984 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11988 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11989 -o $ol_with_threads = mach ; then
11991 for ac_hdr in mach/cthreads.h cthread.h
11993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11995 echo "configure:11996: checking for $ac_hdr" >&5
11996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12005 { (eval echo configure:12006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12007 if test -z "$ac_err"; then
12009 eval "ac_cv_header_$ac_safe=yes"
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12015 eval "ac_cv_header_$ac_safe=no"
12019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12022 cat >> confdefs.h <<EOF
12023 #define $ac_tr_hdr 1
12027 echo "$ac_t""no" 1>&6
12031 if test $ac_cv_header_mach_cthreads_h = yes ; then
12032 ol_with_threads=found
12034 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12035 echo "configure:12036: checking for cthread_fork" >&5
12036 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char cthread_fork(); below. */
12044 #include <assert.h>
12045 /* Override any gcc2 internal prototype to avoid an error. */
12046 /* We use char because int might match the return type of a gcc2
12047 builtin and then its argument prototype would still apply. */
12048 char cthread_fork();
12053 /* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
12056 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12064 if { (eval echo configure:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12066 eval "ac_cv_func_cthread_fork=yes"
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12071 eval "ac_cv_func_cthread_fork=no"
12076 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12077 echo "$ac_t""yes" 1>&6
12078 ol_link_threads=yes
12080 echo "$ac_t""no" 1>&6
12084 if test $ol_link_threads = no ; then
12085 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
12086 echo "configure:12087: checking for cthread_fork with -all_load" >&5
12087 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12092 LIBS="-all_load $LIBS"
12093 cat > conftest.$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 #include <mach/cthreads.h>
12099 cthread_fork((void *)0, (void *)0);
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12105 ol_cv_cthread_all_load=yes
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 ol_cv_cthread_all_load=no
12117 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
12119 if test $ol_cv_cthread_all_load = yes ; then
12120 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
12121 ol_link_threads=mach
12125 elif test $ac_cv_header_cthreads_h = yes ; then
12127 ol_with_threads=found
12130 LIBS="$LIBS -lthreads"
12131 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12132 echo "configure:12133: checking for cthread_fork" >&5
12133 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12134 echo $ac_n "(cached) $ac_c" 1>&6
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12138 "configure"
12138 #include "confdefs.h"
12139 /* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char cthread_fork(); below. */
12141 #include <assert.h>
12142 /* Override any gcc2 internal prototype to avoid an error. */
12143 /* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12145 char cthread_fork();
12150 /* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
12153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12161 if { (eval echo configure:12162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12163 eval "ac_cv_func_cthread_fork=yes"
12165 echo "configure: failed program was:" >&5
12166 cat conftest.$ac_ext >&5
12168 eval "ac_cv_func_cthread_fork=no"
12173 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12174 echo "$ac_t""yes" 1>&6
12175 ol_link_threads=yes
12177 echo "$ac_t""no" 1>&6
12182 if test $ol_link_threads = yes ; then
12183 LTHREAD_LIBS="-lthreads"
12184 ol_link_threads=mach
12186 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12189 elif test $ol_with_threads = mach ; then
12190 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
12193 if test $ol_link_threads = mach ; then
12194 cat >> confdefs.h <<\EOF
12195 #define HAVE_MACH_CTHREADS 1
12198 elif test $ol_with_threads = found ; then
12199 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12203 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12204 -o $ol_with_threads = pth ; then
12206 for ac_hdr in pth.h
12208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12210 echo "configure:12211: checking for $ac_hdr" >&5
12211 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12212 echo $ac_n "(cached) $ac_c" 1>&6
12214 cat > conftest.$ac_ext <<EOF
12215 #line 12216 "configure"
12216 #include "confdefs.h"
12219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12220 { (eval echo configure:12221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12222 if test -z "$ac_err"; then
12224 eval "ac_cv_header_$ac_safe=yes"
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12230 eval "ac_cv_header_$ac_safe=no"
12234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12235 echo "$ac_t""yes" 1>&6
12236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12237 cat >> confdefs.h <<EOF
12238 #define $ac_tr_hdr 1
12242 echo "$ac_t""no" 1>&6
12247 if test $ac_cv_header_pth_h = yes ; then
12248 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
12249 echo "configure:12250: checking for pth_version in -lpth" >&5
12250 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12251 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12252 echo $ac_n "(cached) $ac_c" 1>&6
12254 ac_save_LIBS="$LIBS"
12256 cat > conftest.$ac_ext <<EOF
12257 #line 12258 "configure"
12258 #include "confdefs.h"
12259 /* Override any gcc2 internal prototype to avoid an error. */
12260 /* We use char because int might match the return type of a gcc2
12261 builtin and then its argument prototype would still apply. */
12262 char pth_version();
12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12270 eval "ac_cv_lib_$ac_lib_var=yes"
12272 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12275 eval "ac_cv_lib_$ac_lib_var=no"
12278 LIBS="$ac_save_LIBS"
12281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12282 echo "$ac_t""yes" 1>&6
12285 echo "$ac_t""no" 1>&6
12290 if test $have_pth = yes ; then
12291 cat >> confdefs.h <<\EOF
12292 #define HAVE_GNU_PTH 1
12295 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12296 ol_link_threads=pth
12298 if test $ol_with_yielding_select = auto ; then
12299 ol_with_yielding_select=yes
12305 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12306 -o $ol_with_threads = lwp ; then
12308 for ac_hdr in thread.h synch.h
12310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12312 echo "configure:12313: checking for $ac_hdr" >&5
12313 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12322 { (eval echo configure:12323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12324 if test -z "$ac_err"; then
12326 eval "ac_cv_header_$ac_safe=yes"
12329 echo "configure: failed program was:" >&5
12330 cat conftest.$ac_ext >&5
12332 eval "ac_cv_header_$ac_safe=no"
12336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12337 echo "$ac_t""yes" 1>&6
12338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12339 cat >> confdefs.h <<EOF
12340 #define $ac_tr_hdr 1
12344 echo "$ac_t""no" 1>&6
12348 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12349 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12350 echo "configure:12351: checking for thr_create in -lthread" >&5
12351 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12355 ac_save_LIBS="$LIBS"
12356 LIBS="-lthread $LIBS"
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12360 /* Override any gcc2 internal prototype to avoid an error. */
12361 /* We use char because int might match the return type of a gcc2
12362 builtin and then its argument prototype would still apply. */
12369 if { (eval echo configure:12370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12371 eval "ac_cv_lib_$ac_lib_var=yes"
12373 echo "configure: failed program was:" >&5
12374 cat conftest.$ac_ext >&5
12376 eval "ac_cv_lib_$ac_lib_var=no"
12379 LIBS="$ac_save_LIBS"
12382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12383 echo "$ac_t""yes" 1>&6
12386 echo "$ac_t""no" 1>&6
12391 if test $have_thr = yes ; then
12392 cat >> confdefs.h <<\EOF
12396 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12397 ol_link_threads=thr
12399 if test $ol_with_yielding_select = auto ; then
12400 ol_with_yielding_select=yes
12404 thr_setconcurrency \
12405 thr_getconcurrency \
12408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12409 echo "configure:12410: checking for $ac_func" >&5
12410 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12411 echo $ac_n "(cached) $ac_c" 1>&6
12413 cat > conftest.$ac_ext <<EOF
12414 #line 12415 "configure"
12415 #include "confdefs.h"
12416 /* System header to define __stub macros and hopefully few prototypes,
12417 which can conflict with char $ac_func(); below. */
12418 #include <assert.h>
12419 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12427 /* The GNU C library defines this for functions which it implements
12428 to always fail with ENOSYS. Some functions are actually named
12429 something starting with __ and the normal name is an alias. */
12430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12438 if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 eval "ac_cv_func_$ac_func=yes"
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 eval "ac_cv_func_$ac_func=no"
12450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12451 echo "$ac_t""yes" 1>&6
12452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12453 cat >> confdefs.h <<EOF
12454 #define $ac_tr_func 1
12458 echo "$ac_t""no" 1>&6
12465 for ac_hdr in lwp/lwp.h
12467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12469 echo "configure:12470: checking for $ac_hdr" >&5
12470 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12471 echo $ac_n "(cached) $ac_c" 1>&6
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12479 { (eval echo configure:12480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12481 if test -z "$ac_err"; then
12483 eval "ac_cv_header_$ac_safe=yes"
12486 echo "configure: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12489 eval "ac_cv_header_$ac_safe=no"
12493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12494 echo "$ac_t""yes" 1>&6
12495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12496 cat >> confdefs.h <<EOF
12497 #define $ac_tr_hdr 1
12501 echo "$ac_t""no" 1>&6
12505 if test $ac_cv_header_lwp_lwp_h = yes ; then
12506 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12507 echo "configure:12508: checking for lwp_create in -llwp" >&5
12508 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12510 echo $ac_n "(cached) $ac_c" 1>&6
12512 ac_save_LIBS="$LIBS"
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517 /* Override any gcc2 internal prototype to avoid an error. */
12518 /* We use char because int might match the return type of a gcc2
12519 builtin and then its argument prototype would still apply. */
12526 if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528 eval "ac_cv_lib_$ac_lib_var=yes"
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12533 eval "ac_cv_lib_$ac_lib_var=no"
12536 LIBS="$ac_save_LIBS"
12539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12540 echo "$ac_t""yes" 1>&6
12543 echo "$ac_t""no" 1>&6
12548 if test $have_lwp = yes ; then
12549 cat >> confdefs.h <<\EOF
12553 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12554 ol_link_threads=lwp
12556 if test $ol_with_yielding_select = auto ; then
12557 ol_with_yielding_select=no
12563 if test $ol_with_yielding_select = yes ; then
12564 cat >> confdefs.h <<\EOF
12565 #define HAVE_YIELDING_SELECT 1
12570 if test $ol_with_threads = manual ; then
12571 ol_link_threads=yes
12573 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12575 for ac_hdr in pthread.h sched.h
12577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12579 echo "configure:12580: checking for $ac_hdr" >&5
12580 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12583 cat > conftest.$ac_ext <<EOF
12584 #line 12585 "configure"
12585 #include "confdefs.h"
12588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12589 { (eval echo configure:12590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12591 if test -z "$ac_err"; then
12593 eval "ac_cv_header_$ac_safe=yes"
12596 echo "configure: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12599 eval "ac_cv_header_$ac_safe=no"
12603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12604 echo "$ac_t""yes" 1>&6
12605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12606 cat >> confdefs.h <<EOF
12607 #define $ac_tr_hdr 1
12611 echo "$ac_t""no" 1>&6
12615 for ac_func in sched_yield pthread_yield
12617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12618 echo "configure:12619: checking for $ac_func" >&5
12619 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12622 cat > conftest.$ac_ext <<EOF
12623 #line 12624 "configure"
12624 #include "confdefs.h"
12625 /* System header to define __stub macros and hopefully few prototypes,
12626 which can conflict with char $ac_func(); below. */
12627 #include <assert.h>
12628 /* Override any gcc2 internal prototype to avoid an error. */
12629 /* We use char because int might match the return type of a gcc2
12630 builtin and then its argument prototype would still apply. */
12636 /* The GNU C library defines this for functions which it implements
12637 to always fail with ENOSYS. Some functions are actually named
12638 something starting with __ and the normal name is an alias. */
12639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12647 if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12649 eval "ac_cv_func_$ac_func=yes"
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12654 eval "ac_cv_func_$ac_func=no"
12659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12660 echo "$ac_t""yes" 1>&6
12661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12662 cat >> confdefs.h <<EOF
12663 #define $ac_tr_func 1
12667 echo "$ac_t""no" 1>&6
12672 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12673 echo "configure:12674: checking for LinuxThreads pthread.h" >&5
12674 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12675 echo $ac_n "(cached) $ac_c" 1>&6
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 #include <pthread.h>
12682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12683 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12685 ol_cv_header_linux_threads=yes
12688 ol_cv_header_linux_threads=no
12695 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12696 if test $ol_cv_header_linux_threads = yes; then
12697 cat >> confdefs.h <<\EOF
12698 #define HAVE_LINUX_THREADS 1
12704 for ac_hdr in mach/cthreads.h
12706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12708 echo "configure:12709: checking for $ac_hdr" >&5
12709 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12710 echo $ac_n "(cached) $ac_c" 1>&6
12712 cat > conftest.$ac_ext <<EOF
12713 #line 12714 "configure"
12714 #include "confdefs.h"
12717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12718 { (eval echo configure:12719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12720 if test -z "$ac_err"; then
12722 eval "ac_cv_header_$ac_safe=yes"
12725 echo "configure: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12728 eval "ac_cv_header_$ac_safe=no"
12732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12733 echo "$ac_t""yes" 1>&6
12734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12735 cat >> confdefs.h <<EOF
12736 #define $ac_tr_hdr 1
12740 echo "$ac_t""no" 1>&6
12744 for ac_hdr in lwp/lwp.h
12746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12748 echo "configure:12749: checking for $ac_hdr" >&5
12749 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12750 echo $ac_n "(cached) $ac_c" 1>&6
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12758 { (eval echo configure:12759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12760 if test -z "$ac_err"; then
12762 eval "ac_cv_header_$ac_safe=yes"
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12768 eval "ac_cv_header_$ac_safe=no"
12772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12773 echo "$ac_t""yes" 1>&6
12774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12775 cat >> confdefs.h <<EOF
12776 #define $ac_tr_hdr 1
12780 echo "$ac_t""no" 1>&6
12784 for ac_hdr in thread.h synch.h
12786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12788 echo "configure:12789: checking for $ac_hdr" >&5
12789 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12790 echo $ac_n "(cached) $ac_c" 1>&6
12792 cat > conftest.$ac_ext <<EOF
12793 #line 12794 "configure"
12794 #include "confdefs.h"
12797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12798 { (eval echo configure:12799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12800 if test -z "$ac_err"; then
12802 eval "ac_cv_header_$ac_safe=yes"
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12808 eval "ac_cv_header_$ac_safe=no"
12812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12813 echo "$ac_t""yes" 1>&6
12814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12815 cat >> confdefs.h <<EOF
12816 #define $ac_tr_hdr 1
12820 echo "$ac_t""no" 1>&6
12826 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12827 cat >> confdefs.h <<\EOF
12828 #define REENTRANT 1
12831 cat >> confdefs.h <<\EOF
12832 #define _REENTRANT 1
12835 cat >> confdefs.h <<\EOF
12836 #define THREAD_SAFE 1
12839 cat >> confdefs.h <<\EOF
12840 #define _THREAD_SAFE 1
12843 cat >> confdefs.h <<\EOF
12844 #define THREADSAFE 1
12847 cat >> confdefs.h <<\EOF
12848 #define _THREADSAFE 1
12851 cat >> confdefs.h <<\EOF
12852 #define _SGI_MP_SOURCE 1
12856 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12857 echo "configure:12858: checking for thread specific errno" >&5
12858 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12859 echo $ac_n "(cached) $ac_c" 1>&6
12862 cat > conftest.$ac_ext <<EOF
12863 #line 12864 "configure"
12864 #include "confdefs.h"
12870 if { (eval echo configure:12871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12872 ol_cv_errno_thread_specific=yes
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12877 ol_cv_errno_thread_specific=no
12883 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12885 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12886 echo "configure:12887: checking for thread specific h_errno" >&5
12887 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12888 echo $ac_n "(cached) $ac_c" 1>&6
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12899 if { (eval echo configure:12900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12901 ol_cv_h_errno_thread_specific=yes
12903 echo "configure: failed program was:" >&5
12904 cat conftest.$ac_ext >&5
12906 ol_cv_h_errno_thread_specific=no
12912 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12914 if test $ol_cv_errno_thread_specific != yes \
12915 -o $ol_cv_h_errno_thread_specific != yes ; then
12916 LIBS="$LTHREAD_LIBS $LIBS"
12922 if test $ol_link_threads = no ; then
12923 if test $ol_with_threads = yes ; then
12924 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12927 if test $ol_with_threads = auto ; then
12928 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12932 cat >> confdefs.h <<\EOF
12933 #define NO_THREADS 1
12939 if test $ol_link_threads != no ; then
12940 cat >> confdefs.h <<\EOF
12941 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12948 if test $ol_with_ldbm_api = auto \
12949 -o $ol_with_ldbm_api = berkeley \
12950 -o $ol_with_ldbm_api = bcompat ; then
12952 if test $ol_with_ldbm_api = bcompat; then \
12953 ol_cv_berkeley_db=no
12954 for ac_hdr in db_185.h db.h
12956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12958 echo "configure:12959: checking for $ac_hdr" >&5
12959 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12960 echo $ac_n "(cached) $ac_c" 1>&6
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12968 { (eval echo configure:12969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12970 if test -z "$ac_err"; then
12972 eval "ac_cv_header_$ac_safe=yes"
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12978 eval "ac_cv_header_$ac_safe=no"
12982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12983 echo "$ac_t""yes" 1>&6
12984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12985 cat >> confdefs.h <<EOF
12986 #define $ac_tr_hdr 1
12990 echo "$ac_t""no" 1>&6
12994 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12995 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12996 echo "configure:12997: checking if Berkeley DB header compatibility" >&5
12997 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12998 echo $ac_n "(cached) $ac_c" 1>&6
13001 cat > conftest.$ac_ext <<EOF
13002 #line 13003 "configure"
13003 #include "confdefs.h"
13006 # include <db_185.h>
13011 /* this check could be improved */
13012 #ifndef DB_VERSION_MAJOR
13013 # define DB_VERSION_MAJOR 1
13016 #if DB_VERSION_MAJOR == 1
13021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13022 egrep "__db_version_1" >/dev/null 2>&1; then
13024 ol_cv_header_db1=yes
13027 ol_cv_header_db1=no
13033 echo "$ac_t""$ol_cv_header_db1" 1>&6
13035 if test $ol_cv_header_db1 = yes ; then
13037 if test $ol_cv_lib_db = no ; then
13038 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13039 echo "configure:13040: checking for Berkeley DB link (default)" >&5
13040 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13046 LIBS="$ol_DB_LIB $LIBS"
13048 cat > conftest.$ac_ext <<EOF
13049 #line 13050 "configure"
13050 #include "confdefs.h"
13052 #ifdef HAVE_DB_185_H
13053 # include <db_185.h>
13058 #ifndef DB_VERSION_MAJOR
13059 # define DB_VERSION_MAJOR 1
13063 #define NULL ((void*)0)
13068 #if DB_VERSION_MAJOR > 1
13071 int major, minor, patch;
13073 version = db_version( &major, &minor, &patch );
13075 if( major != DB_VERSION_MAJOR ||
13076 minor < DB_VERSION_MINOR )
13078 printf("Berkeley DB version mismatch\n"
13079 "\texpected: %s\n\tgot: %s\n",
13080 DB_VERSION_STRING, version);
13086 #if DB_VERSION_MAJOR > 2
13087 db_env_create( NULL, 0 );
13088 #elif DB_VERSION_MAJOR > 1
13089 db_appexit( NULL );
13091 (void) dbopen( NULL, 0, 0, 0, NULL);
13096 if { (eval echo configure:13097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13100 echo "configure: failed program was:" >&5
13101 cat conftest.$ac_ext >&5
13111 echo "$ac_t""$ol_cv_db_none" 1>&6
13113 if test $ol_cv_db_none = yes ; then
13118 if test $ol_cv_lib_db = no ; then
13119 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13120 echo "configure:13121: checking for Berkeley DB link (-ldb)" >&5
13121 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13122 echo $ac_n "(cached) $ac_c" 1>&6
13127 LIBS="$ol_DB_LIB $LIBS"
13129 cat > conftest.$ac_ext <<EOF
13130 #line 13131 "configure"
13131 #include "confdefs.h"
13133 #ifdef HAVE_DB_185_H
13134 # include <db_185.h>
13139 #ifndef DB_VERSION_MAJOR
13140 # define DB_VERSION_MAJOR 1
13144 #define NULL ((void*)0)
13149 #if DB_VERSION_MAJOR > 1
13152 int major, minor, patch;
13154 version = db_version( &major, &minor, &patch );
13156 if( major != DB_VERSION_MAJOR ||
13157 minor < DB_VERSION_MINOR )
13159 printf("Berkeley DB version mismatch\n"
13160 "\texpected: %s\n\tgot: %s\n",
13161 DB_VERSION_STRING, version);
13167 #if DB_VERSION_MAJOR > 2
13168 db_env_create( NULL, 0 );
13169 #elif DB_VERSION_MAJOR > 1
13170 db_appexit( NULL );
13172 (void) dbopen( NULL, 0, 0, 0, NULL);
13177 if { (eval echo configure:13178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13181 echo "configure: failed program was:" >&5
13182 cat conftest.$ac_ext >&5
13192 echo "$ac_t""$ol_cv_db_db" 1>&6
13194 if test $ol_cv_db_db = yes ; then
13199 if test $ol_cv_lib_db = no ; then
13200 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13201 echo "configure:13202: checking for Berkeley DB link (-ldb3)" >&5
13202 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13203 echo $ac_n "(cached) $ac_c" 1>&6
13208 LIBS="$ol_DB_LIB $LIBS"
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13214 #ifdef HAVE_DB_185_H
13215 # include <db_185.h>
13220 #ifndef DB_VERSION_MAJOR
13221 # define DB_VERSION_MAJOR 1
13225 #define NULL ((void*)0)
13230 #if DB_VERSION_MAJOR > 1
13233 int major, minor, patch;
13235 version = db_version( &major, &minor, &patch );
13237 if( major != DB_VERSION_MAJOR ||
13238 minor < DB_VERSION_MINOR )
13240 printf("Berkeley DB version mismatch\n"
13241 "\texpected: %s\n\tgot: %s\n",
13242 DB_VERSION_STRING, version);
13248 #if DB_VERSION_MAJOR > 2
13249 db_env_create( NULL, 0 );
13250 #elif DB_VERSION_MAJOR > 1
13251 db_appexit( NULL );
13253 (void) dbopen( NULL, 0, 0, 0, NULL);
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13273 echo "$ac_t""$ol_cv_db_db3" 1>&6
13275 if test $ol_cv_db_db3 = yes ; then
13280 if test $ol_cv_lib_db = no ; then
13281 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13282 echo "configure:13283: checking for Berkeley DB link (-ldb2)" >&5
13283 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13284 echo $ac_n "(cached) $ac_c" 1>&6
13289 LIBS="$ol_DB_LIB $LIBS"
13291 cat > conftest.$ac_ext <<EOF
13292 #line 13293 "configure"
13293 #include "confdefs.h"
13295 #ifdef HAVE_DB_185_H
13296 # include <db_185.h>
13301 #ifndef DB_VERSION_MAJOR
13302 # define DB_VERSION_MAJOR 1
13306 #define NULL ((void*)0)
13311 #if DB_VERSION_MAJOR > 1
13314 int major, minor, patch;
13316 version = db_version( &major, &minor, &patch );
13318 if( major != DB_VERSION_MAJOR ||
13319 minor < DB_VERSION_MINOR )
13321 printf("Berkeley DB version mismatch\n"
13322 "\texpected: %s\n\tgot: %s\n",
13323 DB_VERSION_STRING, version);
13329 #if DB_VERSION_MAJOR > 2
13330 db_env_create( NULL, 0 );
13331 #elif DB_VERSION_MAJOR > 1
13332 db_appexit( NULL );
13334 (void) dbopen( NULL, 0, 0, 0, NULL);
13339 if { (eval echo configure:13340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13343 echo "configure: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13354 echo "$ac_t""$ol_cv_db_db2" 1>&6
13356 if test $ol_cv_db_db2 = yes ; then
13361 if test $ol_cv_lib_db = no ; then
13362 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13363 echo "configure:13364: checking for Berkeley DB link (-ldb1)" >&5
13364 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13365 echo $ac_n "(cached) $ac_c" 1>&6
13370 LIBS="$ol_DB_LIB $LIBS"
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13376 #ifdef HAVE_DB_185_H
13377 # include <db_185.h>
13382 #ifndef DB_VERSION_MAJOR
13383 # define DB_VERSION_MAJOR 1
13387 #define NULL ((void*)0)
13392 #if DB_VERSION_MAJOR > 1
13395 int major, minor, patch;
13397 version = db_version( &major, &minor, &patch );
13399 if( major != DB_VERSION_MAJOR ||
13400 minor < DB_VERSION_MINOR )
13402 printf("Berkeley DB version mismatch\n"
13403 "\texpected: %s\n\tgot: %s\n",
13404 DB_VERSION_STRING, version);
13410 #if DB_VERSION_MAJOR > 2
13411 db_env_create( NULL, 0 );
13412 #elif DB_VERSION_MAJOR > 1
13413 db_appexit( NULL );
13415 (void) dbopen( NULL, 0, 0, 0, NULL);
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13435 echo "$ac_t""$ol_cv_db_db1" 1>&6
13437 if test $ol_cv_db_db1 = yes ; then
13443 if test "$ol_cv_lib_db" != no ; then
13444 ol_cv_berkeley_db=yes
13450 ol_cv_berkeley_db=no
13453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13455 echo "configure:13456: checking for $ac_hdr" >&5
13456 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13457 echo $ac_n "(cached) $ac_c" 1>&6
13459 cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13465 { (eval echo configure:13466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13467 if test -z "$ac_err"; then
13469 eval "ac_cv_header_$ac_safe=yes"
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13475 eval "ac_cv_header_$ac_safe=no"
13479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13480 echo "$ac_t""yes" 1>&6
13481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13482 cat >> confdefs.h <<EOF
13483 #define $ac_tr_hdr 1
13487 echo "$ac_t""no" 1>&6
13491 if test $ac_cv_header_db_h = yes; then
13493 if test $ol_cv_lib_db = no ; then
13494 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13495 echo "configure:13496: checking for Berkeley DB link (default)" >&5
13496 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13497 echo $ac_n "(cached) $ac_c" 1>&6
13502 LIBS="$ol_DB_LIB $LIBS"
13504 cat > conftest.$ac_ext <<EOF
13505 #line 13506 "configure"
13506 #include "confdefs.h"
13508 #ifdef HAVE_DB_185_H
13509 # include <db_185.h>
13514 #ifndef DB_VERSION_MAJOR
13515 # define DB_VERSION_MAJOR 1
13519 #define NULL ((void*)0)
13524 #if DB_VERSION_MAJOR > 1
13527 int major, minor, patch;
13529 version = db_version( &major, &minor, &patch );
13531 if( major != DB_VERSION_MAJOR ||
13532 minor < DB_VERSION_MINOR )
13534 printf("Berkeley DB version mismatch\n"
13535 "\texpected: %s\n\tgot: %s\n",
13536 DB_VERSION_STRING, version);
13542 #if DB_VERSION_MAJOR > 2
13543 db_env_create( NULL, 0 );
13544 #elif DB_VERSION_MAJOR > 1
13545 db_appexit( NULL );
13547 (void) dbopen( NULL, 0, 0, 0, NULL);
13552 if { (eval echo configure:13553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13556 echo "configure: failed program was:" >&5
13557 cat conftest.$ac_ext >&5
13567 echo "$ac_t""$ol_cv_db_none" 1>&6
13569 if test $ol_cv_db_none = yes ; then
13574 if test $ol_cv_lib_db = no ; then
13575 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13576 echo "configure:13577: checking for Berkeley DB link (-ldb)" >&5
13577 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13578 echo $ac_n "(cached) $ac_c" 1>&6
13583 LIBS="$ol_DB_LIB $LIBS"
13585 cat > conftest.$ac_ext <<EOF
13586 #line 13587 "configure"
13587 #include "confdefs.h"
13589 #ifdef HAVE_DB_185_H
13590 # include <db_185.h>
13595 #ifndef DB_VERSION_MAJOR
13596 # define DB_VERSION_MAJOR 1
13600 #define NULL ((void*)0)
13605 #if DB_VERSION_MAJOR > 1
13608 int major, minor, patch;
13610 version = db_version( &major, &minor, &patch );
13612 if( major != DB_VERSION_MAJOR ||
13613 minor < DB_VERSION_MINOR )
13615 printf("Berkeley DB version mismatch\n"
13616 "\texpected: %s\n\tgot: %s\n",
13617 DB_VERSION_STRING, version);
13623 #if DB_VERSION_MAJOR > 2
13624 db_env_create( NULL, 0 );
13625 #elif DB_VERSION_MAJOR > 1
13626 db_appexit( NULL );
13628 (void) dbopen( NULL, 0, 0, 0, NULL);
13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13648 echo "$ac_t""$ol_cv_db_db" 1>&6
13650 if test $ol_cv_db_db = yes ; then
13655 if test $ol_cv_lib_db = no ; then
13656 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13657 echo "configure:13658: checking for Berkeley DB link (-ldb3)" >&5
13658 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13659 echo $ac_n "(cached) $ac_c" 1>&6
13664 LIBS="$ol_DB_LIB $LIBS"
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13670 #ifdef HAVE_DB_185_H
13671 # include <db_185.h>
13676 #ifndef DB_VERSION_MAJOR
13677 # define DB_VERSION_MAJOR 1
13681 #define NULL ((void*)0)
13686 #if DB_VERSION_MAJOR > 1
13689 int major, minor, patch;
13691 version = db_version( &major, &minor, &patch );
13693 if( major != DB_VERSION_MAJOR ||
13694 minor < DB_VERSION_MINOR )
13696 printf("Berkeley DB version mismatch\n"
13697 "\texpected: %s\n\tgot: %s\n",
13698 DB_VERSION_STRING, version);
13704 #if DB_VERSION_MAJOR > 2
13705 db_env_create( NULL, 0 );
13706 #elif DB_VERSION_MAJOR > 1
13707 db_appexit( NULL );
13709 (void) dbopen( NULL, 0, 0, 0, NULL);
13714 if { (eval echo configure:13715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13718 echo "configure: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13729 echo "$ac_t""$ol_cv_db_db3" 1>&6
13731 if test $ol_cv_db_db3 = yes ; then
13736 if test $ol_cv_lib_db = no ; then
13737 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13738 echo "configure:13739: checking for Berkeley DB link (-ldb2)" >&5
13739 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13740 echo $ac_n "(cached) $ac_c" 1>&6
13745 LIBS="$ol_DB_LIB $LIBS"
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13751 #ifdef HAVE_DB_185_H
13752 # include <db_185.h>
13757 #ifndef DB_VERSION_MAJOR
13758 # define DB_VERSION_MAJOR 1
13762 #define NULL ((void*)0)
13767 #if DB_VERSION_MAJOR > 1
13770 int major, minor, patch;
13772 version = db_version( &major, &minor, &patch );
13774 if( major != DB_VERSION_MAJOR ||
13775 minor < DB_VERSION_MINOR )
13777 printf("Berkeley DB version mismatch\n"
13778 "\texpected: %s\n\tgot: %s\n",
13779 DB_VERSION_STRING, version);
13785 #if DB_VERSION_MAJOR > 2
13786 db_env_create( NULL, 0 );
13787 #elif DB_VERSION_MAJOR > 1
13788 db_appexit( NULL );
13790 (void) dbopen( NULL, 0, 0, 0, NULL);
13795 if { (eval echo configure:13796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13799 echo "configure: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13810 echo "$ac_t""$ol_cv_db_db2" 1>&6
13812 if test $ol_cv_db_db2 = yes ; then
13817 if test $ol_cv_lib_db = no ; then
13818 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13819 echo "configure:13820: checking for Berkeley DB link (-ldb1)" >&5
13820 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13821 echo $ac_n "(cached) $ac_c" 1>&6
13826 LIBS="$ol_DB_LIB $LIBS"
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13832 #ifdef HAVE_DB_185_H
13833 # include <db_185.h>
13838 #ifndef DB_VERSION_MAJOR
13839 # define DB_VERSION_MAJOR 1
13843 #define NULL ((void*)0)
13848 #if DB_VERSION_MAJOR > 1
13851 int major, minor, patch;
13853 version = db_version( &major, &minor, &patch );
13855 if( major != DB_VERSION_MAJOR ||
13856 minor < DB_VERSION_MINOR )
13858 printf("Berkeley DB version mismatch\n"
13859 "\texpected: %s\n\tgot: %s\n",
13860 DB_VERSION_STRING, version);
13866 #if DB_VERSION_MAJOR > 2
13867 db_env_create( NULL, 0 );
13868 #elif DB_VERSION_MAJOR > 1
13869 db_appexit( NULL );
13871 (void) dbopen( NULL, 0, 0, 0, NULL);
13876 if { (eval echo configure:13877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13891 echo "$ac_t""$ol_cv_db_db1" 1>&6
13893 if test $ol_cv_db_db1 = yes ; then
13899 if test "$ol_cv_lib_db" != no ; then
13900 ol_cv_berkeley_db=yes
13901 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13902 echo "configure:13903: checking for Berkeley DB thread support" >&5
13903 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13904 echo $ac_n "(cached) $ac_c" 1>&6
13908 if test $ol_cv_lib_db != yes ; then
13909 LIBS="$ol_cv_lib_db"
13912 if test "$cross_compiling" = yes; then
13913 ol_cv_berkeley_db_thread=cross
13915 cat > conftest.$ac_ext <<EOF
13916 #line 13917 "configure"
13917 #include "confdefs.h"
13919 #ifdef HAVE_DB_185_H
13925 #define NULL ((void *)0)
13930 u_int32_t flags = DB_CREATE |
13936 #if DB_VERSION_MAJOR > 2
13937 DB_ENV *env = NULL;
13939 rc = db_env_create( &env, 0 );
13941 flags |= DB_INIT_MPOOL;
13942 #ifdef DB_MPOOL_PRIVATE
13943 flags |= DB_MPOOL_PRIVATE;
13947 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13951 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13952 rc = env->open( env, NULL, flags, 0 );
13954 rc = env->open( env, NULL, NULL, flags, 0 );
13958 rc = env->close( env, 0 );
13962 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13968 memset( &env, '\0', sizeof(env) );
13970 rc = db_appinit( NULL, NULL, &env, flags );
13973 db_appexit( &env );
13976 unlink("__db_mpool.share");
13977 unlink("__db_lock.share");
13983 if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13985 ol_cv_berkeley_db_thread=yes
13987 echo "configure: failed program was:" >&5
13988 cat conftest.$ac_ext >&5
13990 ol_cv_berkeley_db_thread=no
13998 if test $ol_cv_berkeley_db_thread != no ; then
13999 cat >> confdefs.h <<\EOF
14000 #define HAVE_BERKELEY_DB_THREAD 1
14007 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
14013 if test $ol_cv_berkeley_db != no ; then
14014 cat >> confdefs.h <<\EOF
14015 #define HAVE_BERKELEY_DB 1
14019 ol_link_ldbm=berkeley
14020 ol_with_ldbm_api=berkeley
14022 if test $ol_with_ldbm_type = hash ; then
14023 cat >> confdefs.h <<\EOF
14024 #define LDBM_USE_DBHASH 1
14028 cat >> confdefs.h <<\EOF
14029 #define LDBM_USE_DBBTREE 1
14034 if test $ol_cv_lib_db != yes ; then
14035 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
14040 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
14041 { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
14042 elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
14046 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
14047 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
14048 ol_with_ldbm_api=none
14051 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
14052 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
14053 echo "configure:14054: checking for MDBM library" >&5
14054 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14058 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
14059 echo "configure:14060: checking for mdbm_set_chain" >&5
14060 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14066 /* System header to define __stub macros and hopefully few prototypes,
14067 which can conflict with char mdbm_set_chain(); below. */
14068 #include <assert.h>
14069 /* Override any gcc2 internal prototype to avoid an error. */
14070 /* We use char because int might match the return type of a gcc2
14071 builtin and then its argument prototype would still apply. */
14072 char mdbm_set_chain();
14077 /* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
14083 f = mdbm_set_chain;
14088 if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14090 eval "ac_cv_func_mdbm_set_chain=yes"
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14095 eval "ac_cv_func_mdbm_set_chain=no"
14100 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
14101 echo "$ac_t""yes" 1>&6
14104 echo "$ac_t""no" 1>&6
14106 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
14107 echo "configure:14108: checking for mdbm_set_chain in -lmdbm" >&5
14108 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
14109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14110 echo $ac_n "(cached) $ac_c" 1>&6
14112 ac_save_LIBS="$LIBS"
14113 LIBS="-lmdbm $LIBS"
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 /* Override any gcc2 internal prototype to avoid an error. */
14118 /* We use char because int might match the return type of a gcc2
14119 builtin and then its argument prototype would still apply. */
14120 char mdbm_set_chain();
14126 if { (eval echo configure:14127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128 eval "ac_cv_lib_$ac_lib_var=yes"
14130 echo "configure: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14133 eval "ac_cv_lib_$ac_lib_var=no"
14136 LIBS="$ac_save_LIBS"
14139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14140 echo "$ac_t""yes" 1>&6
14141 ol_cv_lib_mdbm=-lmdbm
14143 echo "$ac_t""no" 1>&6
14154 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
14157 for ac_hdr in mdbm.h
14159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14161 echo "configure:14162: checking for $ac_hdr" >&5
14162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14163 echo $ac_n "(cached) $ac_c" 1>&6
14165 cat > conftest.$ac_ext <<EOF
14166 #line 14167 "configure"
14167 #include "confdefs.h"
14170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14171 { (eval echo configure:14172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14173 if test -z "$ac_err"; then
14175 eval "ac_cv_header_$ac_safe=yes"
14178 echo "configure: failed program was:" >&5
14179 cat conftest.$ac_ext >&5
14181 eval "ac_cv_header_$ac_safe=no"
14185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14186 echo "$ac_t""yes" 1>&6
14187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14188 cat >> confdefs.h <<EOF
14189 #define $ac_tr_hdr 1
14193 echo "$ac_t""no" 1>&6
14197 echo $ac_n "checking for db""... $ac_c" 1>&6
14198 echo "configure:14199: checking for db" >&5
14199 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
14200 echo $ac_n "(cached) $ac_c" 1>&6
14203 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
14211 echo "$ac_t""$ol_cv_mdbm" 1>&6
14212 if test $ol_cv_mdbm = yes ; then
14213 cat >> confdefs.h <<\EOF
14214 #define HAVE_MDBM 1
14220 if test $ol_cv_mdbm = yes ; then
14222 ol_with_ldbm_api=mdbm
14223 if test $ol_cv_lib_mdbm != yes ; then
14224 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
14229 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
14230 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
14231 echo "configure:14232: checking for GDBM library" >&5
14232 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
14233 echo $ac_n "(cached) $ac_c" 1>&6
14236 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
14237 echo "configure:14238: checking for gdbm_open" >&5
14238 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14241 cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14244 /* System header to define __stub macros and hopefully few prototypes,
14245 which can conflict with char gdbm_open(); below. */
14246 #include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error. */
14248 /* We use char because int might match the return type of a gcc2
14249 builtin and then its argument prototype would still apply. */
14255 /* The GNU C library defines this for functions which it implements
14256 to always fail with ENOSYS. Some functions are actually named
14257 something starting with __ and the normal name is an alias. */
14258 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14266 if { (eval echo configure:14267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14268 eval "ac_cv_func_gdbm_open=yes"
14270 echo "configure: failed program was:" >&5
14271 cat conftest.$ac_ext >&5
14273 eval "ac_cv_func_gdbm_open=no"
14278 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14279 echo "$ac_t""yes" 1>&6
14282 echo "$ac_t""no" 1>&6
14284 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14285 echo "configure:14286: checking for gdbm_open in -lgdbm" >&5
14286 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14288 echo $ac_n "(cached) $ac_c" 1>&6
14290 ac_save_LIBS="$LIBS"
14291 LIBS="-lgdbm $LIBS"
14292 cat > conftest.$ac_ext <<EOF
14293 #line 14294 "configure"
14294 #include "confdefs.h"
14295 /* Override any gcc2 internal prototype to avoid an error. */
14296 /* We use char because int might match the return type of a gcc2
14297 builtin and then its argument prototype would still apply. */
14304 if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14306 eval "ac_cv_lib_$ac_lib_var=yes"
14308 echo "configure: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14311 eval "ac_cv_lib_$ac_lib_var=no"
14314 LIBS="$ac_save_LIBS"
14317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14318 echo "$ac_t""yes" 1>&6
14319 ol_cv_lib_gdbm=-lgdbm
14321 echo "$ac_t""no" 1>&6
14332 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14335 for ac_hdr in gdbm.h
14337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14339 echo "configure:14340: checking for $ac_hdr" >&5
14340 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14341 echo $ac_n "(cached) $ac_c" 1>&6
14343 cat > conftest.$ac_ext <<EOF
14344 #line 14345 "configure"
14345 #include "confdefs.h"
14348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14349 { (eval echo configure:14350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14351 if test -z "$ac_err"; then
14353 eval "ac_cv_header_$ac_safe=yes"
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14359 eval "ac_cv_header_$ac_safe=no"
14363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14364 echo "$ac_t""yes" 1>&6
14365 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14366 cat >> confdefs.h <<EOF
14367 #define $ac_tr_hdr 1
14371 echo "$ac_t""no" 1>&6
14375 echo $ac_n "checking for db""... $ac_c" 1>&6
14376 echo "configure:14377: checking for db" >&5
14377 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14378 echo $ac_n "(cached) $ac_c" 1>&6
14381 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14389 echo "$ac_t""$ol_cv_gdbm" 1>&6
14390 if test $ol_cv_gdbm = yes ; then
14391 cat >> confdefs.h <<\EOF
14392 #define HAVE_GDBM 1
14398 if test $ol_cv_gdbm = yes ; then
14400 ol_with_ldbm_api=gdbm
14402 if test $ol_cv_lib_gdbm != yes ; then
14403 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14408 if test $ol_with_ldbm_api = ndbm ; then
14409 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14410 echo "configure:14411: checking for NDBM library" >&5
14411 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
14415 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14416 echo "configure:14417: checking for dbm_open" >&5
14417 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14420 cat > conftest.$ac_ext <<EOF
14421 #line 14422 "configure"
14422 #include "confdefs.h"
14423 /* System header to define __stub macros and hopefully few prototypes,
14424 which can conflict with char dbm_open(); below. */
14425 #include <assert.h>
14426 /* Override any gcc2 internal prototype to avoid an error. */
14427 /* We use char because int might match the return type of a gcc2
14428 builtin and then its argument prototype would still apply. */
14434 /* The GNU C library defines this for functions which it implements
14435 to always fail with ENOSYS. Some functions are actually named
14436 something starting with __ and the normal name is an alias. */
14437 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14445 if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14447 eval "ac_cv_func_dbm_open=yes"
14449 echo "configure: failed program was:" >&5
14450 cat conftest.$ac_ext >&5
14452 eval "ac_cv_func_dbm_open=no"
14457 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14458 echo "$ac_t""yes" 1>&6
14461 echo "$ac_t""no" 1>&6
14463 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14464 echo "configure:14465: checking for dbm_open in -lndbm" >&5
14465 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14466 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14467 echo $ac_n "(cached) $ac_c" 1>&6
14469 ac_save_LIBS="$LIBS"
14470 LIBS="-lndbm $LIBS"
14471 cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14474 /* Override any gcc2 internal prototype to avoid an error. */
14475 /* We use char because int might match the return type of a gcc2
14476 builtin and then its argument prototype would still apply. */
14483 if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485 eval "ac_cv_lib_$ac_lib_var=yes"
14487 echo "configure: failed program was:" >&5
14488 cat conftest.$ac_ext >&5
14490 eval "ac_cv_lib_$ac_lib_var=no"
14493 LIBS="$ac_save_LIBS"
14496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14498 ol_cv_lib_ndbm=-lndbm
14500 echo "$ac_t""no" 1>&6
14502 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14503 echo "configure:14504: checking for dbm_open in -ldbm" >&5
14504 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14505 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14506 echo $ac_n "(cached) $ac_c" 1>&6
14508 ac_save_LIBS="$LIBS"
14510 cat > conftest.$ac_ext <<EOF
14511 #line 14512 "configure"
14512 #include "confdefs.h"
14513 /* Override any gcc2 internal prototype to avoid an error. */
14514 /* We use char because int might match the return type of a gcc2
14515 builtin and then its argument prototype would still apply. */
14522 if { (eval echo configure:14523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 eval "ac_cv_lib_$ac_lib_var=yes"
14526 echo "configure: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 eval "ac_cv_lib_$ac_lib_var=no"
14532 LIBS="$ac_save_LIBS"
14535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14536 echo "$ac_t""yes" 1>&6
14537 ol_cv_lib_ndbm=-ldbm
14539 echo "$ac_t""no" 1>&6
14552 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14555 for ac_hdr in ndbm.h
14557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14559 echo "configure:14560: checking for $ac_hdr" >&5
14560 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14563 cat > conftest.$ac_ext <<EOF
14564 #line 14565 "configure"
14565 #include "confdefs.h"
14568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14569 { (eval echo configure:14570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14571 if test -z "$ac_err"; then
14573 eval "ac_cv_header_$ac_safe=yes"
14576 echo "configure: failed program was:" >&5
14577 cat conftest.$ac_ext >&5
14579 eval "ac_cv_header_$ac_safe=no"
14583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14584 echo "$ac_t""yes" 1>&6
14585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14586 cat >> confdefs.h <<EOF
14587 #define $ac_tr_hdr 1
14591 echo "$ac_t""no" 1>&6
14595 echo $ac_n "checking for db""... $ac_c" 1>&6
14596 echo "configure:14597: checking for db" >&5
14597 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14601 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14609 echo "$ac_t""$ol_cv_ndbm" 1>&6
14610 if test $ol_cv_ndbm = yes ; then
14611 cat >> confdefs.h <<\EOF
14612 #define HAVE_NDBM 1
14618 if test $ol_cv_ndbm = yes ; then
14620 ol_with_ldbm_api=ndbm
14622 if test $ol_cv_lib_ndbm != yes ; then
14623 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14628 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14629 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14630 if test $ol_enable_ldbm = yes ; then
14631 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14634 echo "configure: warning: disabling LDBM" 1>&2
14638 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14639 BUILD_LIBS_DYNAMIC=shared
14640 cat >> confdefs.h <<\EOF
14641 #define LDAP_LIBS_DYNAMIC 1
14645 BUILD_LIBS_DYNAMIC=static
14648 if test $ol_enable_wrappers != no ; then
14649 for ac_hdr in tcpd.h
14651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14653 echo "configure:14654: checking for $ac_hdr" >&5
14654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14655 echo $ac_n "(cached) $ac_c" 1>&6
14657 cat > conftest.$ac_ext <<EOF
14658 #line 14659 "configure"
14659 #include "confdefs.h"
14662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14663 { (eval echo configure:14664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14665 if test -z "$ac_err"; then
14667 eval "ac_cv_header_$ac_safe=yes"
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14673 eval "ac_cv_header_$ac_safe=no"
14677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14678 echo "$ac_t""yes" 1>&6
14679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14680 cat >> confdefs.h <<EOF
14681 #define $ac_tr_hdr 1
14685 echo "$ac_t""no" 1>&6
14690 if test $ac_cv_header_tcpd_h != yes ; then
14693 cat > conftest.$ac_ext <<EOF
14694 #line 14695 "configure"
14695 #include "confdefs.h"
14697 int allow_severity = 0;
14698 int deny_severity = 0;
14704 if { (eval echo configure:14705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14708 echo "configure: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14716 if test $have_wrappers = yes ; then
14717 cat >> confdefs.h <<\EOF
14718 #define HAVE_TCPD 1
14723 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14724 echo "configure:14725: checking for main in -lnsl" >&5
14725 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14726 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14729 ac_save_LIBS="$LIBS"
14731 cat > conftest.$ac_ext <<EOF
14732 #line 14733 "configure"
14733 #include "confdefs.h"
14739 if { (eval echo configure:14740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14741 eval "ac_cv_lib_$ac_lib_var=yes"
14743 echo "configure: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14746 eval "ac_cv_lib_$ac_lib_var=no"
14749 LIBS="$ac_save_LIBS"
14752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14753 echo "$ac_t""yes" 1>&6
14754 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14756 cat >> confdefs.h <<EOF
14757 #define $ac_tr_lib 1
14763 echo "$ac_t""no" 1>&6
14767 echo "configure: warning: could not find -lwrap" 1>&2
14768 if test $ol_enable_wrappers = yes ; then
14769 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14772 echo "configure: warning: disabling wrappers support" 1>&2
14773 ol_enable_wrappers=no
14778 if test $ol_enable_syslog != no ; then
14779 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14780 echo "configure:14781: checking for openlog" >&5
14781 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14782 echo $ac_n "(cached) $ac_c" 1>&6
14784 cat > conftest.$ac_ext <<EOF
14785 #line 14786 "configure"
14786 #include "confdefs.h"
14787 /* System header to define __stub macros and hopefully few prototypes,
14788 which can conflict with char openlog(); below. */
14789 #include <assert.h>
14790 /* Override any gcc2 internal prototype to avoid an error. */
14791 /* We use char because int might match the return type of a gcc2
14792 builtin and then its argument prototype would still apply. */
14798 /* The GNU C library defines this for functions which it implements
14799 to always fail with ENOSYS. Some functions are actually named
14800 something starting with __ and the normal name is an alias. */
14801 #if defined (__stub_openlog) || defined (__stub___openlog)
14809 if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14811 eval "ac_cv_func_openlog=yes"
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14816 eval "ac_cv_func_openlog=no"
14821 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14822 echo "$ac_t""yes" 1>&6
14825 echo "$ac_t""no" 1>&6
14828 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14829 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14831 ol_enable_syslog=$ac_cv_func_openlog
14836 if test $ol_enable_sql != no ; then
14837 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14838 echo "configure:14839: checking for SQLDriverConnect in -liodbc" >&5
14839 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14840 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14841 echo $ac_n "(cached) $ac_c" 1>&6
14843 ac_save_LIBS="$LIBS"
14844 LIBS="-liodbc $LIBS"
14845 cat > conftest.$ac_ext <<EOF
14846 #line 14847 "configure"
14847 #include "confdefs.h"
14848 /* Override any gcc2 internal prototype to avoid an error. */
14849 /* We use char because int might match the return type of a gcc2
14850 builtin and then its argument prototype would still apply. */
14851 char SQLDriverConnect();
14857 if { (eval echo configure:14858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859 eval "ac_cv_lib_$ac_lib_var=yes"
14861 echo "configure: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14864 eval "ac_cv_lib_$ac_lib_var=no"
14867 LIBS="$ac_save_LIBS"
14870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14871 echo "$ac_t""yes" 1>&6
14874 echo "$ac_t""no" 1>&6
14878 if test $have_iodbc = yes ; then
14879 ol_link_sql="-liodbc"
14881 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14882 echo "configure:14883: checking for SQLDriverConnect in -lodbc" >&5
14883 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14884 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14887 ac_save_LIBS="$LIBS"
14888 LIBS="-lodbc $LIBS"
14889 cat > conftest.$ac_ext <<EOF
14890 #line 14891 "configure"
14891 #include "confdefs.h"
14892 /* Override any gcc2 internal prototype to avoid an error. */
14893 /* We use char because int might match the return type of a gcc2
14894 builtin and then its argument prototype would still apply. */
14895 char SQLDriverConnect();
14901 if { (eval echo configure:14902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14903 eval "ac_cv_lib_$ac_lib_var=yes"
14905 echo "configure: failed program was:" >&5
14906 cat conftest.$ac_ext >&5
14908 eval "ac_cv_lib_$ac_lib_var=no"
14911 LIBS="$ac_save_LIBS"
14914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14915 echo "$ac_t""yes" 1>&6
14918 echo "$ac_t""no" 1>&6
14922 if test $have_odbc = yes ; then
14923 ol_link_sql="-lodbc"
14927 if test $ol_link_sql != no ; then
14928 SLAPD_SQL_LIBS="$ol_link_sql"
14930 elif test $ol_enable_sql != auto ; then
14931 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14935 if test $ol_enable_tcl != no ; then
14936 for ac_hdr in tcl.h
14938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14940 echo "configure:14941: checking for $ac_hdr" >&5
14941 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14942 echo $ac_n "(cached) $ac_c" 1>&6
14944 cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14950 { (eval echo configure:14951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14952 if test -z "$ac_err"; then
14954 eval "ac_cv_header_$ac_safe=yes"
14957 echo "configure: failed program was:" >&5
14958 cat conftest.$ac_ext >&5
14960 eval "ac_cv_header_$ac_safe=no"
14964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14965 echo "$ac_t""yes" 1>&6
14966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14967 cat >> confdefs.h <<EOF
14968 #define $ac_tr_hdr 1
14972 echo "$ac_t""no" 1>&6
14977 if test $ac_cv_header_tcl_h != yes ; then
14980 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
14981 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
14982 echo "configure:14983: checking for main in -l$lib" >&5
14983 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
14984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14985 echo $ac_n "(cached) $ac_c" 1>&6
14987 ac_save_LIBS="$LIBS"
14988 LIBS="-l$lib $LIBS"
14989 cat > conftest.$ac_ext <<EOF
14990 #line 14991 "configure"
14991 #include "confdefs.h"
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14999 eval "ac_cv_lib_$ac_lib_var=yes"
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15004 eval "ac_cv_lib_$ac_lib_var=no"
15007 LIBS="$ac_save_LIBS"
15010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15011 echo "$ac_t""yes" 1>&6
15013 if test x"$ol_with_tcl_module" = "xstatic" ; then
15014 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
15016 MOD_TCL_LIB="-l${lib}"
15019 echo "$ac_t""no" 1>&6
15026 if test $have_tcl != yes ; then
15027 echo "configure: warning: could not find -ltcl" 1>&2
15028 if test $ol_enable_tcl = yes ; then
15029 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
15037 for ac_hdr in termcap.h ncurses.h
15039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15041 echo "configure:15042: checking for $ac_hdr" >&5
15042 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15043 echo $ac_n "(cached) $ac_c" 1>&6
15045 cat > conftest.$ac_ext <<EOF
15046 #line 15047 "configure"
15047 #include "confdefs.h"
15050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15051 { (eval echo configure:15052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15053 if test -z "$ac_err"; then
15055 eval "ac_cv_header_$ac_safe=yes"
15058 echo "configure: failed program was:" >&5
15059 cat conftest.$ac_ext >&5
15061 eval "ac_cv_header_$ac_safe=no"
15065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15066 echo "$ac_t""yes" 1>&6
15067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15068 cat >> confdefs.h <<EOF
15069 #define $ac_tr_hdr 1
15073 echo "$ac_t""no" 1>&6
15078 if test $ol_link_termcap = no ; then
15079 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
15080 echo "configure:15081: checking for tputs in -ltermcap" >&5
15081 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
15082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15085 ac_save_LIBS="$LIBS"
15086 LIBS="-ltermcap $LIBS"
15087 cat > conftest.$ac_ext <<EOF
15088 #line 15089 "configure"
15089 #include "confdefs.h"
15090 /* Override any gcc2 internal prototype to avoid an error. */
15091 /* We use char because int might match the return type of a gcc2
15092 builtin and then its argument prototype would still apply. */
15099 if { (eval echo configure:15100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15101 eval "ac_cv_lib_$ac_lib_var=yes"
15103 echo "configure: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15106 eval "ac_cv_lib_$ac_lib_var=no"
15109 LIBS="$ac_save_LIBS"
15112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15113 echo "$ac_t""yes" 1>&6
15116 echo "$ac_t""no" 1>&6
15120 if test $have_termcap = yes ; then
15121 cat >> confdefs.h <<\EOF
15122 #define HAVE_TERMCAP 1
15125 ol_link_termcap=yes
15126 TERMCAP_LIBS=-ltermcap
15130 if test $ol_link_termcap = no ; then
15131 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
15132 echo "configure:15133: checking for initscr in -lncurses" >&5
15133 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
15134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15137 ac_save_LIBS="$LIBS"
15138 LIBS="-lncurses $LIBS"
15139 cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure"
15141 #include "confdefs.h"
15142 /* Override any gcc2 internal prototype to avoid an error. */
15143 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15151 if { (eval echo configure:15152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15153 eval "ac_cv_lib_$ac_lib_var=yes"
15155 echo "configure: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15158 eval "ac_cv_lib_$ac_lib_var=no"
15161 LIBS="$ac_save_LIBS"
15164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15165 echo "$ac_t""yes" 1>&6
15168 echo "$ac_t""no" 1>&6
15172 if test $have_ncurses = yes ; then
15173 cat >> confdefs.h <<\EOF
15174 #define HAVE_NCURSES 1
15177 ol_link_termcap=yes
15178 TERMCAP_LIBS=-lncurses
15182 if test $ol_link_termcap = no ; then
15183 cat >> confdefs.h <<\EOF
15184 #define NO_TERMCAP 1
15192 if test $ol_with_cyrus_sasl != no ; then
15193 for ac_hdr in sasl.h
15195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15197 echo "configure:15198: checking for $ac_hdr" >&5
15198 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15199 echo $ac_n "(cached) $ac_c" 1>&6
15201 cat > conftest.$ac_ext <<EOF
15202 #line 15203 "configure"
15203 #include "confdefs.h"
15206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15207 { (eval echo configure:15208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15209 if test -z "$ac_err"; then
15211 eval "ac_cv_header_$ac_safe=yes"
15214 echo "configure: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15217 eval "ac_cv_header_$ac_safe=no"
15221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15222 echo "$ac_t""yes" 1>&6
15223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15224 cat >> confdefs.h <<EOF
15225 #define $ac_tr_hdr 1
15229 echo "$ac_t""no" 1>&6
15234 if test $ac_cv_header_sasl_h = yes ; then
15235 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
15236 echo "configure:15237: checking for sasl_client_init in -lsasl" >&5
15237 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
15238 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15239 echo $ac_n "(cached) $ac_c" 1>&6
15241 ac_save_LIBS="$LIBS"
15242 LIBS="-lsasl $LIBS"
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15249 char sasl_client_init();
15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15257 eval "ac_cv_lib_$ac_lib_var=yes"
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15262 eval "ac_cv_lib_$ac_lib_var=no"
15265 LIBS="$ac_save_LIBS"
15268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15269 echo "$ac_t""yes" 1>&6
15270 have_cyrus_sasl=yes
15272 echo "$ac_t""no" 1>&6
15277 if test $have_cyrus_sasl != no ; then
15279 cat >> confdefs.h <<\EOF
15280 #define HAVE_CYRUS_SASL 1
15287 if test $ol_link_sasl = no ; then
15288 if test $ol_with_cyrus_sasl != auto ; then
15289 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15291 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15292 echo "configure: warning: SASL authentication not supported!" 1>&2
15293 if test $ol_link_tls = no ; then
15294 echo "configure: warning: Strong authentication not supported!" 1>&2
15298 elif test $ol_enable_spasswd != no ; then
15299 ol_link_spasswd=yes
15303 echo "configure: warning: SASL authentication not supported!" 1>&2
15304 if test $ol_link_tls = no ; then
15305 echo "configure: warning: Strong authentication not supported!" 1>&2
15309 if test $cross_compiling != yes -a $ac_cv_mingw32 != yes ; then
15311 if test -r /dev/urandom ; then
15312 dev="/dev/urandom";
15313 elif test -r /idev/urandom ; then
15314 dev="/idev/urandom";
15315 elif test -r /dev/srandom ; then
15316 dev="/dev/srandom";
15317 elif test -r /dev/random ; then
15319 elif test -r /idev/random ; then
15320 dev="/idev/random";
15323 if test $dev != no ; then
15324 cat >> confdefs.h <<EOF
15325 #define URANDOM_DEVICE "$dev"
15332 if test $ol_with_fetch != no ; then
15334 LIBS="-lfetch -lcom_err $LIBS"
15335 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15336 echo "configure:15337: checking fetch(3) library" >&5
15337 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15338 echo $ac_n "(cached) $ac_c" 1>&6
15341 cat > conftest.$ac_ext <<EOF
15342 #line 15343 "configure"
15343 #include "confdefs.h"
15345 #include <sys/param.h>
15349 struct url *u = fetchParseURL("file:///");
15352 if { (eval echo configure:15353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15354 ol_cv_lib_fetch=yes
15356 echo "configure: failed program was:" >&5
15357 cat conftest.$ac_ext >&5
15364 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15366 if test $ol_cv_lib_fetch != no ; then
15367 ol_link_fetch="-lfetch -lcom_err"
15368 cat >> confdefs.h <<\EOF
15369 #define HAVE_FETCH 1
15375 if test $ol_cv_lib_fetch != no ; then
15376 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15377 ol_link_fetch=freebsd
15379 elif test $ol_with_fetch != auto ; then
15380 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15384 ol_link_readline=no
15385 if test $ol_with_readline != no ; then
15386 for ac_hdr in readline/readline.h readline/history.h
15388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15390 echo "configure:15391: checking for $ac_hdr" >&5
15391 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15400 { (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15402 if test -z "$ac_err"; then
15404 eval "ac_cv_header_$ac_safe=yes"
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15410 eval "ac_cv_header_$ac_safe=no"
15414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15417 cat >> confdefs.h <<EOF
15418 #define $ac_tr_hdr 1
15422 echo "$ac_t""no" 1>&6
15427 if test $ac_cv_header_readline_readline_h = yes ; then
15429 LIBS="$TERMCAP_LIBS $LIBS"
15430 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15431 echo "configure:15432: checking for readline in -lreadline" >&5
15432 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15434 echo $ac_n "(cached) $ac_c" 1>&6
15436 ac_save_LIBS="$LIBS"
15437 LIBS="-lreadline $LIBS"
15438 cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441 /* Override any gcc2 internal prototype to avoid an error. */
15442 /* We use char because int might match the return type of a gcc2
15443 builtin and then its argument prototype would still apply. */
15450 if { (eval echo configure:15451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15452 eval "ac_cv_lib_$ac_lib_var=yes"
15454 echo "configure: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15457 eval "ac_cv_lib_$ac_lib_var=no"
15460 LIBS="$ac_save_LIBS"
15463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15464 echo "$ac_t""yes" 1>&6
15467 echo "$ac_t""no" 1>&6
15473 if test $have_readline = yes ; then
15474 ol_with_readline=found
15475 ol_link_readline=yes
15477 READLINE_LIBS="-lreadline"
15482 if test $ol_link_readline = yes ; then
15483 cat >> confdefs.h <<\EOF
15484 #define HAVE_READLINE 1
15490 if test $ol_enable_crypt != no ; then
15491 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15492 echo "configure:15493: checking for crypt" >&5
15493 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15494 echo $ac_n "(cached) $ac_c" 1>&6
15496 cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499 /* System header to define __stub macros and hopefully few prototypes,
15500 which can conflict with char crypt(); below. */
15501 #include <assert.h>
15502 /* Override any gcc2 internal prototype to avoid an error. */
15503 /* We use char because int might match the return type of a gcc2
15504 builtin and then its argument prototype would still apply. */
15510 /* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513 #if defined (__stub_crypt) || defined (__stub___crypt)
15521 if { (eval echo configure:15522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15523 eval "ac_cv_func_crypt=yes"
15525 echo "configure: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15528 eval "ac_cv_func_crypt=no"
15533 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15534 echo "$ac_t""yes" 1>&6
15537 echo "$ac_t""no" 1>&6
15539 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15540 echo "configure:15541: checking for crypt in -lcrypt" >&5
15541 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
15545 ac_save_LIBS="$LIBS"
15546 LIBS="-lcrypt $LIBS"
15547 cat > conftest.$ac_ext <<EOF
15548 #line 15549 "configure"
15549 #include "confdefs.h"
15550 /* Override any gcc2 internal prototype to avoid an error. */
15551 /* We use char because int might match the return type of a gcc2
15552 builtin and then its argument prototype would still apply. */
15559 if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 eval "ac_cv_lib_$ac_lib_var=yes"
15563 echo "configure: failed program was:" >&5
15564 cat conftest.$ac_ext >&5
15566 eval "ac_cv_lib_$ac_lib_var=no"
15569 LIBS="$ac_save_LIBS"
15572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
15574 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15577 echo "$ac_t""no" 1>&6
15584 if test $have_crypt = yes ; then
15585 cat >> confdefs.h <<\EOF
15586 #define HAVE_CRYPT 1
15590 echo "configure: warning: could not find crypt" 1>&2
15591 if test $ol_enable_crypt = yes ; then
15592 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15595 echo "configure: warning: disabling crypt support" 1>&2
15600 if test $ol_enable_proctitle != no ; then
15601 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15602 echo "configure:15603: checking for setproctitle" >&5
15603 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15604 echo $ac_n "(cached) $ac_c" 1>&6
15606 cat > conftest.$ac_ext <<EOF
15607 #line 15608 "configure"
15608 #include "confdefs.h"
15609 /* System header to define __stub macros and hopefully few prototypes,
15610 which can conflict with char setproctitle(); below. */
15611 #include <assert.h>
15612 /* Override any gcc2 internal prototype to avoid an error. */
15613 /* We use char because int might match the return type of a gcc2
15614 builtin and then its argument prototype would still apply. */
15615 char setproctitle();
15620 /* The GNU C library defines this for functions which it implements
15621 to always fail with ENOSYS. Some functions are actually named
15622 something starting with __ and the normal name is an alias. */
15623 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15631 if { (eval echo configure:15632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15633 eval "ac_cv_func_setproctitle=yes"
15635 echo "configure: failed program was:" >&5
15636 cat conftest.$ac_ext >&5
15638 eval "ac_cv_func_setproctitle=no"
15643 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15644 echo "$ac_t""yes" 1>&6
15645 have_setproctitle=yes
15647 echo "$ac_t""no" 1>&6
15649 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15650 echo "configure:15651: checking for setproctitle in -lutil" >&5
15651 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15653 echo $ac_n "(cached) $ac_c" 1>&6
15655 ac_save_LIBS="$LIBS"
15656 LIBS="-lutil $LIBS"
15657 cat > conftest.$ac_ext <<EOF
15658 #line 15659 "configure"
15659 #include "confdefs.h"
15660 /* Override any gcc2 internal prototype to avoid an error. */
15661 /* We use char because int might match the return type of a gcc2
15662 builtin and then its argument prototype would still apply. */
15663 char setproctitle();
15669 if { (eval echo configure:15670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15671 eval "ac_cv_lib_$ac_lib_var=yes"
15673 echo "configure: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15676 eval "ac_cv_lib_$ac_lib_var=no"
15679 LIBS="$ac_save_LIBS"
15682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15683 echo "$ac_t""yes" 1>&6
15684 have_setproctitle=yes
15685 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15687 echo "$ac_t""no" 1>&6
15688 have_setproctitle=no
15689 LIBOBJS="$LIBOBJS setproctitle.o"
15690 LIBSRCS="$LIBSRCS setproctitle.c"
15696 if test $have_setproctitle = yes ; then
15697 cat >> confdefs.h <<\EOF
15698 #define HAVE_SETPROCTITLE 1
15704 if test $ol_enable_slp != no ; then
15705 for ac_hdr in slp.h
15707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15709 echo "configure:15710: checking for $ac_hdr" >&5
15710 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15711 echo $ac_n "(cached) $ac_c" 1>&6
15713 cat > conftest.$ac_ext <<EOF
15714 #line 15715 "configure"
15715 #include "confdefs.h"
15718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15719 { (eval echo configure:15720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15721 if test -z "$ac_err"; then
15723 eval "ac_cv_header_$ac_safe=yes"
15726 echo "configure: failed program was:" >&5
15727 cat conftest.$ac_ext >&5
15729 eval "ac_cv_header_$ac_safe=no"
15733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15734 echo "$ac_t""yes" 1>&6
15735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15736 cat >> confdefs.h <<EOF
15737 #define $ac_tr_hdr 1
15741 echo "$ac_t""no" 1>&6
15746 if test $ac_cv_header_slp_h = yes ; then
15747 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15748 echo "configure:15749: checking for SLPOpen in -lslp" >&5
15749 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15750 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15751 echo $ac_n "(cached) $ac_c" 1>&6
15753 ac_save_LIBS="$LIBS"
15755 cat > conftest.$ac_ext <<EOF
15756 #line 15757 "configure"
15757 #include "confdefs.h"
15758 /* Override any gcc2 internal prototype to avoid an error. */
15759 /* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15767 if { (eval echo configure:15768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15769 eval "ac_cv_lib_$ac_lib_var=yes"
15771 echo "configure: failed program was:" >&5
15772 cat conftest.$ac_ext >&5
15774 eval "ac_cv_lib_$ac_lib_var=no"
15777 LIBS="$ac_save_LIBS"
15780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
15784 echo "$ac_t""no" 1>&6
15788 if test $have_slp = yes ; then
15789 cat >> confdefs.h <<\EOF
15793 SLAPD_SLP_LIBS=-lslp
15796 elif test $ol_enable_slp = yes ; then
15797 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15801 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15802 echo "configure:15803: checking for ANSI C header files" >&5
15803 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15804 echo $ac_n "(cached) $ac_c" 1>&6
15806 cat > conftest.$ac_ext <<EOF
15807 #line 15808 "configure"
15808 #include "confdefs.h"
15809 #include <stdlib.h>
15810 #include <stdarg.h>
15811 #include <string.h>
15814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15815 { (eval echo configure:15816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15817 if test -z "$ac_err"; then
15819 ac_cv_header_stdc=yes
15822 echo "configure: failed program was:" >&5
15823 cat conftest.$ac_ext >&5
15825 ac_cv_header_stdc=no
15829 if test $ac_cv_header_stdc = yes; then
15830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15831 cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 #include <string.h>
15836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15837 egrep "memchr" >/dev/null 2>&1; then
15841 ac_cv_header_stdc=no
15847 if test $ac_cv_header_stdc = yes; then
15848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15849 cat > conftest.$ac_ext <<EOF
15850 #line 15851 "configure"
15851 #include "confdefs.h"
15852 #include <stdlib.h>
15854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15855 egrep "free" >/dev/null 2>&1; then
15859 ac_cv_header_stdc=no
15865 if test $ac_cv_header_stdc = yes; then
15866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15867 if test "$cross_compiling" = yes; then
15870 cat > conftest.$ac_ext <<EOF
15871 #line 15872 "configure"
15872 #include "confdefs.h"
15874 #if ((' ' & 0x0FF) == 0x020)
15875 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15876 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15878 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15879 || ('j' <= (c) && (c) <= 'r') \
15880 || ('s' <= (c) && (c) <= 'z'))
15881 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15884 int main () { int i; for (i = 0; i < 256; i++)
15885 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15889 if { (eval echo configure:15890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15893 echo "configure: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15896 ac_cv_header_stdc=no
15904 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15905 if test $ac_cv_header_stdc = yes; then
15906 cat >> confdefs.h <<\EOF
15907 #define STDC_HEADERS 1
15912 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15913 echo "configure:15914: checking for mode_t" >&5
15914 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 #include <sys/types.h>
15922 #include <stdlib.h>
15923 #include <stddef.h>
15927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15928 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15930 eval "ac_cv_type_mode_t=yes"
15933 eval "ac_cv_type_mode_t=no"
15938 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15939 echo "$ac_t""yes" 1>&6
15941 echo "$ac_t""no" 1>&6
15942 cat >> confdefs.h <<EOF
15948 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15949 echo "configure:15950: checking for off_t" >&5
15950 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15951 echo $ac_n "(cached) $ac_c" 1>&6
15953 cat > conftest.$ac_ext <<EOF
15954 #line 15955 "configure"
15955 #include "confdefs.h"
15956 #include <sys/types.h>
15958 #include <stdlib.h>
15959 #include <stddef.h>
15963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15966 eval "ac_cv_type_off_t=yes"
15969 eval "ac_cv_type_off_t=no"
15974 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15977 echo "$ac_t""no" 1>&6
15978 cat >> confdefs.h <<EOF
15984 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15985 echo "configure:15986: checking for pid_t" >&5
15986 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15987 echo $ac_n "(cached) $ac_c" 1>&6
15989 cat > conftest.$ac_ext <<EOF
15990 #line 15991 "configure"
15991 #include "confdefs.h"
15992 #include <sys/types.h>
15994 #include <stdlib.h>
15995 #include <stddef.h>
15999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16000 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16002 eval "ac_cv_type_pid_t=yes"
16005 eval "ac_cv_type_pid_t=no"
16010 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
16011 echo "$ac_t""yes" 1>&6
16013 echo "$ac_t""no" 1>&6
16014 cat >> confdefs.h <<EOF
16020 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
16021 echo "configure:16022: checking for ptrdiff_t" >&5
16022 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
16023 echo $ac_n "(cached) $ac_c" 1>&6
16025 cat > conftest.$ac_ext <<EOF
16026 #line 16027 "configure"
16027 #include "confdefs.h"
16028 #include <stddef.h>
16033 if { (eval echo configure:16034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16035 am_cv_type_ptrdiff_t=yes
16037 echo "configure: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16040 am_cv_type_ptrdiff_t=no
16045 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
16046 if test $am_cv_type_ptrdiff_t = yes; then
16047 cat >> confdefs.h <<\EOF
16048 #define HAVE_PTRDIFF_T 1
16053 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
16054 echo "configure:16055: checking return type of signal handlers" >&5
16055 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
16056 echo $ac_n "(cached) $ac_c" 1>&6
16058 cat > conftest.$ac_ext <<EOF
16059 #line 16060 "configure"
16060 #include "confdefs.h"
16061 #include <sys/types.h>
16062 #include <signal.h>
16067 extern "C" void (*signal (int, void (*)(int)))(int);
16069 void (*signal ()) ();
16076 if { (eval echo configure:16077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16078 ac_cv_type_signal=void
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16083 ac_cv_type_signal=int
16088 echo "$ac_t""$ac_cv_type_signal" 1>&6
16089 cat >> confdefs.h <<EOF
16090 #define RETSIGTYPE $ac_cv_type_signal
16094 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16095 echo "configure:16096: checking for size_t" >&5
16096 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
16097 echo $ac_n "(cached) $ac_c" 1>&6
16099 cat > conftest.$ac_ext <<EOF
16100 #line 16101 "configure"
16101 #include "confdefs.h"
16102 #include <sys/types.h>
16104 #include <stdlib.h>
16105 #include <stddef.h>
16109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16110 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16112 eval "ac_cv_type_size_t=yes"
16115 eval "ac_cv_type_size_t=no"
16120 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
16121 echo "$ac_t""yes" 1>&6
16123 echo "$ac_t""no" 1>&6
16124 cat >> confdefs.h <<EOF
16125 #define size_t unsigned
16131 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
16132 echo "configure:16133: checking for ssize_t" >&5
16133 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
16134 echo $ac_n "(cached) $ac_c" 1>&6
16136 cat > conftest.$ac_ext <<EOF
16137 #line 16138 "configure"
16138 #include "confdefs.h"
16139 #include <sys/types.h>
16141 #include <stdlib.h>
16142 #include <stddef.h>
16146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16147 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16149 eval "ac_cv_type_ssize_t=yes"
16152 eval "ac_cv_type_ssize_t=no"
16157 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
16158 echo "$ac_t""yes" 1>&6
16160 echo "$ac_t""no" 1>&6
16161 cat >> confdefs.h <<EOF
16162 #define ssize_t signed int
16167 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
16168 echo "configure:16169: checking for caddr_t" >&5
16169 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
16170 echo $ac_n "(cached) $ac_c" 1>&6
16172 cat > conftest.$ac_ext <<EOF
16173 #line 16174 "configure"
16174 #include "confdefs.h"
16175 #include <sys/types.h>
16177 #include <stdlib.h>
16178 #include <stddef.h>
16182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16183 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16185 eval "ac_cv_type_caddr_t=yes"
16188 eval "ac_cv_type_caddr_t=no"
16193 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
16194 echo "$ac_t""yes" 1>&6
16196 echo "$ac_t""no" 1>&6
16197 cat >> confdefs.h <<EOF
16198 #define caddr_t char *
16204 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
16205 echo "configure:16206: checking for socklen_t" >&5
16206 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
16207 echo $ac_n "(cached) $ac_c" 1>&6
16209 cat > conftest.$ac_ext <<EOF
16210 #line 16211 "configure"
16211 #include "confdefs.h"
16213 #ifdef HAVE_SYS_TYPES_H
16214 #include <sys/types.h>
16216 #ifdef HAVE_SYS_SOCKET_H
16217 #include <sys/socket.h>
16224 if { (eval echo configure:16225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16226 ol_cv_type_socklen_t=yes
16228 echo "configure: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16231 ol_cv_type_socklen_t=no
16236 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
16237 if test $ol_cv_type_socklen_t = no; then
16238 cat >> confdefs.h <<\EOF
16239 #define socklen_t int
16244 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
16245 echo "configure:16246: checking for member st_blksize in aggregate type struct stat" >&5
16246 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16249 cat > conftest.$ac_ext <<EOF
16250 #line 16251 "configure"
16251 #include "confdefs.h"
16252 #include <sys/types.h>
16253 #include <sys/stat.h>
16255 struct stat foo; foo.st_blksize;
16258 if { (eval echo configure:16259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16260 ac_cv_c_struct_member_st_blksize=yes
16262 echo "configure: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16265 ac_cv_c_struct_member_st_blksize=no
16270 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16271 st_blksize="$ac_cv_c_struct_member_st_blksize"
16272 if test $ac_cv_c_struct_member_st_blksize = yes; then
16273 cat >> confdefs.h <<\EOF
16274 #define HAVE_ST_BLKSIZE 1
16279 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16280 echo "configure:16281: checking whether time.h and sys/time.h may both be included" >&5
16281 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16282 echo $ac_n "(cached) $ac_c" 1>&6
16284 cat > conftest.$ac_ext <<EOF
16285 #line 16286 "configure"
16286 #include "confdefs.h"
16287 #include <sys/types.h>
16288 #include <sys/time.h>
16294 if { (eval echo configure:16295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16296 ac_cv_header_time=yes
16298 echo "configure: failed program was:" >&5
16299 cat conftest.$ac_ext >&5
16301 ac_cv_header_time=no
16306 echo "$ac_t""$ac_cv_header_time" 1>&6
16307 if test $ac_cv_header_time = yes; then
16308 cat >> confdefs.h <<\EOF
16309 #define TIME_WITH_SYS_TIME 1
16314 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16315 echo "configure:16316: checking whether struct tm is in sys/time.h or time.h" >&5
16316 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16317 echo $ac_n "(cached) $ac_c" 1>&6
16319 cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16322 #include <sys/types.h>
16325 struct tm *tp; tp->tm_sec;
16328 if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16330 ac_cv_struct_tm=time.h
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16335 ac_cv_struct_tm=sys/time.h
16340 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16341 if test $ac_cv_struct_tm = sys/time.h; then
16342 cat >> confdefs.h <<\EOF
16343 #define TM_IN_SYS_TIME 1
16348 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16349 echo "configure:16350: checking for uid_t in sys/types.h" >&5
16350 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16351 echo $ac_n "(cached) $ac_c" 1>&6
16353 cat > conftest.$ac_ext <<EOF
16354 #line 16355 "configure"
16355 #include "confdefs.h"
16356 #include <sys/types.h>
16358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16359 egrep "uid_t" >/dev/null 2>&1; then
16361 ac_cv_type_uid_t=yes
16364 ac_cv_type_uid_t=no
16370 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16371 if test $ac_cv_type_uid_t = no; then
16372 cat >> confdefs.h <<\EOF
16376 cat >> confdefs.h <<\EOF
16382 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16383 echo "configure:16384: checking for sig_atomic_t" >&5
16384 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16385 echo $ac_n "(cached) $ac_c" 1>&6
16387 cat > conftest.$ac_ext <<EOF
16388 #line 16389 "configure"
16389 #include "confdefs.h"
16390 #include <signal.h>
16392 sig_atomic_t atomic;
16395 if { (eval echo configure:16396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16397 ol_cv_type_sig_atomic_t=yes
16399 echo "configure: failed program was:" >&5
16400 cat conftest.$ac_ext >&5
16402 ol_cv_type_sig_atomic_t=no
16407 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16408 if test $ol_cv_type_sig_atomic_t = no; then
16409 cat >> confdefs.h <<\EOF
16410 #define sig_atomic_t int
16417 # test for pw_gecos in struct passwd
16418 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16419 echo "configure:16420: checking struct passwd for pw_gecos" >&5
16420 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16421 echo $ac_n "(cached) $ac_c" 1>&6
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16431 pwd.pw_gecos = pwd.pw_name;
16435 if { (eval echo configure:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16437 ol_cv_struct_passwd_pw_gecos=yes
16439 echo "configure: failed program was:" >&5
16440 cat conftest.$ac_ext >&5
16442 ol_cv_struct_passwd_pw_gecos=no
16447 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16448 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16449 cat >> confdefs.h <<\EOF
16450 #define HAVE_PW_GECOS 1
16455 # test for pw_passwd in struct passwd
16456 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16457 echo "configure:16458: checking struct passwd for pw_passwd" >&5
16458 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16459 echo $ac_n "(cached) $ac_c" 1>&6
16462 cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16469 pwd.pw_passwd = pwd.pw_name;
16473 if { (eval echo configure:16474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16475 ol_cv_struct_passwd_pw_passwd=yes
16477 echo "configure: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16480 ol_cv_struct_passwd_pw_passwd=no
16485 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16486 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16487 cat >> confdefs.h <<\EOF
16488 #define HAVE_PW_PASSWD 1
16494 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16495 echo "configure:16496: checking if toupper() requires islower()" >&5
16496 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16497 echo $ac_n "(cached) $ac_c" 1>&6
16500 if test "$cross_compiling" = yes; then
16501 ol_cv_c_upper_lower=safe
16503 cat > conftest.$ac_ext <<EOF
16504 #line 16505 "configure"
16505 #include "confdefs.h"
16510 if ('C' == toupper('C'))
16516 if { (eval echo configure:16517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16518 ol_cv_c_upper_lower=no
16520 echo "configure: failed program was:" >&5
16521 cat conftest.$ac_ext >&5
16523 ol_cv_c_upper_lower=yes
16530 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16531 if test $ol_cv_c_upper_lower != no ; then
16532 cat >> confdefs.h <<\EOF
16533 #define C_UPPER_LOWER 1
16538 echo $ac_n "checking for working const""... $ac_c" 1>&6
16539 echo "configure:16540: checking for working const" >&5
16540 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16543 cat > conftest.$ac_ext <<EOF
16544 #line 16545 "configure"
16545 #include "confdefs.h"
16549 /* Ultrix mips cc rejects this. */
16550 typedef int charset[2]; const charset x;
16551 /* SunOS 4.1.1 cc rejects this. */
16552 char const *const *ccp;
16554 /* NEC SVR4.0.2 mips cc rejects this. */
16555 struct point {int x, y;};
16556 static struct point const zero = {0,0};
16557 /* AIX XL C 1.02.0.0 rejects this.
16558 It does not let you subtract one const X* pointer from another in an arm
16559 of an if-expression whose if-part is not a constant expression */
16560 const char *g = "string";
16561 ccp = &g + (g ? g-g : 0);
16562 /* HPUX 7.0 cc rejects these. */
16565 ccp = (char const *const *) p;
16566 { /* SCO 3.2v4 cc rejects this. */
16568 char const *s = 0 ? (char *) 0 : (char const *) 0;
16572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16573 int x[] = {25, 17};
16574 const int *foo = &x[0];
16577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16578 typedef const int *iptr;
16582 { /* AIX XL C 1.02.0.0 rejects this saying
16583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16584 struct s { int j; const int *ap[3]; };
16585 struct s *b; b->j = 5;
16587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16588 const int foo = 10;
16593 if { (eval echo configure:16594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16597 echo "configure: failed program was:" >&5
16598 cat conftest.$ac_ext >&5
16605 echo "$ac_t""$ac_cv_c_const" 1>&6
16606 if test $ac_cv_c_const = no; then
16607 cat >> confdefs.h <<\EOF
16613 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16614 echo "configure:16615: checking if compiler understands volatile" >&5
16615 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16616 echo $ac_n "(cached) $ac_c" 1>&6
16618 cat > conftest.$ac_ext <<EOF
16619 #line 16620 "configure"
16620 #include "confdefs.h"
16623 volatile int a; int * volatile b = x ? &y : &z;
16624 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16628 if { (eval echo configure:16629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16630 ol_cv_c_volatile=yes
16632 echo "configure: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16635 ol_cv_c_volatile=no
16640 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16641 if test $ol_cv_c_volatile = yes; then
16644 cat >> confdefs.h <<\EOF
16651 if test $cross_compiling = yes ; then
16652 cat >> confdefs.h <<\EOF
16653 #define CROSS_COMPILING 1
16657 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16658 echo "configure:16659: checking whether byte ordering is bigendian" >&5
16659 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16660 echo $ac_n "(cached) $ac_c" 1>&6
16662 ac_cv_c_bigendian=unknown
16663 # See if sys/param.h defines the BYTE_ORDER macro.
16664 cat > conftest.$ac_ext <<EOF
16665 #line 16666 "configure"
16666 #include "confdefs.h"
16667 #include <sys/types.h>
16668 #include <sys/param.h>
16671 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16672 bogus endian macros
16676 if { (eval echo configure:16677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16678 # It does; now see whether it defined to BIG_ENDIAN or not.
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682 #include <sys/types.h>
16683 #include <sys/param.h>
16686 #if BYTE_ORDER != BIG_ENDIAN
16691 if { (eval echo configure:16692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16693 ac_cv_c_bigendian=yes
16695 echo "configure: failed program was:" >&5
16696 cat conftest.$ac_ext >&5
16698 ac_cv_c_bigendian=no
16702 echo "configure: failed program was:" >&5
16703 cat conftest.$ac_ext >&5
16706 if test $ac_cv_c_bigendian = unknown; then
16707 if test "$cross_compiling" = yes; then
16708 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16710 cat > conftest.$ac_ext <<EOF
16711 #line 16712 "configure"
16712 #include "confdefs.h"
16714 /* Are we little or big endian? From Harbison&Steele. */
16718 char c[sizeof (long)];
16721 exit (u.c[sizeof (long) - 1] == 1);
16724 if { (eval echo configure:16725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16726 ac_cv_c_bigendian=no
16728 echo "configure: failed program was:" >&5
16729 cat conftest.$ac_ext >&5
16731 ac_cv_c_bigendian=yes
16739 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16740 if test $ac_cv_c_bigendian = yes; then
16741 cat >> confdefs.h <<\EOF
16742 #define WORDS_BIGENDIAN 1
16749 echo $ac_n "checking size of short""... $ac_c" 1>&6
16750 echo "configure:16751: checking size of short" >&5
16751 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16752 echo $ac_n "(cached) $ac_c" 1>&6
16754 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16755 cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 #include "confdefs.h"
16759 #include <sys/types.h>
16763 switch (0) case 0: case (sizeof (short) == $ac_size):;
16766 if { (eval echo configure:16767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16768 ac_cv_sizeof_short=$ac_size
16770 echo "configure: failed program was:" >&5
16771 cat conftest.$ac_ext >&5
16774 if test x$ac_cv_sizeof_short != x ; then break; fi
16779 if test x$ac_cv_sizeof_short = x ; then
16780 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16782 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16783 cat >> confdefs.h <<EOF
16784 #define SIZEOF_SHORT $ac_cv_sizeof_short
16788 echo $ac_n "checking size of int""... $ac_c" 1>&6
16789 echo "configure:16790: checking size of int" >&5
16790 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16791 echo $ac_n "(cached) $ac_c" 1>&6
16793 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16794 cat > conftest.$ac_ext <<EOF
16795 #line 16796 "configure"
16796 #include "confdefs.h"
16797 #include "confdefs.h"
16798 #include <sys/types.h>
16802 switch (0) case 0: case (sizeof (int) == $ac_size):;
16805 if { (eval echo configure:16806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16807 ac_cv_sizeof_int=$ac_size
16809 echo "configure: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16813 if test x$ac_cv_sizeof_int != x ; then break; fi
16818 if test x$ac_cv_sizeof_int = x ; then
16819 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16821 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16822 cat >> confdefs.h <<EOF
16823 #define SIZEOF_INT $ac_cv_sizeof_int
16827 echo $ac_n "checking size of long""... $ac_c" 1>&6
16828 echo "configure:16829: checking size of long" >&5
16829 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16830 echo $ac_n "(cached) $ac_c" 1>&6
16832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16833 cat > conftest.$ac_ext <<EOF
16834 #line 16835 "configure"
16835 #include "confdefs.h"
16836 #include "confdefs.h"
16837 #include <sys/types.h>
16841 switch (0) case 0: case (sizeof (long) == $ac_size):;
16844 if { (eval echo configure:16845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16846 ac_cv_sizeof_long=$ac_size
16848 echo "configure: failed program was:" >&5
16849 cat conftest.$ac_ext >&5
16852 if test x$ac_cv_sizeof_long != x ; then break; fi
16857 if test x$ac_cv_sizeof_long = x ; then
16858 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16860 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16861 cat >> confdefs.h <<EOF
16862 #define SIZEOF_LONG $ac_cv_sizeof_long
16867 if test "$ac_cv_sizeof_int" -lt 4 ; then
16868 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16870 cat >> confdefs.h <<\EOF
16871 #define LBER_INT_T long
16875 cat >> confdefs.h <<\EOF
16876 #define LBER_INT_T int
16881 cat >> confdefs.h <<\EOF
16882 #define LBER_LEN_T long
16885 cat >> confdefs.h <<\EOF
16886 #define LBER_SOCKET_T int
16889 cat >> confdefs.h <<\EOF
16890 #define LBER_TAG_T long
16894 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16895 echo "configure:16896: checking for 8-bit clean memcmp" >&5
16896 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16897 echo $ac_n "(cached) $ac_c" 1>&6
16899 if test "$cross_compiling" = yes; then
16900 ac_cv_func_memcmp_clean=no
16902 cat > conftest.$ac_ext <<EOF
16903 #line 16904 "configure"
16904 #include "confdefs.h"
16908 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16909 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16913 if { (eval echo configure:16914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16915 ac_cv_func_memcmp_clean=yes
16917 echo "configure: failed program was:" >&5
16918 cat conftest.$ac_ext >&5
16920 ac_cv_func_memcmp_clean=no
16927 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16928 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16930 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16931 echo "configure:16932: checking for strftime" >&5
16932 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16933 echo $ac_n "(cached) $ac_c" 1>&6
16935 cat > conftest.$ac_ext <<EOF
16936 #line 16937 "configure"
16937 #include "confdefs.h"
16938 /* System header to define __stub macros and hopefully few prototypes,
16939 which can conflict with char strftime(); below. */
16940 #include <assert.h>
16941 /* Override any gcc2 internal prototype to avoid an error. */
16942 /* We use char because int might match the return type of a gcc2
16943 builtin and then its argument prototype would still apply. */
16949 /* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952 #if defined (__stub_strftime) || defined (__stub___strftime)
16960 if { (eval echo configure:16961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16962 eval "ac_cv_func_strftime=yes"
16964 echo "configure: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16967 eval "ac_cv_func_strftime=no"
16972 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16973 echo "$ac_t""yes" 1>&6
16974 cat >> confdefs.h <<\EOF
16975 #define HAVE_STRFTIME 1
16979 echo "$ac_t""no" 1>&6
16980 # strftime is in -lintl on SCO UNIX.
16981 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16982 echo "configure:16983: checking for strftime in -lintl" >&5
16983 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16985 echo $ac_n "(cached) $ac_c" 1>&6
16987 ac_save_LIBS="$LIBS"
16988 LIBS="-lintl $LIBS"
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16992 /* Override any gcc2 internal prototype to avoid an error. */
16993 /* We use char because int might match the return type of a gcc2
16994 builtin and then its argument prototype would still apply. */
17001 if { (eval echo configure:17002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17003 eval "ac_cv_lib_$ac_lib_var=yes"
17005 echo "configure: failed program was:" >&5
17006 cat conftest.$ac_ext >&5
17008 eval "ac_cv_lib_$ac_lib_var=no"
17011 LIBS="$ac_save_LIBS"
17014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17015 echo "$ac_t""yes" 1>&6
17016 cat >> confdefs.h <<\EOF
17017 #define HAVE_STRFTIME 1
17020 LIBS="-lintl $LIBS"
17022 echo "$ac_t""no" 1>&6
17028 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
17029 echo "configure:17030: checking for inet_aton()" >&5
17030 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
17031 echo $ac_n "(cached) $ac_c" 1>&6
17033 cat > conftest.$ac_ext <<EOF
17034 #line 17035 "configure"
17035 #include "confdefs.h"
17037 #ifdef HAVE_SYS_TYPES_H
17038 # include <sys/types.h>
17040 #ifdef HAVE_SYS_SOCKET_H
17041 # include <sys/socket.h>
17042 # ifdef HAVE_SYS_SELECT_H
17043 # include <sys/select.h>
17045 # include <netinet/in.h>
17046 # ifdef HAVE_ARPA_INET_H
17047 # include <arpa/inet.h>
17053 int rc = inet_aton( "255.255.255.255", &in );
17056 if { (eval echo configure:17057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17058 ol_cv_func_inet_aton=yes
17060 echo "configure: failed program was:" >&5
17061 cat conftest.$ac_ext >&5
17063 ol_cv_func_inet_aton=no
17068 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
17069 if test $ol_cv_func_inet_aton != no; then
17070 cat >> confdefs.h <<\EOF
17071 #define HAVE_INET_ATON 1
17077 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
17078 echo "configure:17079: checking for _spawnlp" >&5
17079 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
17080 echo $ac_n "(cached) $ac_c" 1>&6
17082 cat > conftest.$ac_ext <<EOF
17083 #line 17084 "configure"
17084 #include "confdefs.h"
17085 /* System header to define __stub macros and hopefully few prototypes,
17086 which can conflict with char _spawnlp(); below. */
17087 #include <assert.h>
17088 /* Override any gcc2 internal prototype to avoid an error. */
17089 /* We use char because int might match the return type of a gcc2
17090 builtin and then its argument prototype would still apply. */
17096 /* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
17107 if { (eval echo configure:17108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17109 eval "ac_cv_func__spawnlp=yes"
17111 echo "configure: failed program was:" >&5
17112 cat conftest.$ac_ext >&5
17114 eval "ac_cv_func__spawnlp=no"
17119 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
17120 echo "$ac_t""yes" 1>&6
17121 cat >> confdefs.h <<\EOF
17122 #define HAVE_SPAWNLP 1
17126 echo "$ac_t""no" 1>&6
17130 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
17131 echo "configure:17132: checking for _snprintf" >&5
17132 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
17133 echo $ac_n "(cached) $ac_c" 1>&6
17135 cat > conftest.$ac_ext <<EOF
17136 #line 17137 "configure"
17137 #include "confdefs.h"
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char _snprintf(); below. */
17140 #include <assert.h>
17141 /* Override any gcc2 internal prototype to avoid an error. */
17142 /* We use char because int might match the return type of a gcc2
17143 builtin and then its argument prototype would still apply. */
17149 /* The GNU C library defines this for functions which it implements
17150 to always fail with ENOSYS. Some functions are actually named
17151 something starting with __ and the normal name is an alias. */
17152 #if defined (__stub__snprintf) || defined (__stub____snprintf)
17160 if { (eval echo configure:17161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17162 eval "ac_cv_func__snprintf=yes"
17164 echo "configure: failed program was:" >&5
17165 cat conftest.$ac_ext >&5
17167 eval "ac_cv_func__snprintf=no"
17172 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
17173 echo "$ac_t""yes" 1>&6
17174 ac_cv_func_snprintf=yes
17175 cat >> confdefs.h <<\EOF
17176 #define snprintf _snprintf
17181 echo "$ac_t""no" 1>&6
17185 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
17186 echo "configure:17187: checking for _vsnprintf" >&5
17187 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
17188 echo $ac_n "(cached) $ac_c" 1>&6
17190 cat > conftest.$ac_ext <<EOF
17191 #line 17192 "configure"
17192 #include "confdefs.h"
17193 /* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char _vsnprintf(); below. */
17195 #include <assert.h>
17196 /* Override any gcc2 internal prototype to avoid an error. */
17197 /* We use char because int might match the return type of a gcc2
17198 builtin and then its argument prototype would still apply. */
17204 /* The GNU C library defines this for functions which it implements
17205 to always fail with ENOSYS. Some functions are actually named
17206 something starting with __ and the normal name is an alias. */
17207 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
17215 if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17217 eval "ac_cv_func__vsnprintf=yes"
17219 echo "configure: failed program was:" >&5
17220 cat conftest.$ac_ext >&5
17222 eval "ac_cv_func__vsnprintf=no"
17227 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
17228 echo "$ac_t""yes" 1>&6
17229 ac_cv_func_vsnprintf=yes
17230 cat >> confdefs.h <<\EOF
17231 #define vsnprintf _vsnprintf
17236 echo "$ac_t""no" 1>&6
17240 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17241 echo "configure:17242: checking for vprintf" >&5
17242 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
17243 echo $ac_n "(cached) $ac_c" 1>&6
17245 cat > conftest.$ac_ext <<EOF
17246 #line 17247 "configure"
17247 #include "confdefs.h"
17248 /* System header to define __stub macros and hopefully few prototypes,
17249 which can conflict with char vprintf(); below. */
17250 #include <assert.h>
17251 /* Override any gcc2 internal prototype to avoid an error. */
17252 /* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17259 /* The GNU C library defines this for functions which it implements
17260 to always fail with ENOSYS. Some functions are actually named
17261 something starting with __ and the normal name is an alias. */
17262 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17270 if { (eval echo configure:17271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17272 eval "ac_cv_func_vprintf=yes"
17274 echo "configure: failed program was:" >&5
17275 cat conftest.$ac_ext >&5
17277 eval "ac_cv_func_vprintf=no"
17282 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17283 echo "$ac_t""yes" 1>&6
17284 cat >> confdefs.h <<\EOF
17285 #define HAVE_VPRINTF 1
17289 echo "$ac_t""no" 1>&6
17292 if test "$ac_cv_func_vprintf" != yes; then
17293 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17294 echo "configure:17295: checking for _doprnt" >&5
17295 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17296 echo $ac_n "(cached) $ac_c" 1>&6
17298 cat > conftest.$ac_ext <<EOF
17299 #line 17300 "configure"
17300 #include "confdefs.h"
17301 /* System header to define __stub macros and hopefully few prototypes,
17302 which can conflict with char _doprnt(); below. */
17303 #include <assert.h>
17304 /* Override any gcc2 internal prototype to avoid an error. */
17305 /* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17312 /* The GNU C library defines this for functions which it implements
17313 to always fail with ENOSYS. Some functions are actually named
17314 something starting with __ and the normal name is an alias. */
17315 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17323 if { (eval echo configure:17324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17325 eval "ac_cv_func__doprnt=yes"
17327 echo "configure: failed program was:" >&5
17328 cat conftest.$ac_ext >&5
17330 eval "ac_cv_func__doprnt=no"
17335 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17336 echo "$ac_t""yes" 1>&6
17337 cat >> confdefs.h <<\EOF
17338 #define HAVE_DOPRNT 1
17342 echo "$ac_t""no" 1>&6
17348 if test $ac_cv_func_vprintf = yes ; then
17349 for ac_func in vsnprintf vsprintf
17351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17352 echo "configure:17353: checking for $ac_func" >&5
17353 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17354 echo $ac_n "(cached) $ac_c" 1>&6
17356 cat > conftest.$ac_ext <<EOF
17357 #line 17358 "configure"
17358 #include "confdefs.h"
17359 /* System header to define __stub macros and hopefully few prototypes,
17360 which can conflict with char $ac_func(); below. */
17361 #include <assert.h>
17362 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17370 /* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17381 if { (eval echo configure:17382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383 eval "ac_cv_func_$ac_func=yes"
17385 echo "configure: failed program was:" >&5
17386 cat conftest.$ac_ext >&5
17388 eval "ac_cv_func_$ac_func=no"
17393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17394 echo "$ac_t""yes" 1>&6
17395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17396 cat >> confdefs.h <<EOF
17397 #define $ac_tr_func 1
17401 echo "$ac_t""no" 1>&6
17461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17462 echo "configure:17463: checking for $ac_func" >&5
17463 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17464 echo $ac_n "(cached) $ac_c" 1>&6
17466 cat > conftest.$ac_ext <<EOF
17467 #line 17468 "configure"
17468 #include "confdefs.h"
17469 /* System header to define __stub macros and hopefully few prototypes,
17470 which can conflict with char $ac_func(); below. */
17471 #include <assert.h>
17472 /* Override any gcc2 internal prototype to avoid an error. */
17473 /* We use char because int might match the return type of a gcc2
17474 builtin and then its argument prototype would still apply. */
17480 /* The GNU C library defines this for functions which it implements
17481 to always fail with ENOSYS. Some functions are actually named
17482 something starting with __ and the normal name is an alias. */
17483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17491 if { (eval echo configure:17492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17493 eval "ac_cv_func_$ac_func=yes"
17495 echo "configure: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17498 eval "ac_cv_func_$ac_func=no"
17503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17504 echo "$ac_t""yes" 1>&6
17505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17506 cat >> confdefs.h <<EOF
17507 #define $ac_tr_func 1
17511 echo "$ac_t""no" 1>&6
17516 for ac_func in getopt
17518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17519 echo "configure:17520: checking for $ac_func" >&5
17520 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17521 echo $ac_n "(cached) $ac_c" 1>&6
17523 cat > conftest.$ac_ext <<EOF
17524 #line 17525 "configure"
17525 #include "confdefs.h"
17526 /* System header to define __stub macros and hopefully few prototypes,
17527 which can conflict with char $ac_func(); below. */
17528 #include <assert.h>
17529 /* Override any gcc2 internal prototype to avoid an error. */
17530 /* We use char because int might match the return type of a gcc2
17531 builtin and then its argument prototype would still apply. */
17537 /* The GNU C library defines this for functions which it implements
17538 to always fail with ENOSYS. Some functions are actually named
17539 something starting with __ and the normal name is an alias. */
17540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17548 if { (eval echo configure:17549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17550 eval "ac_cv_func_$ac_func=yes"
17552 echo "configure: failed program was:" >&5
17553 cat conftest.$ac_ext >&5
17555 eval "ac_cv_func_$ac_func=no"
17560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17561 echo "$ac_t""yes" 1>&6
17562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17563 cat >> confdefs.h <<EOF
17564 #define $ac_tr_func 1
17568 echo "$ac_t""no" 1>&6
17569 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17575 if test "$ac_cv_func_getopt" != yes; then
17576 LIBSRCS="$LIBSRCS getopt.c"
17579 # Check Configuration
17580 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17581 echo "configure:17582: checking declaration of sys_errlist" >&5
17582 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17583 echo $ac_n "(cached) $ac_c" 1>&6
17586 cat > conftest.$ac_ext <<EOF
17587 #line 17588 "configure"
17588 #include "confdefs.h"
17591 #include <sys/types.h>
17594 #include <stdlib.h>
17597 char *c = (char *) *sys_errlist
17600 if { (eval echo configure:17601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17602 ol_cv_dcl_sys_errlist=yes
17603 ol_cv_have_sys_errlist=yes
17605 echo "configure: failed program was:" >&5
17606 cat conftest.$ac_ext >&5
17608 ol_cv_dcl_sys_errlist=no
17613 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17615 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17616 if test $ol_cv_dcl_sys_errlist = no ; then
17617 cat >> confdefs.h <<\EOF
17618 #define DECL_SYS_ERRLIST 1
17622 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17623 echo "configure:17624: checking existence of sys_errlist" >&5
17624 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17625 echo $ac_n "(cached) $ac_c" 1>&6
17628 cat > conftest.$ac_ext <<EOF
17629 #line 17630 "configure"
17630 #include "confdefs.h"
17633 char *c = (char *) *sys_errlist
17636 if { (eval echo configure:17637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17638 ol_cv_have_sys_errlist=yes
17640 echo "configure: failed program was:" >&5
17641 cat conftest.$ac_ext >&5
17643 ol_cv_have_sys_errlist=no
17648 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17650 if test $ol_cv_have_sys_errlist = yes ; then
17651 cat >> confdefs.h <<\EOF
17652 #define HAVE_SYS_ERRLIST 1
17659 if test "$ol_enable_debug" != no ; then
17660 cat >> confdefs.h <<\EOF
17661 #define LDAP_DEBUG 1
17665 if test "$ol_enable_syslog" = yes ; then
17666 cat >> confdefs.h <<\EOF
17667 #define LDAP_SYSLOG 1
17671 if test "$ol_enable_cache" = no ; then
17672 cat >> confdefs.h <<\EOF
17673 #define LDAP_NOCACHE 1
17677 if test "$ol_link_kbind" != no ; then
17678 cat >> confdefs.h <<\EOF
17679 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17683 if test "$ol_enable_proctitle" != no ; then
17684 cat >> confdefs.h <<\EOF
17685 #define LDAP_PROCTITLE 1
17689 if test "$ol_enable_referrals" != no ; then
17690 cat >> confdefs.h <<\EOF
17691 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17695 if test "$ol_enable_local" != no; then
17696 cat >> confdefs.h <<\EOF
17697 #define LDAP_PF_LOCAL 1
17701 if test "$ol_link_ipv6" != no; then
17702 cat >> confdefs.h <<\EOF
17703 #define LDAP_PF_INET6 1
17707 if test "$ol_enable_cleartext" != no ; then
17708 cat >> confdefs.h <<\EOF
17709 #define SLAPD_CLEARTEXT 1
17713 if test "$ol_enable_crypt" != no ; then
17714 cat >> confdefs.h <<\EOF
17715 #define SLAPD_CRYPT 1
17719 if test "$ol_link_kpasswd" != no ; then
17720 cat >> confdefs.h <<\EOF
17721 #define SLAPD_KPASSWD 1
17725 if test "$ol_link_spasswd" != no ; then
17726 cat >> confdefs.h <<\EOF
17727 #define SLAPD_SPASSWD 1
17731 if test "$ol_enable_phonetic" != no ; then
17732 cat >> confdefs.h <<\EOF
17733 #define SLAPD_PHONETIC 1
17737 if test "$ol_enable_rlookups" != no ; then
17738 cat >> confdefs.h <<\EOF
17739 #define SLAPD_RLOOKUPS 1
17743 if test "$ol_enable_aci" != no ; then
17744 cat >> confdefs.h <<\EOF
17745 #define SLAPD_ACI_ENABLED 1
17750 if test "$ol_link_modules" != no ; then
17751 cat >> confdefs.h <<\EOF
17752 #define SLAPD_MODULES 1
17756 SLAPD_MODULES_LDFLAGS="-dlopen self"
17759 if test "$ol_enable_bdb" != no ; then
17760 cat >> confdefs.h <<\EOF
17761 #define SLAPD_BDB 1
17766 if test "$ol_with_bdb_module" != static ; then
17767 cat >> confdefs.h <<\EOF
17768 #define SLAPD_BDB_DYNAMIC 1
17772 BUILD_BDB_DYNAMIC=shared
17773 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17774 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
17776 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
17780 if test "$ol_link_dnssrv" != no ; then
17781 cat >> confdefs.h <<\EOF
17782 #define SLAPD_DNSSRV 1
17787 if test "$ol_with_dnssrv_module" != static ; then
17788 cat >> confdefs.h <<\EOF
17789 #define SLAPD_DNSSRV_DYNAMIC 1
17793 BUILD_DNSSRV_DYNAMIC=shared
17794 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17795 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
17797 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
17801 if test "$ol_enable_ldap" != no ; then
17802 cat >> confdefs.h <<\EOF
17803 #define SLAPD_LDAP 1
17808 if test "$ol_with_ldap_module" != static ; then
17809 cat >> confdefs.h <<\EOF
17810 #define SLAPD_LDAP_DYNAMIC 1
17814 BUILD_LDAP_DYNAMIC=shared
17815 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17816 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
17818 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
17822 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17823 cat >> confdefs.h <<\EOF
17824 #define SLAPD_LDBM 1
17830 if test "$ol_with_ldbm_module" != static ; then
17831 cat >> confdefs.h <<\EOF
17832 #define SLAPD_LDBM_DYNAMIC 1
17836 BUILD_LDBM_DYNAMIC=shared
17837 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17838 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
17840 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
17844 if test "$ol_enable_meta" != no ; then
17845 if test "$ol_enable_ldap" = no ; then
17846 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
17848 if test "$ol_enable_rewrite" = no ; then
17849 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
17851 cat >> confdefs.h <<\EOF
17852 #define SLAPD_META 1
17857 if test "$ol_with_meta_module" != static ; then
17858 cat >> confdefs.h <<\EOF
17859 #define SLAPD_META_DYNAMIC 1
17863 BUILD_META_DYNAMIC=shared
17864 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
17865 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
17867 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
17871 if test "$ol_enable_monitor" != no ; then
17872 cat >> confdefs.h <<\EOF
17873 #define SLAPD_MONITOR 1
17878 if test "$ol_with_monitor_module" != static ; then
17879 cat >> confdefs.h <<\EOF
17880 #define SLAPD_MONITOR_DYNAMIC 1
17884 BUILD_MONITOR_DYNAMIC=shared
17885 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
17886 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
17888 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
17892 if test "$ol_enable_passwd" != no ; then
17893 cat >> confdefs.h <<\EOF
17894 #define SLAPD_PASSWD 1
17899 if test "$ol_with_passwd_module" != static ; then
17900 cat >> confdefs.h <<\EOF
17901 #define SLAPD_PASSWD_DYNAMIC 1
17905 BUILD_PASSWD_DYNAMIC=shared
17906 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17907 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
17909 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
17913 if test "$ol_link_perl" != no ; then
17914 cat >> confdefs.h <<\EOF
17915 #define SLAPD_PERL 1
17920 if test "$ol_with_perl_module" != static ; then
17921 cat >> confdefs.h <<\EOF
17922 #define SLAPD_PERL_DYNAMIC 1
17926 BUILD_PERL_DYNAMIC=shared
17927 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
17928 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
17930 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
17934 if test "$ol_enable_shell" != no ; then
17935 cat >> confdefs.h <<\EOF
17936 #define SLAPD_SHELL 1
17941 if test "$ol_with_shell_module" != static ; then
17942 cat >> confdefs.h <<\EOF
17943 #define SLAPD_SHELL_DYNAMIC 1
17947 BUILD_SHELL_DYNAMIC=shared
17948 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17949 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
17951 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
17955 if test "$ol_enable_tcl" != no ; then
17956 cat >> confdefs.h <<\EOF
17957 #define SLAPD_TCL 1
17962 if test "$ol_with_tcl_module" != static; then
17963 cat >> confdefs.h <<\EOF
17964 #define SLAPD_TCL_DYNAMIC 1
17968 BUILD_TCL_DYNAMIC=shared
17969 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
17970 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
17972 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
17976 if test "$ol_link_sql" != no ; then
17977 cat >> confdefs.h <<\EOF
17978 #define SLAPD_SQL 1
17983 if test "$ol_with_sql_module" != static; then
17984 cat >> confdefs.h <<\EOF
17985 #define SLAPD_SQL_DYNAMIC 1
17989 BUILD_SQL_DYNAMIC=shared
17990 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17991 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
17993 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
17997 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17998 $BUILD_SLAPD = yes ; then
18002 if test "$ol_enable_rewrite" != no ; then
18003 cat >> confdefs.h <<\EOF
18004 #define ENABLE_REWRITE 1
18008 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
18013 if test "$ac_cv_mingw32" = yes ; then
18015 SLAPD_MODULES_LDFLAGS=
18016 SLAPD_MODULES_LIST=
18091 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18094 # Let make expand exec_prefix.
18095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18097 # Any assignment to VPATH causes Sun make to only execute
18098 # the first set of double-colon rules, so remove it if not needed.
18099 # If there is a colon in the path, we need to keep it.
18100 if test "x$srcdir" = x.; then
18101 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18104 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18106 DEFS=-DHAVE_CONFIG_H
18108 # Without the "./", some shells look in PATH for config.status.
18109 : ${CONFIG_STATUS=./config.status}
18111 echo creating $CONFIG_STATUS
18112 rm -f $CONFIG_STATUS
18113 cat > $CONFIG_STATUS <<EOF
18115 # Generated automatically by configure.
18116 # Run this file to recreate the current configuration.
18117 # This directory was configured as follows,
18118 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18120 # $0 $ac_configure_args
18122 # Compiler output produced by configure, useful for debugging
18123 # configure, is in ./config.log if it exists.
18125 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18128 case "\$ac_option" in
18129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18130 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18131 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18132 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18133 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
18135 -help | --help | --hel | --he | --h)
18136 echo "\$ac_cs_usage"; exit 0 ;;
18137 *) echo "\$ac_cs_usage"; exit 1 ;;
18141 ac_given_srcdir=$srcdir
18142 ac_given_INSTALL="$INSTALL"
18144 trap 'rm -fr `echo "\
18145 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18146 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18147 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18148 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18149 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18150 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18151 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18152 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18153 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18154 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18155 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18156 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18157 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18158 include/Makefile:build/top.mk:include/Makefile.in \
18159 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18160 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18161 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18162 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18163 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18164 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18165 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18166 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18167 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18168 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18169 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18170 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18171 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18172 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18173 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18174 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18175 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18176 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18177 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18178 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18179 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18180 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18181 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18182 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18183 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18184 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18185 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18186 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18187 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18189 cat >> $CONFIG_STATUS <<EOF
18191 # Protect against being on the right side of a sed subst in config.status.
18192 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18193 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18197 s%@CFLAGS@%$CFLAGS%g
18198 s%@CPPFLAGS@%$CPPFLAGS%g
18199 s%@CXXFLAGS@%$CXXFLAGS%g
18200 s%@FFLAGS@%$FFLAGS%g
18202 s%@LDFLAGS@%$LDFLAGS%g
18204 s%@exec_prefix@%$exec_prefix%g
18205 s%@prefix@%$prefix%g
18206 s%@program_transform_name@%$program_transform_name%g
18207 s%@bindir@%$bindir%g
18208 s%@sbindir@%$sbindir%g
18209 s%@libexecdir@%$libexecdir%g
18210 s%@datadir@%$datadir%g
18211 s%@sysconfdir@%$sysconfdir%g
18212 s%@sharedstatedir@%$sharedstatedir%g
18213 s%@localstatedir@%$localstatedir%g
18214 s%@libdir@%$libdir%g
18215 s%@includedir@%$includedir%g
18216 s%@oldincludedir@%$oldincludedir%g
18217 s%@infodir@%$infodir%g
18218 s%@mandir@%$mandir%g
18220 s%@host_alias@%$host_alias%g
18221 s%@host_cpu@%$host_cpu%g
18222 s%@host_vendor@%$host_vendor%g
18223 s%@host_os@%$host_os%g
18224 s%@target@%$target%g
18225 s%@target_alias@%$target_alias%g
18226 s%@target_cpu@%$target_cpu%g
18227 s%@target_vendor@%$target_vendor%g
18228 s%@target_os@%$target_os%g
18230 s%@build_alias@%$build_alias%g
18231 s%@build_cpu@%$build_cpu%g
18232 s%@build_vendor@%$build_vendor%g
18233 s%@build_os@%$build_os%g
18234 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18235 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18236 s%@INSTALL_DATA@%$INSTALL_DATA%g
18237 s%@PACKAGE@%$PACKAGE%g
18238 s%@VERSION@%$VERSION%g
18239 s%@ACLOCAL@%$ACLOCAL%g
18240 s%@AUTOCONF@%$AUTOCONF%g
18241 s%@AUTOMAKE@%$AUTOMAKE%g
18242 s%@AUTOHEADER@%$AUTOHEADER%g
18243 s%@MAKEINFO@%$MAKEINFO%g
18244 s%@install_sh@%$install_sh%g
18247 s%@AMTARFLAGS@%$AMTARFLAGS%g
18248 s%@SET_MAKE@%$SET_MAKE%g
18249 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
18250 s%@top_builddir@%$top_builddir%g
18251 s%@ldap_subdir@%$ldap_subdir%g
18254 s%@RANLIB@%$RANLIB%g
18256 s%@DLLTOOL@%$DLLTOOL%g
18258 s%@OBJDUMP@%$OBJDUMP%g
18259 s%@LIBTOOL@%$LIBTOOL%g
18261 s%@SENDMAIL@%$SENDMAIL%g
18262 s%@EDITOR@%$EDITOR%g
18263 s%@FINGER@%$FINGER%g
18264 s%@PERLBIN@%$PERLBIN%g
18266 s%@EXEEXT@%$EXEEXT%g
18267 s%@OBJEXT@%$OBJEXT%g
18268 s%@OL_MKDEP@%$OL_MKDEP%g
18269 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
18270 s%@LIBOBJS@%$LIBOBJS%g
18271 s%@LIBSRCS@%$LIBSRCS%g
18273 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
18274 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
18275 s%@BUILD_BDB@%$BUILD_BDB%g
18276 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
18277 s%@BUILD_LDAP@%$BUILD_LDAP%g
18278 s%@BUILD_LDBM@%$BUILD_LDBM%g
18279 s%@BUILD_META@%$BUILD_META%g
18280 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18281 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18282 s%@BUILD_PERL@%$BUILD_PERL%g
18283 s%@BUILD_SHELL@%$BUILD_SHELL%g
18284 s%@BUILD_SQL@%$BUILD_SQL%g
18285 s%@BUILD_TCL@%$BUILD_TCL%g
18286 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18287 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18288 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18289 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18290 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18291 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18292 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18293 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18294 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18295 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18296 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18297 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18298 s%@LDBM_LIB@%$LDBM_LIB%g
18299 s%@LDAP_LIBS@%$LDAP_LIBS%g
18300 s%@LDIF_LIBS@%$LDIF_LIBS%g
18301 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18302 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18303 s%@LDBM_LIBS@%$LDBM_LIBS%g
18304 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18305 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18306 s%@WRAP_LIBS@%$WRAP_LIBS%g
18307 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18308 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18309 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18310 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18311 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
18312 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
18313 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18314 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18315 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18316 s%@KRB4_LIBS@%$KRB4_LIBS%g
18317 s%@KRB5_LIBS@%$KRB5_LIBS%g
18318 s%@READLINE_LIBS@%$READLINE_LIBS%g
18319 s%@SASL_LIBS@%$SASL_LIBS%g
18320 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18321 s%@TLS_LIBS@%$TLS_LIBS%g
18322 s%@MODULES_LIBS@%$MODULES_LIBS%g
18323 s%@AUTH_LIBS@%$AUTH_LIBS%g
18324 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18325 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18326 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18327 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18332 cat >> $CONFIG_STATUS <<\EOF
18334 # Split the substitutions into bite-sized pieces for seds with
18335 # small command number limits, like on Digital OSF/1 and HP-UX.
18336 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18337 ac_file=1 # Number of current file.
18338 ac_beg=1 # First line for current file.
18339 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18342 while $ac_more_lines; do
18343 if test $ac_beg -gt 1; then
18344 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18346 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18348 if test ! -s conftest.s$ac_file; then
18349 ac_more_lines=false
18350 rm -f conftest.s$ac_file
18352 if test -z "$ac_sed_cmds"; then
18353 ac_sed_cmds="sed -f conftest.s$ac_file"
18355 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18357 ac_file=`expr $ac_file + 1`
18359 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18362 if test -z "$ac_sed_cmds"; then
18367 cat >> $CONFIG_STATUS <<EOF
18369 CONFIG_FILES=\${CONFIG_FILES-"\
18370 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18371 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18372 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18373 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18374 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18375 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18376 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18377 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18378 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18379 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18380 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18381 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18382 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18383 include/Makefile:build/top.mk:include/Makefile.in \
18384 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18385 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18386 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18387 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18388 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18389 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18390 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18391 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18392 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18393 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18394 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18395 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18396 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18397 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18398 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18399 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18400 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18401 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18402 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18403 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18404 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18405 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18406 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18407 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18408 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18409 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18410 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18411 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18414 cat >> $CONFIG_STATUS <<\EOF
18415 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18418 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18419 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18420 *) ac_file_in="${ac_file}.in" ;;
18423 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18425 # Remove last slash and all that follows it. Not all systems have dirname.
18426 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18428 # The file is in a subdirectory.
18429 test ! -d "$ac_dir" && mkdir "$ac_dir"
18430 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18431 # A "../" for each directory in $ac_dir_suffix.
18432 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18434 ac_dir_suffix= ac_dots=
18437 case "$ac_given_srcdir" in
18439 if test -z "$ac_dots"; then top_srcdir=.
18440 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18441 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18442 *) # Relative path.
18443 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18444 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18447 case "$ac_given_INSTALL" in
18448 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18449 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18452 echo creating "$ac_file"
18454 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18456 *[Mm]akefile*) ac_comsub="1i\\
18457 # $configure_input" ;;
18461 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18463 s%@configure_input@%$configure_input%g
18464 s%@srcdir@%$srcdir%g
18465 s%@top_srcdir@%$top_srcdir%g
18466 s%@INSTALL@%$INSTALL%g
18467 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18471 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18472 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18474 # ac_d sets the value in "#define NAME VALUE" lines.
18475 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18476 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18479 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18480 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18481 ac_uB='\([ ]\)%\1#\2define\3'
18484 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18485 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18486 ac_eB='$%\1#\2define\3'
18490 if test "${CONFIG_HEADERS+set}" != set; then
18492 cat >> $CONFIG_STATUS <<EOF
18493 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18495 cat >> $CONFIG_STATUS <<\EOF
18497 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18500 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18501 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18502 *) ac_file_in="${ac_file}.in" ;;
18505 echo creating $ac_file
18507 rm -f conftest.frag conftest.in conftest.out
18508 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18509 cat $ac_file_inputs > conftest.in
18513 # Transform confdefs.h into a sed script conftest.vals that substitutes
18514 # the proper values into config.h.in to produce config.h. And first:
18515 # Protect against being on the right side of a sed subst in config.status.
18516 # Protect against being in an unquoted here document in config.status.
18517 rm -f conftest.vals
18518 cat > conftest.hdr <<\EOF
18521 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18525 sed -n -f conftest.hdr confdefs.h > conftest.vals
18528 # This sed command replaces #undef with comments. This is necessary, for
18529 # example, in the case of _POSIX_SOURCE, which is predefined and required
18530 # on some systems where configure will not decide to define it.
18531 cat >> conftest.vals <<\EOF
18532 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18535 # Break up conftest.vals because some shells have a limit on
18536 # the size of here documents, and old seds have small limits too.
18538 rm -f conftest.tail
18541 ac_lines=`grep -c . conftest.vals`
18542 # grep -c gives empty output for an empty file on some AIX systems.
18543 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18544 # Write a limited-size here document to conftest.frag.
18545 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18546 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18548 sed -f conftest.frag conftest.in > conftest.out
18550 mv conftest.out conftest.in
18551 ' >> $CONFIG_STATUS
18552 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18553 rm -f conftest.vals
18554 mv conftest.tail conftest.vals
18556 rm -f conftest.vals
18558 cat >> $CONFIG_STATUS <<\EOF
18559 rm -f conftest.frag conftest.h
18560 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18561 cat conftest.in >> conftest.h
18563 if cmp -s $ac_file conftest.h 2>/dev/null; then
18564 echo "$ac_file is unchanged"
18567 # Remove last slash and all that follows it. Not all systems have dirname.
18568 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18569 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18570 # The file is in a subdirectory.
18571 test ! -d "$ac_dir" && mkdir "$ac_dir"
18574 mv conftest.h $ac_file
18579 cat >> $CONFIG_STATUS <<EOF
18582 cat >> $CONFIG_STATUS <<\EOF
18585 echo Please \"make depend\" to build dependencies
18589 chmod +x $CONFIG_STATUS
18590 rm -fr confdefs* $ac_clean_files
18591 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1