3 # from OpenLDAP: pkg/ldap/configure.in,v 1.352 2001/05/02 23:13:51 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging [yes]"
32 --enable-syslog enable syslog support [auto]"
34 --enable-proctitle enable proctitle support [yes]"
36 --enable-cache enable caching (experimental) [no]"
38 --enable-referrals enable V2 Referrals (experimental) [no]"
40 --enable-kbind enable V2 Kerberos IV bind (deprecated) [no]"
42 --enable-ipv6 enable IPv6 support [auto]"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
46 --enable-x-compile enable cross compiling [no]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch URL support [auto]"
52 --with-kerberos with support [auto]"
54 --with-readline with readline support [auto]"
56 --with-threads with threads [auto]"
58 --with-tls with TLS/SSL support [auto]"
60 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rlookups enable reverse lookups [no]"
86 --enable-slp enable SLPv2 support [no]"
88 --enable-wrappers enable tcp wrapper support [no]"
90 --enable-bdb enable Berkeley DB backend [no]"
92 --with-bdb-module module type [static]"
94 --enable-dnssrv enable dnssrv backend [no]"
96 --with-dnssrv-module module type [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type [static]"
102 --enable-ldbm enable ldbm backend [yes]"
104 --with-ldbm-api with LDBM API [auto]"
106 --with-ldbm-module module type [static]"
108 --with-ldbm-type use LDBM type [auto]"
110 --enable-passwd enable passwd backend [no]"
112 --with-passwd-module module type [static]"
114 --enable-perl enable perl backend [no]"
116 --with-perl-module module type [static]"
118 --enable-shell enable shell backend [no]"
120 --with-shell-module module type [static]"
122 --enable-sql enable sql backend [no]"
124 --with-sql-module module type [static]"
126 --enable-tcl enable tcl backend [no]"
128 --with-tcl-module module type [static]"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd [auto]"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13.1"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version.sh
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 # set unset (borrowed from autoconf 2.49c)
649 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
655 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
658 for ac_dir in build $srcdir/build; do
659 if test -f $ac_dir/install-sh; then
661 ac_install_sh="$ac_aux_dir/install-sh -c"
663 elif test -f $ac_dir/install.sh; then
665 ac_install_sh="$ac_aux_dir/install.sh -c"
667 elif test -f $ac_dir/shtool; then
669 ac_install_sh="$ac_aux_dir/shtool install -c"
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
676 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
677 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
678 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
680 eval `$ac_aux_dir/version.sh`
681 if test -z "$OL_STRING"; then
682 { echo "configure: error: could not determine version" 1>&2; exit 1; }
685 echo "Configuring $OL_STRING ..."
688 echo $ac_n "checking host system type""... $ac_c" 1>&6
689 echo "configure:690: checking host system type" >&5
690 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
692 # Make sure we can run config.sub.
693 if $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 ac_cv_host_alias=$host
698 case "$ac_cv_host_alias" in
702 if ac_cv_host_alias=`$ac_config_guess`; then :
703 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705 *) ac_cv_host_alias=$nonopt ;;
709 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
710 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo $ac_n "(cached) $ac_c" 1>&6
717 echo "$ac_t""$ac_cv_host" 1>&6
720 host_alias=$ac_cv_host_alias
721 host_cpu=$ac_cv_host_cpu
722 host_vendor=$ac_cv_host_vendor
723 host_os=$ac_cv_host_os
729 echo $ac_n "checking target system type""... $ac_c" 1>&6
730 echo "configure:731: checking target system type" >&5
731 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4 >/dev/null 2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 ac_cv_target_alias=$target
739 case "$ac_cv_target_alias" in
743 ac_cv_target_alias=$host_alias ;;
745 *) ac_cv_target_alias=$nonopt ;;
749 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
750 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo $ac_n "(cached) $ac_c" 1>&6
757 echo "$ac_t""$ac_cv_target" 1>&6
760 target_alias=$ac_cv_target_alias
761 target_cpu=$ac_cv_target_cpu
762 target_vendor=$ac_cv_target_vendor
763 target_os=$ac_cv_target_os
769 echo $ac_n "checking build system type""... $ac_c" 1>&6
770 echo "configure:771: checking build system type" >&5
771 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
773 # Make sure we can run config.sub.
774 if $ac_config_sub sun4 >/dev/null 2>&1; then :
775 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
778 ac_cv_build_alias=$build
779 case "$ac_cv_build_alias" in
783 ac_cv_build_alias=$host_alias ;;
785 *) ac_cv_build_alias=$nonopt ;;
789 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
790 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
791 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
792 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
794 echo $ac_n "(cached) $ac_c" 1>&6
797 echo "$ac_t""$ac_cv_build" 1>&6
800 build_alias=$ac_cv_build_alias
801 build_cpu=$ac_cv_build_cpu
802 build_vendor=$ac_cv_build_vendor
803 build_os=$ac_cv_build_os
809 # Do some error checking and defaulting for the host and target type.
811 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
814 # 1. You are not allowed to specify --host, --target, and nonopt at the
816 # 2. Host defaults to nonopt.
817 # 3. If nonopt is not specified, then host defaults to the current host,
818 # as determined by config.guess.
819 # 4. Target and build default to nonopt.
820 # 5. If nonopt is not specified, then target and build default to host.
822 # The aliases save the names the user supplied, while $host etc.
823 # will get canonicalized.
824 case $host---$target---$nonopt in
825 NONE---*---* | *---NONE---* | *---*---NONE) ;;
826 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
829 test "$host_alias" != "$target_alias" &&
830 test "$program_prefix$program_suffix$program_transform_name" = \
832 program_prefix=${target_alias}-
835 # Find a good install program. We prefer a C program (faster),
836 # so one script is as good as another. But avoid the broken or
837 # incompatible versions:
838 # SysV /etc/install, /usr/sbin/install
839 # SunOS /usr/etc/install
842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
845 # ./install, which can be erroneously created by make from ./install.sh.
846 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
847 echo "configure:848: checking for a BSD compatible install" >&5
848 if test -z "$INSTALL"; then
849 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
853 for ac_dir in $PATH; do
854 # Account for people who put trailing slashes in PATH elements.
856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858 # OSF1 and SCO ODT 3.0 have their own names for install.
859 # Don't use installbsd from OSF since it installs stuff as root
861 for ac_prog in ginstall scoinst install; do
862 if test -f $ac_dir/$ac_prog; then
863 if test $ac_prog = install &&
864 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # AIX install. It has an incompatible calling convention.
867 elif test $ac_prog = install &&
868 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
869 # program-specific install script used by HP pwplus--don't use.
872 ac_cv_path_install="$ac_dir/$ac_prog -c"
883 if test "${ac_cv_path_install+set}" = set; then
884 INSTALL="$ac_cv_path_install"
886 # As a last resort, use the slow shell script. We don't cache a
887 # path for INSTALL within a source directory, because that will
888 # break other packages using the cache if that directory is
889 # removed, or if the path is relative.
890 INSTALL="$ac_install_sh"
893 echo "$ac_t""$INSTALL" 1>&6
895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
896 # It thinks the first close brace ends the variable substitution.
897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
903 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
904 echo "configure:905: checking whether build environment is sane" >&5
907 echo timestamp > conftestfile
908 # Do `set' in a subshell so we don't clobber the current shell's
909 # arguments. Must try -L first in case configure is actually a
910 # symlink; some systems play weird games with the mod time of symlinks
911 # (eg FreeBSD returns the mod time of the symlink's containing
914 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
915 if test "$*" = "X"; then
917 set X `ls -t $srcdir/configure conftestfile`
919 if test "$*" != "X $srcdir/configure conftestfile" \
920 && test "$*" != "X conftestfile $srcdir/configure"; then
922 # If neither matched, then we have a broken ls. This can happen
923 # if, for instance, CONFIG_SHELL is bash and it inherits a
924 # broken ls alias from the environment. This has actually
925 # happened. Such a system could not be considered "sane".
926 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
927 alias in your environment" 1>&2; exit 1; }
930 test "$2" = conftestfile
936 { echo "configure: error: newly created file is older than distributed files!
937 Check your system clock" 1>&2; exit 1; }
940 echo "$ac_t""yes" 1>&6
941 if test "$program_transform_name" = s,x,x,; then
942 program_transform_name=
944 # Double any \ or $. echo might interpret backslashes.
945 cat <<\EOF_SED > conftestsed
946 s,\\,\\\\,g; s,\$,$$,g
948 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
951 test "$program_prefix" != NONE &&
952 program_transform_name="s,^,${program_prefix},;$program_transform_name"
953 # Use a double $ so make ignores it.
954 test "$program_suffix" != NONE &&
955 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
957 # sed with no file args requires a program.
958 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
960 for ac_prog in mawk gawk nawk awk
962 # Extract the first word of "$ac_prog", so it can be a program name with args.
963 set dummy $ac_prog; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$AWK"; then
970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_AWK="$ac_prog"
984 AWK="$ac_cv_prog_AWK"
985 if test -n "$AWK"; then
986 echo "$ac_t""$AWK" 1>&6
988 echo "$ac_t""no" 1>&6
991 test -n "$AWK" && break
994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${MAKE-make} sets \${MAKE}" >&5
996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftestmake <<\EOF
1002 @echo 'ac_maketemp="${MAKE}"'
1004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1005 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1006 if test -n "$ac_maketemp"; then
1007 eval ac_cv_prog_make_${ac_make}_set=yes
1009 eval ac_cv_prog_make_${ac_make}_set=no
1013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1014 echo "$ac_t""yes" 1>&6
1017 echo "$ac_t""no" 1>&6
1018 SET_MAKE="MAKE=${MAKE-make}"
1027 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1028 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1033 missing_dir=`cd $ac_aux_dir && pwd`
1034 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working aclocal" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1041 echo "$ac_t""found" 1>&6
1043 ACLOCAL="$missing_dir/missing aclocal"
1044 echo "$ac_t""missing" 1>&6
1047 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1048 echo "configure:1049: checking for working autoconf" >&5
1049 # Run test in a subshell; some versions of sh will print an error if
1050 # an executable is not found, even if stderr is redirected.
1051 # Redirect stdin to placate older versions of autoconf. Sigh.
1052 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1054 echo "$ac_t""found" 1>&6
1056 AUTOCONF="$missing_dir/missing autoconf"
1057 echo "$ac_t""missing" 1>&6
1060 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1061 echo "configure:1062: checking for working automake" >&5
1062 # Run test in a subshell; some versions of sh will print an error if
1063 # an executable is not found, even if stderr is redirected.
1064 # Redirect stdin to placate older versions of autoconf. Sigh.
1065 if (automake --version) < /dev/null > /dev/null 2>&1; then
1067 echo "$ac_t""found" 1>&6
1069 AUTOMAKE="$missing_dir/missing automake"
1070 echo "$ac_t""missing" 1>&6
1073 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1074 echo "configure:1075: checking for working autoheader" >&5
1075 # Run test in a subshell; some versions of sh will print an error if
1076 # an executable is not found, even if stderr is redirected.
1077 # Redirect stdin to placate older versions of autoconf. Sigh.
1078 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1079 AUTOHEADER=autoheader
1080 echo "$ac_t""found" 1>&6
1082 AUTOHEADER="$missing_dir/missing autoheader"
1083 echo "$ac_t""missing" 1>&6
1086 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1087 echo "configure:1088: checking for working makeinfo" >&5
1088 # Run test in a subshell; some versions of sh will print an error if
1089 # an executable is not found, even if stderr is redirected.
1090 # Redirect stdin to placate older versions of autoconf. Sigh.
1091 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1093 echo "$ac_t""found" 1>&6
1095 MAKEINFO="$missing_dir/missing makeinfo"
1096 echo "$ac_t""missing" 1>&6
1099 install_sh="$missing_dir/install-sh"
1100 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1102 for ac_prog in gnutar gtar tar
1104 # Extract the first word of "$ac_prog", so it can be a program name with args.
1105 set dummy $ac_prog; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$AMTAR"; then
1112 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 ac_cv_prog_AMTAR="$ac_prog"
1126 AMTAR="$ac_cv_prog_AMTAR"
1127 if test -n "$AMTAR"; then
1128 echo "$ac_t""$AMTAR" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 test -n "$AMTAR" && break
1138 if test -n "$AMTAR"; then
1139 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION $OL_API_INC
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1165 cat >> confdefs.h <<EOF
1166 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1170 OPENLDAP_LIBVERSION=$OL_API_LIB
1174 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1175 echo "configure:1176: checking configure arguments" >&5
1180 ldap_subdir="/openldap"
1182 # Check whether --with-subdir or --without-subdir was given.
1183 if test "${with_subdir+set}" = set; then
1184 withval="$with_subdir"
1191 ldap_subdir="$withval"
1194 ldap_subdir="/$withval"
1201 # OpenLDAP --enable-debug
1202 # Check whether --enable-debug or --disable-debug was given.
1203 if test "${enable_debug+set}" = set; then
1204 enableval="$enable_debug"
1207 for ol_val in auto yes no ; do
1208 if test "$enableval" = "$ol_val" ; then
1212 if test "$ol_arg" = "invalid" ; then
1213 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1215 ol_enable_debug="$ol_arg"
1218 ol_enable_debug="yes"
1220 # end --enable-debug
1221 # OpenLDAP --enable-syslog
1222 # Check whether --enable-syslog or --disable-syslog was given.
1223 if test "${enable_syslog+set}" = set; then
1224 enableval="$enable_syslog"
1227 for ol_val in auto yes no ; do
1228 if test "$enableval" = "$ol_val" ; then
1232 if test "$ol_arg" = "invalid" ; then
1233 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1235 ol_enable_syslog="$ol_arg"
1238 ol_enable_syslog="auto"
1240 # end --enable-syslog
1241 # OpenLDAP --enable-proctitle
1242 # Check whether --enable-proctitle or --disable-proctitle was given.
1243 if test "${enable_proctitle+set}" = set; then
1244 enableval="$enable_proctitle"
1247 for ol_val in auto yes no ; do
1248 if test "$enableval" = "$ol_val" ; then
1252 if test "$ol_arg" = "invalid" ; then
1253 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1255 ol_enable_proctitle="$ol_arg"
1258 ol_enable_proctitle="yes"
1260 # end --enable-proctitle
1261 # OpenLDAP --enable-cache
1262 # Check whether --enable-cache or --disable-cache was given.
1263 if test "${enable_cache+set}" = set; then
1264 enableval="$enable_cache"
1267 for ol_val in auto yes no ; do
1268 if test "$enableval" = "$ol_val" ; then
1272 if test "$ol_arg" = "invalid" ; then
1273 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1275 ol_enable_cache="$ol_arg"
1278 ol_enable_cache="no"
1280 # end --enable-cache
1281 # OpenLDAP --enable-referrals
1282 # Check whether --enable-referrals or --disable-referrals was given.
1283 if test "${enable_referrals+set}" = set; then
1284 enableval="$enable_referrals"
1287 for ol_val in auto yes no ; do
1288 if test "$enableval" = "$ol_val" ; then
1292 if test "$ol_arg" = "invalid" ; then
1293 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1295 ol_enable_referrals="$ol_arg"
1298 ol_enable_referrals="no"
1300 # end --enable-referrals
1301 # OpenLDAP --enable-kbind
1302 # Check whether --enable-kbind or --disable-kbind was given.
1303 if test "${enable_kbind+set}" = set; then
1304 enableval="$enable_kbind"
1307 for ol_val in auto yes no ; do
1308 if test "$enableval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1315 ol_enable_kbind="$ol_arg"
1318 ol_enable_kbind="no"
1320 # end --enable-kbind
1321 # OpenLDAP --enable-ipv6
1322 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1323 if test "${enable_ipv6+set}" = set; then
1324 enableval="$enable_ipv6"
1327 for ol_val in auto yes no ; do
1328 if test "$enableval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1335 ol_enable_ipv6="$ol_arg"
1338 ol_enable_ipv6="auto"
1341 # OpenLDAP --enable-local
1342 # Check whether --enable-local or --disable-local was given.
1343 if test "${enable_local+set}" = set; then
1344 enableval="$enable_local"
1347 for ol_val in auto yes no ; do
1348 if test "$enableval" = "$ol_val" ; then
1352 if test "$ol_arg" = "invalid" ; then
1353 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1355 ol_enable_local="$ol_arg"
1358 ol_enable_local="auto"
1360 # end --enable-local
1361 # OpenLDAP --enable-x_compile
1362 # Check whether --enable-x_compile or --disable-x_compile was given.
1363 if test "${enable_x_compile+set}" = set; then
1364 enableval="$enable_x_compile"
1367 for ol_val in yes no ; do
1368 if test "$enableval" = "$ol_val" ; then
1372 if test "$ol_arg" = "invalid" ; then
1373 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1375 ol_enable_x_compile="$ol_arg"
1378 ol_enable_x_compile="no"
1380 # end --enable-x_compile
1383 # OpenLDAP --with-cyrus_sasl
1384 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1385 if test "${with_cyrus_sasl+set}" = set; then
1386 withval="$with_cyrus_sasl"
1389 for ol_val in auto yes no ; do
1390 if test "$withval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1397 ol_with_cyrus_sasl="$ol_arg"
1400 ol_with_cyrus_sasl="auto"
1402 # end --with-cyrus_sasl
1404 # OpenLDAP --with-fetch
1405 # Check whether --with-fetch or --without-fetch was given.
1406 if test "${with_fetch+set}" = set; then
1407 withval="$with_fetch"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1418 ol_with_fetch="$ol_arg"
1421 ol_with_fetch="auto"
1425 # OpenLDAP --with-kerberos
1426 # Check whether --with-kerberos or --without-kerberos was given.
1427 if test "${with_kerberos+set}" = set; then
1428 withval="$with_kerberos"
1431 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1439 ol_with_kerberos="$ol_arg"
1442 ol_with_kerberos="auto"
1444 # end --with-kerberos
1446 # OpenLDAP --with-readline
1447 # Check whether --with-readline or --without-readline was given.
1448 if test "${with_readline+set}" = set; then
1449 withval="$with_readline"
1452 for ol_val in auto yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1460 ol_with_readline="$ol_arg"
1463 ol_with_readline="auto"
1465 # end --with-readline
1467 # OpenLDAP --with-threads
1468 # Check whether --with-threads or --without-threads was given.
1469 if test "${with_threads+set}" = set; then
1470 withval="$with_threads"
1473 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1481 ol_with_threads="$ol_arg"
1484 ol_with_threads="auto"
1486 # end --with-threads
1488 # OpenLDAP --with-tls
1489 # Check whether --with-tls or --without-tls was given.
1490 if test "${with_tls+set}" = set; then
1494 for ol_val in auto ssleay openssl yes no ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1502 ol_with_tls="$ol_arg"
1509 # OpenLDAP --with-yielding_select
1510 # Check whether --with-yielding_select or --without-yielding_select was given.
1511 if test "${with_yielding_select+set}" = set; then
1512 withval="$with_yielding_select"
1515 for ol_val in auto yes no manual ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1523 ol_with_yielding_select="$ol_arg"
1526 ol_with_yielding_select="auto"
1528 # end --with-yielding_select
1532 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1533 if test "${with_xxslapdoptions+set}" = set; then
1534 withval="$with_xxslapdoptions"
1538 # OpenLDAP --enable-slapd
1539 # Check whether --enable-slapd or --disable-slapd was given.
1540 if test "${enable_slapd+set}" = set; then
1541 enableval="$enable_slapd"
1544 for ol_val in auto yes no ; do
1545 if test "$enableval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1552 ol_enable_slapd="$ol_arg"
1555 ol_enable_slapd="yes"
1557 # end --enable-slapd
1558 # OpenLDAP --enable-aci
1559 # Check whether --enable-aci or --disable-aci was given.
1560 if test "${enable_aci+set}" = set; then
1561 enableval="$enable_aci"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1572 ol_enable_aci="$ol_arg"
1578 # OpenLDAP --enable-cleartext
1579 # Check whether --enable-cleartext or --disable-cleartext was given.
1580 if test "${enable_cleartext+set}" = set; then
1581 enableval="$enable_cleartext"
1584 for ol_val in auto yes no ; do
1585 if test "$enableval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1592 ol_enable_cleartext="$ol_arg"
1595 ol_enable_cleartext="yes"
1597 # end --enable-cleartext
1598 # OpenLDAP --enable-crypt
1599 # Check whether --enable-crypt or --disable-crypt was given.
1600 if test "${enable_crypt+set}" = set; then
1601 enableval="$enable_crypt"
1604 for ol_val in auto yes no ; do
1605 if test "$enableval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1612 ol_enable_crypt="$ol_arg"
1615 ol_enable_crypt="no"
1617 # end --enable-crypt
1618 # OpenLDAP --enable-dynamic
1619 # Check whether --enable-dynamic or --disable-dynamic was given.
1620 if test "${enable_dynamic+set}" = set; then
1621 enableval="$enable_dynamic"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1632 ol_enable_dynamic="$ol_arg"
1635 ol_enable_dynamic="no"
1637 # end --enable-dynamic
1638 # OpenLDAP --enable-kpasswd
1639 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1640 if test "${enable_kpasswd+set}" = set; then
1641 enableval="$enable_kpasswd"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1652 ol_enable_kpasswd="$ol_arg"
1655 ol_enable_kpasswd="no"
1657 # end --enable-kpasswd
1658 # OpenLDAP --enable-lmpasswd
1659 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1660 if test "${enable_lmpasswd+set}" = set; then
1661 enableval="$enable_lmpasswd"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1672 ol_enable_lmpasswd="$ol_arg"
1675 ol_enable_lmpasswd="no"
1677 # end --enable-lmpasswd
1678 # OpenLDAP --enable-spasswd
1679 # Check whether --enable-spasswd or --disable-spasswd was given.
1680 if test "${enable_spasswd+set}" = set; then
1681 enableval="$enable_spasswd"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1692 ol_enable_spasswd="$ol_arg"
1695 ol_enable_spasswd="no"
1697 # end --enable-spasswd
1698 # OpenLDAP --enable-modules
1699 # Check whether --enable-modules or --disable-modules was given.
1700 if test "${enable_modules+set}" = set; then
1701 enableval="$enable_modules"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1712 ol_enable_modules="$ol_arg"
1715 ol_enable_modules="no"
1717 # end --enable-modules
1718 # OpenLDAP --enable-phonetic
1719 # Check whether --enable-phonetic or --disable-phonetic was given.
1720 if test "${enable_phonetic+set}" = set; then
1721 enableval="$enable_phonetic"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1732 ol_enable_phonetic="$ol_arg"
1735 ol_enable_phonetic="no"
1737 # end --enable-phonetic
1738 # OpenLDAP --enable-rlookups
1739 # Check whether --enable-rlookups or --disable-rlookups was given.
1740 if test "${enable_rlookups+set}" = set; then
1741 enableval="$enable_rlookups"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1752 ol_enable_rlookups="$ol_arg"
1755 ol_enable_rlookups="no"
1757 # end --enable-rlookups
1758 # OpenLDAP --enable-slp
1759 # Check whether --enable-slp or --disable-slp was given.
1760 if test "${enable_slp+set}" = set; then
1761 enableval="$enable_slp"
1764 for ol_val in auto yes no ; do
1765 if test "$enableval" = "$ol_val" ; then
1769 if test "$ol_arg" = "invalid" ; then
1770 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1772 ol_enable_slp="$ol_arg"
1778 # OpenLDAP --enable-wrappers
1779 # Check whether --enable-wrappers or --disable-wrappers was given.
1780 if test "${enable_wrappers+set}" = set; then
1781 enableval="$enable_wrappers"
1784 for ol_val in auto yes no ; do
1785 if test "$enableval" = "$ol_val" ; then
1789 if test "$ol_arg" = "invalid" ; then
1790 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1792 ol_enable_wrappers="$ol_arg"
1795 ol_enable_wrappers="no"
1797 # end --enable-wrappers
1799 # OpenLDAP --enable-bdb
1800 # Check whether --enable-bdb or --disable-bdb was given.
1801 if test "${enable_bdb+set}" = set; then
1802 enableval="$enable_bdb"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1813 ol_enable_bdb="$ol_arg"
1819 # OpenLDAP --with-bdb_module
1820 # Check whether --with-bdb_module or --without-bdb_module was given.
1821 if test "${with_bdb_module+set}" = set; then
1822 withval="$with_bdb_module"
1825 for ol_val in static dynamic ; do
1826 if test "$withval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1833 ol_with_bdb_module="$ol_arg"
1836 ol_with_bdb_module="static"
1838 # end --with-bdb_module
1840 # OpenLDAP --enable-dnssrv
1841 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1842 if test "${enable_dnssrv+set}" = set; then
1843 enableval="$enable_dnssrv"
1846 for ol_val in auto yes no ; do
1847 if test "$enableval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1854 ol_enable_dnssrv="$ol_arg"
1857 ol_enable_dnssrv="no"
1859 # end --enable-dnssrv
1860 # OpenLDAP --with-dnssrv_module
1861 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1862 if test "${with_dnssrv_module+set}" = set; then
1863 withval="$with_dnssrv_module"
1866 for ol_val in static dynamic ; do
1867 if test "$withval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1874 ol_with_dnssrv_module="$ol_arg"
1877 ol_with_dnssrv_module="static"
1879 # end --with-dnssrv_module
1881 # OpenLDAP --enable-ldap
1882 # Check whether --enable-ldap or --disable-ldap was given.
1883 if test "${enable_ldap+set}" = set; then
1884 enableval="$enable_ldap"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1895 ol_enable_ldap="$ol_arg"
1901 # OpenLDAP --with-ldap_module
1902 # Check whether --with-ldap_module or --without-ldap_module was given.
1903 if test "${with_ldap_module+set}" = set; then
1904 withval="$with_ldap_module"
1907 for ol_val in static dynamic ; do
1908 if test "$withval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1915 ol_with_ldap_module="$ol_arg"
1918 ol_with_ldap_module="static"
1920 # end --with-ldap_module
1922 # OpenLDAP --enable-ldbm
1923 # Check whether --enable-ldbm or --disable-ldbm was given.
1924 if test "${enable_ldbm+set}" = set; then
1925 enableval="$enable_ldbm"
1928 for ol_val in auto yes no ; do
1929 if test "$enableval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1936 ol_enable_ldbm="$ol_arg"
1939 ol_enable_ldbm="yes"
1942 # OpenLDAP --with-ldbm_api
1943 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1944 if test "${with_ldbm_api+set}" = set; then
1945 withval="$with_ldbm_api"
1948 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1949 if test "$withval" = "$ol_val" ; then
1953 if test "$ol_arg" = "invalid" ; then
1954 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1956 ol_with_ldbm_api="$ol_arg"
1959 ol_with_ldbm_api="auto"
1961 # end --with-ldbm_api
1963 # OpenLDAP --with-ldbm_module
1964 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1965 if test "${with_ldbm_module+set}" = set; then
1966 withval="$with_ldbm_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1977 ol_with_ldbm_module="$ol_arg"
1980 ol_with_ldbm_module="static"
1982 # end --with-ldbm_module
1984 # OpenLDAP --with-ldbm_type
1985 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1986 if test "${with_ldbm_type+set}" = set; then
1987 withval="$with_ldbm_type"
1990 for ol_val in auto btree hash ; do
1991 if test "$withval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1998 ol_with_ldbm_type="$ol_arg"
2001 ol_with_ldbm_type="auto"
2003 # end --with-ldbm_type
2005 # OpenLDAP --enable-passwd
2006 # Check whether --enable-passwd or --disable-passwd was given.
2007 if test "${enable_passwd+set}" = set; then
2008 enableval="$enable_passwd"
2011 for ol_val in auto yes no ; do
2012 if test "$enableval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2019 ol_enable_passwd="$ol_arg"
2022 ol_enable_passwd="no"
2024 # end --enable-passwd
2025 # OpenLDAP --with-passwd_module
2026 # Check whether --with-passwd_module or --without-passwd_module was given.
2027 if test "${with_passwd_module+set}" = set; then
2028 withval="$with_passwd_module"
2031 for ol_val in static dynamic ; do
2032 if test "$withval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2039 ol_with_passwd_module="$ol_arg"
2042 ol_with_passwd_module="static"
2044 # end --with-passwd_module
2046 # OpenLDAP --enable-perl
2047 # Check whether --enable-perl or --disable-perl was given.
2048 if test "${enable_perl+set}" = set; then
2049 enableval="$enable_perl"
2052 for ol_val in auto yes no ; do
2053 if test "$enableval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2060 ol_enable_perl="$ol_arg"
2066 # OpenLDAP --with-perl_module
2067 # Check whether --with-perl_module or --without-perl_module was given.
2068 if test "${with_perl_module+set}" = set; then
2069 withval="$with_perl_module"
2072 for ol_val in static dynamic ; do
2073 if test "$withval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2080 ol_with_perl_module="$ol_arg"
2083 ol_with_perl_module="static"
2085 # end --with-perl_module
2087 # OpenLDAP --enable-shell
2088 # Check whether --enable-shell or --disable-shell was given.
2089 if test "${enable_shell+set}" = set; then
2090 enableval="$enable_shell"
2093 for ol_val in auto yes no ; do
2094 if test "$enableval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2101 ol_enable_shell="$ol_arg"
2104 ol_enable_shell="no"
2106 # end --enable-shell
2107 # OpenLDAP --with-shell_module
2108 # Check whether --with-shell_module or --without-shell_module was given.
2109 if test "${with_shell_module+set}" = set; then
2110 withval="$with_shell_module"
2113 for ol_val in static dynamic ; do
2114 if test "$withval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2121 ol_with_shell_module="$ol_arg"
2124 ol_with_shell_module="static"
2126 # end --with-shell_module
2128 # OpenLDAP --enable-sql
2129 # Check whether --enable-sql or --disable-sql was given.
2130 if test "${enable_sql+set}" = set; then
2131 enableval="$enable_sql"
2134 for ol_val in auto yes no ; do
2135 if test "$enableval" = "$ol_val" ; then
2139 if test "$ol_arg" = "invalid" ; then
2140 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2142 ol_enable_sql="$ol_arg"
2148 # OpenLDAP --with-sql_module
2149 # Check whether --with-sql_module or --without-sql_module was given.
2150 if test "${with_sql_module+set}" = set; then
2151 withval="$with_sql_module"
2154 for ol_val in static dynamic ; do
2155 if test "$withval" = "$ol_val" ; then
2159 if test "$ol_arg" = "invalid" ; then
2160 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2162 ol_with_sql_module="$ol_arg"
2165 ol_with_sql_module="static"
2167 # end --with-sql_module
2169 # OpenLDAP --enable-tcl
2170 # Check whether --enable-tcl or --disable-tcl was given.
2171 if test "${enable_tcl+set}" = set; then
2172 enableval="$enable_tcl"
2175 for ol_val in auto yes no ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2183 ol_enable_tcl="$ol_arg"
2189 # OpenLDAP --with-tcl_module
2190 # Check whether --with-tcl_module or --without-tcl_module was given.
2191 if test "${with_tcl_module+set}" = set; then
2192 withval="$with_tcl_module"
2195 for ol_val in static dynamic ; do
2196 if test "$withval" = "$ol_val" ; then
2200 if test "$ol_arg" = "invalid" ; then
2201 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2203 ol_with_tcl_module="$ol_arg"
2206 ol_with_tcl_module="static"
2208 # end --with-tcl_module
2211 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2212 if test "${with_xxslurpdoptions+set}" = set; then
2213 withval="$with_xxslurpdoptions"
2217 # OpenLDAP --enable-slurpd
2218 # Check whether --enable-slurpd or --disable-slurpd was given.
2219 if test "${enable_slurpd+set}" = set; then
2220 enableval="$enable_slurpd"
2223 for ol_val in auto yes no ; do
2224 if test "$enableval" = "$ol_val" ; then
2228 if test "$ol_arg" = "invalid" ; then
2229 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2231 ol_enable_slurpd="$ol_arg"
2234 ol_enable_slurpd="auto"
2236 # end --enable-slurpd
2238 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2239 if test "${with_xxliboptions+set}" = set; then
2240 withval="$with_xxliboptions"
2244 # Check whether --enable-static or --disable-static was given.
2245 if test "${enable_static+set}" = set; then
2246 enableval="$enable_static"
2247 p=${PACKAGE-default}
2248 case "$enableval" in
2249 yes) enable_static=yes ;;
2250 no) enable_static=no ;;
2253 # Look at the argument we got. We use all the common list separators.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2255 for pkg in $enableval; do
2256 if test "X$pkg" = "X$p"; then
2267 # Check whether --enable-shared or --disable-shared was given.
2268 if test "${enable_shared+set}" = set; then
2269 enableval="$enable_shared"
2270 p=${PACKAGE-default}
2271 case "$enableval" in
2272 yes) enable_shared=yes ;;
2273 no) enable_shared=no ;;
2276 # Look at the argument we got. We use all the common list separators.
2277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2278 for pkg in $enableval; do
2279 if test "X$pkg" = "X$p"; then
2293 if test $ol_enable_slapd = no ; then
2294 if test $ol_enable_bdb = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2297 if test $ol_enable_dnssrv = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2300 if test $ol_enable_ldap = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2303 if test $ol_enable_ldbm = yes ; then
2304 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2306 if test $ol_enable_passwd = yes ; then
2307 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2309 if test $ol_enable_perl = yes ; then
2310 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2312 if test $ol_enable_shell = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2315 if test $ol_enable_tcl = yes ; then
2316 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2318 if test $ol_enable_sql = yes ; then
2319 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2321 if test $ol_enable_modules = yes ; then
2322 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2324 if test $ol_enable_wrappers = yes ; then
2325 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2327 if test $ol_enable_phonetic = yes ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2330 if test $ol_enable_rlookups = yes ; then
2331 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2333 if test $ol_enable_aci = yes ; then
2334 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2336 if test $ol_with_ldbm_api != auto ; then
2337 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2339 if test $ol_with_ldbm_type != auto ; then
2340 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2342 if test $ol_with_bdb_module != static ; then
2343 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2345 if test $ol_with_dnssrv_module != static ; then
2346 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2348 if test $ol_with_ldap_module != static ; then
2349 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2351 if test $ol_with_ldbm_module != static ; then
2352 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2354 if test $ol_with_passwd_module != static ; then
2355 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2357 if test $ol_with_perl_module != static ; then
2358 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2360 if test $ol_with_shell_module != static ; then
2361 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2363 if test $ol_with_tcl_module != static ; then
2364 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2366 if test $ol_with_sql_module != static ; then
2367 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2369 if test $ol_enable_slurpd = yes ; then
2370 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2373 # force settings to no
2384 ol_enable_modules=no
2385 ol_enable_phonetic=no
2386 ol_enable_rlookups=no
2388 ol_enable_wrappers=no
2389 ol_enable_dynamic=no
2392 ol_with_ldbm_type=no
2394 ol_with_bdb_module=static
2395 ol_with_dnssrv_module=static
2396 ol_with_ldap_module=static
2397 ol_with_ldbm_module=static
2398 ol_with_passwd_module=static
2399 ol_with_perl_module=static
2400 ol_with_shell_module=static
2401 ol_with_tcl_module=static
2402 ol_with_sql_module=static
2406 elif test $ol_enable_ldbm = no ; then
2408 if test $ol_with_ldbm_api != auto ; then
2409 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2412 if test $ol_with_ldbm_type != auto ; then
2413 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2416 if test $ol_with_ldbm_module != static ; then
2417 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2420 if test $ol_enable_modules != yes -a \
2421 $ol_enable_bdb = no -a \
2422 $ol_enable_dnssrv = no -a \
2423 $ol_enable_ldap = no -a \
2424 $ol_enable_passwd = no -a \
2425 $ol_enable_perl = no -a \
2426 $ol_enable_shell = no -a \
2427 $ol_enable_sql = no -a \
2428 $ol_enable_tcl = no ; then
2429 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2433 ol_with_ldbm_type=no
2434 ol_with_ldbm_module=static
2437 if test $ol_with_ldbm_api = gdbm -a \
2438 $ol_with_ldbm_type = btree ; then
2439 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2441 if test $ol_with_ldbm_api = mdbm -a \
2442 $ol_with_ldbm_type = btree ; then
2443 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2445 if test $ol_with_ldbm_api = ndbm -a \
2446 $ol_with_ldbm_type = btree ; then
2447 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2451 if test $ol_enable_slurpd = yes ; then
2452 if test $ol_with_threads = no ; then
2453 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2457 if test $ol_enable_lmpasswd = yes ; then
2458 if test $ol_with_tls = no ; then
2459 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2463 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2464 if test $ol_with_kerberos = no ; then
2465 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2467 ol_with_kerberos=yes
2468 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2469 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2470 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2475 if test $ol_enable_spasswd = yes ; then
2476 if test $ol_with_cyrus_sasl = no ; then
2477 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2479 ol_with_cyrus_sasl=yes
2482 echo "$ac_t""done" 1>&6
2508 BUILD_BDB_DYNAMIC=static
2509 BUILD_DNSSRV_DYNAMIC=static
2510 BUILD_LDAP_DYNAMIC=static
2511 BUILD_LDBM_DYNAMIC=static
2512 BUILD_PASSWD_DYNAMIC=static
2513 BUILD_PERL_DYNAMIC=static
2514 BUILD_SHELL_DYNAMIC=static
2515 BUILD_TCL_DYNAMIC=static
2516 BUILD_SQL_DYNAMIC=static
2518 SLAPD_MODULES_LDFLAGS=
2519 SLAPD_MODULES_CPPFLAGS=
2544 cat >> confdefs.h <<\EOF
2545 #define HAVE_MKVERSION 1
2553 *-*-aix*) if test -z "$CC" ; then
2554 case "$ol_with_threads" in
2555 auto | yes | posix) ol_aix_threads=yes ;;
2561 if test $ol_aix_threads = yes ; then
2562 if test -z "${CC}" ; then
2563 for ac_prog in cc_r xlc_r cc
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_word" >&5
2569 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2577 for ac_dir in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir=.
2579 if test -f $ac_dir/$ac_word; then
2580 ac_cv_prog_CC="$ac_prog"
2588 if test -n "$CC"; then
2589 echo "$ac_t""$CC" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 test -n "$CC" && break
2598 if test "$CC" = cc ; then
2599 if test $ol_with_threads != auto ; then
2600 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2602 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2608 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2609 ol_with_threads=posix
2610 ol_cv_pthread_create=yes
2614 if test -z "${CC}"; then
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_word" >&5
2621 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2629 for ac_dir in $ac_dummy; do
2630 test -z "$ac_dir" && ac_dir=.
2631 if test -f $ac_dir/$ac_word; then
2632 ac_cv_prog_CC="$ac_prog"
2640 if test -n "$CC"; then
2641 echo "$ac_t""$CC" 1>&6
2643 echo "$ac_t""no" 1>&6
2646 test -n "$CC" && break
2654 # Check whether --enable-fast-install or --disable-fast-install was given.
2655 if test "${enable_fast_install+set}" = set; then
2656 enableval="$enable_fast_install"
2657 p=${PACKAGE-default}
2658 case "$enableval" in
2659 yes) enable_fast_install=yes ;;
2660 no) enable_fast_install=no ;;
2662 enable_fast_install=no
2663 # Look at the argument we got. We use all the common list separators.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2665 for pkg in $enableval; do
2666 if test "X$pkg" = "X$p"; then
2667 enable_fast_install=yes
2674 enable_fast_install=yes
2677 # Extract the first word of "ranlib", so it can be a program name with args.
2678 set dummy ranlib; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 if test -n "$RANLIB"; then
2685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_prog_RANLIB="ranlib"
2697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2700 RANLIB="$ac_cv_prog_RANLIB"
2701 if test -n "$RANLIB"; then
2702 echo "$ac_t""$RANLIB" 1>&6
2704 echo "$ac_t""no" 1>&6
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2719 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_word" >&5
2741 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 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 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2754 ac_prog_rejected=yes
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy $ac_cv_prog_CC
2766 if test $# -gt 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2771 set dummy "$ac_dir/$ac_word" "$@"
2779 if test -n "$CC"; then
2780 echo "$ac_t""$CC" 1>&6
2782 echo "$ac_t""no" 1>&6
2785 if test -z "$CC"; then
2786 case "`uname -s`" in
2787 *win32* | *WIN32* | *CYGWIN*)
2788 # Extract the first word of "cl", so it can be a program name with args.
2789 set dummy cl; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2823 echo "configure:2824: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2830 cross_compiling=$ac_cv_prog_cc_cross
2832 cat > conftest.$ac_ext << EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 ac_cv_prog_cc_works=yes
2841 # If we can't run a trivial program, we are probably using a cross compiler.
2842 if (./conftest; exit) 2>/dev/null; then
2843 ac_cv_prog_cc_cross=no
2845 ac_cv_prog_cc_cross=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 ac_cv_prog_cc_works=no
2854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2858 cross_compiling=$ac_cv_prog_cc_cross
2860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2861 if test $ac_cv_prog_cc_works = no; then
2862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2865 echo "configure:2866: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2867 cross_compiling=$ac_cv_prog_cc_cross
2869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2870 echo "configure:2871: checking whether we are using GNU C" >&5
2871 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.c <<EOF
2879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2888 if test $ac_cv_prog_gcc = yes; then
2894 ac_test_CFLAGS="${CFLAGS+set}"
2895 ac_save_CFLAGS="$CFLAGS"
2897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2898 echo "configure:2899: checking whether ${CC-cc} accepts -g" >&5
2899 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 echo 'void f(){}' > conftest.c
2903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2913 if test "$ac_test_CFLAGS" = set; then
2914 CFLAGS="$ac_save_CFLAGS"
2915 elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2922 if test "$GCC" = yes; then
2929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2930 if test "${with_gnu_ld+set}" = set; then
2931 withval="$with_gnu_ld"
2932 test "$withval" = no || with_gnu_ld=yes
2938 if test "$ac_cv_prog_gcc" = yes; then
2939 # Check if gcc -print-prog-name=ld gives a path.
2940 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2941 echo "configure:2942: checking for ld used by GCC" >&5
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2944 # Accept absolute paths.
2945 [\\/]* | [A-Za-z]:[\\/]*)
2946 re_direlt='/[^/][^/]*/\.\./'
2947 # Canonicalize the path of ld
2948 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2950 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952 test -z "$LD" && LD="$ac_prog"
2955 # If it fails, then pretend we aren't using GCC.
2959 # If it is relative, then search for the first ld in PATH.
2963 elif test "$with_gnu_ld" = yes; then
2964 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2965 echo "configure:2966: checking for GNU ld" >&5
2967 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2968 echo "configure:2969: checking for non-GNU ld" >&5
2970 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test -z "$LD"; then
2974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2975 for ac_dir in $PATH; do
2976 test -z "$ac_dir" && ac_dir=.
2977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2978 ac_cv_path_LD="$ac_dir/$ac_prog"
2979 # Check to see if the program is GNU ld. I'd rather use --version,
2980 # but apparently some GNU ld's only accept -v.
2981 # Break only if it was the GNU/non-GNU ld that we prefer.
2982 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2983 test "$with_gnu_ld" != no && break
2985 test "$with_gnu_ld" != yes && break
2991 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2996 if test -n "$LD"; then
2997 echo "$ac_t""$LD" 1>&6
2999 echo "$ac_t""no" 1>&6
3001 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3002 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3003 echo "configure:3004: checking if the linker ($LD) is GNU ld" >&5
3004 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3008 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3009 ac_cv_prog_gnu_ld=yes
3011 ac_cv_prog_gnu_ld=no
3015 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3018 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3019 echo "configure:3020: checking for BSD-compatible nm" >&5
3020 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$NM"; then
3024 # Let the user override the test.
3027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3028 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3031 # Check to see if the nm accepts a BSD-compat flag.
3032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3033 # nm: unknown option "B" ignored
3034 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3035 ac_cv_path_NM="$ac_dir/nm -B"
3037 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3038 ac_cv_path_NM="$ac_dir/nm -p"
3041 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3042 continue # so that we can try to find one that supports BSD flags
3047 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3052 echo "$ac_t""$NM" 1>&6
3054 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether ln -s works" >&5
3056 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3060 if ln -s X conftestdata 2>/dev/null
3063 ac_cv_prog_LN_S="ln -s"
3068 LN_S="$ac_cv_prog_LN_S"
3069 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3070 echo "$ac_t""yes" 1>&6
3072 echo "$ac_t""no" 1>&6
3075 if test $host != $build; then
3076 ac_tool_prefix=${host_alias}-
3083 NONE) lt_target="$host" ;;
3084 *) lt_target="$target" ;;
3087 # Check for any special flags to pass to ltconfig.
3088 libtool_flags="--cache-file=$cache_file"
3089 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3090 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3091 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3092 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3093 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3094 libtool_flags="$libtool_flags --enable-dlopen"
3095 libtool_flags="$libtool_flags --enable-win32-dll"
3096 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3097 if test "${enable_libtool_lock+set}" = set; then
3098 enableval="$enable_libtool_lock"
3102 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3103 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3105 # Some flags need to be propagated to the compiler or linker for good
3107 case "$lt_target" in
3109 # Find out which ABI we are using.
3110 echo '#line 3111 "configure"' > conftest.$ac_ext
3111 if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 case "`/usr/bin/file conftest.o`" in
3128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3129 SAVE_CFLAGS="$CFLAGS"
3130 CFLAGS="$CFLAGS -belf"
3131 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3132 echo "configure:3133: checking whether the C compiler needs -belf" >&5
3133 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 lt_cv_cc_needs_belf=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 lt_cv_cc_needs_belf=no
3156 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3159 CFLAGS="$SAVE_CFLAGS"
3163 *-*-cygwin* | *-*-mingw*)
3164 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_word" >&5
3168 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$DLLTOOL"; then
3172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3176 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 if test -f $ac_dir/$ac_word; then
3179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3186 DLLTOOL="$ac_cv_prog_DLLTOOL"
3187 if test -n "$DLLTOOL"; then
3188 echo "$ac_t""$DLLTOOL" 1>&6
3190 echo "$ac_t""no" 1>&6
3194 if test -z "$ac_cv_prog_DLLTOOL"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "dlltool", so it can be a program name with args.
3197 set dummy dlltool; ac_word=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3208 for ac_dir in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_DLLTOOL="dlltool"
3216 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3219 DLLTOOL="$ac_cv_prog_DLLTOOL"
3220 if test -n "$DLLTOOL"; then
3221 echo "$ac_t""$DLLTOOL" 1>&6
3223 echo "$ac_t""no" 1>&6
3231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}as; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$AS"; then
3239 ac_cv_prog_AS="$AS" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_AS="${ac_tool_prefix}as"
3254 if test -n "$AS"; then
3255 echo "$ac_t""$AS" 1>&6
3257 echo "$ac_t""no" 1>&6
3261 if test -z "$ac_cv_prog_AS"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "as", so it can be a program name with args.
3264 set dummy as; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS="$AS" # Let the user override the test.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3275 for ac_dir in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir=.
3277 if test -f $ac_dir/$ac_word; then
3283 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3287 if test -n "$AS"; then
3288 echo "$ac_t""$AS" 1>&6
3290 echo "$ac_t""no" 1>&6
3298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_word" >&5
3302 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 if test -n "$OBJDUMP"; then
3306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f $ac_dir/$ac_word; then
3313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3320 OBJDUMP="$ac_cv_prog_OBJDUMP"
3321 if test -n "$OBJDUMP"; then
3322 echo "$ac_t""$OBJDUMP" 1>&6
3324 echo "$ac_t""no" 1>&6
3328 if test -z "$ac_cv_prog_OBJDUMP"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "objdump", so it can be a program name with args.
3331 set dummy objdump; ac_word=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3342 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_OBJDUMP="objdump"
3350 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3353 OBJDUMP="$ac_cv_prog_OBJDUMP"
3354 if test -n "$OBJDUMP"; then
3355 echo "$ac_t""$OBJDUMP" 1>&6
3357 echo "$ac_t""no" 1>&6
3370 # Save cache, so that ltconfig can load it
3373 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3374 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3375 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3376 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3377 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3378 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3379 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3380 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3382 # Reload cache, that may have been modified by ltconfig
3385 # This can be used to rebuild libtool when needed
3386 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3388 # Always use our own libtool.
3389 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3391 # Redirect the config.log output again, so that the ltconfig log is not
3392 # clobbered by the next message.
3393 exec 5>>./config.log
3396 for ac_prog in mawk gawk nawk awk
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_word" >&5
3402 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 if test -n "$AWK"; then
3406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3410 for ac_dir in $ac_dummy; do
3411 test -z "$ac_dir" && ac_dir=.
3412 if test -f $ac_dir/$ac_word; then
3413 ac_cv_prog_AWK="$ac_prog"
3420 AWK="$ac_cv_prog_AWK"
3421 if test -n "$AWK"; then
3422 echo "$ac_t""$AWK" 1>&6
3424 echo "$ac_t""no" 1>&6
3427 test -n "$AWK" && break
3430 # test for ln hardlink support
3431 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3432 echo "configure:3433: checking whether ln works" >&5
3433 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 rm -f conftest.src conftest.dst
3437 echo "conftest" > conftest.src
3438 if ln conftest.src conftest.dst 2>/dev/null
3440 ol_cv_prog_LN_H="ln"
3442 ol_cv_prog_LN_H="cp"
3444 rm -f conftest.src conftest.dst
3447 LN_H="$ol_cv_prog_LN_H"
3448 if test "$ol_cv_prog_LN_H" = "ln"; then
3449 echo "$ac_t""yes" 1>&6
3451 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3455 echo "configure:3456: checking whether ln -s works" >&5
3456 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3460 if ln -s X conftestdata 2>/dev/null
3463 ac_cv_prog_LN_S="ln -s"
3468 LN_S="$ac_cv_prog_LN_S"
3469 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3470 echo "$ac_t""yes" 1>&6
3472 echo "$ac_t""no" 1>&6
3476 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3480 # Extract the first word of "sendmail", so it can be a program name with args.
3481 set dummy sendmail; ac_word=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3484 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3492 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3496 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3505 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3509 SENDMAIL="$ac_cv_path_SENDMAIL"
3510 if test -n "$SENDMAIL"; then
3511 echo "$ac_t""$SENDMAIL" 1>&6
3513 echo "$ac_t""no" 1>&6
3516 # Extract the first word of "vi", so it can be a program name with args.
3517 set dummy vi; ac_word=$2
3518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_word" >&5
3520 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3528 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3532 ac_dummy="$PATH:/usr/ucb"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3541 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3545 EDITOR="$ac_cv_path_EDITOR"
3546 if test -n "$EDITOR"; then
3547 echo "$ac_t""$EDITOR" 1>&6
3549 echo "$ac_t""no" 1>&6
3552 # Extract the first word of "finger", so it can be a program name with args.
3553 set dummy finger; ac_word=$2
3554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_word" >&5
3556 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3564 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3568 ac_dummy="$PATH:/usr/ucb"
3569 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_path_FINGER="$ac_dir/$ac_word"
3577 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3581 FINGER="$ac_cv_path_FINGER"
3582 if test -n "$FINGER"; then
3583 echo "$ac_t""$FINGER" 1>&6
3585 echo "$ac_t""no" 1>&6
3590 if test $ol_enable_perl != no ; then
3591 # Extract the first word of "perl", so it can be a program name with args.
3592 set dummy perl; ac_word=$2
3593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_word" >&5
3595 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3603 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3616 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3620 PERLBIN="$ac_cv_path_PERLBIN"
3621 if test -n "$PERLBIN"; then
3622 echo "$ac_t""$PERLBIN" 1>&6
3624 echo "$ac_t""no" 1>&6
3628 if test "no$PERLBIN" = "no" ; then
3629 if test $ol_enable_perl = yes ; then
3630 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3634 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3635 if test x"$ol_with_perl_module" = "xstatic" ; then
3636 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3638 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3644 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3645 echo "configure:3646: checking how to run the C preprocessor" >&5
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3650 if test -z "$CPP"; then
3651 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 # This must be in double quotes, not single quotes, because CPP may get
3655 # substituted into the Makefile and "${CC-cc}" will confuse make.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp.
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3666 { (eval echo configure:3667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3668 if test -z "$ac_err"; then
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 CPP="${CC-cc} -E -traditional-cpp"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3683 { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3685 if test -z "$ac_err"; then
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 CPP="${CC-cc} -nologo -E"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3700 { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3702 if test -z "$ac_err"; then
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3716 ac_cv_prog_CPP="$CPP"
3718 CPP="$ac_cv_prog_CPP"
3720 ac_cv_prog_CPP="$CPP"
3722 echo "$ac_t""$CPP" 1>&6
3725 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3726 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3728 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3729 echo "configure: warning: programs compiled here do run here..." 1>&2
3730 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3732 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3733 echo "configure: warning: programs compiled here do not run here..." 1>&2
3734 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3737 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3738 echo "configure:3739: checking for AIX" >&5
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 egrep "yes" >/dev/null 2>&1; then
3750 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3751 #define _ALL_SOURCE 1
3756 echo "$ac_t""no" 1>&6
3761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3762 echo "configure:3763: checking for POSIXized ISC" >&5
3763 if test -d /etc/conf/kconfig.d &&
3764 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3766 echo "$ac_t""yes" 1>&6
3767 ISC=yes # If later tests want to check for ISC.
3768 cat >> confdefs.h <<\EOF
3769 #define _POSIX_SOURCE 1
3772 if test "$GCC" = yes; then
3778 echo "$ac_t""no" 1>&6
3782 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3783 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3784 echo "configure:3785: checking for minix/config.h" >&5
3785 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <minix/config.h>
3793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3794 { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3796 if test -z "$ac_err"; then
3798 eval "ac_cv_header_$ac_safe=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_header_$ac_safe=no"
3808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3812 echo "$ac_t""no" 1>&6
3816 if test "$MINIX" = yes; then
3817 cat >> confdefs.h <<\EOF
3818 #define _POSIX_SOURCE 1
3821 cat >> confdefs.h <<\EOF
3822 #define _POSIX_1_SOURCE 2
3825 cat >> confdefs.h <<\EOF
3832 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3833 echo "configure:3834: checking for Cygwin environment" >&5
3834 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3844 #define __CYGWIN__ __CYGWIN32__
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3861 echo "$ac_t""$ac_cv_cygwin" 1>&6
3863 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3864 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3865 echo "configure:3866: checking for mingw32 environment" >&5
3866 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3889 echo "$ac_t""$ac_cv_mingw32" 1>&6
3891 test "$ac_cv_mingw32" = yes && MINGW32=yes
3892 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3893 echo "configure:3894: checking for EMX OS/2 environment" >&5
3894 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3917 echo "$ac_t""$ac_cv_emxos2" 1>&6
3919 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3923 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3924 echo "configure:3925: checking for executable suffix" >&5
3925 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3932 echo 'int main () { return 0; }' > conftest.$ac_ext
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3935 for file in conftest.*; do
3937 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3938 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3942 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3945 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3950 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3951 echo "$ac_t""${ac_cv_exeext}" 1>&6
3954 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3955 echo "configure:3956: checking for object suffix" >&5
3956 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3960 echo 'int i = 1;' > conftest.$ac_ext
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 for ac_file in conftest.*; do
3965 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3969 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3974 echo "$ac_t""$ac_cv_objext" 1>&6
3975 OBJEXT=$ac_cv_objext
3976 ac_objext=$ac_cv_objext
3979 cat >> confdefs.h <<EOF
3980 #define EXEEXT "${EXEEXT}"
3984 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3985 echo "configure:3986: checking for be_app in -lbe" >&5
3986 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS="$LIBS"
3991 LIBS="-lbe -lroot -lnet $LIBS"
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 eval "ac_cv_lib_$ac_lib_var=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4011 eval "ac_cv_lib_$ac_lib_var=no"
4014 LIBS="$ac_save_LIBS"
4017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 LIBS="$LIBS -lbe -lroot -lnet"
4021 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4030 echo "configure:4031: checking for ${CC-cc} option to accept ANSI C" >&5
4031 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 am_cv_prog_cc_stdc=no
4036 # Don't try gcc -ansi; that turns off useful extensions and
4037 # breaks some systems' header files.
4038 # AIX -qlanglvl=ansi
4039 # Ultrix and OSF/1 -std1
4040 # HP-UX 10.20 and later -Ae
4041 # HP-UX older versions -Aa -D_HPUX_SOURCE
4042 # SVR4 -Xc -D__EXTENSIONS__
4043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4071 int test (int i, double x);
4072 struct s1 {int (*f) (int a);};
4073 struct s2 {int (*f) (double a);};
4074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 am_cv_prog_cc_stdc="$ac_arg"; break
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4097 if test -z "$am_cv_prog_cc_stdc"; then
4098 echo "$ac_t""none needed" 1>&6
4100 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4102 case "x$am_cv_prog_cc_stdc" in
4104 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4107 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4108 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4111 # test for make depend flag
4114 if test -z "${MKDEP}"; then
4116 if test -z "${MKDEP_FLAGS}"; then
4117 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4118 echo "configure:4119: checking for ${OL_MKDEP} depend flag" >&5
4119 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4124 for flag in "-M" "-xM"; do
4125 cat > conftest.c <<EOF
4128 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4129 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4131 if test ! -f conftest."${ac_object}" ; then
4133 OL_MKDEP_FLAGS="$flag"
4142 echo "$ac_t""$ol_cv_mkdep" 1>&6
4145 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4150 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4155 if test "${ol_cv_mkdep}" = no ; then
4156 # this will soon become an error
4157 echo "configure: warning: do not know how to generate dependencies" 1>&2
4160 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4161 echo "configure:4162: checking for afopen in -ls" >&5
4162 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 ac_save_LIBS="$LIBS"
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* Override any gcc2 internal prototype to avoid an error. */
4172 /* We use char because int might match the return type of a gcc2
4173 builtin and then its argument prototype would still apply. */
4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4182 eval "ac_cv_lib_$ac_lib_var=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 eval "ac_cv_lib_$ac_lib_var=no"
4190 LIBS="$ac_save_LIBS"
4193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_AIX_SECURITY 1
4203 echo "$ac_t""no" 1>&6
4209 if test $ol_enable_modules != no ; then
4210 for ac_hdr in ltdl.h
4212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h <<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4251 if test $ac_cv_header_ltdl_h = no ; then
4252 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4255 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4256 echo "configure:4257: checking for lt_dlinit in -lltdl" >&5
4257 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_LIBLTDL 1
4298 echo "$ac_t""no" 1>&6
4302 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4303 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4307 ol_with_bdb_module=static
4308 ol_with_dnssrv_module=static
4309 ol_with_ldap_module=static
4310 ol_with_ldbm_module=static
4311 ol_with_passwd_module=static
4312 ol_with_perl_module=static
4313 ol_with_shell_module=static
4314 ol_with_tcl_module=static
4315 ol_with_sql_module=static
4319 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4320 echo "configure:4321: checking for EBCDIC" >&5
4321 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 #include <__ASCII__/generate_error.h>
4334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 ol_cv_cpp_ebcdic=yes
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4350 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4351 if test $ol_cv_cpp_ebcdic = yes ; then
4352 cat >> confdefs.h <<\EOF
4353 #define HAVE_EBCDIC 1
4358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4359 echo "configure:4360: checking for ANSI C header files" >&5
4360 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372 { (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374 if test -z "$ac_err"; then
4376 ol_cv_header_stdc=yes
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 ol_cv_header_stdc=no
4386 if test $ol_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "memchr" >/dev/null 2>&1; then
4398 ol_cv_header_stdc=no
4404 if test $ol_cv_header_stdc = yes; then
4405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "free" >/dev/null 2>&1; then
4416 ol_cv_header_stdc=no
4422 if test $ol_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4424 if test "$cross_compiling" = yes; then
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
4438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 int main () { int i; for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 ol_cv_header_stdc=no
4461 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4462 if test $ol_cv_header_stdc = yes; then
4463 cat >> confdefs.h <<\EOF
4464 #define STDC_HEADERS 1
4468 ac_cv_header_stdc=disable
4471 if test $ol_cv_header_stdc != yes; then
4472 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4476 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4479 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_hdr that defines DIR" >&5
4481 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 #include <sys/types.h>
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 eval "ac_cv_header_dirent_$ac_safe=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_header_dirent_$ac_safe=no"
4504 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_hdr 1
4510 ac_header_dirent=$ac_hdr; break
4512 echo "$ac_t""no" 1>&6
4515 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4516 if test $ac_header_dirent = dirent.h; then
4517 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4518 echo "configure:4519: checking for opendir in -ldir" >&5
4519 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 ac_save_LIBS="$LIBS"
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4539 eval "ac_cv_lib_$ac_lib_var=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_lib_$ac_lib_var=no"
4547 LIBS="$ac_save_LIBS"
4550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4559 echo "configure:4560: checking for opendir in -lx" >&5
4560 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 ac_save_LIBS="$LIBS"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 eval "ac_cv_lib_$ac_lib_var=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_lib_$ac_lib_var=no"
4588 LIBS="$ac_save_LIBS"
4591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4595 echo "$ac_t""no" 1>&6
4600 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4601 echo "configure:4602: checking for sys/wait.h that is POSIX.1 compatible" >&5
4602 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <sys/types.h>
4609 #include <sys/wait.h>
4611 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4614 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4622 if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 ac_cv_header_sys_wait_h=yes
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 ac_cv_header_sys_wait_h=no
4634 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4635 if test $ac_cv_header_sys_wait_h = yes; then
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_SYS_WAIT_H 1
4642 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4643 echo "configure:4644: checking POSIX termios" >&5
4644 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 #include <sys/types.h>
4652 #include <termios.h>
4654 /* SunOS 4.0.3 has termios.h but not the library calls. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 am_cv_sys_posix_termios=yes
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 am_cv_sys_posix_termios=no
4670 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4673 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4675 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4680 gwinsz_in_termios_h=no
4681 if test $am_cv_sys_posix_termios = yes; then
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 # include <termios.h>
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 egrep "yes" >/dev/null 2>&1; then
4695 gwinsz_in_termios_h=yes
4701 if test $gwinsz_in_termios_h = no; then
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <sys/types.h>
4706 # include <sys/ioctl.h>
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 egrep "yes" >/dev/null 2>&1; then
4715 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4723 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4724 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4725 cat >> confdefs.h <<\EOF
4726 #define GWINSZ_IN_SYS_IOCTL 1
4731 if test $am_cv_sys_posix_termios = yes ; then
4732 cat >> confdefs.h <<\EOF
4733 #define HAVE_POSIX_TERMIOS 1
4784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_hdr" >&5
4787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4796 { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4798 if test -z "$ac_err"; then
4800 eval "ac_cv_header_$ac_safe=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 eval "ac_cv_header_$ac_safe=no"
4810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_hdr 1
4818 echo "$ac_t""no" 1>&6
4825 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4826 echo "configure:4827: checking for dlopen" >&5
4827 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char dlopen(); below. */
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4857 eval "ac_cv_func_dlopen=yes"
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 eval "ac_cv_func_dlopen=no"
4867 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4871 echo "$ac_t""no" 1>&6
4872 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4873 echo "configure:4874: checking for dlopen in -ldl" >&5
4874 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4875 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 ac_save_LIBS="$LIBS"
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 eval "ac_cv_lib_$ac_lib_var=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4899 eval "ac_cv_lib_$ac_lib_var=no"
4902 LIBS="$ac_save_LIBS"
4905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4907 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4909 cat >> confdefs.h <<EOF
4910 #define $ac_tr_lib 1
4916 echo "$ac_t""no" 1>&6
4922 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4923 echo "configure:4924: checking for sigset in -lV3" >&5
4924 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 ac_save_LIBS="$LIBS"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4944 eval "ac_cv_lib_$ac_lib_var=yes"
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4949 eval "ac_cv_lib_$ac_lib_var=no"
4952 LIBS="$ac_save_LIBS"
4955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4959 cat >> confdefs.h <<EOF
4960 #define $ac_tr_lib 1
4966 echo "$ac_t""no" 1>&6
4970 if test $ac_cv_header_winsock_h = yes; then
4971 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4972 echo "configure:4973: checking for winsock" >&5
4973 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 #include <winsock.h>
4983 select(0,NULL,NULL,NULL,NULL);
4985 gethostname(NULL,0);
4989 if { (eval echo configure:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
5001 echo "$ac_t""$ol_cv_winsock" 1>&6
5003 if test $ol_cv_winsock = yes ; then
5004 cat >> confdefs.h <<\EOF
5005 #define HAVE_WINSOCK 1
5008 ac_cv_func_socket=yes
5009 ac_cv_func_select=yes
5010 ac_cv_func_closesocket=yes
5011 ac_cv_func_gethostname=yes
5016 echo $ac_n "checking for socket""... $ac_c" 1>&6
5017 echo "configure:5018: checking for socket" >&5
5018 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char socket(); below. */
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_socket) || defined (__stub___socket)
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 eval "ac_cv_func_socket=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_func_socket=no"
5058 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5062 echo "$ac_t""no" 1>&6
5064 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5065 echo "configure:5066: checking for main in -lsocket" >&5
5066 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5067 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 ac_save_LIBS="$LIBS"
5071 LIBS="-lsocket $LIBS"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 eval "ac_cv_lib_$ac_lib_var=no"
5090 LIBS="$ac_save_LIBS"
5093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5094 echo "$ac_t""yes" 1>&6
5095 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5097 cat >> confdefs.h <<EOF
5098 #define $ac_tr_lib 1
5101 LIBS="-lsocket $LIBS"
5104 echo "$ac_t""no" 1>&6
5107 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5108 echo "configure:5109: checking for main in -lnet" >&5
5109 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5110 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 ac_save_LIBS="$LIBS"
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5125 eval "ac_cv_lib_$ac_lib_var=yes"
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 eval "ac_cv_lib_$ac_lib_var=no"
5133 LIBS="$ac_save_LIBS"
5136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5140 cat >> confdefs.h <<EOF
5141 #define $ac_tr_lib 1
5147 echo "$ac_t""no" 1>&6
5150 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5151 echo "configure:5152: checking for main in -lnsl_s" >&5
5152 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 ac_save_LIBS="$LIBS"
5157 LIBS="-lnsl_s $LIBS"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 eval "ac_cv_lib_$ac_lib_var=yes"
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5173 eval "ac_cv_lib_$ac_lib_var=no"
5176 LIBS="$ac_save_LIBS"
5179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5180 echo "$ac_t""yes" 1>&6
5181 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5183 cat >> confdefs.h <<EOF
5184 #define $ac_tr_lib 1
5187 LIBS="-lnsl_s $LIBS"
5190 echo "$ac_t""no" 1>&6
5193 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5194 echo "configure:5195: checking for main in -lnsl" >&5
5195 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 ac_save_LIBS="$LIBS"
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5226 cat >> confdefs.h <<EOF
5227 #define $ac_tr_lib 1
5233 echo "$ac_t""no" 1>&6
5236 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5237 echo "configure:5238: checking for socket in -linet" >&5
5238 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 ac_save_LIBS="$LIBS"
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 eval "ac_cv_lib_$ac_lib_var=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_lib_$ac_lib_var=no"
5266 LIBS="$ac_save_LIBS"
5269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5271 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5273 cat >> confdefs.h <<EOF
5274 #define $ac_tr_lib 1
5280 echo "$ac_t""no" 1>&6
5283 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5284 echo "configure:5285: checking for main in -lgen" >&5
5285 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5286 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 ac_save_LIBS="$LIBS"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_lib_$ac_lib_var=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_lib_$ac_lib_var=no"
5309 LIBS="$ac_save_LIBS"
5312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5316 cat >> confdefs.h <<EOF
5317 #define $ac_tr_lib 1
5323 echo "$ac_t""no" 1>&6
5330 echo $ac_n "checking for select""... $ac_c" 1>&6
5331 echo "configure:5332: checking for select" >&5
5332 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char select(); below. */
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5349 /* The GNU C library defines this for functions which it implements
5350 to always fail with ENOSYS. Some functions are actually named
5351 something starting with __ and the normal name is an alias. */
5352 #if defined (__stub_select) || defined (__stub___select)
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_func_select=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_func_select=no"
5372 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5377 { echo "configure: error: select() required." 1>&2; exit 1; }
5381 if test "${ac_cv_header_winsock_h}" != yes; then
5382 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5383 echo "configure:5384: checking types of arguments for select()" >&5
5384 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5387 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5394 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5395 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 #ifdef HAVE_SYS_TYPES_H
5400 #include <sys/types.h>
5402 #ifdef HAVE_SYS_TIME_H
5403 #include <sys/time.h>
5405 #ifdef HAVE_SYS_SELECT_H
5406 #include <sys/select.h>
5408 #ifdef HAVE_SYS_SOCKET_H
5409 #include <sys/socket.h>
5411 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);
5416 if { (eval echo configure:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5418 ac_not_found=no ; break 3
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5435 if test "$ac_not_found" = yes; then
5436 ac_cv_func_select_arg1=int
5437 ac_cv_func_select_arg234='int *'
5438 ac_cv_func_select_arg5='struct timeval *'
5440 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5441 cat >> confdefs.h <<EOF
5442 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5445 cat >> confdefs.h <<EOF
5446 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5449 cat >> confdefs.h <<EOF
5450 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5457 for ac_hdr in regex.h
5459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5461 echo "configure:5462: checking for $ac_hdr" >&5
5462 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5471 { (eval echo configure:5472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5473 if test -z "$ac_err"; then
5475 eval "ac_cv_header_$ac_safe=yes"
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 eval "ac_cv_header_$ac_safe=no"
5485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5488 cat >> confdefs.h <<EOF
5489 #define $ac_tr_hdr 1
5493 echo "$ac_t""no" 1>&6
5497 if test "$ac_cv_header_regex_h" != yes ; then
5498 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5500 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5501 echo "configure:5502: checking for regfree" >&5
5502 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char regfree(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5519 /* The GNU C library defines this for functions which it implements
5520 to always fail with ENOSYS. Some functions are actually named
5521 something starting with __ and the normal name is an alias. */
5522 #if defined (__stub_regfree) || defined (__stub___regfree)
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 eval "ac_cv_func_regfree=yes"
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5537 eval "ac_cv_func_regfree=no"
5542 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5546 echo "$ac_t""no" 1>&6
5547 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5552 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5553 echo "configure:5554: checking for compatible POSIX regex" >&5
5554 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5558 if test "$cross_compiling" = yes; then
5559 ol_cv_c_posix_regex=cross
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5565 #include <sys/types.h>
5567 static char *pattern, *string;
5575 if(regcomp(&re, pattern, 0)) {
5579 string = "ALL MATCH";
5581 rc = regexec(&re, string, 0, (void*)0, 0);
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5590 ol_cv_c_posix_regex=yes
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 ol_cv_c_posix_regex=no
5602 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5604 if test "$ol_cv_c_posix_regex" = no ; then
5605 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5609 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5610 echo "configure:5611: checking for res_query" >&5
5611 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* System header to define __stub macros and hopefully few prototypes,
5618 which can conflict with char res_query(); below. */
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_res_query) || defined (__stub___res_query)
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_func_res_query=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_func_res_query=no"
5651 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5655 echo "$ac_t""no" 1>&6
5658 if test $ac_cv_func_res_query = no ; then
5659 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5660 echo "configure:5661: checking for res_query in -lbind" >&5
5661 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 ac_save_LIBS="$LIBS"
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 eval "ac_cv_lib_$ac_lib_var=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 eval "ac_cv_lib_$ac_lib_var=no"
5689 LIBS="$ac_save_LIBS"
5692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5693 echo "$ac_t""yes" 1>&6
5694 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5695 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5696 cat >> confdefs.h <<EOF
5697 #define $ac_tr_lib 1
5703 echo "$ac_t""no" 1>&6
5706 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5709 if test $ac_cv_func_res_query = no ; then
5710 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5711 echo "configure:5712: checking for __res_query in -lbind" >&5
5712 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5716 ac_save_LIBS="$LIBS"
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 eval "ac_cv_lib_$ac_lib_var=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 eval "ac_cv_lib_$ac_lib_var=no"
5740 LIBS="$ac_save_LIBS"
5743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5747 cat >> confdefs.h <<EOF
5748 #define $ac_tr_lib 1
5754 echo "$ac_t""no" 1>&6
5757 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5760 if test $ac_cv_func_res_query = no ; then
5761 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5762 echo "configure:5763: checking for res_query in -lresolv" >&5
5763 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5767 ac_save_LIBS="$LIBS"
5768 LIBS="-lresolv $LIBS"
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783 eval "ac_cv_lib_$ac_lib_var=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 eval "ac_cv_lib_$ac_lib_var=no"
5791 LIBS="$ac_save_LIBS"
5794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5795 echo "$ac_t""yes" 1>&6
5796 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5798 cat >> confdefs.h <<EOF
5799 #define $ac_tr_lib 1
5802 LIBS="-lresolv $LIBS"
5805 echo "$ac_t""no" 1>&6
5808 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5811 if test "$ac_cv_func_res_query" = yes ; then
5812 cat >> confdefs.h <<\EOF
5813 #define HAVE_RES_QUERY 1
5817 if test $ol_enable_dnssrv != no ; then
5822 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5823 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5826 for ac_func in getaddrinfo inet_ntop
5828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_func" >&5
5830 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func(); below. */
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5884 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5885 if test $ol_enable_ipv6 = yes ; then
5886 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5889 for ac_func in gai_strerror
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char $ac_func(); below. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5923 eval "ac_cv_func_$ac_func=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_func_$ac_func=no"
5933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5936 cat >> confdefs.h <<EOF
5937 #define $ac_tr_func 1
5941 echo "$ac_t""no" 1>&6
5946 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5947 echo "configure:5948: checking INET6_ADDRSTRLEN" >&5
5948 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5956 # include <netinet/in.h>
5957 # ifdef INET6_ADDRSTRLEN
5958 __has_inet6_addrstrlen__;
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5965 ol_cv_inet6_addrstrlen=yes
5968 ol_cv_inet6_addrstrlen=no
5974 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5976 if test $ol_cv_inet6_addrstrlen = yes ; then
5978 elif test $ol_enable_ipv6 = yes ; then
5979 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5983 if test $ol_enable_local != no ; then
5984 for ac_hdr in sys/un.h
5986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_hdr" >&5
5989 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5998 { (eval echo configure:5999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6000 if test -z "$ac_err"; then
6002 eval "ac_cv_header_$ac_safe=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_header_$ac_safe=no"
6012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_hdr 1
6020 echo "$ac_t""no" 1>&6
6025 if test $ol_enable_local = auto ; then
6026 ol_enable_local=$ac_cv_header_sys_un_h
6027 elif test $ac_cv_header_sys_un_h = no ; then
6028 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6037 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6038 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6039 -o $ol_with_kerberos = k425 ; then
6041 for ac_hdr in krb5.h
6043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6045 echo "configure:6046: checking for $ac_hdr" >&5
6046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6055 { (eval echo configure:6056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6057 if test -z "$ac_err"; then
6059 eval "ac_cv_header_$ac_safe=yes"
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 eval "ac_cv_header_$ac_safe=no"
6069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6072 cat >> confdefs.h <<EOF
6073 #define $ac_tr_hdr 1
6077 echo "$ac_t""no" 1>&6
6082 if test $ac_cv_header_krb5_h = yes ; then
6083 for ac_hdr in heim_err.h
6085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_hdr" >&5
6088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6099 if test -z "$ac_err"; then
6101 eval "ac_cv_header_$ac_safe=yes"
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6107 eval "ac_cv_header_$ac_safe=no"
6111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6114 cat >> confdefs.h <<EOF
6115 #define $ac_tr_hdr 1
6119 echo "$ac_t""no" 1>&6
6123 if test $ac_cv_header_heim_err_h = yes ; then
6129 if test $krb5_impl = mit; then
6130 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6131 echo "configure:6132: checking for main in -lkrb5" >&5
6132 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6136 ac_save_LIBS="$LIBS"
6137 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_lib_$ac_lib_var=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_lib_$ac_lib_var=no"
6156 LIBS="$ac_save_LIBS"
6159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6162 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6164 echo "$ac_t""no" 1>&6
6169 elif test $krb5_impl = heimdal; then
6170 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6171 echo "configure:6172: checking for main in -lkrb5" >&5
6172 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6173 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 ac_save_LIBS="$LIBS"
6177 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 eval "ac_cv_lib_$ac_lib_var=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_lib_$ac_lib_var=no"
6196 LIBS="$ac_save_LIBS"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6202 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6204 echo "$ac_t""no" 1>&6
6209 cat >> confdefs.h <<\EOF
6210 #define HAVE_HEIMDAL_KERBEROS 1
6215 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6218 if test $have_krb5 = yes ; then
6221 cat >> confdefs.h <<\EOF
6226 if test $ol_enable_kpasswd != no ; then
6227 ol_link_kpasswd=yes;
6230 if test $ol_with_kerberos = k5only ; then
6231 ol_with_kerberos=found
6234 elif test $ol_with_kerberos != auto ; then
6235 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6241 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6242 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6244 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_hdr" >&5
6249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6252 cat > conftest.$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6258 { (eval echo configure:6259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6260 if test -z "$ac_err"; then
6262 eval "ac_cv_header_$ac_safe=yes"
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 eval "ac_cv_header_$ac_safe=no"
6272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6273 echo "$ac_t""yes" 1>&6
6274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6275 cat >> confdefs.h <<EOF
6276 #define $ac_tr_hdr 1
6280 echo "$ac_t""no" 1>&6
6285 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6286 if test $krb5_impl = mit; then
6287 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6288 echo "configure:6289: checking for main in -lkrb4" >&5
6289 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 ac_save_LIBS="$LIBS"
6294 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 eval "ac_cv_lib_$ac_lib_var=yes"
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 eval "ac_cv_lib_$ac_lib_var=no"
6313 LIBS="$ac_save_LIBS"
6316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6319 KRB4_LIBS="-lkrb4 -ldes425"
6321 echo "$ac_t""no" 1>&6
6326 elif test $krb5_impl = heimdal; then
6327 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6328 echo "configure:6329: checking for main in -lkrb4" >&5
6329 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6330 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 ac_save_LIBS="$LIBS"
6334 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6345 eval "ac_cv_lib_$ac_lib_var=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_lib_$ac_lib_var=no"
6353 LIBS="$ac_save_LIBS"
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6361 echo "$ac_t""no" 1>&6
6368 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6371 if test $have_k425 = yes ; then
6372 ol_with_kerberos=found
6375 cat >> confdefs.h <<\EOF
6376 #define HAVE_KRB425 1
6379 cat >> confdefs.h <<\EOF
6384 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6385 echo "configure:6386: checking for des_debug in Kerberos libraries" >&5
6386 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6391 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6396 #include <kerberosIV/krb.h>
6397 #include <kerberosIV/des.h>
6398 extern int des_debug;
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6408 ol_cv_var_des_debug=yes
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6413 ol_cv_var_des_debug=no
6420 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6422 if test $ol_cv_var_des_debug = yes ; then
6423 cat >> confdefs.h <<\EOF
6424 #define HAVE_DES_DEBUG 1
6434 if test $ol_link_krb5 = yes ; then
6435 ol_with_kerberos=found
6438 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6439 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6441 for ac_hdr in krb.h des.h krb-archaeology.h
6443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6445 echo "configure:6446: checking for $ac_hdr" >&5
6446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6455 { (eval echo configure:6456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6457 if test -z "$ac_err"; then
6459 eval "ac_cv_header_$ac_safe=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_header_$ac_safe=no"
6469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6472 cat >> confdefs.h <<EOF
6473 #define $ac_tr_hdr 1
6477 echo "$ac_t""no" 1>&6
6482 if test $ac_cv_header_krb_h = yes ; then
6483 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6484 echo "configure:6485: checking for main in -lkrb" >&5
6485 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 ac_save_LIBS="$LIBS"
6490 LIBS="-lkrb -ldes $LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 eval "ac_cv_lib_$ac_lib_var=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 eval "ac_cv_lib_$ac_lib_var=no"
6509 LIBS="$ac_save_LIBS"
6512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6516 echo "$ac_t""no" 1>&6
6521 if test $have_k4 = yes ; then
6522 ol_with_kerberos=found
6525 cat >> confdefs.h <<\EOF
6530 KRB4_LIBS="-lkrb -ldes"
6532 if test $ac_cv_header_krb_archaeology_h = yes ; then
6533 cat >> confdefs.h <<\EOF
6534 #define HAVE_KTH_KERBEROS 1
6542 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6546 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6549 elif test $ol_enable_kbind = yes ; then
6550 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6553 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_KERBEROS 1
6559 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6560 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6564 if test $ol_with_tls != no ; then
6565 for ac_hdr in openssl/ssl.h ssl.h
6567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6569 echo "configure:6570: checking for $ac_hdr" >&5
6570 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6579 { (eval echo configure:6580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6581 if test -z "$ac_err"; then
6583 eval "ac_cv_header_$ac_safe=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 eval "ac_cv_header_$ac_safe=no"
6593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6596 cat >> confdefs.h <<EOF
6597 #define $ac_tr_hdr 1
6601 echo "$ac_t""no" 1>&6
6606 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6607 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6608 echo "configure:6609: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6609 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 ac_save_LIBS="$LIBS"
6614 LIBS="-lssl -lcrypto $LIBS"
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6618 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6621 char SSLeay_add_ssl_algorithms();
6624 SSLeay_add_ssl_algorithms()
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6629 eval "ac_cv_lib_$ac_lib_var=yes"
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 eval "ac_cv_lib_$ac_lib_var=no"
6637 LIBS="$ac_save_LIBS"
6640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6645 echo "$ac_t""no" 1>&6
6650 if test $have_ssleay = no ; then
6651 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6652 echo "configure:6653: checking for SSL_library_init in -lssl" >&5
6653 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6654 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 ac_save_LIBS="$LIBS"
6658 LIBS="-lssl -lcrypto $LIBS"
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char SSL_library_init();
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 eval "ac_cv_lib_$ac_lib_var=yes"
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 eval "ac_cv_lib_$ac_lib_var=no"
6681 LIBS="$ac_save_LIBS"
6684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6689 echo "$ac_t""no" 1>&6
6695 if test $have_ssleay = no ; then
6696 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6697 echo "configure:6698: checking for ssl3_accept in -lssl" >&5
6698 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6702 ac_save_LIBS="$LIBS"
6703 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* Override any gcc2 internal prototype to avoid an error. */
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6718 eval "ac_cv_lib_$ac_lib_var=yes"
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 eval "ac_cv_lib_$ac_lib_var=no"
6726 LIBS="$ac_save_LIBS"
6729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6734 echo "$ac_t""no" 1>&6
6740 if test $have_ssleay = yes ; then
6744 cat >> confdefs.h <<\EOF
6745 #define HAVE_SSLEAY 1
6749 if test $need_rsaref = yes; then
6750 cat >> confdefs.h <<\EOF
6751 #define HAVE_RSAREF 1
6755 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6757 TLS_LIBS="-lssl -lcrypto"
6763 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6766 if test $ol_link_tls = yes ; then
6767 cat >> confdefs.h <<\EOF
6772 elif test $ol_with_tls = auto ; then
6773 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6774 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6776 elif test $ol_with_tls != no ; then
6777 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6780 if test $ol_enable_lmpasswd != no; then
6781 if test $ol_link_tls != yes ; then
6782 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6785 cat >> confdefs.h <<\EOF
6786 #define SLAPD_LMHASH 1
6793 gethostbyname_r gethostbyaddr_r \
6796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6797 echo "configure:6798: checking for $ac_func" >&5
6798 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 cat > conftest.$ac_ext <<EOF
6802 #line 6803 "configure"
6803 #include "confdefs.h"
6804 /* System header to define __stub macros and hopefully few prototypes,
6805 which can conflict with char $ac_func(); below. */
6807 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6815 /* The GNU C library defines this for functions which it implements
6816 to always fail with ENOSYS. Some functions are actually named
6817 something starting with __ and the normal name is an alias. */
6818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 if { (eval echo configure:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6828 eval "ac_cv_func_$ac_func=yes"
6830 echo "configure: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6833 eval "ac_cv_func_$ac_func=no"
6838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6839 echo "$ac_t""yes" 1>&6
6840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6841 cat >> confdefs.h <<EOF
6842 #define $ac_tr_func 1
6846 echo "$ac_t""no" 1>&6
6851 if test "$ac_cv_func_ctime_r" = no ; then
6852 ol_cv_func_ctime_r_nargs=0
6854 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6855 echo "configure:6856: checking number of arguments of ctime_r" >&5
6856 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6864 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6867 if { (eval echo configure:6868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6869 ol_cv_func_ctime_r_nargs3=yes
6871 echo "configure: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6874 ol_cv_func_ctime_r_nargs3=no
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6883 time_t ti; char *buffer; ctime_r(&ti,buffer);
6886 if { (eval echo configure:6887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6888 ol_cv_func_ctime_r_nargs2=yes
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 ol_cv_func_ctime_r_nargs2=no
6897 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6898 $ol_cv_func_ctime_r_nargs2 = no ; then
6900 ol_cv_func_ctime_r_nargs=3
6902 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6903 $ol_cv_func_ctime_r_nargs2 = yes ; then
6905 ol_cv_func_ctime_r_nargs=2
6908 ol_cv_func_ctime_r_nargs=0
6913 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6915 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6916 cat >> confdefs.h <<EOF
6917 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6924 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6925 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6926 echo "configure:6927: checking number of arguments of gethostbyname_r" >&5
6927 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <sys/types.h>
6934 #include <sys/socket.h>
6935 #include <netinet/in.h>
6937 #define BUFSIZE (sizeof(struct hostent)+10)
6939 struct hostent hent; char buffer[BUFSIZE];
6940 int bufsize=BUFSIZE;int h_errno;
6941 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6942 buffer, bufsize, &h_errno);
6945 if { (eval echo configure:6946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6947 ol_cv_func_gethostbyname_r_nargs5=yes
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6952 ol_cv_func_gethostbyname_r_nargs5=no
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 #include <sys/types.h>
6960 #include <sys/socket.h>
6961 #include <netinet/in.h>
6963 #define BUFSIZE (sizeof(struct hostent)+10)
6965 struct hostent hent;struct hostent *rhent;
6966 char buffer[BUFSIZE];
6967 int bufsize=BUFSIZE;int h_errno;
6968 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6972 if { (eval echo configure:6973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6974 ol_cv_func_gethostbyname_r_nargs6=yes
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 ol_cv_func_gethostbyname_r_nargs6=no
6983 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6984 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6986 ol_cv_func_gethostbyname_r_nargs=5
6988 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6989 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6991 ol_cv_func_gethostbyname_r_nargs=6
6994 ol_cv_func_gethostbyname_r_nargs=0
6999 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7000 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7001 cat >> confdefs.h <<EOF
7002 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7008 ol_cv_func_gethostbyname_r_nargs=0
7011 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7012 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7013 echo "configure:7014: checking number of arguments of gethostbyaddr_r" >&5
7014 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 #include <sys/types.h>
7021 #include <sys/socket.h>
7022 #include <netinet/in.h>
7024 #define BUFSIZE (sizeof(struct hostent)+10)
7026 struct hostent hent; char buffer[BUFSIZE];
7028 size_t alen=sizeof(struct in_addr);
7029 int bufsize=BUFSIZE;int h_errno;
7030 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7031 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7034 if { (eval echo configure:7035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036 ol_cv_func_gethostbyaddr_r_nargs7=yes
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 ol_cv_func_gethostbyaddr_r_nargs7=no
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 #include <sys/types.h>
7049 #include <sys/socket.h>
7050 #include <netinet/in.h>
7052 #define BUFSIZE (sizeof(struct hostent)+10)
7054 struct hostent hent;
7055 struct hostent *rhent; char buffer[BUFSIZE];
7057 size_t alen=sizeof(struct in_addr);
7058 int bufsize=BUFSIZE;int h_errno;
7059 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7060 alen, AF_INET, &hent, buffer, bufsize,
7064 if { (eval echo configure:7065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7066 ol_cv_func_gethostbyaddr_r_nargs8=yes
7068 echo "configure: failed program was:" >&5
7069 cat conftest.$ac_ext >&5
7071 ol_cv_func_gethostbyaddr_r_nargs8=no
7075 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7076 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7078 ol_cv_func_gethostbyaddr_r_nargs=7
7080 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7081 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7083 ol_cv_func_gethostbyaddr_r_nargs=8
7086 ol_cv_func_gethostbyaddr_r_nargs=0
7091 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7092 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7093 cat >> confdefs.h <<EOF
7094 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7100 ol_cv_func_gethostbyaddr_r_nargs=0
7103 if test "$ac_cv_func_ctime_r" = yes \
7104 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7105 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7106 -a "$ac_cv_func_gethostbyname_r" = yes \
7107 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7108 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7109 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7110 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7111 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7114 cat >> confdefs.h <<\EOF
7115 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7122 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7123 -o $ol_with_threads = nt ; then
7126 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7127 echo "configure:7128: checking for NT Threads" >&5
7128 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7132 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7133 echo "configure:7134: checking for _beginthread" >&5
7134 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7135 echo $ac_n "(cached) $ac_c" 1>&6
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7140 /* System header to define __stub macros and hopefully few prototypes,
7141 which can conflict with char _beginthread(); below. */
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char _beginthread();
7151 /* The GNU C library defines this for functions which it implements
7152 to always fail with ENOSYS. Some functions are actually named
7153 something starting with __ and the normal name is an alias. */
7154 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7162 if { (eval echo configure:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 eval "ac_cv_func__beginthread=yes"
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 eval "ac_cv_func__beginthread=no"
7174 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7175 echo "$ac_t""yes" 1>&6
7176 ol_cv_nt_threads=yes
7178 echo "$ac_t""no" 1>&6
7185 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7187 if test $ol_cv_nt_threads = yes ; then
7188 cat >> confdefs.h <<\EOF
7189 #define HAVE_NT_THREADS 1
7195 if test "$ol_cv_nt_threads" = yes ; then
7197 ol_with_threads=found
7198 ol_with_yielding_select=yes
7200 cat >> confdefs.h <<\EOF
7201 #define HAVE_NT_SERVICE_MANAGER 1
7204 cat >> confdefs.h <<\EOF
7205 #define HAVE_NT_EVENT_LOG 1
7210 if test $ol_with_threads = nt ; then
7211 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7215 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7216 -o $ol_with_threads = posix ; then
7218 for ac_hdr in pthread.h
7220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7222 echo "configure:7223: checking for $ac_hdr" >&5
7223 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7224 echo $ac_n "(cached) $ac_c" 1>&6
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7232 { (eval echo configure:7233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7234 if test -z "$ac_err"; then
7236 eval "ac_cv_header_$ac_safe=yes"
7239 echo "configure: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7242 eval "ac_cv_header_$ac_safe=no"
7246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7247 echo "$ac_t""yes" 1>&6
7248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7249 cat >> confdefs.h <<EOF
7250 #define $ac_tr_hdr 1
7254 echo "$ac_t""no" 1>&6
7259 if test $ac_cv_header_pthread_h = yes ; then
7260 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7261 echo "configure:7262: checking POSIX thread version" >&5
7262 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7270 # include <pthread.h>
7271 /* this check could be improved */
7272 # ifdef PTHREAD_ONCE_INIT
7273 pthread_version_final;
7277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 egrep "pthread_version_final" >/dev/null 2>&1; then
7280 ol_pthread_final=yes
7288 cat > conftest.$ac_ext <<EOF
7289 #line 7290 "configure"
7290 #include "confdefs.h"
7292 # include <pthread.h>
7293 /* this check could be improved */
7294 # ifdef pthread_once_init
7295 pthread_version_draft4;
7299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7300 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7302 ol_pthread_draft4=yes
7305 ol_pthread_draft4=no
7310 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7311 ol_cv_pthread_version=final
7312 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7313 ol_cv_pthread_version=draft4
7315 ol_cv_pthread_version=unknown
7320 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7323 if test $ol_cv_pthread_version = final ; then
7324 cat >> confdefs.h <<\EOF
7325 #define HAVE_PTHREADS_FINAL 1
7328 elif test $ol_cv_pthread_version = draft4 ; then
7329 cat >> confdefs.h <<\EOF
7330 #define HAVE_PTHREADS_D4 1
7334 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7337 # consider threads found
7338 ol_with_threads=found
7341 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7342 echo "configure:7343: checking for LinuxThreads pthread.h" >&5
7343 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <pthread.h>
7351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7352 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7354 ol_cv_header_linux_threads=yes
7357 ol_cv_header_linux_threads=no
7364 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7365 if test $ol_cv_header_linux_threads = yes; then
7366 cat >> confdefs.h <<\EOF
7367 #define HAVE_LINUX_THREADS 1
7373 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7374 echo "configure:7375: checking for GNU Pth pthread.h" >&5
7375 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 #include <pthread.h>
7382 #ifdef _POSIX_THREAD_IS_GNU_PTH
7387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388 egrep "__gnu_pth__" >/dev/null 2>&1; then
7390 ol_cv_header_gnu_pth_pthread_h=yes
7393 ol_cv_header_gnu_pth_pthread_h=no
7400 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7403 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7404 for ac_hdr in sched.h
7406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_hdr" >&5
7409 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7418 { (eval echo configure:7419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7420 if test -z "$ac_err"; then
7422 eval "ac_cv_header_$ac_safe=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 eval "ac_cv_header_$ac_safe=no"
7432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7433 echo "$ac_t""yes" 1>&6
7434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7435 cat >> confdefs.h <<EOF
7436 #define $ac_tr_hdr 1
7440 echo "$ac_t""no" 1>&6
7447 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7448 echo "configure:7449: checking for pthread_create in default libraries" >&5
7449 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7453 if test "$cross_compiling" = yes; then
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* pthread test headers */
7458 #include <pthread.h>
7460 #define NULL (void*)0
7463 static void *task(p)
7466 return (void *) (p == NULL);
7471 /* pthread test function */
7474 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7475 /* This system (e.g. AIX) defaults detached; must override */
7476 pthread_attr_t attr;
7478 status = pthread_attr_init(&attr);
7479 if( status ) exit( status );
7481 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7482 if( status ) exit( status );
7485 #elif defined( HAVE_PTHREADS_D4 )
7486 # define ATTR pthread_attr_default
7491 /* make sure pthread_create() isn't just a stub */
7492 status = pthread_create(&t, ATTR, task, NULL);
7493 if( status ) exit( status );
7495 /* give the thread a chance to complete...
7496 * it should remain joinable and hence detachable
7500 /* make sure pthread_detach() isn't just a stub */
7501 #if HAVE_PTHREADS_D4
7502 status = pthread_detach( &t );
7504 status = pthread_detach( t );
7507 #ifdef HAVE_LINUX_THREADS
7508 pthread_kill_other_threads_np();
7515 if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7517 ol_cv_pthread_create=yes
7519 echo "configure: failed program was:" >&5
7520 cat conftest.$ac_ext >&5
7522 ol_cv_pthread_create=no
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 /* pthread test headers */
7530 #include <pthread.h>
7532 #define NULL (void*)0
7535 static void *task(p)
7538 return (void *) (p == NULL);
7542 int main(argc, argv)
7547 /* pthread test function */
7550 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7551 /* This system (e.g. AIX) defaults detached; must override */
7552 pthread_attr_t attr;
7554 status = pthread_attr_init(&attr);
7555 if( status ) exit( status );
7557 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7558 if( status ) exit( status );
7561 #elif defined( HAVE_PTHREADS_D4 )
7562 # define ATTR pthread_attr_default
7567 /* make sure pthread_create() isn't just a stub */
7568 status = pthread_create(&t, ATTR, task, NULL);
7569 if( status ) exit( status );
7571 /* give the thread a chance to complete...
7572 * it should remain joinable and hence detachable
7576 /* make sure pthread_detach() isn't just a stub */
7577 #if HAVE_PTHREADS_D4
7578 status = pthread_detach( &t );
7580 status = pthread_detach( t );
7583 #ifdef HAVE_LINUX_THREADS
7584 pthread_kill_other_threads_np();
7592 if { (eval echo configure:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7594 ol_cv_pthread_create=yes
7596 echo "configure: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7599 ol_cv_pthread_create=no
7606 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7608 if test $ol_cv_pthread_create != no ; then
7609 ol_link_threads=posix
7613 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7614 if test "$ol_link_threads" = no ; then
7616 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7617 echo "configure:7618: checking for pthread link with -kthread" >&5
7618 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7624 LIBS="-kthread $LIBS"
7626 if test "$cross_compiling" = yes; then
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7630 /* pthread test headers */
7631 #include <pthread.h>
7633 #define NULL (void*)0
7636 static void *task(p)
7639 return (void *) (p == NULL);
7644 /* pthread test function */
7647 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7648 /* This system (e.g. AIX) defaults detached; must override */
7649 pthread_attr_t attr;
7651 status = pthread_attr_init(&attr);
7652 if( status ) exit( status );
7654 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7655 if( status ) exit( status );
7658 #elif defined( HAVE_PTHREADS_D4 )
7659 # define ATTR pthread_attr_default
7664 /* make sure pthread_create() isn't just a stub */
7665 status = pthread_create(&t, ATTR, task, NULL);
7666 if( status ) exit( status );
7668 /* give the thread a chance to complete...
7669 * it should remain joinable and hence detachable
7673 /* make sure pthread_detach() isn't just a stub */
7674 #if HAVE_PTHREADS_D4
7675 status = pthread_detach( &t );
7677 status = pthread_detach( t );
7680 #ifdef HAVE_LINUX_THREADS
7681 pthread_kill_other_threads_np();
7688 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 ol_cv_pthread_kthread=yes
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 ol_cv_pthread_kthread=no
7699 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 /* pthread test headers */
7703 #include <pthread.h>
7705 #define NULL (void*)0
7708 static void *task(p)
7711 return (void *) (p == NULL);
7715 int main(argc, argv)
7720 /* pthread test function */
7723 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7724 /* This system (e.g. AIX) defaults detached; must override */
7725 pthread_attr_t attr;
7727 status = pthread_attr_init(&attr);
7728 if( status ) exit( status );
7730 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7731 if( status ) exit( status );
7734 #elif defined( HAVE_PTHREADS_D4 )
7735 # define ATTR pthread_attr_default
7740 /* make sure pthread_create() isn't just a stub */
7741 status = pthread_create(&t, ATTR, task, NULL);
7742 if( status ) exit( status );
7744 /* give the thread a chance to complete...
7745 * it should remain joinable and hence detachable
7749 /* make sure pthread_detach() isn't just a stub */
7750 #if HAVE_PTHREADS_D4
7751 status = pthread_detach( &t );
7753 status = pthread_detach( t );
7756 #ifdef HAVE_LINUX_THREADS
7757 pthread_kill_other_threads_np();
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7767 ol_cv_pthread_kthread=yes
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 ol_cv_pthread_kthread=no
7783 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7785 if test $ol_cv_pthread_kthread = yes ; then
7786 ol_link_pthreads="-kthread"
7787 ol_link_threads=posix
7791 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7792 if test "$ol_link_threads" = no ; then
7794 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7795 echo "configure:7796: checking for pthread link with -pthread" >&5
7796 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7802 LIBS="-pthread $LIBS"
7804 if test "$cross_compiling" = yes; then
7805 cat > conftest.$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 /* pthread test headers */
7809 #include <pthread.h>
7811 #define NULL (void*)0
7814 static void *task(p)
7817 return (void *) (p == NULL);
7822 /* pthread test function */
7825 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7826 /* This system (e.g. AIX) defaults detached; must override */
7827 pthread_attr_t attr;
7829 status = pthread_attr_init(&attr);
7830 if( status ) exit( status );
7832 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7833 if( status ) exit( status );
7836 #elif defined( HAVE_PTHREADS_D4 )
7837 # define ATTR pthread_attr_default
7842 /* make sure pthread_create() isn't just a stub */
7843 status = pthread_create(&t, ATTR, task, NULL);
7844 if( status ) exit( status );
7846 /* give the thread a chance to complete...
7847 * it should remain joinable and hence detachable
7851 /* make sure pthread_detach() isn't just a stub */
7852 #if HAVE_PTHREADS_D4
7853 status = pthread_detach( &t );
7855 status = pthread_detach( t );
7858 #ifdef HAVE_LINUX_THREADS
7859 pthread_kill_other_threads_np();
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 ol_cv_pthread_pthread=yes
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 ol_cv_pthread_pthread=no
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 /* pthread test headers */
7881 #include <pthread.h>
7883 #define NULL (void*)0
7886 static void *task(p)
7889 return (void *) (p == NULL);
7893 int main(argc, argv)
7898 /* pthread test function */
7901 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7902 /* This system (e.g. AIX) defaults detached; must override */
7903 pthread_attr_t attr;
7905 status = pthread_attr_init(&attr);
7906 if( status ) exit( status );
7908 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7909 if( status ) exit( status );
7912 #elif defined( HAVE_PTHREADS_D4 )
7913 # define ATTR pthread_attr_default
7918 /* make sure pthread_create() isn't just a stub */
7919 status = pthread_create(&t, ATTR, task, NULL);
7920 if( status ) exit( status );
7922 /* give the thread a chance to complete...
7923 * it should remain joinable and hence detachable
7927 /* make sure pthread_detach() isn't just a stub */
7928 #if HAVE_PTHREADS_D4
7929 status = pthread_detach( &t );
7931 status = pthread_detach( t );
7934 #ifdef HAVE_LINUX_THREADS
7935 pthread_kill_other_threads_np();
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7945 ol_cv_pthread_pthread=yes
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7950 ol_cv_pthread_pthread=no
7961 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7963 if test $ol_cv_pthread_pthread = yes ; then
7964 ol_link_pthreads="-pthread"
7965 ol_link_threads=posix
7969 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7970 if test "$ol_link_threads" = no ; then
7972 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7973 echo "configure:7974: checking for pthread link with -pthreads" >&5
7974 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7980 LIBS="-pthreads $LIBS"
7982 if test "$cross_compiling" = yes; then
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 /* pthread test headers */
7987 #include <pthread.h>
7989 #define NULL (void*)0
7992 static void *task(p)
7995 return (void *) (p == NULL);
8000 /* pthread test function */
8003 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8004 /* This system (e.g. AIX) defaults detached; must override */
8005 pthread_attr_t attr;
8007 status = pthread_attr_init(&attr);
8008 if( status ) exit( status );
8010 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8011 if( status ) exit( status );
8014 #elif defined( HAVE_PTHREADS_D4 )
8015 # define ATTR pthread_attr_default
8020 /* make sure pthread_create() isn't just a stub */
8021 status = pthread_create(&t, ATTR, task, NULL);
8022 if( status ) exit( status );
8024 /* give the thread a chance to complete...
8025 * it should remain joinable and hence detachable
8029 /* make sure pthread_detach() isn't just a stub */
8030 #if HAVE_PTHREADS_D4
8031 status = pthread_detach( &t );
8033 status = pthread_detach( t );
8036 #ifdef HAVE_LINUX_THREADS
8037 pthread_kill_other_threads_np();
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8046 ol_cv_pthread_pthreads=yes
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8051 ol_cv_pthread_pthreads=no
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8058 /* pthread test headers */
8059 #include <pthread.h>
8061 #define NULL (void*)0
8064 static void *task(p)
8067 return (void *) (p == NULL);
8071 int main(argc, argv)
8076 /* pthread test function */
8079 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8080 /* This system (e.g. AIX) defaults detached; must override */
8081 pthread_attr_t attr;
8083 status = pthread_attr_init(&attr);
8084 if( status ) exit( status );
8086 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8087 if( status ) exit( status );
8090 #elif defined( HAVE_PTHREADS_D4 )
8091 # define ATTR pthread_attr_default
8096 /* make sure pthread_create() isn't just a stub */
8097 status = pthread_create(&t, ATTR, task, NULL);
8098 if( status ) exit( status );
8100 /* give the thread a chance to complete...
8101 * it should remain joinable and hence detachable
8105 /* make sure pthread_detach() isn't just a stub */
8106 #if HAVE_PTHREADS_D4
8107 status = pthread_detach( &t );
8109 status = pthread_detach( t );
8112 #ifdef HAVE_LINUX_THREADS
8113 pthread_kill_other_threads_np();
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8123 ol_cv_pthread_pthreads=yes
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 ol_cv_pthread_pthreads=no
8139 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8141 if test $ol_cv_pthread_pthreads = yes ; then
8142 ol_link_pthreads="-pthreads"
8143 ol_link_threads=posix
8147 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8148 if test "$ol_link_threads" = no ; then
8150 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8151 echo "configure:8152: checking for pthread link with -mthreads" >&5
8152 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8158 LIBS="-mthreads $LIBS"
8160 if test "$cross_compiling" = yes; then
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 /* pthread test headers */
8165 #include <pthread.h>
8167 #define NULL (void*)0
8170 static void *task(p)
8173 return (void *) (p == NULL);
8178 /* pthread test function */
8181 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8182 /* This system (e.g. AIX) defaults detached; must override */
8183 pthread_attr_t attr;
8185 status = pthread_attr_init(&attr);
8186 if( status ) exit( status );
8188 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8189 if( status ) exit( status );
8192 #elif defined( HAVE_PTHREADS_D4 )
8193 # define ATTR pthread_attr_default
8198 /* make sure pthread_create() isn't just a stub */
8199 status = pthread_create(&t, ATTR, task, NULL);
8200 if( status ) exit( status );
8202 /* give the thread a chance to complete...
8203 * it should remain joinable and hence detachable
8207 /* make sure pthread_detach() isn't just a stub */
8208 #if HAVE_PTHREADS_D4
8209 status = pthread_detach( &t );
8211 status = pthread_detach( t );
8214 #ifdef HAVE_LINUX_THREADS
8215 pthread_kill_other_threads_np();
8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8224 ol_cv_pthread_mthreads=yes
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8229 ol_cv_pthread_mthreads=no
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* pthread test headers */
8237 #include <pthread.h>
8239 #define NULL (void*)0
8242 static void *task(p)
8245 return (void *) (p == NULL);
8249 int main(argc, argv)
8254 /* pthread test function */
8257 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8258 /* This system (e.g. AIX) defaults detached; must override */
8259 pthread_attr_t attr;
8261 status = pthread_attr_init(&attr);
8262 if( status ) exit( status );
8264 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8265 if( status ) exit( status );
8268 #elif defined( HAVE_PTHREADS_D4 )
8269 # define ATTR pthread_attr_default
8274 /* make sure pthread_create() isn't just a stub */
8275 status = pthread_create(&t, ATTR, task, NULL);
8276 if( status ) exit( status );
8278 /* give the thread a chance to complete...
8279 * it should remain joinable and hence detachable
8283 /* make sure pthread_detach() isn't just a stub */
8284 #if HAVE_PTHREADS_D4
8285 status = pthread_detach( &t );
8287 status = pthread_detach( t );
8290 #ifdef HAVE_LINUX_THREADS
8291 pthread_kill_other_threads_np();
8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8301 ol_cv_pthread_mthreads=yes
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 ol_cv_pthread_mthreads=no
8317 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8319 if test $ol_cv_pthread_mthreads = yes ; then
8320 ol_link_pthreads="-mthreads"
8321 ol_link_threads=posix
8325 # Pthread try link: -thread (ol_cv_pthread_thread)
8326 if test "$ol_link_threads" = no ; then
8328 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8329 echo "configure:8330: checking for pthread link with -thread" >&5
8330 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8336 LIBS="-thread $LIBS"
8338 if test "$cross_compiling" = yes; then
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8342 /* pthread test headers */
8343 #include <pthread.h>
8345 #define NULL (void*)0
8348 static void *task(p)
8351 return (void *) (p == NULL);
8356 /* pthread test function */
8359 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8360 /* This system (e.g. AIX) defaults detached; must override */
8361 pthread_attr_t attr;
8363 status = pthread_attr_init(&attr);
8364 if( status ) exit( status );
8366 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8367 if( status ) exit( status );
8370 #elif defined( HAVE_PTHREADS_D4 )
8371 # define ATTR pthread_attr_default
8376 /* make sure pthread_create() isn't just a stub */
8377 status = pthread_create(&t, ATTR, task, NULL);
8378 if( status ) exit( status );
8380 /* give the thread a chance to complete...
8381 * it should remain joinable and hence detachable
8385 /* make sure pthread_detach() isn't just a stub */
8386 #if HAVE_PTHREADS_D4
8387 status = pthread_detach( &t );
8389 status = pthread_detach( t );
8392 #ifdef HAVE_LINUX_THREADS
8393 pthread_kill_other_threads_np();
8400 if { (eval echo configure:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8402 ol_cv_pthread_thread=yes
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8407 ol_cv_pthread_thread=no
8411 cat > conftest.$ac_ext <<EOF
8412 #line 8413 "configure"
8413 #include "confdefs.h"
8414 /* pthread test headers */
8415 #include <pthread.h>
8417 #define NULL (void*)0
8420 static void *task(p)
8423 return (void *) (p == NULL);
8427 int main(argc, argv)
8432 /* pthread test function */
8435 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8436 /* This system (e.g. AIX) defaults detached; must override */
8437 pthread_attr_t attr;
8439 status = pthread_attr_init(&attr);
8440 if( status ) exit( status );
8442 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8443 if( status ) exit( status );
8446 #elif defined( HAVE_PTHREADS_D4 )
8447 # define ATTR pthread_attr_default
8452 /* make sure pthread_create() isn't just a stub */
8453 status = pthread_create(&t, ATTR, task, NULL);
8454 if( status ) exit( status );
8456 /* give the thread a chance to complete...
8457 * it should remain joinable and hence detachable
8461 /* make sure pthread_detach() isn't just a stub */
8462 #if HAVE_PTHREADS_D4
8463 status = pthread_detach( &t );
8465 status = pthread_detach( t );
8468 #ifdef HAVE_LINUX_THREADS
8469 pthread_kill_other_threads_np();
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8479 ol_cv_pthread_thread=yes
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 ol_cv_pthread_thread=no
8495 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8497 if test $ol_cv_pthread_thread = yes ; then
8498 ol_link_pthreads="-thread"
8499 ol_link_threads=posix
8504 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8505 if test "$ol_link_threads" = no ; then
8506 # try -lpthread -lmach -lexc -lc_r
8507 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8508 echo "configure:8509: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8509 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8515 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8517 if test "$cross_compiling" = yes; then
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 /* pthread test headers */
8522 #include <pthread.h>
8524 #define NULL (void*)0
8527 static void *task(p)
8530 return (void *) (p == NULL);
8535 /* pthread test function */
8538 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8539 /* This system (e.g. AIX) defaults detached; must override */
8540 pthread_attr_t attr;
8542 status = pthread_attr_init(&attr);
8543 if( status ) exit( status );
8545 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8546 if( status ) exit( status );
8549 #elif defined( HAVE_PTHREADS_D4 )
8550 # define ATTR pthread_attr_default
8555 /* make sure pthread_create() isn't just a stub */
8556 status = pthread_create(&t, ATTR, task, NULL);
8557 if( status ) exit( status );
8559 /* give the thread a chance to complete...
8560 * it should remain joinable and hence detachable
8564 /* make sure pthread_detach() isn't just a stub */
8565 #if HAVE_PTHREADS_D4
8566 status = pthread_detach( &t );
8568 status = pthread_detach( t );
8571 #ifdef HAVE_LINUX_THREADS
8572 pthread_kill_other_threads_np();
8579 if { (eval echo configure:8580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8581 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8583 echo "configure: failed program was:" >&5
8584 cat conftest.$ac_ext >&5
8586 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8593 /* pthread test headers */
8594 #include <pthread.h>
8596 #define NULL (void*)0
8599 static void *task(p)
8602 return (void *) (p == NULL);
8606 int main(argc, argv)
8611 /* pthread test function */
8614 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8615 /* This system (e.g. AIX) defaults detached; must override */
8616 pthread_attr_t attr;
8618 status = pthread_attr_init(&attr);
8619 if( status ) exit( status );
8621 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8622 if( status ) exit( status );
8625 #elif defined( HAVE_PTHREADS_D4 )
8626 # define ATTR pthread_attr_default
8631 /* make sure pthread_create() isn't just a stub */
8632 status = pthread_create(&t, ATTR, task, NULL);
8633 if( status ) exit( status );
8635 /* give the thread a chance to complete...
8636 * it should remain joinable and hence detachable
8640 /* make sure pthread_detach() isn't just a stub */
8641 #if HAVE_PTHREADS_D4
8642 status = pthread_detach( &t );
8644 status = pthread_detach( t );
8647 #ifdef HAVE_LINUX_THREADS
8648 pthread_kill_other_threads_np();
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8658 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8663 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8674 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8676 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8677 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8678 ol_link_threads=posix
8682 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8683 if test "$ol_link_threads" = no ; then
8684 # try -lpthread -lmach -lexc
8685 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8686 echo "configure:8687: checking for pthread link with -lpthread -lmach -lexc" >&5
8687 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8693 LIBS="-lpthread -lmach -lexc $LIBS"
8695 if test "$cross_compiling" = yes; then
8696 cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 /* pthread test headers */
8700 #include <pthread.h>
8702 #define NULL (void*)0
8705 static void *task(p)
8708 return (void *) (p == NULL);
8713 /* pthread test function */
8716 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8717 /* This system (e.g. AIX) defaults detached; must override */
8718 pthread_attr_t attr;
8720 status = pthread_attr_init(&attr);
8721 if( status ) exit( status );
8723 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8724 if( status ) exit( status );
8727 #elif defined( HAVE_PTHREADS_D4 )
8728 # define ATTR pthread_attr_default
8733 /* make sure pthread_create() isn't just a stub */
8734 status = pthread_create(&t, ATTR, task, NULL);
8735 if( status ) exit( status );
8737 /* give the thread a chance to complete...
8738 * it should remain joinable and hence detachable
8742 /* make sure pthread_detach() isn't just a stub */
8743 #if HAVE_PTHREADS_D4
8744 status = pthread_detach( &t );
8746 status = pthread_detach( t );
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_lpthread_lmach_lexc=yes
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8764 ol_cv_pthread_lpthread_lmach_lexc=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 */
8792 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8793 /* This system (e.g. AIX) defaults detached; must override */
8794 pthread_attr_t attr;
8796 status = pthread_attr_init(&attr);
8797 if( status ) exit( status );
8799 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8800 if( status ) exit( status );
8803 #elif defined( HAVE_PTHREADS_D4 )
8804 # define ATTR pthread_attr_default
8809 /* make sure pthread_create() isn't just a stub */
8810 status = pthread_create(&t, ATTR, task, NULL);
8811 if( status ) exit( status );
8813 /* give the thread a chance to complete...
8814 * it should remain joinable and hence detachable
8818 /* make sure pthread_detach() isn't just a stub */
8819 #if HAVE_PTHREADS_D4
8820 status = pthread_detach( &t );
8822 status = pthread_detach( t );
8825 #ifdef HAVE_LINUX_THREADS
8826 pthread_kill_other_threads_np();
8834 if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8836 ol_cv_pthread_lpthread_lmach_lexc=yes
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8841 ol_cv_pthread_lpthread_lmach_lexc=no
8852 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8854 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8855 ol_link_pthreads="-lpthread -lmach -lexc"
8856 ol_link_threads=posix
8861 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8862 if test "$ol_link_threads" = no ; then
8863 # try -lpthread -Wl,-woff,85
8864 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8865 echo "configure:8866: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8866 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8872 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8874 if test "$cross_compiling" = yes; then
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 /* pthread test headers */
8879 #include <pthread.h>
8881 #define NULL (void*)0
8884 static void *task(p)
8887 return (void *) (p == NULL);
8892 /* pthread test function */
8895 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8896 /* This system (e.g. AIX) defaults detached; must override */
8897 pthread_attr_t attr;
8899 status = pthread_attr_init(&attr);
8900 if( status ) exit( status );
8902 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8903 if( status ) exit( status );
8906 #elif defined( HAVE_PTHREADS_D4 )
8907 # define ATTR pthread_attr_default
8912 /* make sure pthread_create() isn't just a stub */
8913 status = pthread_create(&t, ATTR, task, NULL);
8914 if( status ) exit( status );
8916 /* give the thread a chance to complete...
8917 * it should remain joinable and hence detachable
8921 /* make sure pthread_detach() isn't just a stub */
8922 #if HAVE_PTHREADS_D4
8923 status = pthread_detach( &t );
8925 status = pthread_detach( t );
8928 #ifdef HAVE_LINUX_THREADS
8929 pthread_kill_other_threads_np();
8936 if { (eval echo configure:8937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8938 ol_cv_pthread_lib_lpthread_woff=yes
8940 echo "configure: failed program was:" >&5
8941 cat conftest.$ac_ext >&5
8943 ol_cv_pthread_lib_lpthread_woff=no
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 /* pthread test headers */
8951 #include <pthread.h>
8953 #define NULL (void*)0
8956 static void *task(p)
8959 return (void *) (p == NULL);
8963 int main(argc, argv)
8968 /* pthread test function */
8971 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8972 /* This system (e.g. AIX) defaults detached; must override */
8973 pthread_attr_t attr;
8975 status = pthread_attr_init(&attr);
8976 if( status ) exit( status );
8978 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8979 if( status ) exit( status );
8982 #elif defined( HAVE_PTHREADS_D4 )
8983 # define ATTR pthread_attr_default
8988 /* make sure pthread_create() isn't just a stub */
8989 status = pthread_create(&t, ATTR, task, NULL);
8990 if( status ) exit( status );
8992 /* give the thread a chance to complete...
8993 * it should remain joinable and hence detachable
8997 /* make sure pthread_detach() isn't just a stub */
8998 #if HAVE_PTHREADS_D4
8999 status = pthread_detach( &t );
9001 status = pthread_detach( t );
9004 #ifdef HAVE_LINUX_THREADS
9005 pthread_kill_other_threads_np();
9013 if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9015 ol_cv_pthread_lib_lpthread_woff=yes
9017 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9020 ol_cv_pthread_lib_lpthread_woff=no
9031 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9033 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9034 ol_link_pthreads="-lpthread -Wl,-woff,85"
9035 ol_link_threads=posix
9040 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9041 if test "$ol_link_threads" = no ; then
9043 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9044 echo "configure:9045: checking for pthread link with -lpthread" >&5
9045 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9051 LIBS="-lpthread $LIBS"
9053 if test "$cross_compiling" = yes; then
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 /* pthread test headers */
9058 #include <pthread.h>
9060 #define NULL (void*)0
9063 static void *task(p)
9066 return (void *) (p == NULL);
9071 /* pthread test function */
9074 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9075 /* This system (e.g. AIX) defaults detached; must override */
9076 pthread_attr_t attr;
9078 status = pthread_attr_init(&attr);
9079 if( status ) exit( status );
9081 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9082 if( status ) exit( status );
9085 #elif defined( HAVE_PTHREADS_D4 )
9086 # define ATTR pthread_attr_default
9091 /* make sure pthread_create() isn't just a stub */
9092 status = pthread_create(&t, ATTR, task, NULL);
9093 if( status ) exit( status );
9095 /* give the thread a chance to complete...
9096 * it should remain joinable and hence detachable
9100 /* make sure pthread_detach() isn't just a stub */
9101 #if HAVE_PTHREADS_D4
9102 status = pthread_detach( &t );
9104 status = pthread_detach( t );
9107 #ifdef HAVE_LINUX_THREADS
9108 pthread_kill_other_threads_np();
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 ol_cv_pthread_lpthread=yes
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 ol_cv_pthread_lpthread=no
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 /* pthread test headers */
9130 #include <pthread.h>
9132 #define NULL (void*)0
9135 static void *task(p)
9138 return (void *) (p == NULL);
9142 int main(argc, argv)
9147 /* pthread test function */
9150 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9151 /* This system (e.g. AIX) defaults detached; must override */
9152 pthread_attr_t attr;
9154 status = pthread_attr_init(&attr);
9155 if( status ) exit( status );
9157 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9158 if( status ) exit( status );
9161 #elif defined( HAVE_PTHREADS_D4 )
9162 # define ATTR pthread_attr_default
9167 /* make sure pthread_create() isn't just a stub */
9168 status = pthread_create(&t, ATTR, task, NULL);
9169 if( status ) exit( status );
9171 /* give the thread a chance to complete...
9172 * it should remain joinable and hence detachable
9176 /* make sure pthread_detach() isn't just a stub */
9177 #if HAVE_PTHREADS_D4
9178 status = pthread_detach( &t );
9180 status = pthread_detach( t );
9183 #ifdef HAVE_LINUX_THREADS
9184 pthread_kill_other_threads_np();
9192 if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9194 ol_cv_pthread_lpthread=yes
9196 echo "configure: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9199 ol_cv_pthread_lpthread=no
9210 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9212 if test $ol_cv_pthread_lpthread = yes ; then
9213 ol_link_pthreads="-lpthread"
9214 ol_link_threads=posix
9218 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9219 if test "$ol_link_threads" = no ; then
9221 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9222 echo "configure:9223: checking for pthread link with -lc_r" >&5
9223 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9224 echo $ac_n "(cached) $ac_c" 1>&6
9231 if test "$cross_compiling" = yes; then
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9235 /* pthread test headers */
9236 #include <pthread.h>
9238 #define NULL (void*)0
9241 static void *task(p)
9244 return (void *) (p == NULL);
9249 /* pthread test function */
9252 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9253 /* This system (e.g. AIX) defaults detached; must override */
9254 pthread_attr_t attr;
9256 status = pthread_attr_init(&attr);
9257 if( status ) exit( status );
9259 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9260 if( status ) exit( status );
9263 #elif defined( HAVE_PTHREADS_D4 )
9264 # define ATTR pthread_attr_default
9269 /* make sure pthread_create() isn't just a stub */
9270 status = pthread_create(&t, ATTR, task, NULL);
9271 if( status ) exit( status );
9273 /* give the thread a chance to complete...
9274 * it should remain joinable and hence detachable
9278 /* make sure pthread_detach() isn't just a stub */
9279 #if HAVE_PTHREADS_D4
9280 status = pthread_detach( &t );
9282 status = pthread_detach( t );
9285 #ifdef HAVE_LINUX_THREADS
9286 pthread_kill_other_threads_np();
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9295 ol_cv_pthread_lc_r=yes
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9300 ol_cv_pthread_lc_r=no
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9307 /* pthread test headers */
9308 #include <pthread.h>
9310 #define NULL (void*)0
9313 static void *task(p)
9316 return (void *) (p == NULL);
9320 int main(argc, argv)
9325 /* pthread test function */
9328 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9329 /* This system (e.g. AIX) defaults detached; must override */
9330 pthread_attr_t attr;
9332 status = pthread_attr_init(&attr);
9333 if( status ) exit( status );
9335 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9336 if( status ) exit( status );
9339 #elif defined( HAVE_PTHREADS_D4 )
9340 # define ATTR pthread_attr_default
9345 /* make sure pthread_create() isn't just a stub */
9346 status = pthread_create(&t, ATTR, task, NULL);
9347 if( status ) exit( status );
9349 /* give the thread a chance to complete...
9350 * it should remain joinable and hence detachable
9354 /* make sure pthread_detach() isn't just a stub */
9355 #if HAVE_PTHREADS_D4
9356 status = pthread_detach( &t );
9358 status = pthread_detach( t );
9361 #ifdef HAVE_LINUX_THREADS
9362 pthread_kill_other_threads_np();
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9372 ol_cv_pthread_lc_r=yes
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 ol_cv_pthread_lc_r=no
9388 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9390 if test $ol_cv_pthread_lc_r = yes ; then
9391 ol_link_pthreads="-lc_r"
9392 ol_link_threads=posix
9397 # Pthread try link: -threads (ol_cv_pthread_threads)
9398 if test "$ol_link_threads" = no ; then
9400 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9401 echo "configure:9402: checking for pthread link with -threads" >&5
9402 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9408 LIBS="-threads $LIBS"
9410 if test "$cross_compiling" = yes; then
9411 cat > conftest.$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9414 /* pthread test headers */
9415 #include <pthread.h>
9417 #define NULL (void*)0
9420 static void *task(p)
9423 return (void *) (p == NULL);
9428 /* pthread test function */
9431 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9432 /* This system (e.g. AIX) defaults detached; must override */
9433 pthread_attr_t attr;
9435 status = pthread_attr_init(&attr);
9436 if( status ) exit( status );
9438 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9439 if( status ) exit( status );
9442 #elif defined( HAVE_PTHREADS_D4 )
9443 # define ATTR pthread_attr_default
9448 /* make sure pthread_create() isn't just a stub */
9449 status = pthread_create(&t, ATTR, task, NULL);
9450 if( status ) exit( status );
9452 /* give the thread a chance to complete...
9453 * it should remain joinable and hence detachable
9457 /* make sure pthread_detach() isn't just a stub */
9458 #if HAVE_PTHREADS_D4
9459 status = pthread_detach( &t );
9461 status = pthread_detach( t );
9464 #ifdef HAVE_LINUX_THREADS
9465 pthread_kill_other_threads_np();
9472 if { (eval echo configure:9473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9474 ol_cv_pthread_threads=yes
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 ol_cv_pthread_threads=no
9483 cat > conftest.$ac_ext <<EOF
9484 #line 9485 "configure"
9485 #include "confdefs.h"
9486 /* pthread test headers */
9487 #include <pthread.h>
9489 #define NULL (void*)0
9492 static void *task(p)
9495 return (void *) (p == NULL);
9499 int main(argc, argv)
9504 /* pthread test function */
9507 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9508 /* This system (e.g. AIX) defaults detached; must override */
9509 pthread_attr_t attr;
9511 status = pthread_attr_init(&attr);
9512 if( status ) exit( status );
9514 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9515 if( status ) exit( status );
9518 #elif defined( HAVE_PTHREADS_D4 )
9519 # define ATTR pthread_attr_default
9524 /* make sure pthread_create() isn't just a stub */
9525 status = pthread_create(&t, ATTR, task, NULL);
9526 if( status ) exit( status );
9528 /* give the thread a chance to complete...
9529 * it should remain joinable and hence detachable
9533 /* make sure pthread_detach() isn't just a stub */
9534 #if HAVE_PTHREADS_D4
9535 status = pthread_detach( &t );
9537 status = pthread_detach( t );
9540 #ifdef HAVE_LINUX_THREADS
9541 pthread_kill_other_threads_np();
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9551 ol_cv_pthread_threads=yes
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9556 ol_cv_pthread_threads=no
9567 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9569 if test $ol_cv_pthread_threads = yes ; then
9570 ol_link_pthreads="-threads"
9571 ol_link_threads=posix
9576 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9577 if test "$ol_link_threads" = no ; then
9578 # try -lpthreads -lmach -lexc -lc_r
9579 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9580 echo "configure:9581: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9581 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9587 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9589 if test "$cross_compiling" = yes; then
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 /* pthread test headers */
9594 #include <pthread.h>
9596 #define NULL (void*)0
9599 static void *task(p)
9602 return (void *) (p == NULL);
9607 /* pthread test function */
9610 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9611 /* This system (e.g. AIX) defaults detached; must override */
9612 pthread_attr_t attr;
9614 status = pthread_attr_init(&attr);
9615 if( status ) exit( status );
9617 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9618 if( status ) exit( status );
9621 #elif defined( HAVE_PTHREADS_D4 )
9622 # define ATTR pthread_attr_default
9627 /* make sure pthread_create() isn't just a stub */
9628 status = pthread_create(&t, ATTR, task, NULL);
9629 if( status ) exit( status );
9631 /* give the thread a chance to complete...
9632 * it should remain joinable and hence detachable
9636 /* make sure pthread_detach() isn't just a stub */
9637 #if HAVE_PTHREADS_D4
9638 status = pthread_detach( &t );
9640 status = pthread_detach( t );
9643 #ifdef HAVE_LINUX_THREADS
9644 pthread_kill_other_threads_np();
9651 if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9653 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9655 echo "configure: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9658 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9662 cat > conftest.$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 /* pthread test headers */
9666 #include <pthread.h>
9668 #define NULL (void*)0
9671 static void *task(p)
9674 return (void *) (p == NULL);
9678 int main(argc, argv)
9683 /* pthread test function */
9686 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9687 /* This system (e.g. AIX) defaults detached; must override */
9688 pthread_attr_t attr;
9690 status = pthread_attr_init(&attr);
9691 if( status ) exit( status );
9693 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9694 if( status ) exit( status );
9697 #elif defined( HAVE_PTHREADS_D4 )
9698 # define ATTR pthread_attr_default
9703 /* make sure pthread_create() isn't just a stub */
9704 status = pthread_create(&t, ATTR, task, NULL);
9705 if( status ) exit( status );
9707 /* give the thread a chance to complete...
9708 * it should remain joinable and hence detachable
9712 /* make sure pthread_detach() isn't just a stub */
9713 #if HAVE_PTHREADS_D4
9714 status = pthread_detach( &t );
9716 status = pthread_detach( t );
9719 #ifdef HAVE_LINUX_THREADS
9720 pthread_kill_other_threads_np();
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9730 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9732 echo "configure: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9735 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9746 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9748 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9749 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9750 ol_link_threads=posix
9754 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9755 if test "$ol_link_threads" = no ; then
9756 # try -lpthreads -lmach -lexc
9757 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9758 echo "configure:9759: checking for pthread link with -lpthreads -lmach -lexc" >&5
9759 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9760 echo $ac_n "(cached) $ac_c" 1>&6
9765 LIBS="-lpthreads -lmach -lexc $LIBS"
9767 if test "$cross_compiling" = yes; then
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 /* pthread test headers */
9772 #include <pthread.h>
9774 #define NULL (void*)0
9777 static void *task(p)
9780 return (void *) (p == NULL);
9785 /* pthread test function */
9788 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9789 /* This system (e.g. AIX) defaults detached; must override */
9790 pthread_attr_t attr;
9792 status = pthread_attr_init(&attr);
9793 if( status ) exit( status );
9795 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9796 if( status ) exit( status );
9799 #elif defined( HAVE_PTHREADS_D4 )
9800 # define ATTR pthread_attr_default
9805 /* make sure pthread_create() isn't just a stub */
9806 status = pthread_create(&t, ATTR, task, NULL);
9807 if( status ) exit( status );
9809 /* give the thread a chance to complete...
9810 * it should remain joinable and hence detachable
9814 /* make sure pthread_detach() isn't just a stub */
9815 #if HAVE_PTHREADS_D4
9816 status = pthread_detach( &t );
9818 status = pthread_detach( t );
9821 #ifdef HAVE_LINUX_THREADS
9822 pthread_kill_other_threads_np();
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 ol_cv_pthread_lpthreads_lmach_lexc=yes
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9836 ol_cv_pthread_lpthreads_lmach_lexc=no
9840 cat > conftest.$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 /* pthread test headers */
9844 #include <pthread.h>
9846 #define NULL (void*)0
9849 static void *task(p)
9852 return (void *) (p == NULL);
9856 int main(argc, argv)
9861 /* pthread test function */
9864 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9865 /* This system (e.g. AIX) defaults detached; must override */
9866 pthread_attr_t attr;
9868 status = pthread_attr_init(&attr);
9869 if( status ) exit( status );
9871 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9872 if( status ) exit( status );
9875 #elif defined( HAVE_PTHREADS_D4 )
9876 # define ATTR pthread_attr_default
9881 /* make sure pthread_create() isn't just a stub */
9882 status = pthread_create(&t, ATTR, task, NULL);
9883 if( status ) exit( status );
9885 /* give the thread a chance to complete...
9886 * it should remain joinable and hence detachable
9890 /* make sure pthread_detach() isn't just a stub */
9891 #if HAVE_PTHREADS_D4
9892 status = pthread_detach( &t );
9894 status = pthread_detach( t );
9897 #ifdef HAVE_LINUX_THREADS
9898 pthread_kill_other_threads_np();
9906 if { (eval echo configure:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9908 ol_cv_pthread_lpthreads_lmach_lexc=yes
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9913 ol_cv_pthread_lpthreads_lmach_lexc=no
9924 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9926 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9927 ol_link_pthreads="-lpthreads -lmach -lexc"
9928 ol_link_threads=posix
9932 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9933 if test "$ol_link_threads" = no ; then
9934 # try -lpthreads -lexc
9935 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9936 echo "configure:9937: checking for pthread link with -lpthreads -lexc" >&5
9937 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9938 echo $ac_n "(cached) $ac_c" 1>&6
9943 LIBS="-lpthreads -lexc $LIBS"
9945 if test "$cross_compiling" = yes; then
9946 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9949 /* pthread test headers */
9950 #include <pthread.h>
9952 #define NULL (void*)0
9955 static void *task(p)
9958 return (void *) (p == NULL);
9963 /* pthread test function */
9966 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9967 /* This system (e.g. AIX) defaults detached; must override */
9968 pthread_attr_t attr;
9970 status = pthread_attr_init(&attr);
9971 if( status ) exit( status );
9973 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9974 if( status ) exit( status );
9977 #elif defined( HAVE_PTHREADS_D4 )
9978 # define ATTR pthread_attr_default
9983 /* make sure pthread_create() isn't just a stub */
9984 status = pthread_create(&t, ATTR, task, NULL);
9985 if( status ) exit( status );
9987 /* give the thread a chance to complete...
9988 * it should remain joinable and hence detachable
9992 /* make sure pthread_detach() isn't just a stub */
9993 #if HAVE_PTHREADS_D4
9994 status = pthread_detach( &t );
9996 status = pthread_detach( t );
9999 #ifdef HAVE_LINUX_THREADS
10000 pthread_kill_other_threads_np();
10007 if { (eval echo configure:10008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10009 ol_cv_pthread_lpthreads_lexc=yes
10011 echo "configure: failed program was:" >&5
10012 cat conftest.$ac_ext >&5
10014 ol_cv_pthread_lpthreads_lexc=no
10018 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure"
10020 #include "confdefs.h"
10021 /* pthread test headers */
10022 #include <pthread.h>
10024 #define NULL (void*)0
10027 static void *task(p)
10030 return (void *) (p == NULL);
10034 int main(argc, argv)
10039 /* pthread test function */
10042 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10043 /* This system (e.g. AIX) defaults detached; must override */
10044 pthread_attr_t attr;
10046 status = pthread_attr_init(&attr);
10047 if( status ) exit( status );
10049 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10050 if( status ) exit( status );
10052 # define ATTR &attr
10053 #elif defined( HAVE_PTHREADS_D4 )
10054 # define ATTR pthread_attr_default
10059 /* make sure pthread_create() isn't just a stub */
10060 status = pthread_create(&t, ATTR, task, NULL);
10061 if( status ) exit( status );
10063 /* give the thread a chance to complete...
10064 * it should remain joinable and hence detachable
10068 /* make sure pthread_detach() isn't just a stub */
10069 #if HAVE_PTHREADS_D4
10070 status = pthread_detach( &t );
10072 status = pthread_detach( t );
10075 #ifdef HAVE_LINUX_THREADS
10076 pthread_kill_other_threads_np();
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10086 ol_cv_pthread_lpthreads_lexc=yes
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 ol_cv_pthread_lpthreads_lexc=no
10102 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10104 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10105 ol_link_pthreads="-lpthreads -lexc"
10106 ol_link_threads=posix
10111 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10112 if test "$ol_link_threads" = no ; then
10114 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10115 echo "configure:10116: checking for pthread link with -lpthreads" >&5
10116 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10122 LIBS="-lpthreads $LIBS"
10124 if test "$cross_compiling" = yes; then
10125 cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure"
10127 #include "confdefs.h"
10128 /* pthread test headers */
10129 #include <pthread.h>
10131 #define NULL (void*)0
10134 static void *task(p)
10137 return (void *) (p == NULL);
10142 /* pthread test function */
10145 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10146 /* This system (e.g. AIX) defaults detached; must override */
10147 pthread_attr_t attr;
10149 status = pthread_attr_init(&attr);
10150 if( status ) exit( status );
10152 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10153 if( status ) exit( status );
10155 # define ATTR &attr
10156 #elif defined( HAVE_PTHREADS_D4 )
10157 # define ATTR pthread_attr_default
10162 /* make sure pthread_create() isn't just a stub */
10163 status = pthread_create(&t, ATTR, task, NULL);
10164 if( status ) exit( status );
10166 /* give the thread a chance to complete...
10167 * it should remain joinable and hence detachable
10171 /* make sure pthread_detach() isn't just a stub */
10172 #if HAVE_PTHREADS_D4
10173 status = pthread_detach( &t );
10175 status = pthread_detach( t );
10178 #ifdef HAVE_LINUX_THREADS
10179 pthread_kill_other_threads_np();
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10188 ol_cv_pthread_lib_lpthreads=yes
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10193 ol_cv_pthread_lib_lpthreads=no
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 /* pthread test headers */
10201 #include <pthread.h>
10203 #define NULL (void*)0
10206 static void *task(p)
10209 return (void *) (p == NULL);
10213 int main(argc, argv)
10218 /* pthread test function */
10221 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10222 /* This system (e.g. AIX) defaults detached; must override */
10223 pthread_attr_t attr;
10225 status = pthread_attr_init(&attr);
10226 if( status ) exit( status );
10228 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10229 if( status ) exit( status );
10231 # define ATTR &attr
10232 #elif defined( HAVE_PTHREADS_D4 )
10233 # define ATTR pthread_attr_default
10238 /* make sure pthread_create() isn't just a stub */
10239 status = pthread_create(&t, ATTR, task, NULL);
10240 if( status ) exit( status );
10242 /* give the thread a chance to complete...
10243 * it should remain joinable and hence detachable
10247 /* make sure pthread_detach() isn't just a stub */
10248 #if HAVE_PTHREADS_D4
10249 status = pthread_detach( &t );
10251 status = pthread_detach( t );
10254 #ifdef HAVE_LINUX_THREADS
10255 pthread_kill_other_threads_np();
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10265 ol_cv_pthread_lib_lpthreads=yes
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10270 ol_cv_pthread_lib_lpthreads=no
10281 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10283 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10284 ol_link_pthreads="-lpthreads"
10285 ol_link_threads=posix
10290 if test $ol_link_threads != no ; then
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_PTHREADS 1
10296 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10298 save_CPPFLAGS="$CPPFLAGS"
10300 LIBS="$LTHREAD_LIBS $LIBS"
10302 for ac_func in sched_yield pthread_yield
10304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10305 echo "configure:10306: checking for $ac_func" >&5
10306 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 /* System header to define __stub macros and hopefully few prototypes,
10313 which can conflict with char $ac_func(); below. */
10314 #include <assert.h>
10315 /* Override any gcc2 internal prototype to avoid an error. */
10316 /* We use char because int might match the return type of a gcc2
10317 builtin and then its argument prototype would still apply. */
10323 /* The GNU C library defines this for functions which it implements
10324 to always fail with ENOSYS. Some functions are actually named
10325 something starting with __ and the normal name is an alias. */
10326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10334 if { (eval echo configure:10335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10336 eval "ac_cv_func_$ac_func=yes"
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10341 eval "ac_cv_func_$ac_func=no"
10346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10347 echo "$ac_t""yes" 1>&6
10348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10349 cat >> confdefs.h <<EOF
10350 #define $ac_tr_func 1
10354 echo "$ac_t""no" 1>&6
10359 if test $ac_cv_func_sched_yield = no -a \
10360 $ac_cv_func_pthread_yield = no ; then
10361 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10362 echo "configure:10363: checking for sched_yield in -lrt" >&5
10363 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10367 ac_save_LIBS="$LIBS"
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 /* Override any gcc2 internal prototype to avoid an error. */
10373 /* We use char because int might match the return type of a gcc2
10374 builtin and then its argument prototype would still apply. */
10375 char sched_yield();
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 eval "ac_cv_lib_$ac_lib_var=yes"
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 eval "ac_cv_lib_$ac_lib_var=no"
10391 LIBS="$ac_save_LIBS"
10394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10396 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10397 cat >> confdefs.h <<\EOF
10398 #define HAVE_SCHED_YIELD 1
10401 ac_cv_func_sched_yield=yes
10403 echo "$ac_t""no" 1>&6
10404 ac_cv_func_sched_yield=no
10408 if test $ac_cv_func_sched_yield = no -a \
10409 $ac_cv_func_pthread_yield = no ; then
10410 for ac_func in thr_yield
10412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10413 echo "configure:10414: checking for $ac_func" >&5
10414 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10415 echo $ac_n "(cached) $ac_c" 1>&6
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 /* System header to define __stub macros and hopefully few prototypes,
10421 which can conflict with char $ac_func(); below. */
10422 #include <assert.h>
10423 /* Override any gcc2 internal prototype to avoid an error. */
10424 /* We use char because int might match the return type of a gcc2
10425 builtin and then its argument prototype would still apply. */
10431 /* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10442 if { (eval echo configure:10443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10444 eval "ac_cv_func_$ac_func=yes"
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10449 eval "ac_cv_func_$ac_func=no"
10454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10455 echo "$ac_t""yes" 1>&6
10456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10457 cat >> confdefs.h <<EOF
10458 #define $ac_tr_func 1
10462 echo "$ac_t""no" 1>&6
10467 if test $ac_cv_func_sched_yield = no -a \
10468 $ac_cv_func_pthread_yield = no -a \
10469 "$ac_cv_func_thr_yield" = no ; then
10470 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10473 for ac_func in pthread_kill pthread_rwlock_destroy
10475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10476 echo "configure:10477: checking for $ac_func" >&5
10477 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10483 /* System header to define __stub macros and hopefully few prototypes,
10484 which can conflict with char $ac_func(); below. */
10485 #include <assert.h>
10486 /* Override any gcc2 internal prototype to avoid an error. */
10487 /* We use char because int might match the return type of a gcc2
10488 builtin and then its argument prototype would still apply. */
10494 /* The GNU C library defines this for functions which it implements
10495 to always fail with ENOSYS. Some functions are actually named
10496 something starting with __ and the normal name is an alias. */
10497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10507 eval "ac_cv_func_$ac_func=yes"
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 eval "ac_cv_func_$ac_func=no"
10517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10518 echo "$ac_t""yes" 1>&6
10519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10520 cat >> confdefs.h <<EOF
10521 #define $ac_tr_func 1
10525 echo "$ac_t""no" 1>&6
10530 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10531 echo "configure:10532: checking for pthread_detach with <pthread.h>" >&5
10532 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10536 cat > conftest.$ac_ext <<EOF
10537 #line 10538 "configure"
10538 #include "confdefs.h"
10540 #include <pthread.h>
10542 #define NULL (void*)0
10546 pthread_detach(NULL);
10549 if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10551 ol_cv_func_pthread_detach=yes
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10556 ol_cv_func_pthread_detach=no
10562 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10564 if test $ol_cv_func_pthread_detach = no ; then
10565 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10568 cat >> confdefs.h <<\EOF
10569 #define HAVE_PTHREAD_DETACH 1
10574 pthread_setconcurrency \
10575 pthread_getconcurrency \
10576 thr_setconcurrency \
10577 thr_getconcurrency \
10580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10581 echo "configure:10582: checking for $ac_func" >&5
10582 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10583 echo $ac_n "(cached) $ac_c" 1>&6
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 /* System header to define __stub macros and hopefully few prototypes,
10589 which can conflict with char $ac_func(); below. */
10590 #include <assert.h>
10591 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10599 /* The GNU C library defines this for functions which it implements
10600 to always fail with ENOSYS. Some functions are actually named
10601 something starting with __ and the normal name is an alias. */
10602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10612 eval "ac_cv_func_$ac_func=yes"
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10617 eval "ac_cv_func_$ac_func=no"
10622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10623 echo "$ac_t""yes" 1>&6
10624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10625 cat >> confdefs.h <<EOF
10626 #define $ac_tr_func 1
10630 echo "$ac_t""no" 1>&6
10636 for ac_func in pthread_kill_other_threads_np
10638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10639 echo "configure:10640: checking for $ac_func" >&5
10640 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10646 /* System header to define __stub macros and hopefully few prototypes,
10647 which can conflict with char $ac_func(); below. */
10648 #include <assert.h>
10649 /* Override any gcc2 internal prototype to avoid an error. */
10650 /* We use char because int might match the return type of a gcc2
10651 builtin and then its argument prototype would still apply. */
10657 /* The GNU C library defines this for functions which it implements
10658 to always fail with ENOSYS. Some functions are actually named
10659 something starting with __ and the normal name is an alias. */
10660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10670 eval "ac_cv_func_$ac_func=yes"
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 eval "ac_cv_func_$ac_func=no"
10680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10681 echo "$ac_t""yes" 1>&6
10682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10683 cat >> confdefs.h <<EOF
10684 #define $ac_tr_func 1
10688 echo "$ac_t""no" 1>&6
10692 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10693 echo "configure:10694: checking for LinuxThreads implementation" >&5
10694 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10695 echo $ac_n "(cached) $ac_c" 1>&6
10697 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10700 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10705 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10706 echo "configure:10707: checking for LinuxThreads consistency" >&5
10707 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10711 if test $ol_cv_header_linux_threads = yes -a \
10712 $ol_cv_sys_linux_threads = yes; then
10713 ol_cv_linux_threads=yes
10714 elif test $ol_cv_header_linux_threads = no -a \
10715 $ol_cv_sys_linux_threads = no; then
10716 ol_cv_linux_threads=no
10718 ol_cv_linux_threads=error
10723 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10726 if test $ol_cv_linux_threads = error; then
10727 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10730 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10731 echo "configure:10732: checking if pthread_create() works" >&5
10732 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10733 echo $ac_n "(cached) $ac_c" 1>&6
10736 if test "$cross_compiling" = yes; then
10737 ol_cv_pthread_create_works=yes
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 /* pthread test headers */
10743 #include <pthread.h>
10745 #define NULL (void*)0
10748 static void *task(p)
10751 return (void *) (p == NULL);
10755 int main(argc, argv)
10760 /* pthread test function */
10763 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10764 /* This system (e.g. AIX) defaults detached; must override */
10765 pthread_attr_t attr;
10767 status = pthread_attr_init(&attr);
10768 if( status ) exit( status );
10770 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10771 if( status ) exit( status );
10773 # define ATTR &attr
10774 #elif defined( HAVE_PTHREADS_D4 )
10775 # define ATTR pthread_attr_default
10780 /* make sure pthread_create() isn't just a stub */
10781 status = pthread_create(&t, ATTR, task, NULL);
10782 if( status ) exit( status );
10784 /* give the thread a chance to complete...
10785 * it should remain joinable and hence detachable
10789 /* make sure pthread_detach() isn't just a stub */
10790 #if HAVE_PTHREADS_D4
10791 status = pthread_detach( &t );
10793 status = pthread_detach( t );
10796 #ifdef HAVE_LINUX_THREADS
10797 pthread_kill_other_threads_np();
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10807 ol_cv_pthread_create_works=yes
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10812 ol_cv_pthread_create_works=no
10819 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10821 if test $ol_cv_pthread_create_works = no ; then
10822 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10825 if test $ol_with_yielding_select = auto ; then
10826 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10827 echo "configure:10828: checking if select yields when using pthreads" >&5
10828 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10832 if test "$cross_compiling" = yes; then
10833 ol_cv_pthread_select_yields=cross
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10839 #include <sys/types.h>
10840 #include <sys/time.h>
10841 #include <unistd.h>
10842 #include <pthread.h>
10844 #define NULL (void*) 0
10847 static int fildes[2];
10849 static void *task(p)
10861 FD_SET(fildes[0], &rfds);
10863 /* we're not interested in any fds */
10864 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10871 exit(0); /* if we exit here, the select blocked the whole process */
10874 int main(argc, argv)
10880 /* create a pipe to select */
10881 if(pipe(&fildes[0])) {
10886 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10887 (void) pthread_setconcurrency(2);
10889 #ifdef HAVE_THR_SETCONCURRENCY
10890 /* Set Solaris LWP concurrency to 2 */
10891 thr_setconcurrency(2);
10895 #if HAVE_PTHREADS_D4
10896 pthread_create(&t, pthread_attr_default, task, NULL);
10898 pthread_create(&t, NULL, task, NULL);
10901 #if HAVE_SCHED_YIELD
10902 sched_yield(); /* make sure task runs first */
10904 #ifdef HAVE_PTHREAD_YIELD
10905 pthread_yield(); /* make sure task runs first */
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10914 ol_cv_pthread_select_yields=no
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 ol_cv_pthread_select_yields=yes
10926 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10928 if test $ol_cv_pthread_select_yields = cross ; then
10929 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10932 if test $ol_cv_pthread_select_yields = yes ; then
10933 ol_with_yielding_select=yes
10937 CPPFLAGS="$save_CPPFLAGS"
10940 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10944 if test $ol_with_threads = posix ; then
10945 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10949 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10950 -o $ol_with_threads = mach ; then
10952 for ac_hdr in mach/cthreads.h
10954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10956 echo "configure:10957: checking for $ac_hdr" >&5
10957 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10966 { (eval echo configure:10967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10968 if test -z "$ac_err"; then
10970 eval "ac_cv_header_$ac_safe=yes"
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10976 eval "ac_cv_header_$ac_safe=no"
10980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10981 echo "$ac_t""yes" 1>&6
10982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10983 cat >> confdefs.h <<EOF
10984 #define $ac_tr_hdr 1
10988 echo "$ac_t""no" 1>&6
10992 if test $ac_cv_header_mach_cthreads_h = yes ; then
10993 ol_with_threads=found
10995 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10996 echo "configure:10997: checking for cthread_fork" >&5
10997 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes,
11004 which can conflict with char cthread_fork(); below. */
11005 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error. */
11007 /* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11009 char cthread_fork();
11014 /* The GNU C library defines this for functions which it implements
11015 to always fail with ENOSYS. Some functions are actually named
11016 something starting with __ and the normal name is an alias. */
11017 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11025 if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11027 eval "ac_cv_func_cthread_fork=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_func_cthread_fork=no"
11037 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11038 echo "$ac_t""yes" 1>&6
11039 ol_link_threads=yes
11041 echo "$ac_t""no" 1>&6
11045 if test $ol_link_threads = no ; then
11046 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11047 echo "configure:11048: checking for cthread_fork with -all_load" >&5
11048 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11049 echo $ac_n "(cached) $ac_c" 1>&6
11053 LIBS="-all_load $LIBS"
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11056 "configure"
11056 #include "confdefs.h"
11057 #include <mach/cthreads.h>
11060 cthread_fork((void *)0, (void *)0);
11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11066 ol_cv_cthread_all_load=yes
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11071 ol_cv_cthread_all_load=no
11078 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11080 if test $ol_cv_cthread_all_load = yes ; then
11081 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11082 ol_link_threads=mach
11086 if test $ol_link_threads != no ; then
11087 : check for cthread specific functionality here
11088 cat >> confdefs.h <<\EOF
11089 #define HAVE_MACH_CTHREADS 1
11093 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11097 if test $ol_with_threads = mach ; then
11098 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11102 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11103 -o $ol_with_threads = pth ; then
11105 for ac_hdr in pth.h
11107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11109 echo "configure:11110: checking for $ac_hdr" >&5
11110 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11111 echo $ac_n "(cached) $ac_c" 1>&6
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11119 { (eval echo configure:11120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11121 if test -z "$ac_err"; then
11123 eval "ac_cv_header_$ac_safe=yes"
11126 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11129 eval "ac_cv_header_$ac_safe=no"
11133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11134 echo "$ac_t""yes" 1>&6
11135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11136 cat >> confdefs.h <<EOF
11137 #define $ac_tr_hdr 1
11141 echo "$ac_t""no" 1>&6
11146 if test $ac_cv_header_pth_h = yes ; then
11147 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11148 echo "configure:11149: checking for pth_version in -lpth" >&5
11149 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11151 echo $ac_n "(cached) $ac_c" 1>&6
11153 ac_save_LIBS="$LIBS"
11155 cat > conftest.$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11158 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char pth_version();
11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11169 eval "ac_cv_lib_$ac_lib_var=yes"
11171 echo "configure: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 eval "ac_cv_lib_$ac_lib_var=no"
11177 LIBS="$ac_save_LIBS"
11180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11181 echo "$ac_t""yes" 1>&6
11184 echo "$ac_t""no" 1>&6
11189 if test $have_pth = yes ; then
11190 cat >> confdefs.h <<\EOF
11191 #define HAVE_GNU_PTH 1
11194 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11195 ol_link_threads=pth
11197 if test $ol_with_yielding_select = auto ; then
11198 ol_with_yielding_select=yes
11204 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11205 -o $ol_with_threads = lwp ; then
11207 for ac_hdr in thread.h synch.h
11209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11211 echo "configure:11212: checking for $ac_hdr" >&5
11212 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11213 echo $ac_n "(cached) $ac_c" 1>&6
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11221 { (eval echo configure:11222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11223 if test -z "$ac_err"; then
11225 eval "ac_cv_header_$ac_safe=yes"
11228 echo "configure: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11231 eval "ac_cv_header_$ac_safe=no"
11235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11238 cat >> confdefs.h <<EOF
11239 #define $ac_tr_hdr 1
11243 echo "$ac_t""no" 1>&6
11247 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11248 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11249 echo "configure:11250: checking for thr_create in -lthread" >&5
11250 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11251 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11254 ac_save_LIBS="$LIBS"
11255 LIBS="-lthread $LIBS"
11256 cat > conftest.$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 /* Override any gcc2 internal prototype to avoid an error. */
11260 /* We use char because int might match the return type of a gcc2
11261 builtin and then its argument prototype would still apply. */
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11270 eval "ac_cv_lib_$ac_lib_var=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 eval "ac_cv_lib_$ac_lib_var=no"
11278 LIBS="$ac_save_LIBS"
11281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11282 echo "$ac_t""yes" 1>&6
11285 echo "$ac_t""no" 1>&6
11290 if test $have_thr = yes ; then
11291 cat >> confdefs.h <<\EOF
11295 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11296 ol_link_threads=thr
11298 if test $ol_with_yielding_select = auto ; then
11299 ol_with_yielding_select=yes
11303 thr_setconcurrency \
11304 thr_getconcurrency \
11307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11308 echo "configure:11309: checking for $ac_func" >&5
11309 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11310 echo $ac_n "(cached) $ac_c" 1>&6
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 /* System header to define __stub macros and hopefully few prototypes,
11316 which can conflict with char $ac_func(); below. */
11317 #include <assert.h>
11318 /* Override any gcc2 internal prototype to avoid an error. */
11319 /* We use char because int might match the return type of a gcc2
11320 builtin and then its argument prototype would still apply. */
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11337 if { (eval echo configure:11338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11339 eval "ac_cv_func_$ac_func=yes"
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 eval "ac_cv_func_$ac_func=no"
11349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11350 echo "$ac_t""yes" 1>&6
11351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11352 cat >> confdefs.h <<EOF
11353 #define $ac_tr_func 1
11357 echo "$ac_t""no" 1>&6
11364 for ac_hdr in lwp/lwp.h
11366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11368 echo "configure:11369: checking for $ac_hdr" >&5
11369 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11370 echo $ac_n "(cached) $ac_c" 1>&6
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11378 { (eval echo configure:11379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11380 if test -z "$ac_err"; then
11382 eval "ac_cv_header_$ac_safe=yes"
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11388 eval "ac_cv_header_$ac_safe=no"
11392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11393 echo "$ac_t""yes" 1>&6
11394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11395 cat >> confdefs.h <<EOF
11396 #define $ac_tr_hdr 1
11400 echo "$ac_t""no" 1>&6
11404 if test $ac_cv_header_lwp_lwp_h = yes ; then
11405 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11406 echo "configure:11407: checking for lwp_create in -llwp" >&5
11407 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11408 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11411 ac_save_LIBS="$LIBS"
11413 cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11416 /* Override any gcc2 internal prototype to avoid an error. */
11417 /* We use char because int might match the return type of a gcc2
11418 builtin and then its argument prototype would still apply. */
11425 if { (eval echo configure:11426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11427 eval "ac_cv_lib_$ac_lib_var=yes"
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11432 eval "ac_cv_lib_$ac_lib_var=no"
11435 LIBS="$ac_save_LIBS"
11438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11439 echo "$ac_t""yes" 1>&6
11442 echo "$ac_t""no" 1>&6
11447 if test $have_lwp = yes ; then
11448 cat >> confdefs.h <<\EOF
11452 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11453 ol_link_threads=lwp
11455 if test $ol_with_yielding_select = auto ; then
11456 ol_with_yielding_select=no
11462 if test $ol_with_yielding_select = yes ; then
11463 cat >> confdefs.h <<\EOF
11464 #define HAVE_YIELDING_SELECT 1
11469 if test $ol_with_threads = manual ; then
11470 ol_link_threads=yes
11472 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11474 for ac_hdr in pthread.h sched.h
11476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11478 echo "configure:11479: checking for $ac_hdr" >&5
11479 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11482 cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11488 { (eval echo configure:11489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11490 if test -z "$ac_err"; then
11492 eval "ac_cv_header_$ac_safe=yes"
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11498 eval "ac_cv_header_$ac_safe=no"
11502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11503 echo "$ac_t""yes" 1>&6
11504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11505 cat >> confdefs.h <<EOF
11506 #define $ac_tr_hdr 1
11510 echo "$ac_t""no" 1>&6
11514 for ac_func in sched_yield pthread_yield
11516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11517 echo "configure:11518: checking for $ac_func" >&5
11518 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 /* System header to define __stub macros and hopefully few prototypes,
11525 which can conflict with char $ac_func(); below. */
11526 #include <assert.h>
11527 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11535 /* The GNU C library defines this for functions which it implements
11536 to always fail with ENOSYS. Some functions are actually named
11537 something starting with __ and the normal name is an alias. */
11538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11546 if { (eval echo configure:11547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11548 eval "ac_cv_func_$ac_func=yes"
11550 echo "configure: failed program was:" >&5
11551 cat conftest.$ac_ext >&5
11553 eval "ac_cv_func_$ac_func=no"
11558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11559 echo "$ac_t""yes" 1>&6
11560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11561 cat >> confdefs.h <<EOF
11562 #define $ac_tr_func 1
11566 echo "$ac_t""no" 1>&6
11571 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11572 echo "configure:11573: checking for LinuxThreads pthread.h" >&5
11573 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11574 echo $ac_n "(cached) $ac_c" 1>&6
11576 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11579 #include <pthread.h>
11581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11582 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11584 ol_cv_header_linux_threads=yes
11587 ol_cv_header_linux_threads=no
11594 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11595 if test $ol_cv_header_linux_threads = yes; then
11596 cat >> confdefs.h <<\EOF
11597 #define HAVE_LINUX_THREADS 1
11603 for ac_hdr in mach/cthreads.h
11605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11607 echo "configure:11608: checking for $ac_hdr" >&5
11608 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11611 cat > conftest.$ac_ext <<EOF
11612 #line 11613 "configure"
11613 #include "confdefs.h"
11616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11617 { (eval echo configure:11618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11619 if test -z "$ac_err"; then
11621 eval "ac_cv_header_$ac_safe=yes"
11624 echo "configure: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11627 eval "ac_cv_header_$ac_safe=no"
11631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11632 echo "$ac_t""yes" 1>&6
11633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11634 cat >> confdefs.h <<EOF
11635 #define $ac_tr_hdr 1
11639 echo "$ac_t""no" 1>&6
11643 for ac_hdr in lwp/lwp.h
11645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11647 echo "configure:11648: checking for $ac_hdr" >&5
11648 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11651 cat > conftest.$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11657 { (eval echo configure:11658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11659 if test -z "$ac_err"; then
11661 eval "ac_cv_header_$ac_safe=yes"
11664 echo "configure: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11667 eval "ac_cv_header_$ac_safe=no"
11671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11672 echo "$ac_t""yes" 1>&6
11673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11674 cat >> confdefs.h <<EOF
11675 #define $ac_tr_hdr 1
11679 echo "$ac_t""no" 1>&6
11683 for ac_hdr in thread.h synch.h
11685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11687 echo "configure:11688: checking for $ac_hdr" >&5
11688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11691 cat > conftest.$ac_ext <<EOF
11692 #line 11693 "configure"
11693 #include "confdefs.h"
11696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11697 { (eval echo configure:11698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11699 if test -z "$ac_err"; then
11701 eval "ac_cv_header_$ac_safe=yes"
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11707 eval "ac_cv_header_$ac_safe=no"
11711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11712 echo "$ac_t""yes" 1>&6
11713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11714 cat >> confdefs.h <<EOF
11715 #define $ac_tr_hdr 1
11719 echo "$ac_t""no" 1>&6
11725 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11726 cat >> confdefs.h <<\EOF
11727 #define REENTRANT 1
11730 cat >> confdefs.h <<\EOF
11731 #define _REENTRANT 1
11734 cat >> confdefs.h <<\EOF
11735 #define THREAD_SAFE 1
11738 cat >> confdefs.h <<\EOF
11739 #define _THREAD_SAFE 1
11742 cat >> confdefs.h <<\EOF
11743 #define THREADSAFE 1
11746 cat >> confdefs.h <<\EOF
11747 #define _THREADSAFE 1
11750 cat >> confdefs.h <<\EOF
11751 #define _SGI_MP_SOURCE 1
11755 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11756 echo "configure:11757: checking for thread specific errno" >&5
11757 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11758 echo $ac_n "(cached) $ac_c" 1>&6
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11763 "configure"
11763 #include "confdefs.h"
11769 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11771 ol_cv_errno_thread_specific=yes
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11776 ol_cv_errno_thread_specific=no
11782 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11784 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11785 echo "configure:11786: checking for thread specific h_errno" >&5
11786 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11787 echo $ac_n "(cached) $ac_c" 1>&6
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11798 if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11800 ol_cv_h_errno_thread_specific=yes
11802 echo "configure: failed program was:" >&5
11803 cat conftest.$ac_ext >&5
11805 ol_cv_h_errno_thread_specific=no
11811 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11813 if test $ol_cv_errno_thread_specific != yes \
11814 -o $ol_cv_h_errno_thread_specific != yes ; then
11815 LIBS="$LTHREAD_LIBS $LIBS"
11821 if test $ol_link_threads = no ; then
11822 if test $ol_with_threads = yes ; then
11823 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11826 if test $ol_with_threads = auto ; then
11827 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11831 cat >> confdefs.h <<\EOF
11832 #define NO_THREADS 1
11838 if test $ol_link_threads != no ; then
11839 cat >> confdefs.h <<\EOF
11840 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11847 if test $ol_with_ldbm_api = auto \
11848 -o $ol_with_ldbm_api = berkeley \
11849 -o $ol_with_ldbm_api = bcompat ; then
11851 if test $ol_with_ldbm_api = bcompat; then \
11852 ol_cv_berkeley_db=no
11853 for ac_hdr in db_185.h db.h
11855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11857 echo "configure:11858: checking for $ac_hdr" >&5
11858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11859 echo $ac_n "(cached) $ac_c" 1>&6
11861 cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11867 { (eval echo configure:11868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11869 if test -z "$ac_err"; then
11871 eval "ac_cv_header_$ac_safe=yes"
11874 echo "configure: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11877 eval "ac_cv_header_$ac_safe=no"
11881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11882 echo "$ac_t""yes" 1>&6
11883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11884 cat >> confdefs.h <<EOF
11885 #define $ac_tr_hdr 1
11889 echo "$ac_t""no" 1>&6
11893 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11894 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11895 echo "configure:11896: checking if Berkeley DB header compatibility" >&5
11896 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11897 echo $ac_n "(cached) $ac_c" 1>&6
11900 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure"
11902 #include "confdefs.h"
11905 # include <db_185.h>
11910 /* this check could be improved */
11911 #ifndef DB_VERSION_MAJOR
11912 # define DB_VERSION_MAJOR 1
11915 #if DB_VERSION_MAJOR == 1
11920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11921 egrep "__db_version_1" >/dev/null 2>&1; then
11923 ol_cv_header_db1=yes
11926 ol_cv_header_db1=no
11932 echo "$ac_t""$ol_cv_header_db1" 1>&6
11934 if test ol_cv_header_db1=yes ; then
11936 if test $ol_cv_lib_db = no ; then
11937 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11938 echo "configure:11939: checking for Berkeley DB link (default)" >&5
11939 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11945 LIBS="$ol_DB_LIB $LIBS"
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11951 #ifdef HAVE_DB_185_H
11952 # include <db_185.h>
11957 #ifndef DB_VERSION_MAJOR
11958 # define DB_VERSION_MAJOR 1
11962 #define NULL ((void*)0)
11967 #if DB_VERSION_MAJOR > 2
11968 db_env_create( NULL, 0 );
11969 #elif DB_VERSION_MAJOR > 1
11970 db_appexit( NULL );
11972 (void) dbopen( NULL, 0, 0, 0, NULL);
11977 if { (eval echo configure:11978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11981 echo "configure: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11992 echo "$ac_t""$ol_cv_db_none" 1>&6
11994 if test $ol_cv_db_none = yes ; then
11999 if test $ol_cv_lib_db = no ; then
12000 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12001 echo "configure:12002: checking for Berkeley DB link (-ldb)" >&5
12002 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12008 LIBS="$ol_DB_LIB $LIBS"
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12014 #ifdef HAVE_DB_185_H
12015 # include <db_185.h>
12020 #ifndef DB_VERSION_MAJOR
12021 # define DB_VERSION_MAJOR 1
12025 #define NULL ((void*)0)
12030 #if DB_VERSION_MAJOR > 2
12031 db_env_create( NULL, 0 );
12032 #elif DB_VERSION_MAJOR > 1
12033 db_appexit( NULL );
12035 (void) dbopen( NULL, 0, 0, 0, NULL);
12040 if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12055 echo "$ac_t""$ol_cv_db_db" 1>&6
12057 if test $ol_cv_db_db = yes ; then
12062 if test $ol_cv_lib_db = no ; then
12063 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12064 echo "configure:12065: checking for Berkeley DB link (-ldb3)" >&5
12065 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12066 echo $ac_n "(cached) $ac_c" 1>&6
12071 LIBS="$ol_DB_LIB $LIBS"
12073 cat > conftest.$ac_ext <<EOF
12074 #line 12075 "configure"
12075 #include "confdefs.h"
12077 #ifdef HAVE_DB_185_H
12078 # include <db_185.h>
12083 #ifndef DB_VERSION_MAJOR
12084 # define DB_VERSION_MAJOR 1
12088 #define NULL ((void*)0)
12093 #if DB_VERSION_MAJOR > 2
12094 db_env_create( NULL, 0 );
12095 #elif DB_VERSION_MAJOR > 1
12096 db_appexit( NULL );
12098 (void) dbopen( NULL, 0, 0, 0, NULL);
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12118 echo "$ac_t""$ol_cv_db_db3" 1>&6
12120 if test $ol_cv_db_db3 = yes ; then
12125 if test $ol_cv_lib_db = no ; then
12126 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12127 echo "configure:12128: checking for Berkeley DB link (-ldb2)" >&5
12128 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12134 LIBS="$ol_DB_LIB $LIBS"
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12138 "configure"
12138 #include "confdefs.h"
12140 #ifdef HAVE_DB_185_H
12141 # include <db_185.h>
12146 #ifndef DB_VERSION_MAJOR
12147 # define DB_VERSION_MAJOR 1
12151 #define NULL ((void*)0)
12156 #if DB_VERSION_MAJOR > 2
12157 db_env_create( NULL, 0 );
12158 #elif DB_VERSION_MAJOR > 1
12159 db_appexit( NULL );
12161 (void) dbopen( NULL, 0, 0, 0, NULL);
12166 if { (eval echo configure:12167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 echo "configure: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12181 echo "$ac_t""$ol_cv_db_db2" 1>&6
12183 if test $ol_cv_db_db2 = yes ; then
12188 if test $ol_cv_lib_db = no ; then
12189 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12190 echo "configure:12191: checking for Berkeley DB link (-ldb1)" >&5
12191 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12197 LIBS="$ol_DB_LIB $LIBS"
12199 cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12203 #ifdef HAVE_DB_185_H
12204 # include <db_185.h>
12209 #ifndef DB_VERSION_MAJOR
12210 # define DB_VERSION_MAJOR 1
12214 #define NULL ((void*)0)
12219 #if DB_VERSION_MAJOR > 2
12220 db_env_create( NULL, 0 );
12221 #elif DB_VERSION_MAJOR > 1
12222 db_appexit( NULL );
12224 (void) dbopen( NULL, 0, 0, 0, NULL);
12229 if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12233 echo "configure: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12244 echo "$ac_t""$ol_cv_db_db1" 1>&6
12246 if test $ol_cv_db_db1 = yes ; then
12252 if test "$ol_cv_lib_db" != no ; then
12253 ol_cv_berkeley_db=yes
12259 ol_cv_berkeley_db=no
12262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12264 echo "configure:12265: checking for $ac_hdr" >&5
12265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12268 cat > conftest.$ac_ext <<EOF
12269 #line 12270 "configure"
12270 #include "confdefs.h"
12273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12274 { (eval echo configure:12275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12276 if test -z "$ac_err"; then
12278 eval "ac_cv_header_$ac_safe=yes"
12281 echo "configure: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12284 eval "ac_cv_header_$ac_safe=no"
12288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12289 echo "$ac_t""yes" 1>&6
12290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12291 cat >> confdefs.h <<EOF
12292 #define $ac_tr_hdr 1
12296 echo "$ac_t""no" 1>&6
12300 if test $ac_cv_header_db_h = yes; then
12302 if test $ol_cv_lib_db = no ; then
12303 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12304 echo "configure:12305: checking for Berkeley DB link (default)" >&5
12305 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12306 echo $ac_n "(cached) $ac_c" 1>&6
12311 LIBS="$ol_DB_LIB $LIBS"
12313 cat > conftest.$ac_ext <<EOF
12314 #line 12315 "configure"
12315 #include "confdefs.h"
12317 #ifdef HAVE_DB_185_H
12318 # include <db_185.h>
12323 #ifndef DB_VERSION_MAJOR
12324 # define DB_VERSION_MAJOR 1
12328 #define NULL ((void*)0)
12333 #if DB_VERSION_MAJOR > 2
12334 db_env_create( NULL, 0 );
12335 #elif DB_VERSION_MAJOR > 1
12336 db_appexit( NULL );
12338 (void) dbopen( NULL, 0, 0, 0, NULL);
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12358 echo "$ac_t""$ol_cv_db_none" 1>&6
12360 if test $ol_cv_db_none = yes ; then
12365 if test $ol_cv_lib_db = no ; then
12366 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12367 echo "configure:12368: checking for Berkeley DB link (-ldb)" >&5
12368 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12369 echo $ac_n "(cached) $ac_c" 1>&6
12374 LIBS="$ol_DB_LIB $LIBS"
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12380 #ifdef HAVE_DB_185_H
12381 # include <db_185.h>
12386 #ifndef DB_VERSION_MAJOR
12387 # define DB_VERSION_MAJOR 1
12391 #define NULL ((void*)0)
12396 #if DB_VERSION_MAJOR > 2
12397 db_env_create( NULL, 0 );
12398 #elif DB_VERSION_MAJOR > 1
12399 db_appexit( NULL );
12401 (void) dbopen( NULL, 0, 0, 0, NULL);
12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12410 echo "configure: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12421 echo "$ac_t""$ol_cv_db_db" 1>&6
12423 if test $ol_cv_db_db = yes ; then
12428 if test $ol_cv_lib_db = no ; then
12429 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12430 echo "configure:12431: checking for Berkeley DB link (-ldb3)" >&5
12431 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12432 echo $ac_n "(cached) $ac_c" 1>&6
12437 LIBS="$ol_DB_LIB $LIBS"
12439 cat > conftest.$ac_ext <<EOF
12440 #line 12441 "configure"
12441 #include "confdefs.h"
12443 #ifdef HAVE_DB_185_H
12444 # include <db_185.h>
12449 #ifndef DB_VERSION_MAJOR
12450 # define DB_VERSION_MAJOR 1
12454 #define NULL ((void*)0)
12459 #if DB_VERSION_MAJOR > 2
12460 db_env_create( NULL, 0 );
12461 #elif DB_VERSION_MAJOR > 1
12462 db_appexit( NULL );
12464 (void) dbopen( NULL, 0, 0, 0, NULL);
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12484 echo "$ac_t""$ol_cv_db_db3" 1>&6
12486 if test $ol_cv_db_db3 = yes ; then
12491 if test $ol_cv_lib_db = no ; then
12492 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12493 echo "configure:12494: checking for Berkeley DB link (-ldb2)" >&5
12494 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12495 echo $ac_n "(cached) $ac_c" 1>&6
12500 LIBS="$ol_DB_LIB $LIBS"
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12506 #ifdef HAVE_DB_185_H
12507 # include <db_185.h>
12512 #ifndef DB_VERSION_MAJOR
12513 # define DB_VERSION_MAJOR 1
12517 #define NULL ((void*)0)
12522 #if DB_VERSION_MAJOR > 2
12523 db_env_create( NULL, 0 );
12524 #elif DB_VERSION_MAJOR > 1
12525 db_appexit( NULL );
12527 (void) dbopen( NULL, 0, 0, 0, NULL);
12532 if { (eval echo configure:12533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12536 echo "configure: failed program was:" >&5
12537 cat conftest.$ac_ext >&5
12547 echo "$ac_t""$ol_cv_db_db2" 1>&6
12549 if test $ol_cv_db_db2 = yes ; then
12554 if test $ol_cv_lib_db = no ; then
12555 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12556 echo "configure:12557: checking for Berkeley DB link (-ldb1)" >&5
12557 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12558 echo $ac_n "(cached) $ac_c" 1>&6
12563 LIBS="$ol_DB_LIB $LIBS"
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12569 #ifdef HAVE_DB_185_H
12570 # include <db_185.h>
12575 #ifndef DB_VERSION_MAJOR
12576 # define DB_VERSION_MAJOR 1
12580 #define NULL ((void*)0)
12585 #if DB_VERSION_MAJOR > 2
12586 db_env_create( NULL, 0 );
12587 #elif DB_VERSION_MAJOR > 1
12588 db_appexit( NULL );
12590 (void) dbopen( NULL, 0, 0, 0, NULL);
12595 if { (eval echo configure:12596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12599 echo "configure: failed program was:" >&5
12600 cat conftest.$ac_ext >&5
12610 echo "$ac_t""$ol_cv_db_db1" 1>&6
12612 if test $ol_cv_db_db1 = yes ; then
12618 if test "$ol_cv_lib_db" != no ; then
12619 ol_cv_berkeley_db=yes
12620 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12621 echo "configure:12622: checking for Berkeley DB thread support" >&5
12622 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12623 echo $ac_n "(cached) $ac_c" 1>&6
12627 if test $ol_cv_lib_db != yes ; then
12628 LIBS="$ol_cv_lib_db"
12631 if test "$cross_compiling" = yes; then
12632 ol_cv_berkeley_db_thread=cross
12634 cat > conftest.$ac_ext <<EOF
12635 #line 12636 "configure"
12636 #include "confdefs.h"
12638 #ifdef HAVE_DB_185_H
12644 #define NULL ((void *)0)
12649 u_int32_t flags = DB_CREATE | DB_THREAD;
12651 #if DB_VERSION_MAJOR > 2
12652 DB_ENV *env = NULL;
12654 rc = db_env_create( &env, 0 );
12657 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12658 rc = env->open( env, NULL, flags, 0 );
12660 rc = env->open( env, NULL, NULL, flags, 0 );
12666 memset( &env, '\0', sizeof(env) );
12668 rc = db_appinit( NULL, NULL, &env, flags );
12671 db_appexit( &env );
12674 #if DB_VERSION_MAJOR > 2
12675 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12676 env->remove( env, NULL, DB_FORCE);
12678 env->remove( env, NULL, NULL, DB_FORCE);
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12687 ol_cv_berkeley_db_thread=yes
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12692 ol_cv_berkeley_db_thread=no
12700 if test $ol_cv_berkeley_db_thread != no ; then
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_BERKELEY_DB_THREAD 1
12709 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12715 if test $ol_cv_berkeley_db != no ; then
12716 cat >> confdefs.h <<\EOF
12717 #define HAVE_BERKELEY_DB 1
12721 ol_link_ldbm=berkeley
12722 ol_with_ldbm_api=db
12724 if test $ol_with_ldbm_type = hash ; then
12725 cat >> confdefs.h <<\EOF
12726 #define LDBM_USE_DBHASH 1
12730 cat >> confdefs.h <<\EOF
12731 #define LDBM_USE_DBBTREE 1
12736 if test $ol_cv_lib_db != yes ; then
12737 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12742 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12743 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12744 ol_with_ldbm_api=none
12747 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12748 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12749 echo "configure:12750: checking for MDBM library" >&5
12750 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12751 echo $ac_n "(cached) $ac_c" 1>&6
12754 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12755 echo "configure:12756: checking for mdbm_set_chain" >&5
12756 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12757 echo $ac_n "(cached) $ac_c" 1>&6
12759 cat > conftest.$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12762 /* System header to define __stub macros and hopefully few prototypes,
12763 which can conflict with char mdbm_set_chain(); below. */
12764 #include <assert.h>
12765 /* Override any gcc2 internal prototype to avoid an error. */
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768 char mdbm_set_chain();
12773 /* The GNU C library defines this for functions which it implements
12774 to always fail with ENOSYS. Some functions are actually named
12775 something starting with __ and the normal name is an alias. */
12776 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12779 f = mdbm_set_chain;
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12786 eval "ac_cv_func_mdbm_set_chain=yes"
12788 echo "configure: failed program was:" >&5
12789 cat conftest.$ac_ext >&5
12791 eval "ac_cv_func_mdbm_set_chain=no"
12796 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12797 echo "$ac_t""yes" 1>&6
12800 echo "$ac_t""no" 1>&6
12802 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12803 echo "configure:12804: checking for mdbm_set_chain in -lmdbm" >&5
12804 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12806 echo $ac_n "(cached) $ac_c" 1>&6
12808 ac_save_LIBS="$LIBS"
12809 LIBS="-lmdbm $LIBS"
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12813 /* Override any gcc2 internal prototype to avoid an error. */
12814 /* We use char because int might match the return type of a gcc2
12815 builtin and then its argument prototype would still apply. */
12816 char mdbm_set_chain();
12822 if { (eval echo configure:12823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12824 eval "ac_cv_lib_$ac_lib_var=yes"
12826 echo "configure: failed program was:" >&5
12827 cat conftest.$ac_ext >&5
12829 eval "ac_cv_lib_$ac_lib_var=no"
12832 LIBS="$ac_save_LIBS"
12835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12836 echo "$ac_t""yes" 1>&6
12837 ol_cv_lib_mdbm=-lmdbm
12839 echo "$ac_t""no" 1>&6
12850 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12853 for ac_hdr in mdbm.h
12855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12857 echo "configure:12858: checking for $ac_hdr" >&5
12858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12859 echo $ac_n "(cached) $ac_c" 1>&6
12861 cat > conftest.$ac_ext <<EOF
12862 #line 12863 "configure"
12863 #include "confdefs.h"
12866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12867 { (eval echo configure:12868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12869 if test -z "$ac_err"; then
12871 eval "ac_cv_header_$ac_safe=yes"
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12877 eval "ac_cv_header_$ac_safe=no"
12881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12882 echo "$ac_t""yes" 1>&6
12883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12884 cat >> confdefs.h <<EOF
12885 #define $ac_tr_hdr 1
12889 echo "$ac_t""no" 1>&6
12893 echo $ac_n "checking for db""... $ac_c" 1>&6
12894 echo "configure:12895: checking for db" >&5
12895 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12899 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12907 echo "$ac_t""$ol_cv_mdbm" 1>&6
12908 if test $ol_cv_mdbm = yes ; then
12909 cat >> confdefs.h <<\EOF
12910 #define HAVE_MDBM 1
12916 if test $ol_cv_mdbm = yes ; then
12918 ol_with_ldbm_api=mdbm
12919 if test $ol_cv_lib_mdbm != yes ; then
12920 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12925 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12926 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12927 echo "configure:12928: checking for GDBM library" >&5
12928 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12932 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12933 echo "configure:12934: checking for gdbm_open" >&5
12934 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12937 cat > conftest.$ac_ext <<EOF
12938 #line 12939 "configure"
12939 #include "confdefs.h"
12940 /* System header to define __stub macros and hopefully few prototypes,
12941 which can conflict with char gdbm_open(); below. */
12942 #include <assert.h>
12943 /* Override any gcc2 internal prototype to avoid an error. */
12944 /* We use char because int might match the return type of a gcc2
12945 builtin and then its argument prototype would still apply. */
12951 /* The GNU C library defines this for functions which it implements
12952 to always fail with ENOSYS. Some functions are actually named
12953 something starting with __ and the normal name is an alias. */
12954 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12962 if { (eval echo configure:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12964 eval "ac_cv_func_gdbm_open=yes"
12966 echo "configure: failed program was:" >&5
12967 cat conftest.$ac_ext >&5
12969 eval "ac_cv_func_gdbm_open=no"
12974 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12975 echo "$ac_t""yes" 1>&6
12978 echo "$ac_t""no" 1>&6
12980 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12981 echo "configure:12982: checking for gdbm_open in -lgdbm" >&5
12982 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12984 echo $ac_n "(cached) $ac_c" 1>&6
12986 ac_save_LIBS="$LIBS"
12987 LIBS="-lgdbm $LIBS"
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12991 /* Override any gcc2 internal prototype to avoid an error. */
12992 /* We use char because int might match the return type of a gcc2
12993 builtin and then its argument prototype would still apply. */
13000 if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13002 eval "ac_cv_lib_$ac_lib_var=yes"
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13007 eval "ac_cv_lib_$ac_lib_var=no"
13010 LIBS="$ac_save_LIBS"
13013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13014 echo "$ac_t""yes" 1>&6
13015 ol_cv_lib_gdbm=-lgdbm
13017 echo "$ac_t""no" 1>&6
13028 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13031 for ac_hdr in gdbm.h
13033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13035 echo "configure:13036: checking for $ac_hdr" >&5
13036 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13037 echo $ac_n "(cached) $ac_c" 1>&6
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13045 { (eval echo configure:13046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13047 if test -z "$ac_err"; then
13049 eval "ac_cv_header_$ac_safe=yes"
13052 echo "configure: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13055 eval "ac_cv_header_$ac_safe=no"
13059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13060 echo "$ac_t""yes" 1>&6
13061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13062 cat >> confdefs.h <<EOF
13063 #define $ac_tr_hdr 1
13067 echo "$ac_t""no" 1>&6
13071 echo $ac_n "checking for db""... $ac_c" 1>&6
13072 echo "configure:13073: checking for db" >&5
13073 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13074 echo $ac_n "(cached) $ac_c" 1>&6
13077 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13085 echo "$ac_t""$ol_cv_gdbm" 1>&6
13086 if test $ol_cv_gdbm = yes ; then
13087 cat >> confdefs.h <<\EOF
13088 #define HAVE_GDBM 1
13094 if test $ol_cv_gdbm = yes ; then
13096 ol_with_ldbm_api=gdbm
13098 if test $ol_cv_lib_gdbm != yes ; then
13099 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13104 if test $ol_with_ldbm_api = ndbm ; then
13105 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13106 echo "configure:13107: checking for NDBM library" >&5
13107 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13108 echo $ac_n "(cached) $ac_c" 1>&6
13111 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13112 echo "configure:13113: checking for dbm_open" >&5
13113 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13116 cat > conftest.$ac_ext <<EOF
13117 #line 13118 "configure"
13118 #include "confdefs.h"
13119 /* System header to define __stub macros and hopefully few prototypes,
13120 which can conflict with char dbm_open(); below. */
13121 #include <assert.h>
13122 /* Override any gcc2 internal prototype to avoid an error. */
13123 /* We use char because int might match the return type of a gcc2
13124 builtin and then its argument prototype would still apply. */
13130 /* The GNU C library defines this for functions which it implements
13131 to always fail with ENOSYS. Some functions are actually named
13132 something starting with __ and the normal name is an alias. */
13133 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13141 if { (eval echo configure:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13143 eval "ac_cv_func_dbm_open=yes"
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13148 eval "ac_cv_func_dbm_open=no"
13153 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13154 echo "$ac_t""yes" 1>&6
13157 echo "$ac_t""no" 1>&6
13159 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13160 echo "configure:13161: checking for dbm_open in -lndbm" >&5
13161 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13162 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13163 echo $ac_n "(cached) $ac_c" 1>&6
13165 ac_save_LIBS="$LIBS"
13166 LIBS="-lndbm $LIBS"
13167 cat > conftest.$ac_ext <<EOF
13168 #line 13169 "configure"
13169 #include "confdefs.h"
13170 /* Override any gcc2 internal prototype to avoid an error. */
13171 /* We use char because int might match the return type of a gcc2
13172 builtin and then its argument prototype would still apply. */
13179 if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13181 eval "ac_cv_lib_$ac_lib_var=yes"
13183 echo "configure: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13186 eval "ac_cv_lib_$ac_lib_var=no"
13189 LIBS="$ac_save_LIBS"
13192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13193 echo "$ac_t""yes" 1>&6
13194 ol_cv_lib_ndbm=-lndbm
13196 echo "$ac_t""no" 1>&6
13198 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13199 echo "configure:13200: checking for dbm_open in -ldbm" >&5
13200 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13202 echo $ac_n "(cached) $ac_c" 1>&6
13204 ac_save_LIBS="$LIBS"
13206 cat > conftest.$ac_ext <<EOF
13207 #line 13208 "configure"
13208 #include "confdefs.h"
13209 /* Override any gcc2 internal prototype to avoid an error. */
13210 /* We use char because int might match the return type of a gcc2
13211 builtin and then its argument prototype would still apply. */
13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220 eval "ac_cv_lib_$ac_lib_var=yes"
13222 echo "configure: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13225 eval "ac_cv_lib_$ac_lib_var=no"
13228 LIBS="$ac_save_LIBS"
13231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13232 echo "$ac_t""yes" 1>&6
13233 ol_cv_lib_ndbm=-ldbm
13235 echo "$ac_t""no" 1>&6
13248 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13251 for ac_hdr in ndbm.h
13253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13255 echo "configure:13256: checking for $ac_hdr" >&5
13256 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13257 echo $ac_n "(cached) $ac_c" 1>&6
13259 cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13265 { (eval echo configure:13266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13267 if test -z "$ac_err"; then
13269 eval "ac_cv_header_$ac_safe=yes"
13272 echo "configure: failed program was:" >&5
13273 cat conftest.$ac_ext >&5
13275 eval "ac_cv_header_$ac_safe=no"
13279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13280 echo "$ac_t""yes" 1>&6
13281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13282 cat >> confdefs.h <<EOF
13283 #define $ac_tr_hdr 1
13287 echo "$ac_t""no" 1>&6
13291 echo $ac_n "checking for db""... $ac_c" 1>&6
13292 echo "configure:13293: checking for db" >&5
13293 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
13297 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13305 echo "$ac_t""$ol_cv_ndbm" 1>&6
13306 if test $ol_cv_ndbm = yes ; then
13307 cat >> confdefs.h <<\EOF
13308 #define HAVE_NDBM 1
13314 if test $ol_cv_ndbm = yes ; then
13316 ol_with_ldbm_api=ndbm
13318 if test $ol_cv_lib_ndbm != yes ; then
13319 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13324 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13325 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13326 if test $ol_enable_ldbm = yes ; then
13327 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13330 echo "configure: warning: disabling LDBM" 1>&2
13334 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13335 LINK_BINS_DYNAMIC="yes"
13337 LINK_BINS_DYNAMIC="no"
13340 if test $ol_enable_wrappers != no ; then
13341 for ac_hdr in tcpd.h
13343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13345 echo "configure:13346: checking for $ac_hdr" >&5
13346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13347 echo $ac_n "(cached) $ac_c" 1>&6
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13355 { (eval echo configure:13356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13357 if test -z "$ac_err"; then
13359 eval "ac_cv_header_$ac_safe=yes"
13362 echo "configure: failed program was:" >&5
13363 cat conftest.$ac_ext >&5
13365 eval "ac_cv_header_$ac_safe=no"
13369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13370 echo "$ac_t""yes" 1>&6
13371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13372 cat >> confdefs.h <<EOF
13373 #define $ac_tr_hdr 1
13377 echo "$ac_t""no" 1>&6
13382 if test $ac_cv_header_tcpd_h != yes ; then
13385 cat > conftest.$ac_ext <<EOF
13386 #line 13387 "configure"
13387 #include "confdefs.h"
13389 int allow_severity = 0;
13390 int deny_severity = 0;
13396 if { (eval echo configure:13397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13400 echo "configure: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13408 if test $have_wrappers = yes ; then
13409 cat >> confdefs.h <<\EOF
13410 #define HAVE_TCPD 1
13415 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13416 echo "configure:13417: checking for main in -lnsl" >&5
13417 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13421 ac_save_LIBS="$LIBS"
13423 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13431 if { (eval echo configure:13432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13433 eval "ac_cv_lib_$ac_lib_var=yes"
13435 echo "configure: failed program was:" >&5
13436 cat conftest.$ac_ext >&5
13438 eval "ac_cv_lib_$ac_lib_var=no"
13441 LIBS="$ac_save_LIBS"
13444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13445 echo "$ac_t""yes" 1>&6
13446 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13448 cat >> confdefs.h <<EOF
13449 #define $ac_tr_lib 1
13455 echo "$ac_t""no" 1>&6
13459 echo "configure: warning: could not find -lwrap" 1>&2
13460 if test $ol_enable_wrappers = yes ; then
13461 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13464 echo "configure: warning: disabling wrappers support" 1>&2
13465 ol_enable_wrappers=no
13470 if test $ol_enable_syslog != no ; then
13471 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13472 echo "configure:13473: checking for openlog" >&5
13473 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13476 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char openlog(); below. */
13481 #include <assert.h>
13482 /* Override any gcc2 internal prototype to avoid an error. */
13483 /* We use char because int might match the return type of a gcc2
13484 builtin and then its argument prototype would still apply. */
13490 /* The GNU C library defines this for functions which it implements
13491 to always fail with ENOSYS. Some functions are actually named
13492 something starting with __ and the normal name is an alias. */
13493 #if defined (__stub_openlog) || defined (__stub___openlog)
13501 if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 eval "ac_cv_func_openlog=yes"
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13508 eval "ac_cv_func_openlog=no"
13513 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13514 echo "$ac_t""yes" 1>&6
13517 echo "$ac_t""no" 1>&6
13520 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13521 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13523 ol_enable_syslog=$ac_cv_func_openlog
13528 if test $ol_enable_sql != no ; then
13529 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13530 echo "configure:13531: checking for SQLDriverConnect in -liodbc" >&5
13531 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13533 echo $ac_n "(cached) $ac_c" 1>&6
13535 ac_save_LIBS="$LIBS"
13536 LIBS="-liodbc $LIBS"
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13540 /* Override any gcc2 internal prototype to avoid an error. */
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13543 char SQLDriverConnect();
13549 if { (eval echo configure:13550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 eval "ac_cv_lib_$ac_lib_var=yes"
13553 echo "configure: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13556 eval "ac_cv_lib_$ac_lib_var=no"
13559 LIBS="$ac_save_LIBS"
13562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13563 echo "$ac_t""yes" 1>&6
13566 echo "$ac_t""no" 1>&6
13570 if test $have_iodbc = yes ; then
13571 ol_link_sql="-liodbc"
13573 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13574 echo "configure:13575: checking for SQLDriverConnect in -lodbc" >&5
13575 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13576 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13577 echo $ac_n "(cached) $ac_c" 1>&6
13579 ac_save_LIBS="$LIBS"
13580 LIBS="-lodbc $LIBS"
13581 cat > conftest.$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13584 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13587 char SQLDriverConnect();
13593 if { (eval echo configure:13594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13595 eval "ac_cv_lib_$ac_lib_var=yes"
13597 echo "configure: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13600 eval "ac_cv_lib_$ac_lib_var=no"
13603 LIBS="$ac_save_LIBS"
13606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13607 echo "$ac_t""yes" 1>&6
13610 echo "$ac_t""no" 1>&6
13614 if test $have_odbc = yes ; then
13615 ol_link_sql="-lodbc"
13619 if test $ol_link_sql != no ; then
13620 SLAPD_SQL_LIBS="$ol_link_sql"
13622 elif test $ol_enable_sql != auto ; then
13623 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13627 if test $ol_enable_tcl != no ; then
13628 for ac_hdr in tcl.h
13630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13632 echo "configure:13633: checking for $ac_hdr" >&5
13633 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13634 echo $ac_n "(cached) $ac_c" 1>&6
13636 cat > conftest.$ac_ext <<EOF
13637 #line 13638 "configure"
13638 #include "confdefs.h"
13641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13642 { (eval echo configure:13643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13644 if test -z "$ac_err"; then
13646 eval "ac_cv_header_$ac_safe=yes"
13649 echo "configure: failed program was:" >&5
13650 cat conftest.$ac_ext >&5
13652 eval "ac_cv_header_$ac_safe=no"
13656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13657 echo "$ac_t""yes" 1>&6
13658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13659 cat >> confdefs.h <<EOF
13660 #define $ac_tr_hdr 1
13664 echo "$ac_t""no" 1>&6
13669 if test $ac_cv_header_tcl_h != yes ; then
13672 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13673 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13674 echo "configure:13675: checking for main in -l$lib" >&5
13675 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13679 ac_save_LIBS="$LIBS"
13680 LIBS="-l$lib $LIBS"
13681 cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13689 if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13691 eval "ac_cv_lib_$ac_lib_var=yes"
13693 echo "configure: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13696 eval "ac_cv_lib_$ac_lib_var=no"
13699 LIBS="$ac_save_LIBS"
13702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13703 echo "$ac_t""yes" 1>&6
13705 if test x"$ol_with_tcl_module" = "xstatic" ; then
13706 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13708 MOD_TCL_LIB="-l${lib}"
13711 echo "$ac_t""no" 1>&6
13718 if test $have_tcl != yes ; then
13719 echo "configure: warning: could not find -ltcl" 1>&2
13720 if test $ol_enable_tcl = yes ; then
13721 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13729 for ac_hdr in termcap.h ncurses.h
13731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13733 echo "configure:13734: checking for $ac_hdr" >&5
13734 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13735 echo $ac_n "(cached) $ac_c" 1>&6
13737 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13743 { (eval echo configure:13744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13745 if test -z "$ac_err"; then
13747 eval "ac_cv_header_$ac_safe=yes"
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 eval "ac_cv_header_$ac_safe=no"
13757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13758 echo "$ac_t""yes" 1>&6
13759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13760 cat >> confdefs.h <<EOF
13761 #define $ac_tr_hdr 1
13765 echo "$ac_t""no" 1>&6
13770 if test $ol_link_termcap = no ; then
13771 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13772 echo "configure:13773: checking for tputs in -ltermcap" >&5
13773 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13775 echo $ac_n "(cached) $ac_c" 1>&6
13777 ac_save_LIBS="$LIBS"
13778 LIBS="-ltermcap $LIBS"
13779 cat > conftest.$ac_ext <<EOF
13780 #line 13781 "configure"
13781 #include "confdefs.h"
13782 /* Override any gcc2 internal prototype to avoid an error. */
13783 /* We use char because int might match the return type of a gcc2
13784 builtin and then its argument prototype would still apply. */
13791 if { (eval echo configure:13792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13793 eval "ac_cv_lib_$ac_lib_var=yes"
13795 echo "configure: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13798 eval "ac_cv_lib_$ac_lib_var=no"
13801 LIBS="$ac_save_LIBS"
13804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13805 echo "$ac_t""yes" 1>&6
13808 echo "$ac_t""no" 1>&6
13812 if test $have_termcap = yes ; then
13813 cat >> confdefs.h <<\EOF
13814 #define HAVE_TERMCAP 1
13817 ol_link_termcap=yes
13818 TERMCAP_LIBS=-ltermcap
13822 if test $ol_link_termcap = no ; then
13823 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13824 echo "configure:13825: checking for initscr in -lncurses" >&5
13825 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13826 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13827 echo $ac_n "(cached) $ac_c" 1>&6
13829 ac_save_LIBS="$LIBS"
13830 LIBS="-lncurses $LIBS"
13831 cat > conftest.$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13834 /* Override any gcc2 internal prototype to avoid an error. */
13835 /* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13843 if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13845 eval "ac_cv_lib_$ac_lib_var=yes"
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13850 eval "ac_cv_lib_$ac_lib_var=no"
13853 LIBS="$ac_save_LIBS"
13856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13857 echo "$ac_t""yes" 1>&6
13860 echo "$ac_t""no" 1>&6
13864 if test $have_ncurses = yes ; then
13865 cat >> confdefs.h <<\EOF
13866 #define HAVE_NCURSES 1
13869 ol_link_termcap=yes
13870 TERMCAP_LIBS=-lncurses
13874 if test $ol_link_termcap = no ; then
13875 cat >> confdefs.h <<\EOF
13876 #define NO_TERMCAP 1
13884 if test $ol_with_cyrus_sasl != no ; then
13885 for ac_hdr in sasl.h
13887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13889 echo "configure:13890: checking for $ac_hdr" >&5
13890 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13891 echo $ac_n "(cached) $ac_c" 1>&6
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13899 { (eval echo configure:13900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13901 if test -z "$ac_err"; then
13903 eval "ac_cv_header_$ac_safe=yes"
13906 echo "configure: failed program was:" >&5
13907 cat conftest.$ac_ext >&5
13909 eval "ac_cv_header_$ac_safe=no"
13913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13914 echo "$ac_t""yes" 1>&6
13915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13916 cat >> confdefs.h <<EOF
13917 #define $ac_tr_hdr 1
13921 echo "$ac_t""no" 1>&6
13926 if test $ac_cv_header_sasl_h = yes ; then
13927 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13928 echo "configure:13929: checking for sasl_client_init in -lsasl" >&5
13929 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13930 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13931 echo $ac_n "(cached) $ac_c" 1>&6
13933 ac_save_LIBS="$LIBS"
13934 LIBS="-lsasl $LIBS"
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 /* Override any gcc2 internal prototype to avoid an error. */
13939 /* We use char because int might match the return type of a gcc2
13940 builtin and then its argument prototype would still apply. */
13941 char sasl_client_init();
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949 eval "ac_cv_lib_$ac_lib_var=yes"
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13954 eval "ac_cv_lib_$ac_lib_var=no"
13957 LIBS="$ac_save_LIBS"
13960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13961 echo "$ac_t""yes" 1>&6
13962 have_cyrus_sasl=yes
13964 echo "$ac_t""no" 1>&6
13969 if test $have_cyrus_sasl != no ; then
13971 cat >> confdefs.h <<\EOF
13972 #define HAVE_CYRUS_SASL 1
13979 if test $ol_link_sasl = no ; then
13980 if test $ol_with_cyrus_sasl != auto ; then
13981 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13983 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13984 echo "configure: warning: SASL authentication not supported!" 1>&2
13985 if test $ol_link_tls = no ; then
13986 echo "configure: warning: Strong authentication not supported!" 1>&2
13990 elif test $ol_enable_spasswd != no ; then
13991 ol_link_spasswd=yes
13995 echo "configure: warning: SASL authentication not supported!" 1>&2
13996 if test $ol_link_tls = no ; then
13997 echo "configure: warning: Strong authentication not supported!" 1>&2
14001 if test $cross_compiling != yes ; then
14003 if test -r /dev/urandom ; then
14004 dev="/dev/urandom";
14005 elif test -r /idev/urandom ; then
14006 dev="/idev/urandom";
14007 elif test -r /dev/srandom ; then
14008 dev="/dev/srandom";
14009 elif test -r /dev/random ; then
14011 elif test -r /idev/random ; then
14012 dev="/idev/random";
14015 if test $dev != no ; then
14016 cat >> confdefs.h <<EOF
14017 #define URANDOM_DEVICE "$dev"
14024 if test $ol_with_fetch != no ; then
14026 LIBS="-lfetch -lcom_err $LIBS"
14027 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14028 echo "configure:14029: checking fetch(3) library" >&5
14029 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14030 echo $ac_n "(cached) $ac_c" 1>&6
14033 cat > conftest.$ac_ext <<EOF
14034 #line 14035 "configure"
14035 #include "confdefs.h"
14037 #include <sys/param.h>
14041 struct url *u = fetchParseURL("file:///");
14044 if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14046 ol_cv_lib_fetch=yes
14048 echo "configure: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14056 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14058 if test $ol_cv_lib_fetch != no ; then
14059 ol_link_fetch="-lfetch -lcom_err"
14060 cat >> confdefs.h <<\EOF
14061 #define HAVE_FETCH 1
14067 if test $ol_cv_lib_fetch != no ; then
14068 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14069 ol_link_fetch=freebsd
14071 elif test $ol_with_fetch != auto ; then
14072 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14076 ol_link_readline=no
14077 if test $ol_with_readline != no ; then
14078 for ac_hdr in readline/readline.h readline/history.h
14080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14082 echo "configure:14083: checking for $ac_hdr" >&5
14083 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14084 echo $ac_n "(cached) $ac_c" 1>&6
14086 cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14092 { (eval echo configure:14093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14094 if test -z "$ac_err"; then
14096 eval "ac_cv_header_$ac_safe=yes"
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14102 eval "ac_cv_header_$ac_safe=no"
14106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14107 echo "$ac_t""yes" 1>&6
14108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14109 cat >> confdefs.h <<EOF
14110 #define $ac_tr_hdr 1
14114 echo "$ac_t""no" 1>&6
14119 if test $ac_cv_header_readline_readline_h = yes ; then
14121 LIBS="$TERMCAP_LIBS $LIBS"
14122 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14123 echo "configure:14124: checking for readline in -lreadline" >&5
14124 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14125 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14126 echo $ac_n "(cached) $ac_c" 1>&6
14128 ac_save_LIBS="$LIBS"
14129 LIBS="-lreadline $LIBS"
14130 cat > conftest.$ac_ext <<EOF
14131 #line 14132 "configure"
14132 #include "confdefs.h"
14133 /* Override any gcc2 internal prototype to avoid an error. */
14134 /* We use char because int might match the return type of a gcc2
14135 builtin and then its argument prototype would still apply. */
14142 if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14144 eval "ac_cv_lib_$ac_lib_var=yes"
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14149 eval "ac_cv_lib_$ac_lib_var=no"
14152 LIBS="$ac_save_LIBS"
14155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14156 echo "$ac_t""yes" 1>&6
14159 echo "$ac_t""no" 1>&6
14165 if test $have_readline = yes ; then
14166 ol_with_readline=found
14167 ol_link_readline=yes
14169 READLINE_LIBS="-lreadline"
14174 if test $ol_link_readline = yes ; then
14175 cat >> confdefs.h <<\EOF
14176 #define HAVE_READLINE 1
14182 if test $ol_enable_crypt != no ; then
14183 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14184 echo "configure:14185: checking for crypt" >&5
14185 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14188 cat > conftest.$ac_ext <<EOF
14189 #line 14190 "configure"
14190 #include "confdefs.h"
14191 /* System header to define __stub macros and hopefully few prototypes,
14192 which can conflict with char crypt(); below. */
14193 #include <assert.h>
14194 /* Override any gcc2 internal prototype to avoid an error. */
14195 /* We use char because int might match the return type of a gcc2
14196 builtin and then its argument prototype would still apply. */
14202 /* The GNU C library defines this for functions which it implements
14203 to always fail with ENOSYS. Some functions are actually named
14204 something starting with __ and the normal name is an alias. */
14205 #if defined (__stub_crypt) || defined (__stub___crypt)
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14215 eval "ac_cv_func_crypt=yes"
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 eval "ac_cv_func_crypt=no"
14225 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14226 echo "$ac_t""yes" 1>&6
14229 echo "$ac_t""no" 1>&6
14231 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14232 echo "configure:14233: checking for crypt in -lcrypt" >&5
14233 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14237 ac_save_LIBS="$LIBS"
14238 LIBS="-lcrypt $LIBS"
14239 cat > conftest.$ac_ext <<EOF
14240 #line 14241 "configure"
14241 #include "confdefs.h"
14242 /* Override any gcc2 internal prototype to avoid an error. */
14243 /* We use char because int might match the return type of a gcc2
14244 builtin and then its argument prototype would still apply. */
14251 if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14253 eval "ac_cv_lib_$ac_lib_var=yes"
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14258 eval "ac_cv_lib_$ac_lib_var=no"
14261 LIBS="$ac_save_LIBS"
14264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14265 echo "$ac_t""yes" 1>&6
14266 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14269 echo "$ac_t""no" 1>&6
14276 if test $have_crypt = yes ; then
14277 cat >> confdefs.h <<\EOF
14278 #define HAVE_CRYPT 1
14282 echo "configure: warning: could not find crypt" 1>&2
14283 if test $ol_enable_crypt = yes ; then
14284 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14287 echo "configure: warning: disabling crypt support" 1>&2
14292 if test $ol_enable_proctitle != no ; then
14293 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14294 echo "configure:14295: checking for setproctitle" >&5
14295 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14296 echo $ac_n "(cached) $ac_c" 1>&6
14298 cat > conftest.$ac_ext <<EOF
14299 #line 14300 "configure"
14300 #include "confdefs.h"
14301 /* System header to define __stub macros and hopefully few prototypes,
14302 which can conflict with char setproctitle(); below. */
14303 #include <assert.h>
14304 /* Override any gcc2 internal prototype to avoid an error. */
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14307 char setproctitle();
14312 /* The GNU C library defines this for functions which it implements
14313 to always fail with ENOSYS. Some functions are actually named
14314 something starting with __ and the normal name is an alias. */
14315 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14323 if { (eval echo configure:14324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14325 eval "ac_cv_func_setproctitle=yes"
14327 echo "configure: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14330 eval "ac_cv_func_setproctitle=no"
14335 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14336 echo "$ac_t""yes" 1>&6
14337 have_setproctitle=yes
14339 echo "$ac_t""no" 1>&6
14341 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14342 echo "configure:14343: checking for setproctitle in -lutil" >&5
14343 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14344 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14345 echo $ac_n "(cached) $ac_c" 1>&6
14347 ac_save_LIBS="$LIBS"
14348 LIBS="-lutil $LIBS"
14349 cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14352 /* Override any gcc2 internal prototype to avoid an error. */
14353 /* We use char because int might match the return type of a gcc2
14354 builtin and then its argument prototype would still apply. */
14355 char setproctitle();
14361 if { (eval echo configure:14362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14363 eval "ac_cv_lib_$ac_lib_var=yes"
14365 echo "configure: failed program was:" >&5
14366 cat conftest.$ac_ext >&5
14368 eval "ac_cv_lib_$ac_lib_var=no"
14371 LIBS="$ac_save_LIBS"
14374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14375 echo "$ac_t""yes" 1>&6
14376 have_setproctitle=yes
14377 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14379 echo "$ac_t""no" 1>&6
14380 have_setproctitle=no
14381 LIBOBJS="$LIBOBJS setproctitle.o"
14382 LIBSRCS="$LIBSRCS setproctitle.c"
14388 if test $have_setproctitle = yes ; then
14389 cat >> confdefs.h <<\EOF
14390 #define HAVE_SETPROCTITLE 1
14396 if test $ol_enable_slp != no ; then
14397 for ac_hdr in slp.h
14399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14401 echo "configure:14402: checking for $ac_hdr" >&5
14402 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14403 echo $ac_n "(cached) $ac_c" 1>&6
14405 cat > conftest.$ac_ext <<EOF
14406 #line 14407 "configure"
14407 #include "confdefs.h"
14410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14411 { (eval echo configure:14412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14413 if test -z "$ac_err"; then
14415 eval "ac_cv_header_$ac_safe=yes"
14418 echo "configure: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14421 eval "ac_cv_header_$ac_safe=no"
14425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14426 echo "$ac_t""yes" 1>&6
14427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14428 cat >> confdefs.h <<EOF
14429 #define $ac_tr_hdr 1
14433 echo "$ac_t""no" 1>&6
14438 if test $ac_cv_header_slp_h = yes ; then
14439 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
14440 echo "configure:14441: checking for SLPOpen in -lslp" >&5
14441 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
14442 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14443 echo $ac_n "(cached) $ac_c" 1>&6
14445 ac_save_LIBS="$LIBS"
14447 cat > conftest.$ac_ext <<EOF
14448 #line 14449 "configure"
14449 #include "confdefs.h"
14450 /* Override any gcc2 internal prototype to avoid an error. */
14451 /* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14459 if { (eval echo configure:14460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14461 eval "ac_cv_lib_$ac_lib_var=yes"
14463 echo "configure: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14466 eval "ac_cv_lib_$ac_lib_var=no"
14469 LIBS="$ac_save_LIBS"
14472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14473 echo "$ac_t""yes" 1>&6
14476 echo "$ac_t""no" 1>&6
14480 if test $have_slp = yes ; then
14481 cat >> confdefs.h <<\EOF
14485 SLAPD_SLP_LIBS=-lslp
14488 elif test $ol_enable_slp = yes ; then
14489 { echo "configure: error: SLP not found" 1>&2; exit 1; }
14493 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14494 echo "configure:14495: checking for ANSI C header files" >&5
14495 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14496 echo $ac_n "(cached) $ac_c" 1>&6
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14501 #include <stdlib.h>
14502 #include <stdarg.h>
14503 #include <string.h>
14506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14507 { (eval echo configure:14508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14509 if test -z "$ac_err"; then
14511 ac_cv_header_stdc=yes
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14517 ac_cv_header_stdc=no
14521 if test $ac_cv_header_stdc = yes; then
14522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14523 cat > conftest.$ac_ext <<EOF
14524 #line 14525 "configure"
14525 #include "confdefs.h"
14526 #include <string.h>
14528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14529 egrep "memchr" >/dev/null 2>&1; then
14533 ac_cv_header_stdc=no
14539 if test $ac_cv_header_stdc = yes; then
14540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14541 cat > conftest.$ac_ext <<EOF
14542 #line 14543 "configure"
14543 #include "confdefs.h"
14544 #include <stdlib.h>
14546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14547 egrep "free" >/dev/null 2>&1; then
14551 ac_cv_header_stdc=no
14557 if test $ac_cv_header_stdc = yes; then
14558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14559 if test "$cross_compiling" = yes; then
14562 cat > conftest.$ac_ext <<EOF
14563 #line 14564 "configure"
14564 #include "confdefs.h"
14566 #if ((' ' & 0x0FF) == 0x020)
14567 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14568 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14570 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14571 || ('j' <= (c) && (c) <= 'r') \
14572 || ('s' <= (c) && (c) <= 'z'))
14573 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14576 int main () { int i; for (i = 0; i < 256; i++)
14577 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14581 if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14585 echo "configure: failed program was:" >&5
14586 cat conftest.$ac_ext >&5
14588 ac_cv_header_stdc=no
14596 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14597 if test $ac_cv_header_stdc = yes; then
14598 cat >> confdefs.h <<\EOF
14599 #define STDC_HEADERS 1
14604 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14605 echo "configure:14606: checking for mode_t" >&5
14606 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14607 echo $ac_n "(cached) $ac_c" 1>&6
14609 cat > conftest.$ac_ext <<EOF
14610 #line 14611 "configure"
14611 #include "confdefs.h"
14612 #include <sys/types.h>
14614 #include <stdlib.h>
14615 #include <stddef.h>
14619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14620 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14622 eval "ac_cv_type_mode_t=yes"
14625 eval "ac_cv_type_mode_t=no"
14630 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14631 echo "$ac_t""yes" 1>&6
14633 echo "$ac_t""no" 1>&6
14634 cat >> confdefs.h <<EOF
14640 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14641 echo "configure:14642: checking for off_t" >&5
14642 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14643 echo $ac_n "(cached) $ac_c" 1>&6
14645 cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14648 #include <sys/types.h>
14650 #include <stdlib.h>
14651 #include <stddef.h>
14655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14656 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14658 eval "ac_cv_type_off_t=yes"
14661 eval "ac_cv_type_off_t=no"
14666 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14667 echo "$ac_t""yes" 1>&6
14669 echo "$ac_t""no" 1>&6
14670 cat >> confdefs.h <<EOF
14676 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14677 echo "configure:14678: checking for pid_t" >&5
14678 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14679 echo $ac_n "(cached) $ac_c" 1>&6
14681 cat > conftest.$ac_ext <<EOF
14682 #line 14683 "configure"
14683 #include "confdefs.h"
14684 #include <sys/types.h>
14686 #include <stdlib.h>
14687 #include <stddef.h>
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14694 eval "ac_cv_type_pid_t=yes"
14697 eval "ac_cv_type_pid_t=no"
14702 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14703 echo "$ac_t""yes" 1>&6
14705 echo "$ac_t""no" 1>&6
14706 cat >> confdefs.h <<EOF
14712 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14713 echo "configure:14714: checking for ptrdiff_t" >&5
14714 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14715 echo $ac_n "(cached) $ac_c" 1>&6
14717 cat > conftest.$ac_ext <<EOF
14718 #line 14719 "configure"
14719 #include "confdefs.h"
14720 #include <stddef.h>
14725 if { (eval echo configure:14726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14727 am_cv_type_ptrdiff_t=yes
14729 echo "configure: failed program was:" >&5
14730 cat conftest.$ac_ext >&5
14732 am_cv_type_ptrdiff_t=no
14737 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14738 if test $am_cv_type_ptrdiff_t = yes; then
14739 cat >> confdefs.h <<\EOF
14740 #define HAVE_PTRDIFF_T 1
14745 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14746 echo "configure:14747: checking return type of signal handlers" >&5
14747 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14748 echo $ac_n "(cached) $ac_c" 1>&6
14750 cat > conftest.$ac_ext <<EOF
14751 #line 14752 "configure"
14752 #include "confdefs.h"
14753 #include <sys/types.h>
14754 #include <signal.h>
14759 extern "C" void (*signal (int, void (*)(int)))(int);
14761 void (*signal ()) ();
14768 if { (eval echo configure:14769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14770 ac_cv_type_signal=void
14772 echo "configure: failed program was:" >&5
14773 cat conftest.$ac_ext >&5
14775 ac_cv_type_signal=int
14780 echo "$ac_t""$ac_cv_type_signal" 1>&6
14781 cat >> confdefs.h <<EOF
14782 #define RETSIGTYPE $ac_cv_type_signal
14786 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14787 echo "configure:14788: checking for size_t" >&5
14788 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14789 echo $ac_n "(cached) $ac_c" 1>&6
14791 cat > conftest.$ac_ext <<EOF
14792 #line 14793 "configure"
14793 #include "confdefs.h"
14794 #include <sys/types.h>
14796 #include <stdlib.h>
14797 #include <stddef.h>
14801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14802 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14804 eval "ac_cv_type_size_t=yes"
14807 eval "ac_cv_type_size_t=no"
14812 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14813 echo "$ac_t""yes" 1>&6
14815 echo "$ac_t""no" 1>&6
14816 cat >> confdefs.h <<EOF
14817 #define size_t unsigned
14823 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14824 echo "configure:14825: checking for ssize_t" >&5
14825 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14826 echo $ac_n "(cached) $ac_c" 1>&6
14828 cat > conftest.$ac_ext <<EOF
14829 #line 14830 "configure"
14830 #include "confdefs.h"
14831 #include <sys/types.h>
14833 #include <stdlib.h>
14834 #include <stddef.h>
14838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14839 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14841 eval "ac_cv_type_ssize_t=yes"
14844 eval "ac_cv_type_ssize_t=no"
14849 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14850 echo "$ac_t""yes" 1>&6
14852 echo "$ac_t""no" 1>&6
14853 cat >> confdefs.h <<EOF
14854 #define ssize_t signed int
14859 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14860 echo "configure:14861: checking for caddr_t" >&5
14861 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14862 echo $ac_n "(cached) $ac_c" 1>&6
14864 cat > conftest.$ac_ext <<EOF
14865 #line 14866 "configure"
14866 #include "confdefs.h"
14867 #include <sys/types.h>
14869 #include <stdlib.h>
14870 #include <stddef.h>
14874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14875 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14877 eval "ac_cv_type_caddr_t=yes"
14880 eval "ac_cv_type_caddr_t=no"
14885 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14886 echo "$ac_t""yes" 1>&6
14888 echo "$ac_t""no" 1>&6
14889 cat >> confdefs.h <<EOF
14890 #define caddr_t char *
14896 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14897 echo "configure:14898: checking for socklen_t" >&5
14898 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14899 echo $ac_n "(cached) $ac_c" 1>&6
14901 cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14905 #ifdef HAVE_SYS_TYPES_H
14906 #include <sys/types.h>
14908 #ifdef HAVE_SYS_SOCKET_H
14909 #include <sys/socket.h>
14916 if { (eval echo configure:14917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14918 ol_cv_type_socklen_t=yes
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14923 ol_cv_type_socklen_t=no
14928 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14929 if test $ol_cv_type_socklen_t = no; then
14930 cat >> confdefs.h <<\EOF
14931 #define socklen_t int
14936 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14937 echo "configure:14938: checking for member st_blksize in aggregate type struct stat" >&5
14938 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14941 cat > conftest.$ac_ext <<EOF
14942 #line 14943 "configure"
14943 #include "confdefs.h"
14944 #include <sys/types.h>
14945 #include <sys/stat.h>
14947 struct stat foo; foo.st_blksize;
14950 if { (eval echo configure:14951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14952 ac_cv_c_struct_member_st_blksize=yes
14954 echo "configure: failed program was:" >&5
14955 cat conftest.$ac_ext >&5
14957 ac_cv_c_struct_member_st_blksize=no
14962 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14963 st_blksize="$ac_cv_c_struct_member_st_blksize"
14964 if test $ac_cv_c_struct_member_st_blksize = yes; then
14965 cat >> confdefs.h <<\EOF
14966 #define HAVE_ST_BLKSIZE 1
14971 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14972 echo "configure:14973: checking whether time.h and sys/time.h may both be included" >&5
14973 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14974 echo $ac_n "(cached) $ac_c" 1>&6
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 #include <sys/types.h>
14980 #include <sys/time.h>
14986 if { (eval echo configure:14987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14988 ac_cv_header_time=yes
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14993 ac_cv_header_time=no
14998 echo "$ac_t""$ac_cv_header_time" 1>&6
14999 if test $ac_cv_header_time = yes; then
15000 cat >> confdefs.h <<\EOF
15001 #define TIME_WITH_SYS_TIME 1
15006 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15007 echo "configure:15008: checking whether struct tm is in sys/time.h or time.h" >&5
15008 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15009 echo $ac_n "(cached) $ac_c" 1>&6
15011 cat > conftest.$ac_ext <<EOF
15012 #line 15013 "configure"
15013 #include "confdefs.h"
15014 #include <sys/types.h>
15017 struct tm *tp; tp->tm_sec;
15020 if { (eval echo configure:15021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15022 ac_cv_struct_tm=time.h
15024 echo "configure: failed program was:" >&5
15025 cat conftest.$ac_ext >&5
15027 ac_cv_struct_tm=sys/time.h
15032 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15033 if test $ac_cv_struct_tm = sys/time.h; then
15034 cat >> confdefs.h <<\EOF
15035 #define TM_IN_SYS_TIME 1
15040 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15041 echo "configure:15042: checking for uid_t in sys/types.h" >&5
15042 if eval "test \"\${ac_cv_type_uid_t+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"
15048 #include <sys/types.h>
15050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15051 egrep "uid_t" >/dev/null 2>&1; then
15053 ac_cv_type_uid_t=yes
15056 ac_cv_type_uid_t=no
15062 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15063 if test $ac_cv_type_uid_t = no; then
15064 cat >> confdefs.h <<\EOF
15068 cat >> confdefs.h <<\EOF
15074 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15075 echo "configure:15076: checking for sig_atomic_t" >&5
15076 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15077 echo $ac_n "(cached) $ac_c" 1>&6
15079 cat > conftest.$ac_ext <<EOF
15080 #line 15081 "configure"
15081 #include "confdefs.h"
15082 #include <signal.h>
15084 sig_atomic_t atomic;
15087 if { (eval echo configure:15088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15089 ol_cv_type_sig_atomic_t=yes
15091 echo "configure: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15094 ol_cv_type_sig_atomic_t=no
15099 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15100 if test $ol_cv_type_sig_atomic_t = no; then
15101 cat >> confdefs.h <<\EOF
15102 #define sig_atomic_t int
15109 # test for pw_gecos in struct passwd
15110 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15111 echo "configure:15112: checking struct passwd for pw_gecos" >&5
15112 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15113 echo $ac_n "(cached) $ac_c" 1>&6
15116 cat > conftest.$ac_ext <<EOF
15117 #line 15118 "configure"
15118 #include "confdefs.h"
15123 pwd.pw_gecos = pwd.pw_name;
15127 if { (eval echo configure:15128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15129 ol_cv_struct_passwd_pw_gecos=yes
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15134 ol_cv_struct_passwd_pw_gecos=no
15139 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15140 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15141 cat >> confdefs.h <<\EOF
15142 #define HAVE_PW_GECOS 1
15147 # test for pw_passwd in struct passwd
15148 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15149 echo "configure:15150: checking struct passwd for pw_passwd" >&5
15150 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15151 echo $ac_n "(cached) $ac_c" 1>&6
15154 cat > conftest.$ac_ext <<EOF
15155 #line 15156 "configure"
15156 #include "confdefs.h"
15161 pwd.pw_passwd = pwd.pw_name;
15165 if { (eval echo configure:15166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15167 ol_cv_struct_passwd_pw_passwd=yes
15169 echo "configure: failed program was:" >&5
15170 cat conftest.$ac_ext >&5
15172 ol_cv_struct_passwd_pw_passwd=no
15177 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15178 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15179 cat >> confdefs.h <<\EOF
15180 #define HAVE_PW_PASSWD 1
15186 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15187 echo "configure:15188: checking if toupper() requires islower()" >&5
15188 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15189 echo $ac_n "(cached) $ac_c" 1>&6
15192 if test "$cross_compiling" = yes; then
15193 ol_cv_c_upper_lower=safe
15195 cat > conftest.$ac_ext <<EOF
15196 #line 15197 "configure"
15197 #include "confdefs.h"
15202 if ('C' == toupper('C'))
15208 if { (eval echo configure:15209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15210 ol_cv_c_upper_lower=no
15212 echo "configure: failed program was:" >&5
15213 cat conftest.$ac_ext >&5
15215 ol_cv_c_upper_lower=yes
15222 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15223 if test $ol_cv_c_upper_lower != no ; then
15224 cat >> confdefs.h <<\EOF
15225 #define C_UPPER_LOWER 1
15230 echo $ac_n "checking for working const""... $ac_c" 1>&6
15231 echo "configure:15232: checking for working const" >&5
15232 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15233 echo $ac_n "(cached) $ac_c" 1>&6
15235 cat > conftest.$ac_ext <<EOF
15236 #line 15237 "configure"
15237 #include "confdefs.h"
15241 /* Ultrix mips cc rejects this. */
15242 typedef int charset[2]; const charset x;
15243 /* SunOS 4.1.1 cc rejects this. */
15244 char const *const *ccp;
15246 /* NEC SVR4.0.2 mips cc rejects this. */
15247 struct point {int x, y;};
15248 static struct point const zero = {0,0};
15249 /* AIX XL C 1.02.0.0 rejects this.
15250 It does not let you subtract one const X* pointer from another in an arm
15251 of an if-expression whose if-part is not a constant expression */
15252 const char *g = "string";
15253 ccp = &g + (g ? g-g : 0);
15254 /* HPUX 7.0 cc rejects these. */
15257 ccp = (char const *const *) p;
15258 { /* SCO 3.2v4 cc rejects this. */
15260 char const *s = 0 ? (char *) 0 : (char const *) 0;
15264 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15265 int x[] = {25, 17};
15266 const int *foo = &x[0];
15269 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15270 typedef const int *iptr;
15274 { /* AIX XL C 1.02.0.0 rejects this saying
15275 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15276 struct s { int j; const int *ap[3]; };
15277 struct s *b; b->j = 5;
15279 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15280 const int foo = 10;
15285 if { (eval echo configure:15286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15297 echo "$ac_t""$ac_cv_c_const" 1>&6
15298 if test $ac_cv_c_const = no; then
15299 cat >> confdefs.h <<\EOF
15305 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15306 echo "configure:15307: checking if compiler understands volatile" >&5
15307 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15308 echo $ac_n "(cached) $ac_c" 1>&6
15310 cat > conftest.$ac_ext <<EOF
15311 #line 15312 "configure"
15312 #include "confdefs.h"
15315 volatile int a; int * volatile b = x ? &y : &z;
15316 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15320 if { (eval echo configure:15321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15322 ol_cv_c_volatile=yes
15324 echo "configure: failed program was:" >&5
15325 cat conftest.$ac_ext >&5
15327 ol_cv_c_volatile=no
15332 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15333 if test $ol_cv_c_volatile = yes; then
15336 cat >> confdefs.h <<\EOF
15343 if test $cross_compiling = yes ; then
15344 cat >> confdefs.h <<\EOF
15345 #define CROSS_COMPILING 1
15349 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15350 echo "configure:15351: checking whether byte ordering is bigendian" >&5
15351 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15352 echo $ac_n "(cached) $ac_c" 1>&6
15354 ac_cv_c_bigendian=unknown
15355 # See if sys/param.h defines the BYTE_ORDER macro.
15356 cat > conftest.$ac_ext <<EOF
15357 #line 15358 "configure"
15358 #include "confdefs.h"
15359 #include <sys/types.h>
15360 #include <sys/param.h>
15363 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15364 bogus endian macros
15368 if { (eval echo configure:15369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15370 # It does; now see whether it defined to BIG_ENDIAN or not.
15371 cat > conftest.$ac_ext <<EOF
15372 #line 15373 "configure"
15373 #include "confdefs.h"
15374 #include <sys/types.h>
15375 #include <sys/param.h>
15378 #if BYTE_ORDER != BIG_ENDIAN
15383 if { (eval echo configure:15384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15385 ac_cv_c_bigendian=yes
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15390 ac_cv_c_bigendian=no
15394 echo "configure: failed program was:" >&5
15395 cat conftest.$ac_ext >&5
15398 if test $ac_cv_c_bigendian = unknown; then
15399 if test "$cross_compiling" = yes; then
15400 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15402 cat > conftest.$ac_ext <<EOF
15403 #line 15404 "configure"
15404 #include "confdefs.h"
15406 /* Are we little or big endian? From Harbison&Steele. */
15410 char c[sizeof (long)];
15413 exit (u.c[sizeof (long) - 1] == 1);
15416 if { (eval echo configure:15417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15418 ac_cv_c_bigendian=no
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15423 ac_cv_c_bigendian=yes
15431 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15432 if test $ac_cv_c_bigendian = yes; then
15433 cat >> confdefs.h <<\EOF
15434 #define WORDS_BIGENDIAN 1
15441 echo $ac_n "checking size of short""... $ac_c" 1>&6
15442 echo "configure:15443: checking size of short" >&5
15443 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15444 echo $ac_n "(cached) $ac_c" 1>&6
15446 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15447 cat > conftest.$ac_ext <<EOF
15448 #line 15449 "configure"
15449 #include "confdefs.h"
15450 #include "confdefs.h"
15451 #include <sys/types.h>
15455 switch (0) case 0: case (sizeof (short) == $ac_size):;
15458 if { (eval echo configure:15459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15460 ac_cv_sizeof_short=$ac_size
15462 echo "configure: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15466 if test x$ac_cv_sizeof_short != x ; then break; fi
15471 if test x$ac_cv_sizeof_short = x ; then
15472 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15474 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15475 cat >> confdefs.h <<EOF
15476 #define SIZEOF_SHORT $ac_cv_sizeof_short
15480 echo $ac_n "checking size of int""... $ac_c" 1>&6
15481 echo "configure:15482: checking size of int" >&5
15482 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15483 echo $ac_n "(cached) $ac_c" 1>&6
15485 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15486 cat > conftest.$ac_ext <<EOF
15487 #line 15488 "configure"
15488 #include "confdefs.h"
15489 #include "confdefs.h"
15490 #include <sys/types.h>
15494 switch (0) case 0: case (sizeof (int) == $ac_size):;
15497 if { (eval echo configure:15498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15499 ac_cv_sizeof_int=$ac_size
15501 echo "configure: failed program was:" >&5
15502 cat conftest.$ac_ext >&5
15505 if test x$ac_cv_sizeof_int != x ; then break; fi
15510 if test x$ac_cv_sizeof_int = x ; then
15511 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15513 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15514 cat >> confdefs.h <<EOF
15515 #define SIZEOF_INT $ac_cv_sizeof_int
15519 echo $ac_n "checking size of long""... $ac_c" 1>&6
15520 echo "configure:15521: checking size of long" >&5
15521 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15522 echo $ac_n "(cached) $ac_c" 1>&6
15524 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15525 cat > conftest.$ac_ext <<EOF
15526 #line 15527 "configure"
15527 #include "confdefs.h"
15528 #include "confdefs.h"
15529 #include <sys/types.h>
15533 switch (0) case 0: case (sizeof (long) == $ac_size):;
15536 if { (eval echo configure:15537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15538 ac_cv_sizeof_long=$ac_size
15540 echo "configure: failed program was:" >&5
15541 cat conftest.$ac_ext >&5
15544 if test x$ac_cv_sizeof_long != x ; then break; fi
15549 if test x$ac_cv_sizeof_long = x ; then
15550 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15552 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15553 cat >> confdefs.h <<EOF
15554 #define SIZEOF_LONG $ac_cv_sizeof_long
15559 if test "$ac_cv_sizeof_int" -lt 4 ; then
15560 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15562 cat >> confdefs.h <<\EOF
15563 #define LBER_INT_T long
15567 cat >> confdefs.h <<\EOF
15568 #define LBER_INT_T int
15573 cat >> confdefs.h <<\EOF
15574 #define LBER_LEN_T long
15577 cat >> confdefs.h <<\EOF
15578 #define LBER_SOCKET_T int
15581 cat >> confdefs.h <<\EOF
15582 #define LBER_TAG_T long
15586 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15587 echo "configure:15588: checking for 8-bit clean memcmp" >&5
15588 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
15591 if test "$cross_compiling" = yes; then
15592 ac_cv_func_memcmp_clean=no
15594 cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15600 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15601 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15605 if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15607 ac_cv_func_memcmp_clean=yes
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15612 ac_cv_func_memcmp_clean=no
15619 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15620 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15622 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15623 echo "configure:15624: checking for strftime" >&5
15624 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15625 echo $ac_n "(cached) $ac_c" 1>&6
15627 cat > conftest.$ac_ext <<EOF
15628 #line 15629 "configure"
15629 #include "confdefs.h"
15630 /* System header to define __stub macros and hopefully few prototypes,
15631 which can conflict with char strftime(); below. */
15632 #include <assert.h>
15633 /* Override any gcc2 internal prototype to avoid an error. */
15634 /* We use char because int might match the return type of a gcc2
15635 builtin and then its argument prototype would still apply. */
15641 /* The GNU C library defines this for functions which it implements
15642 to always fail with ENOSYS. Some functions are actually named
15643 something starting with __ and the normal name is an alias. */
15644 #if defined (__stub_strftime) || defined (__stub___strftime)
15652 if { (eval echo configure:15653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15654 eval "ac_cv_func_strftime=yes"
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15659 eval "ac_cv_func_strftime=no"
15664 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15665 echo "$ac_t""yes" 1>&6
15666 cat >> confdefs.h <<\EOF
15667 #define HAVE_STRFTIME 1
15671 echo "$ac_t""no" 1>&6
15672 # strftime is in -lintl on SCO UNIX.
15673 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15674 echo "configure:15675: checking for strftime in -lintl" >&5
15675 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15677 echo $ac_n "(cached) $ac_c" 1>&6
15679 ac_save_LIBS="$LIBS"
15680 LIBS="-lintl $LIBS"
15681 cat > conftest.$ac_ext <<EOF
15682 #line 15683 "configure"
15683 #include "confdefs.h"
15684 /* Override any gcc2 internal prototype to avoid an error. */
15685 /* We use char because int might match the return type of a gcc2
15686 builtin and then its argument prototype would still apply. */
15693 if { (eval echo configure:15694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15695 eval "ac_cv_lib_$ac_lib_var=yes"
15697 echo "configure: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15700 eval "ac_cv_lib_$ac_lib_var=no"
15703 LIBS="$ac_save_LIBS"
15706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15707 echo "$ac_t""yes" 1>&6
15708 cat >> confdefs.h <<\EOF
15709 #define HAVE_STRFTIME 1
15712 LIBS="-lintl $LIBS"
15714 echo "$ac_t""no" 1>&6
15720 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15721 echo "configure:15722: checking for inet_aton()" >&5
15722 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15723 echo $ac_n "(cached) $ac_c" 1>&6
15725 cat > conftest.$ac_ext <<EOF
15726 #line 15727 "configure"
15727 #include "confdefs.h"
15729 #ifdef HAVE_SYS_TYPES_H
15730 # include <sys/types.h>
15732 #ifdef HAVE_SYS_SOCKET_H
15733 # include <sys/socket.h>
15734 # ifdef HAVE_SYS_SELECT_H
15735 # include <sys/select.h>
15737 # include <netinet/in.h>
15738 # ifdef HAVE_ARPA_INET_H
15739 # include <arpa/inet.h>
15745 int rc = inet_aton( "255.255.255.255", &in );
15748 if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15750 ol_cv_func_inet_aton=yes
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 ol_cv_func_inet_aton=no
15760 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15761 if test $ol_cv_func_inet_aton != no; then
15762 cat >> confdefs.h <<\EOF
15763 #define HAVE_INET_ATON 1
15769 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15770 echo "configure:15771: checking for _spawnlp" >&5
15771 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15774 cat > conftest.$ac_ext <<EOF
15775 #line 15776 "configure"
15776 #include "confdefs.h"
15777 /* System header to define __stub macros and hopefully few prototypes,
15778 which can conflict with char _spawnlp(); below. */
15779 #include <assert.h>
15780 /* Override any gcc2 internal prototype to avoid an error. */
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15788 /* The GNU C library defines this for functions which it implements
15789 to always fail with ENOSYS. Some functions are actually named
15790 something starting with __ and the normal name is an alias. */
15791 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15799 if { (eval echo configure:15800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15801 eval "ac_cv_func__spawnlp=yes"
15803 echo "configure: failed program was:" >&5
15804 cat conftest.$ac_ext >&5
15806 eval "ac_cv_func__spawnlp=no"
15811 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15812 echo "$ac_t""yes" 1>&6
15813 cat >> confdefs.h <<\EOF
15814 #define HAVE_SPAWNLP 1
15818 echo "$ac_t""no" 1>&6
15822 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15823 echo "configure:15824: checking for _snprintf" >&5
15824 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15825 echo $ac_n "(cached) $ac_c" 1>&6
15827 cat > conftest.$ac_ext <<EOF
15828 #line 15829 "configure"
15829 #include "confdefs.h"
15830 /* System header to define __stub macros and hopefully few prototypes,
15831 which can conflict with char _snprintf(); below. */
15832 #include <assert.h>
15833 /* Override any gcc2 internal prototype to avoid an error. */
15834 /* We use char because int might match the return type of a gcc2
15835 builtin and then its argument prototype would still apply. */
15841 /* The GNU C library defines this for functions which it implements
15842 to always fail with ENOSYS. Some functions are actually named
15843 something starting with __ and the normal name is an alias. */
15844 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15852 if { (eval echo configure:15853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15854 eval "ac_cv_func__snprintf=yes"
15856 echo "configure: failed program was:" >&5
15857 cat conftest.$ac_ext >&5
15859 eval "ac_cv_func__snprintf=no"
15864 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15865 echo "$ac_t""yes" 1>&6
15866 ac_cv_func_snprintf=yes
15867 cat >> confdefs.h <<\EOF
15868 #define snprintf _snprintf
15873 echo "$ac_t""no" 1>&6
15877 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15878 echo "configure:15879: checking for _vsnprintf" >&5
15879 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15880 echo $ac_n "(cached) $ac_c" 1>&6
15882 cat > conftest.$ac_ext <<EOF
15883 #line 15884 "configure"
15884 #include "confdefs.h"
15885 /* System header to define __stub macros and hopefully few prototypes,
15886 which can conflict with char _vsnprintf(); below. */
15887 #include <assert.h>
15888 /* Override any gcc2 internal prototype to avoid an error. */
15889 /* We use char because int might match the return type of a gcc2
15890 builtin and then its argument prototype would still apply. */
15896 /* The GNU C library defines this for functions which it implements
15897 to always fail with ENOSYS. Some functions are actually named
15898 something starting with __ and the normal name is an alias. */
15899 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15907 if { (eval echo configure:15908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15909 eval "ac_cv_func__vsnprintf=yes"
15911 echo "configure: failed program was:" >&5
15912 cat conftest.$ac_ext >&5
15914 eval "ac_cv_func__vsnprintf=no"
15919 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15920 echo "$ac_t""yes" 1>&6
15921 ac_cv_func_vsnprintf=yes
15922 cat >> confdefs.h <<\EOF
15923 #define vsnprintf _vsnprintf
15928 echo "$ac_t""no" 1>&6
15932 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15933 echo "configure:15934: checking for vprintf" >&5
15934 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15935 echo $ac_n "(cached) $ac_c" 1>&6
15937 cat > conftest.$ac_ext <<EOF
15938 #line 15939 "configure"
15939 #include "confdefs.h"
15940 /* System header to define __stub macros and hopefully few prototypes,
15941 which can conflict with char vprintf(); below. */
15942 #include <assert.h>
15943 /* Override any gcc2 internal prototype to avoid an error. */
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15951 /* The GNU C library defines this for functions which it implements
15952 to always fail with ENOSYS. Some functions are actually named
15953 something starting with __ and the normal name is an alias. */
15954 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15964 eval "ac_cv_func_vprintf=yes"
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15969 eval "ac_cv_func_vprintf=no"
15974 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 cat >> confdefs.h <<\EOF
15977 #define HAVE_VPRINTF 1
15981 echo "$ac_t""no" 1>&6
15984 if test "$ac_cv_func_vprintf" != yes; then
15985 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15986 echo "configure:15987: checking for _doprnt" >&5
15987 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15990 cat > conftest.$ac_ext <<EOF
15991 #line 15992 "configure"
15992 #include "confdefs.h"
15993 /* System header to define __stub macros and hopefully few prototypes,
15994 which can conflict with char _doprnt(); below. */
15995 #include <assert.h>
15996 /* Override any gcc2 internal prototype to avoid an error. */
15997 /* We use char because int might match the return type of a gcc2
15998 builtin and then its argument prototype would still apply. */
16004 /* The GNU C library defines this for functions which it implements
16005 to always fail with ENOSYS. Some functions are actually named
16006 something starting with __ and the normal name is an alias. */
16007 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16015 if { (eval echo configure:16016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16017 eval "ac_cv_func__doprnt=yes"
16019 echo "configure: failed program was:" >&5
16020 cat conftest.$ac_ext >&5
16022 eval "ac_cv_func__doprnt=no"
16027 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16028 echo "$ac_t""yes" 1>&6
16029 cat >> confdefs.h <<\EOF
16030 #define HAVE_DOPRNT 1
16034 echo "$ac_t""no" 1>&6
16040 if test $ac_cv_func_vprintf = yes ; then
16041 for ac_func in vsnprintf vsprintf
16043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16044 echo "configure:16045: checking for $ac_func" >&5
16045 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16046 echo $ac_n "(cached) $ac_c" 1>&6
16048 cat > conftest.$ac_ext <<EOF
16049 #line 16050 "configure"
16050 #include "confdefs.h"
16051 /* System header to define __stub macros and hopefully few prototypes,
16052 which can conflict with char $ac_func(); below. */
16053 #include <assert.h>
16054 /* Override any gcc2 internal prototype to avoid an error. */
16055 /* We use char because int might match the return type of a gcc2
16056 builtin and then its argument prototype would still apply. */
16062 /* The GNU C library defines this for functions which it implements
16063 to always fail with ENOSYS. Some functions are actually named
16064 something starting with __ and the normal name is an alias. */
16065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16073 if { (eval echo configure:16074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16075 eval "ac_cv_func_$ac_func=yes"
16077 echo "configure: failed program was:" >&5
16078 cat conftest.$ac_ext >&5
16080 eval "ac_cv_func_$ac_func=no"
16085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16086 echo "$ac_t""yes" 1>&6
16087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16088 cat >> confdefs.h <<EOF
16089 #define $ac_tr_func 1
16093 echo "$ac_t""no" 1>&6
16152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16153 echo "configure:16154: checking for $ac_func" >&5
16154 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16155 echo $ac_n "(cached) $ac_c" 1>&6
16157 cat > conftest.$ac_ext <<EOF
16158 #line 16159 "configure"
16159 #include "confdefs.h"
16160 /* System header to define __stub macros and hopefully few prototypes,
16161 which can conflict with char $ac_func(); below. */
16162 #include <assert.h>
16163 /* Override any gcc2 internal prototype to avoid an error. */
16164 /* We use char because int might match the return type of a gcc2
16165 builtin and then its argument prototype would still apply. */
16171 /* The GNU C library defines this for functions which it implements
16172 to always fail with ENOSYS. Some functions are actually named
16173 something starting with __ and the normal name is an alias. */
16174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16182 if { (eval echo configure:16183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16184 eval "ac_cv_func_$ac_func=yes"
16186 echo "configure: failed program was:" >&5
16187 cat conftest.$ac_ext >&5
16189 eval "ac_cv_func_$ac_func=no"
16194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16195 echo "$ac_t""yes" 1>&6
16196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16197 cat >> confdefs.h <<EOF
16198 #define $ac_tr_func 1
16202 echo "$ac_t""no" 1>&6
16207 for ac_func in getopt tempnam
16209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16210 echo "configure:16211: checking for $ac_func" >&5
16211 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16212 echo $ac_n "(cached) $ac_c" 1>&6
16214 cat > conftest.$ac_ext <<EOF
16215 #line 16216 "configure"
16216 #include "confdefs.h"
16217 /* System header to define __stub macros and hopefully few prototypes,
16218 which can conflict with char $ac_func(); below. */
16219 #include <assert.h>
16220 /* Override any gcc2 internal prototype to avoid an error. */
16221 /* We use char because int might match the return type of a gcc2
16222 builtin and then its argument prototype would still apply. */
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16239 if { (eval echo configure:16240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16241 eval "ac_cv_func_$ac_func=yes"
16243 echo "configure: failed program was:" >&5
16244 cat conftest.$ac_ext >&5
16246 eval "ac_cv_func_$ac_func=no"
16251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16252 echo "$ac_t""yes" 1>&6
16253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16254 cat >> confdefs.h <<EOF
16255 #define $ac_tr_func 1
16259 echo "$ac_t""no" 1>&6
16260 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16266 if test "$ac_cv_func_getopt" != yes; then
16267 LIBSRCS="$LIBSRCS getopt.c"
16270 if test "$ac_cv_func_tempnam" != yes; then
16271 LIBSRCS="$LIBSRCS tempnam.c"
16274 # Check Configuration
16275 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16276 echo "configure:16277: checking declaration of sys_errlist" >&5
16277 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16281 cat > conftest.$ac_ext <<EOF
16282 #line 16283 "configure"
16283 #include "confdefs.h"
16286 #include <sys/types.h>
16289 #include <stdlib.h>
16292 char *c = (char *) *sys_errlist
16295 if { (eval echo configure:16296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16297 ol_cv_dcl_sys_errlist=yes
16298 ol_cv_have_sys_errlist=yes
16300 echo "configure: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16303 ol_cv_dcl_sys_errlist=no
16308 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16310 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16311 if test $ol_cv_dcl_sys_errlist = no ; then
16312 cat >> confdefs.h <<\EOF
16313 #define DECL_SYS_ERRLIST 1
16317 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16318 echo "configure:16319: checking existence of sys_errlist" >&5
16319 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16320 echo $ac_n "(cached) $ac_c" 1>&6
16323 cat > conftest.$ac_ext <<EOF
16324 #line 16325 "configure"
16325 #include "confdefs.h"
16328 char *c = (char *) *sys_errlist
16331 if { (eval echo configure:16332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16333 ol_cv_have_sys_errlist=yes
16335 echo "configure: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16338 ol_cv_have_sys_errlist=no
16343 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16345 if test $ol_cv_have_sys_errlist = yes ; then
16346 cat >> confdefs.h <<\EOF
16347 #define HAVE_SYS_ERRLIST 1
16354 if test "$ol_enable_debug" != no ; then
16355 cat >> confdefs.h <<\EOF
16356 #define LDAP_DEBUG 1
16360 if test "$ol_enable_syslog" = yes ; then
16361 cat >> confdefs.h <<\EOF
16362 #define LDAP_SYSLOG 1
16366 if test "$ol_enable_cache" = no ; then
16367 cat >> confdefs.h <<\EOF
16368 #define LDAP_NOCACHE 1
16372 if test "$ol_link_kbind" != no ; then
16373 cat >> confdefs.h <<\EOF
16374 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16378 if test "$ol_enable_proctitle" != no ; then
16379 cat >> confdefs.h <<\EOF
16380 #define LDAP_PROCTITLE 1
16384 if test "$ol_enable_referrals" != no ; then
16385 cat >> confdefs.h <<\EOF
16386 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16390 if test "$ol_enable_local" != no; then
16391 cat >> confdefs.h <<\EOF
16392 #define LDAP_PF_LOCAL 1
16396 if test "$ol_link_ipv6" != no; then
16397 cat >> confdefs.h <<\EOF
16398 #define LDAP_PF_INET6 1
16402 if test "$ol_enable_cleartext" != no ; then
16403 cat >> confdefs.h <<\EOF
16404 #define SLAPD_CLEARTEXT 1
16408 if test "$ol_enable_crypt" != no ; then
16409 cat >> confdefs.h <<\EOF
16410 #define SLAPD_CRYPT 1
16414 if test "$ol_link_kpasswd" != no ; then
16415 cat >> confdefs.h <<\EOF
16416 #define SLAPD_KPASSWD 1
16420 if test "$ol_link_spasswd" != no ; then
16421 cat >> confdefs.h <<\EOF
16422 #define SLAPD_SPASSWD 1
16426 if test "$ol_enable_phonetic" != no ; then
16427 cat >> confdefs.h <<\EOF
16428 #define SLAPD_PHONETIC 1
16432 if test "$ol_enable_rlookups" != no ; then
16433 cat >> confdefs.h <<\EOF
16434 #define SLAPD_RLOOKUPS 1
16438 if test "$ol_enable_aci" != no ; then
16439 cat >> confdefs.h <<\EOF
16440 #define SLAPD_ACI_ENABLED 1
16445 if test "$ol_link_modules" != no ; then
16446 cat >> confdefs.h <<\EOF
16447 #define SLAPD_MODULES 1
16451 SLAPD_MODULES_LDFLAGS="-dlopen self"
16454 if test "$ol_enable_bdb" != no ; then
16455 cat >> confdefs.h <<\EOF
16456 #define SLAPD_BDB 1
16461 if test "$ol_with_bdb_module" != static ; then
16462 cat >> confdefs.h <<\EOF
16463 #define SLAPD_BDB_DYNAMIC 1
16467 BUILD_BDB_DYNAMIC=shared
16468 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16472 if test "$ol_link_dnssrv" != no ; then
16473 cat >> confdefs.h <<\EOF
16474 #define SLAPD_DNSSRV 1
16479 if test "$ol_with_dnssrv_module" != static ; then
16480 cat >> confdefs.h <<\EOF
16481 #define SLAPD_DNSSRV_DYNAMIC 1
16485 BUILD_DNSSRV_DYNAMIC=shared
16486 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16490 if test "$ol_enable_ldap" != no ; then
16491 cat >> confdefs.h <<\EOF
16492 #define SLAPD_LDAP 1
16497 if test "$ol_with_ldap_module" != static ; then
16498 cat >> confdefs.h <<\EOF
16499 #define SLAPD_LDAP_DYNAMIC 1
16503 BUILD_LDAP_DYNAMIC=shared
16504 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16508 if test "$ol_link_ldbm" != no ; then
16509 cat >> confdefs.h <<\EOF
16510 #define SLAPD_LDBM 1
16515 if test "$ol_with_ldbm_module" != static ; then
16516 cat >> confdefs.h <<\EOF
16517 #define SLAPD_LDBM_DYNAMIC 1
16521 BUILD_LDBM_DYNAMIC=shared
16522 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16526 if test "$ol_enable_passwd" != no ; then
16527 cat >> confdefs.h <<\EOF
16528 #define SLAPD_PASSWD 1
16533 if test "$ol_with_passwd_module" != static ; then
16534 cat >> confdefs.h <<\EOF
16535 #define SLAPD_PASSWD_DYNAMIC 1
16539 BUILD_PASSWD_DYNAMIC=shared
16540 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16544 if test "$ol_link_perl" != no ; then
16545 cat >> confdefs.h <<\EOF
16546 #define SLAPD_PERL 1
16551 if test "$ol_with_perl_module" != static ; then
16552 cat >> confdefs.h <<\EOF
16553 #define SLAPD_PERL_DYNAMIC 1
16557 BUILD_PERL_DYNAMIC=shared
16558 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16562 if test "$ol_enable_shell" != no ; then
16563 cat >> confdefs.h <<\EOF
16564 #define SLAPD_SHELL 1
16569 if test "$ol_with_shell_module" != static ; then
16570 cat >> confdefs.h <<\EOF
16571 #define SLAPD_SHELL_DYNAMIC 1
16575 BUILD_SHELL_DYNAMIC=shared
16576 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16580 if test "$ol_enable_tcl" != no ; then
16581 cat >> confdefs.h <<\EOF
16582 #define SLAPD_TCL 1
16587 if test "$ol_with_tcl_module" != static; then
16588 cat >> confdefs.h <<\EOF
16589 #define SLAPD_TCL_DYNAMIC 1
16593 BUILD_TCL_DYNAMIC=shared
16594 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16598 if test "$ol_link_sql" != no ; then
16599 cat >> confdefs.h <<\EOF
16600 #define SLAPD_SQL 1
16605 if test "$ol_with_sql_module" != static; then
16606 cat >> confdefs.h <<\EOF
16607 #define SLAPD_SQL_DYNAMIC 1
16611 BUILD_SQL_DYNAMIC=shared
16612 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16616 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16617 $BUILD_SLAPD = yes ; then
16622 if test "$LINK_BINS_DYNAMIC" = yes; then
16624 LT_LIB_LINKAGE=shared
16627 LT_LIB_LINKAGE=static
16630 if test "$ac_cv_mingw32" = yes ; then
16703 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16706 # Let make expand exec_prefix.
16707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16709 # Any assignment to VPATH causes Sun make to only execute
16710 # the first set of double-colon rules, so remove it if not needed.
16711 # If there is a colon in the path, we need to keep it.
16712 if test "x$srcdir" = x.; then
16713 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16716 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16718 DEFS=-DHAVE_CONFIG_H
16720 # Without the "./", some shells look in PATH for config.status.
16721 : ${CONFIG_STATUS=./config.status}
16723 echo creating $CONFIG_STATUS
16724 rm -f $CONFIG_STATUS
16725 cat > $CONFIG_STATUS <<EOF
16727 # Generated automatically by configure.
16728 # Run this file to recreate the current configuration.
16729 # This directory was configured as follows,
16730 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16732 # $0 $ac_configure_args
16734 # Compiler output produced by configure, useful for debugging
16735 # configure, is in ./config.log if it exists.
16737 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16740 case "\$ac_option" in
16741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16742 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16743 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16744 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16745 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16747 -help | --help | --hel | --he | --h)
16748 echo "\$ac_cs_usage"; exit 0 ;;
16749 *) echo "\$ac_cs_usage"; exit 1 ;;
16753 ac_given_srcdir=$srcdir
16754 ac_given_INSTALL="$INSTALL"
16756 trap 'rm -fr `echo "\
16757 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16758 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16759 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16760 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16761 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16762 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16763 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16764 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16765 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16766 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16767 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16768 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16769 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16770 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16771 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16772 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16773 include/Makefile:build/top.mk:include/Makefile.in \
16774 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16775 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16776 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16777 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16778 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16779 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16780 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16781 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16782 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16783 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16784 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16785 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16786 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16787 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16788 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16789 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16790 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16791 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16792 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16793 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16794 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16795 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16796 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16797 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16798 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16799 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16800 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16801 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16802 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16804 cat >> $CONFIG_STATUS <<EOF
16806 # Protect against being on the right side of a sed subst in config.status.
16807 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16808 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16812 s%@CFLAGS@%$CFLAGS%g
16813 s%@CPPFLAGS@%$CPPFLAGS%g
16814 s%@CXXFLAGS@%$CXXFLAGS%g
16815 s%@FFLAGS@%$FFLAGS%g
16817 s%@LDFLAGS@%$LDFLAGS%g
16819 s%@exec_prefix@%$exec_prefix%g
16820 s%@prefix@%$prefix%g
16821 s%@program_transform_name@%$program_transform_name%g
16822 s%@bindir@%$bindir%g
16823 s%@sbindir@%$sbindir%g
16824 s%@libexecdir@%$libexecdir%g
16825 s%@datadir@%$datadir%g
16826 s%@sysconfdir@%$sysconfdir%g
16827 s%@sharedstatedir@%$sharedstatedir%g
16828 s%@localstatedir@%$localstatedir%g
16829 s%@libdir@%$libdir%g
16830 s%@includedir@%$includedir%g
16831 s%@oldincludedir@%$oldincludedir%g
16832 s%@infodir@%$infodir%g
16833 s%@mandir@%$mandir%g
16835 s%@host_alias@%$host_alias%g
16836 s%@host_cpu@%$host_cpu%g
16837 s%@host_vendor@%$host_vendor%g
16838 s%@host_os@%$host_os%g
16839 s%@target@%$target%g
16840 s%@target_alias@%$target_alias%g
16841 s%@target_cpu@%$target_cpu%g
16842 s%@target_vendor@%$target_vendor%g
16843 s%@target_os@%$target_os%g
16845 s%@build_alias@%$build_alias%g
16846 s%@build_cpu@%$build_cpu%g
16847 s%@build_vendor@%$build_vendor%g
16848 s%@build_os@%$build_os%g
16849 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16850 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16851 s%@INSTALL_DATA@%$INSTALL_DATA%g
16852 s%@PACKAGE@%$PACKAGE%g
16853 s%@VERSION@%$VERSION%g
16854 s%@ACLOCAL@%$ACLOCAL%g
16855 s%@AUTOCONF@%$AUTOCONF%g
16856 s%@AUTOMAKE@%$AUTOMAKE%g
16857 s%@AUTOHEADER@%$AUTOHEADER%g
16858 s%@MAKEINFO@%$MAKEINFO%g
16859 s%@install_sh@%$install_sh%g
16862 s%@AMTARFLAGS@%$AMTARFLAGS%g
16863 s%@SET_MAKE@%$SET_MAKE%g
16864 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16865 s%@top_builddir@%$top_builddir%g
16866 s%@ldap_subdir@%$ldap_subdir%g
16868 s%@RANLIB@%$RANLIB%g
16870 s%@DLLTOOL@%$DLLTOOL%g
16872 s%@OBJDUMP@%$OBJDUMP%g
16873 s%@LIBTOOL@%$LIBTOOL%g
16875 s%@SENDMAIL@%$SENDMAIL%g
16876 s%@EDITOR@%$EDITOR%g
16877 s%@FINGER@%$FINGER%g
16878 s%@PERLBIN@%$PERLBIN%g
16880 s%@EXEEXT@%$EXEEXT%g
16881 s%@OBJEXT@%$OBJEXT%g
16882 s%@OL_MKDEP@%$OL_MKDEP%g
16883 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16884 s%@LIBOBJS@%$LIBOBJS%g
16885 s%@LIBSRCS@%$LIBSRCS%g
16887 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16888 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16889 s%@DYN_EXT@%$DYN_EXT%g
16890 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16891 s%@BUILD_BDB@%$BUILD_BDB%g
16892 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16893 s%@BUILD_LDAP@%$BUILD_LDAP%g
16894 s%@BUILD_LDBM@%$BUILD_LDBM%g
16895 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16896 s%@BUILD_PERL@%$BUILD_PERL%g
16897 s%@BUILD_SHELL@%$BUILD_SHELL%g
16898 s%@BUILD_SQL@%$BUILD_SQL%g
16899 s%@BUILD_TCL@%$BUILD_TCL%g
16900 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
16901 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16902 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16903 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16904 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16905 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16906 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16907 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16908 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16909 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16910 s%@LDAP_LIBS@%$LDAP_LIBS%g
16911 s%@LDIF_LIBS@%$LDIF_LIBS%g
16912 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16913 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16914 s%@LDBM_LIBS@%$LDBM_LIBS%g
16915 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16916 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16917 s%@WRAP_LIBS@%$WRAP_LIBS%g
16918 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16919 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16920 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16921 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16922 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16923 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16924 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16925 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16926 s%@KRB4_LIBS@%$KRB4_LIBS%g
16927 s%@KRB5_LIBS@%$KRB5_LIBS%g
16928 s%@READLINE_LIBS@%$READLINE_LIBS%g
16929 s%@SASL_LIBS@%$SASL_LIBS%g
16930 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16931 s%@TLS_LIBS@%$TLS_LIBS%g
16932 s%@MODULES_LIBS@%$MODULES_LIBS%g
16933 s%@AUTH_LIBS@%$AUTH_LIBS%g
16934 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
16935 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16936 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16937 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16942 cat >> $CONFIG_STATUS <<\EOF
16944 # Split the substitutions into bite-sized pieces for seds with
16945 # small command number limits, like on Digital OSF/1 and HP-UX.
16946 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16947 ac_file=1 # Number of current file.
16948 ac_beg=1 # First line for current file.
16949 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16952 while $ac_more_lines; do
16953 if test $ac_beg -gt 1; then
16954 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16956 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16958 if test ! -s conftest.s$ac_file; then
16959 ac_more_lines=false
16960 rm -f conftest.s$ac_file
16962 if test -z "$ac_sed_cmds"; then
16963 ac_sed_cmds="sed -f conftest.s$ac_file"
16965 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16967 ac_file=`expr $ac_file + 1`
16969 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16972 if test -z "$ac_sed_cmds"; then
16977 cat >> $CONFIG_STATUS <<EOF
16979 CONFIG_FILES=\${CONFIG_FILES-"\
16980 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16981 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16982 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16983 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16984 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16985 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16986 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16987 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16988 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16989 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16990 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16991 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16992 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16993 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16994 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16995 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16996 include/Makefile:build/top.mk:include/Makefile.in \
16997 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16998 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16999 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17000 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17001 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17002 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17003 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17004 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
17005 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17006 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17007 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17008 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
17009 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17010 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17011 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17012 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17013 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17014 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17015 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17016 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17017 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17018 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17019 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17020 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17021 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17022 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17023 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17024 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
17027 cat >> $CONFIG_STATUS <<\EOF
17028 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17031 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17032 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17033 *) ac_file_in="${ac_file}.in" ;;
17036 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17038 # Remove last slash and all that follows it. Not all systems have dirname.
17039 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17040 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17041 # The file is in a subdirectory.
17042 test ! -d "$ac_dir" && mkdir "$ac_dir"
17043 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17044 # A "../" for each directory in $ac_dir_suffix.
17045 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17047 ac_dir_suffix= ac_dots=
17050 case "$ac_given_srcdir" in
17052 if test -z "$ac_dots"; then top_srcdir=.
17053 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17054 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17055 *) # Relative path.
17056 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17057 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17060 case "$ac_given_INSTALL" in
17061 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17062 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17065 echo creating "$ac_file"
17067 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17069 *[Mm]akefile*) ac_comsub="1i\\
17070 # $configure_input" ;;
17074 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17076 s%@configure_input@%$configure_input%g
17077 s%@srcdir@%$srcdir%g
17078 s%@top_srcdir@%$top_srcdir%g
17079 s%@INSTALL@%$INSTALL%g
17080 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17087 # ac_d sets the value in "#define NAME VALUE" lines.
17088 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17089 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17092 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17093 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17094 ac_uB='\([ ]\)%\1#\2define\3'
17097 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17098 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17099 ac_eB='$%\1#\2define\3'
17103 if test "${CONFIG_HEADERS+set}" != set; then
17105 cat >> $CONFIG_STATUS <<EOF
17106 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17108 cat >> $CONFIG_STATUS <<\EOF
17110 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17113 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17114 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17115 *) ac_file_in="${ac_file}.in" ;;
17118 echo creating $ac_file
17120 rm -f conftest.frag conftest.in conftest.out
17121 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17122 cat $ac_file_inputs > conftest.in
17126 # Transform confdefs.h into a sed script conftest.vals that substitutes
17127 # the proper values into config.h.in to produce config.h. And first:
17128 # Protect against being on the right side of a sed subst in config.status.
17129 # Protect against being in an unquoted here document in config.status.
17130 rm -f conftest.vals
17131 cat > conftest.hdr <<\EOF
17134 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17138 sed -n -f conftest.hdr confdefs.h > conftest.vals
17141 # This sed command replaces #undef with comments. This is necessary, for
17142 # example, in the case of _POSIX_SOURCE, which is predefined and required
17143 # on some systems where configure will not decide to define it.
17144 cat >> conftest.vals <<\EOF
17145 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17148 # Break up conftest.vals because some shells have a limit on
17149 # the size of here documents, and old seds have small limits too.
17151 rm -f conftest.tail
17154 ac_lines=`grep -c . conftest.vals`
17155 # grep -c gives empty output for an empty file on some AIX systems.
17156 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17157 # Write a limited-size here document to conftest.frag.
17158 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17159 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17161 sed -f conftest.frag conftest.in > conftest.out
17163 mv conftest.out conftest.in
17164 ' >> $CONFIG_STATUS
17165 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17166 rm -f conftest.vals
17167 mv conftest.tail conftest.vals
17169 rm -f conftest.vals
17171 cat >> $CONFIG_STATUS <<\EOF
17172 rm -f conftest.frag conftest.h
17173 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17174 cat conftest.in >> conftest.h
17176 if cmp -s $ac_file conftest.h 2>/dev/null; then
17177 echo "$ac_file is unchanged"
17180 # Remove last slash and all that follows it. Not all systems have dirname.
17181 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17183 # The file is in a subdirectory.
17184 test ! -d "$ac_dir" && mkdir "$ac_dir"
17187 mv conftest.h $ac_file
17192 cat >> $CONFIG_STATUS <<EOF
17195 cat >> $CONFIG_STATUS <<\EOF
17198 echo Please \"make depend\" to build dependencies
17202 chmod +x $CONFIG_STATUS
17203 rm -fr confdefs* $ac_clean_files
17204 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1