3 # from OpenLDAP: pkg/ldap/configure.in,v 1.398 2002/01/30 00:21:10 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [yes]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [no]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-monitor enable monitor backend [no]"
119 --with-monitor-module module type [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
145 Library Generation & Linking Options"
147 --enable-static[=PKGS] build static libraries [default=yes]"
149 --enable-shared[=PKGS] build shared libraries [default=yes]"
151 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
153 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
155 --disable-libtool-lock avoid locking (might break parallel builds)"
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
161 cache_file=./config.cache
170 program_transform_name=s,x,x,
178 bindir='${exec_prefix}/bin'
179 sbindir='${exec_prefix}/sbin'
180 libexecdir='${exec_prefix}/libexec'
181 datadir='${prefix}/share'
182 sysconfdir='${prefix}/etc'
183 sharedstatedir='${prefix}/com'
184 localstatedir='${prefix}/var'
185 libdir='${exec_prefix}/lib'
186 includedir='${prefix}/include'
187 oldincludedir='/usr/include'
188 infodir='${prefix}/info'
189 mandir='${prefix}/man'
191 # Initialize some other variables.
194 SHELL=${CONFIG_SHELL-/bin/sh}
195 # Maximum number of lines to put in a shell here document.
202 # If the previous option needs an argument, assign it.
203 if test -n "$ac_prev"; then
204 eval "$ac_prev=\$ac_option"
210 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
214 # Accept the important Cygnus configure options, so we can diagnose typos.
218 -bindir | --bindir | --bindi | --bind | --bin | --bi)
220 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
221 bindir="$ac_optarg" ;;
223 -build | --build | --buil | --bui | --bu)
225 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
226 build="$ac_optarg" ;;
228 -cache-file | --cache-file | --cache-fil | --cache-fi \
229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
230 ac_prev=cache_file ;;
231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
233 cache_file="$ac_optarg" ;;
235 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
237 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
239 datadir="$ac_optarg" ;;
241 -disable-* | --disable-*)
242 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
254 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix="$ac_optarg" ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he)
277 # Omit some internal or obsolete options to make the list less imposing.
278 # This message is too long to be a string in the A/UX 3.1 sh.
280 Usage: configure [options] [host]
281 Options: [defaults in brackets after descriptions]
283 --cache-file=FILE cache test results in FILE
284 --help print this message
285 --no-create do not create output files
286 --quiet, --silent do not print \`checking...' messages
287 --version print the version of autoconf that created configure
288 Directory and file names:
289 --prefix=PREFIX install architecture-independent files in PREFIX
291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
293 --bindir=DIR user executables in DIR [EPREFIX/bin]
294 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
295 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
296 --datadir=DIR read-only architecture-independent data in DIR
298 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
299 --sharedstatedir=DIR modifiable architecture-independent data in DIR
301 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
302 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
303 --includedir=DIR C header files in DIR [PREFIX/include]
304 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
305 --infodir=DIR info documentation in DIR [PREFIX/info]
306 --mandir=DIR man documentation in DIR [PREFIX/man]
307 --srcdir=DIR find the sources in DIR [configure dir or ..]
308 --program-prefix=PREFIX prepend PREFIX to installed program names
309 --program-suffix=SUFFIX append SUFFIX to installed program names
310 --program-transform-name=PROGRAM
311 run sed PROGRAM on installed program names
315 --build=BUILD configure for building on BUILD [BUILD=HOST]
316 --host=HOST configure for HOST [guessed]
317 --target=TARGET configure for TARGET [TARGET=HOST]
318 Features and packages:
319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
323 --x-includes=DIR X include files are in DIR
324 --x-libraries=DIR X library files are in DIR
326 if test -n "$ac_help"; then
327 echo "--enable and --with options recognized:$ac_help"
331 -host | --host | --hos | --ho)
333 -host=* | --host=* | --hos=* | --ho=*)
336 -includedir | --includedir | --includedi | --included | --include \
337 | --includ | --inclu | --incl | --inc)
338 ac_prev=includedir ;;
339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
340 | --includ=* | --inclu=* | --incl=* | --inc=*)
341 includedir="$ac_optarg" ;;
343 -infodir | --infodir | --infodi | --infod | --info | --inf)
345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
346 infodir="$ac_optarg" ;;
348 -libdir | --libdir | --libdi | --libd)
350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
351 libdir="$ac_optarg" ;;
353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
354 | --libexe | --libex | --libe)
355 ac_prev=libexecdir ;;
356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
357 | --libexe=* | --libex=* | --libe=*)
358 libexecdir="$ac_optarg" ;;
360 -localstatedir | --localstatedir | --localstatedi | --localstated \
361 | --localstate | --localstat | --localsta | --localst \
362 | --locals | --local | --loca | --loc | --lo)
363 ac_prev=localstatedir ;;
364 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
365 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
366 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
367 localstatedir="$ac_optarg" ;;
369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
372 mandir="$ac_optarg" ;;
375 # Obsolete; use --without-fp.
378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
388 | --oldin | --oldi | --old | --ol | --o)
389 ac_prev=oldincludedir ;;
390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
393 oldincludedir="$ac_optarg" ;;
395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
398 prefix="$ac_optarg" ;;
400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
401 | --program-pre | --program-pr | --program-p)
402 ac_prev=program_prefix ;;
403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
405 program_prefix="$ac_optarg" ;;
407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
408 | --program-suf | --program-su | --program-s)
409 ac_prev=program_suffix ;;
410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
412 program_suffix="$ac_optarg" ;;
414 -program-transform-name | --program-transform-name \
415 | --program-transform-nam | --program-transform-na \
416 | --program-transform-n | --program-transform- \
417 | --program-transform | --program-transfor \
418 | --program-transfo | --program-transf \
419 | --program-trans | --program-tran \
420 | --progr-tra | --program-tr | --program-t)
421 ac_prev=program_transform_name ;;
422 -program-transform-name=* | --program-transform-name=* \
423 | --program-transform-nam=* | --program-transform-na=* \
424 | --program-transform-n=* | --program-transform-=* \
425 | --program-transform=* | --program-transfor=* \
426 | --program-transfo=* | --program-transf=* \
427 | --program-trans=* | --program-tran=* \
428 | --progr-tra=* | --program-tr=* | --program-t=*)
429 program_transform_name="$ac_optarg" ;;
431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
432 | -silent | --silent | --silen | --sile | --sil)
435 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
437 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
439 sbindir="$ac_optarg" ;;
441 -sharedstatedir | --sharedstatedir | --sharedstatedi \
442 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
443 | --sharedst | --shareds | --shared | --share | --shar \
445 ac_prev=sharedstatedir ;;
446 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
447 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
448 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
450 sharedstatedir="$ac_optarg" ;;
452 -site | --site | --sit)
454 -site=* | --site=* | --sit=*)
457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
460 srcdir="$ac_optarg" ;;
462 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
463 | --syscon | --sysco | --sysc | --sys | --sy)
464 ac_prev=sysconfdir ;;
465 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
466 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
467 sysconfdir="$ac_optarg" ;;
469 -target | --target | --targe | --targ | --tar | --ta | --t)
471 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
472 target="$ac_optarg" ;;
474 -v | -verbose | --verbose | --verbos | --verbo | --verb)
477 -version | --version | --versio | --versi | --vers)
478 echo "configure generated by autoconf version 2.13.1"
482 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
492 eval "with_${ac_package}='$ac_optarg'" ;;
494 -without-* | --without-*)
495 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package=`echo $ac_package| sed 's/-/_/g'`
501 eval "with_${ac_package}=no" ;;
504 # Obsolete; use --with-x.
507 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
508 | --x-incl | --x-inc | --x-in | --x-i)
509 ac_prev=x_includes ;;
510 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
511 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
512 x_includes="$ac_optarg" ;;
514 -x-libraries | --x-libraries | --x-librarie | --x-librari \
515 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
516 ac_prev=x_libraries ;;
517 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
518 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
519 x_libraries="$ac_optarg" ;;
521 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
525 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
526 echo "configure: warning: $ac_option: invalid host type" 1>&2
528 if test "x$nonopt" != xNONE; then
529 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
537 if test -n "$ac_prev"; then
538 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
543 # File descriptor usage:
546 # 2 errors and warnings
547 # 3 some systems may open it to /dev/tty
548 # 4 used on the Kubota Titan
549 # 6 checking for... messages and results
550 # 5 compiler messages saved in config.log
551 if test "$silent" = yes; then
559 This file contains any messages produced by compilers while
560 running configure, to aid debugging if configure makes a mistake.
563 # Strip out --no-create and --no-recursion so they do not pile up.
564 # Also quote any args containing shell metacharacters.
569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
570 | --no-cr | --no-c) ;;
571 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
572 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
573 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
574 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
575 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
580 # Only set these to C if already set. These must not be set unconditionally
581 # because not all systems understand e.g. LANG=C (notably SCO).
582 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
583 # Non-C LC_CTYPE values break the ctype check.
584 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
585 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
586 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
587 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
590 rm -rf conftest* confdefs.h
591 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
594 # A filename unique to this package, relative to the directory that
595 # configure is in, which we can look for to find out if srcdir is correct.
596 ac_unique_file=build/version.sh
598 # Find the source files, if location was not specified.
599 if test -z "$srcdir"; then
600 ac_srcdir_defaulted=yes
601 # Try the directory containing this script, then its parent.
603 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
604 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
606 if test ! -r $srcdir/$ac_unique_file; then
610 ac_srcdir_defaulted=no
612 if test ! -r $srcdir/$ac_unique_file; then
613 if test "$ac_srcdir_defaulted" = yes; then
614 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
616 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
619 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
621 # Prefer explicitly selected file to automatically selected ones.
622 if test -z "$CONFIG_SITE"; then
623 if test "x$prefix" != xNONE; then
624 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
626 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
629 for ac_site_file in $CONFIG_SITE; do
630 if test -r "$ac_site_file"; then
631 echo "loading site script $ac_site_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
655 ac_n= ac_c='\c' ac_t=
659 # set unset (borrowed from autoconf 2.49c)
660 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
666 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
669 for ac_dir in build $srcdir/build; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
678 elif test -f $ac_dir/shtool; then
680 ac_install_sh="$ac_aux_dir/shtool install -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
687 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
688 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
689 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
691 eval `$ac_aux_dir/version.sh`
692 if test -z "$OL_STRING"; then
693 { echo "configure: error: could not determine version" 1>&2; exit 1; }
696 echo "Configuring $OL_STRING ..."
699 echo $ac_n "checking host system type""... $ac_c" 1>&6
700 echo "configure:701: checking host system type" >&5
701 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
703 # Make sure we can run config.sub.
704 if $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 ac_cv_host_alias=$host
709 case "$ac_cv_host_alias" in
713 if ac_cv_host_alias=`$ac_config_guess`; then :
714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 *) ac_cv_host_alias=$nonopt ;;
720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
721 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo $ac_n "(cached) $ac_c" 1>&6
728 echo "$ac_t""$ac_cv_host" 1>&6
731 host_alias=$ac_cv_host_alias
732 host_cpu=$ac_cv_host_cpu
733 host_vendor=$ac_cv_host_vendor
734 host_os=$ac_cv_host_os
740 echo $ac_n "checking target system type""... $ac_c" 1>&6
741 echo "configure:742: checking target system type" >&5
742 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
744 # Make sure we can run config.sub.
745 if $ac_config_sub sun4 >/dev/null 2>&1; then :
746 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749 ac_cv_target_alias=$target
750 case "$ac_cv_target_alias" in
754 ac_cv_target_alias=$host_alias ;;
756 *) ac_cv_target_alias=$nonopt ;;
760 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
761 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo $ac_n "(cached) $ac_c" 1>&6
768 echo "$ac_t""$ac_cv_target" 1>&6
771 target_alias=$ac_cv_target_alias
772 target_cpu=$ac_cv_target_cpu
773 target_vendor=$ac_cv_target_vendor
774 target_os=$ac_cv_target_os
780 echo $ac_n "checking build system type""... $ac_c" 1>&6
781 echo "configure:782: checking build system type" >&5
782 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
784 # Make sure we can run config.sub.
785 if $ac_config_sub sun4 >/dev/null 2>&1; then :
786 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
789 ac_cv_build_alias=$build
790 case "$ac_cv_build_alias" in
794 ac_cv_build_alias=$host_alias ;;
796 *) ac_cv_build_alias=$nonopt ;;
800 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
801 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
805 echo $ac_n "(cached) $ac_c" 1>&6
808 echo "$ac_t""$ac_cv_build" 1>&6
811 build_alias=$ac_cv_build_alias
812 build_cpu=$ac_cv_build_cpu
813 build_vendor=$ac_cv_build_vendor
814 build_os=$ac_cv_build_os
820 # Do some error checking and defaulting for the host and target type.
822 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
825 # 1. You are not allowed to specify --host, --target, and nonopt at the
827 # 2. Host defaults to nonopt.
828 # 3. If nonopt is not specified, then host defaults to the current host,
829 # as determined by config.guess.
830 # 4. Target and build default to nonopt.
831 # 5. If nonopt is not specified, then target and build default to host.
833 # The aliases save the names the user supplied, while $host etc.
834 # will get canonicalized.
835 case $host---$target---$nonopt in
836 NONE---*---* | *---NONE---* | *---*---NONE) ;;
837 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
840 test "$host_alias" != "$target_alias" &&
841 test "$program_prefix$program_suffix$program_transform_name" = \
843 program_prefix=${target_alias}-
846 # Find a good install program. We prefer a C program (faster),
847 # so one script is as good as another. But avoid the broken or
848 # incompatible versions:
849 # SysV /etc/install, /usr/sbin/install
850 # SunOS /usr/etc/install
853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
856 # ./install, which can be erroneously created by make from ./install.sh.
857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
858 echo "configure:859: checking for a BSD compatible install" >&5
859 if test -z "$INSTALL"; then
860 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
864 for ac_dir in $PATH; do
865 # Account for people who put trailing slashes in PATH elements.
867 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 # OSF1 and SCO ODT 3.0 have their own names for install.
870 # Don't use installbsd from OSF since it installs stuff as root
872 for ac_prog in ginstall scoinst install; do
873 if test -f $ac_dir/$ac_prog; then
874 if test $ac_prog = install &&
875 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # AIX install. It has an incompatible calling convention.
878 elif test $ac_prog = install &&
879 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
880 # program-specific install script used by HP pwplus--don't use.
883 ac_cv_path_install="$ac_dir/$ac_prog -c"
894 if test "${ac_cv_path_install+set}" = set; then
895 INSTALL="$ac_cv_path_install"
897 # As a last resort, use the slow shell script. We don't cache a
898 # path for INSTALL within a source directory, because that will
899 # break other packages using the cache if that directory is
900 # removed, or if the path is relative.
901 INSTALL="$ac_install_sh"
904 echo "$ac_t""$INSTALL" 1>&6
906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
907 # It thinks the first close brace ends the variable substitution.
908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
914 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
915 echo "configure:916: checking whether build environment is sane" >&5
918 echo timestamp > conftestfile
919 # Do `set' in a subshell so we don't clobber the current shell's
920 # arguments. Must try -L first in case configure is actually a
921 # symlink; some systems play weird games with the mod time of symlinks
922 # (eg FreeBSD returns the mod time of the symlink's containing
925 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
926 if test "$*" = "X"; then
928 set X `ls -t $srcdir/configure conftestfile`
930 if test "$*" != "X $srcdir/configure conftestfile" \
931 && test "$*" != "X conftestfile $srcdir/configure"; then
933 # If neither matched, then we have a broken ls. This can happen
934 # if, for instance, CONFIG_SHELL is bash and it inherits a
935 # broken ls alias from the environment. This has actually
936 # happened. Such a system could not be considered "sane".
937 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
938 alias in your environment" 1>&2; exit 1; }
941 test "$2" = conftestfile
947 { echo "configure: error: newly created file is older than distributed files!
948 Check your system clock" 1>&2; exit 1; }
951 echo "$ac_t""yes" 1>&6
952 if test "$program_transform_name" = s,x,x,; then
953 program_transform_name=
955 # Double any \ or $. echo might interpret backslashes.
956 cat <<\EOF_SED > conftestsed
957 s,\\,\\\\,g; s,\$,$$,g
959 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
962 test "$program_prefix" != NONE &&
963 program_transform_name="s,^,${program_prefix},;$program_transform_name"
964 # Use a double $ so make ignores it.
965 test "$program_suffix" != NONE &&
966 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
968 # sed with no file args requires a program.
969 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
971 for ac_prog in mawk gawk nawk awk
973 # Extract the first word of "$ac_prog", so it can be a program name with args.
974 set dummy $ac_prog; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$AWK"; then
981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_AWK="$ac_prog"
995 AWK="$ac_cv_prog_AWK"
996 if test -n "$AWK"; then
997 echo "$ac_t""$AWK" 1>&6
999 echo "$ac_t""no" 1>&6
1002 test -n "$AWK" && break
1005 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${MAKE-make} sets \${MAKE}" >&5
1007 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1008 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftestmake <<\EOF
1013 @echo 'ac_maketemp="${MAKE}"'
1015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1016 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1017 if test -n "$ac_maketemp"; then
1018 eval ac_cv_prog_make_${ac_make}_set=yes
1020 eval ac_cv_prog_make_${ac_make}_set=no
1024 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1028 echo "$ac_t""no" 1>&6
1029 SET_MAKE="MAKE=${MAKE-make}"
1038 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1039 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1044 missing_dir=`cd $ac_aux_dir && pwd`
1045 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working aclocal" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 ACLOCAL="$missing_dir/missing aclocal"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoconf" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOCONF="$missing_dir/missing autoconf"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working automake" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (automake --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 AUTOMAKE="$missing_dir/missing automake"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working autoheader" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1090 AUTOHEADER=autoheader
1091 echo "$ac_t""found" 1>&6
1093 AUTOHEADER="$missing_dir/missing autoheader"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working makeinfo" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1104 echo "$ac_t""found" 1>&6
1106 MAKEINFO="$missing_dir/missing makeinfo"
1107 echo "$ac_t""missing" 1>&6
1110 install_sh="$missing_dir/install-sh"
1111 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1113 for ac_prog in gnutar gtar tar
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy $ac_prog; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$AMTAR"; then
1123 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AMTAR="$ac_prog"
1137 AMTAR="$ac_cv_prog_AMTAR"
1138 if test -n "$AMTAR"; then
1139 echo "$ac_t""$AMTAR" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AMTAR" && break
1149 if test -n "$AMTAR"; then
1150 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1155 cat >> confdefs.h <<EOF
1156 #define OPENLDAP_PACKAGE "$PACKAGE"
1159 cat >> confdefs.h <<EOF
1160 #define OPENLDAP_VERSION "$VERSION"
1164 cat >> confdefs.h <<EOF
1165 #define LDAP_VENDOR_VERSION $OL_API_INC
1168 cat >> confdefs.h <<EOF
1169 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1172 cat >> confdefs.h <<EOF
1173 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1176 cat >> confdefs.h <<EOF
1177 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1181 OPENLDAP_LIBVERSION=$OL_API_LIB
1185 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1186 echo "configure:1187: checking configure arguments" >&5
1191 ldap_subdir="/openldap"
1193 # Check whether --with-subdir or --without-subdir was given.
1194 if test "${with_subdir+set}" = set; then
1195 withval="$with_subdir"
1202 ldap_subdir="$withval"
1205 ldap_subdir="/$withval"
1212 # OpenLDAP --enable-debug
1213 # Check whether --enable-debug or --disable-debug was given.
1214 if test "${enable_debug+set}" = set; then
1215 enableval="$enable_debug"
1218 for ol_val in auto yes no ; do
1219 if test "$enableval" = "$ol_val" ; then
1223 if test "$ol_arg" = "invalid" ; then
1224 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1226 ol_enable_debug="$ol_arg"
1229 ol_enable_debug="yes"
1231 # end --enable-debug
1232 # OpenLDAP --enable-syslog
1233 # Check whether --enable-syslog or --disable-syslog was given.
1234 if test "${enable_syslog+set}" = set; then
1235 enableval="$enable_syslog"
1238 for ol_val in auto yes no ; do
1239 if test "$enableval" = "$ol_val" ; then
1243 if test "$ol_arg" = "invalid" ; then
1244 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1246 ol_enable_syslog="$ol_arg"
1249 ol_enable_syslog="auto"
1251 # end --enable-syslog
1252 # OpenLDAP --enable-proctitle
1253 # Check whether --enable-proctitle or --disable-proctitle was given.
1254 if test "${enable_proctitle+set}" = set; then
1255 enableval="$enable_proctitle"
1258 for ol_val in auto yes no ; do
1259 if test "$enableval" = "$ol_val" ; then
1263 if test "$ol_arg" = "invalid" ; then
1264 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1266 ol_enable_proctitle="$ol_arg"
1269 ol_enable_proctitle="yes"
1271 # end --enable-proctitle
1272 # OpenLDAP --enable-cache
1273 # Check whether --enable-cache or --disable-cache was given.
1274 if test "${enable_cache+set}" = set; then
1275 enableval="$enable_cache"
1278 for ol_val in auto yes no ; do
1279 if test "$enableval" = "$ol_val" ; then
1283 if test "$ol_arg" = "invalid" ; then
1284 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1286 ol_enable_cache="$ol_arg"
1289 ol_enable_cache="no"
1291 # end --enable-cache
1292 # OpenLDAP --enable-referrals
1293 # Check whether --enable-referrals or --disable-referrals was given.
1294 if test "${enable_referrals+set}" = set; then
1295 enableval="$enable_referrals"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1306 ol_enable_referrals="$ol_arg"
1309 ol_enable_referrals="no"
1311 # end --enable-referrals
1312 # OpenLDAP --enable-kbind
1313 # Check whether --enable-kbind or --disable-kbind was given.
1314 if test "${enable_kbind+set}" = set; then
1315 enableval="$enable_kbind"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1326 ol_enable_kbind="$ol_arg"
1329 ol_enable_kbind="no"
1331 # end --enable-kbind
1332 # OpenLDAP --enable-ipv6
1333 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1334 if test "${enable_ipv6+set}" = set; then
1335 enableval="$enable_ipv6"
1338 for ol_val in auto yes no ; do
1339 if test "$enableval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1346 ol_enable_ipv6="$ol_arg"
1349 ol_enable_ipv6="auto"
1352 # OpenLDAP --enable-local
1353 # Check whether --enable-local or --disable-local was given.
1354 if test "${enable_local+set}" = set; then
1355 enableval="$enable_local"
1358 for ol_val in auto yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1366 ol_enable_local="$ol_arg"
1369 ol_enable_local="auto"
1371 # end --enable-local
1372 # OpenLDAP --enable-rewrite
1373 # Check whether --enable-rewrite or --disable-rewrite was given.
1374 if test "${enable_rewrite+set}" = set; then
1375 enableval="$enable_rewrite"
1378 for ol_val in auto yes no ; do
1379 if test "$enableval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1386 ol_enable_rewrite="$ol_arg"
1389 ol_enable_rewrite="no"
1391 # end --enable-rewrite
1392 # OpenLDAP --enable-x_compile
1393 # Check whether --enable-x_compile or --disable-x_compile was given.
1394 if test "${enable_x_compile+set}" = set; then
1395 enableval="$enable_x_compile"
1398 for ol_val in yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1406 ol_enable_x_compile="$ol_arg"
1409 ol_enable_x_compile="no"
1411 # end --enable-x_compile
1414 # OpenLDAP --with-cyrus_sasl
1415 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1416 if test "${with_cyrus_sasl+set}" = set; then
1417 withval="$with_cyrus_sasl"
1420 for ol_val in auto yes no ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1428 ol_with_cyrus_sasl="$ol_arg"
1431 ol_with_cyrus_sasl="auto"
1433 # end --with-cyrus_sasl
1435 # OpenLDAP --with-fetch
1436 # Check whether --with-fetch or --without-fetch was given.
1437 if test "${with_fetch+set}" = set; then
1438 withval="$with_fetch"
1441 for ol_val in auto yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1449 ol_with_fetch="$ol_arg"
1452 ol_with_fetch="auto"
1456 # OpenLDAP --with-kerberos
1457 # Check whether --with-kerberos or --without-kerberos was given.
1458 if test "${with_kerberos+set}" = set; then
1459 withval="$with_kerberos"
1462 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1470 ol_with_kerberos="$ol_arg"
1473 ol_with_kerberos="auto"
1475 # end --with-kerberos
1477 # OpenLDAP --with-readline
1478 # Check whether --with-readline or --without-readline was given.
1479 if test "${with_readline+set}" = set; then
1480 withval="$with_readline"
1483 for ol_val in auto yes no ; do
1484 if test "$withval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1491 ol_with_readline="$ol_arg"
1494 ol_with_readline="auto"
1496 # end --with-readline
1498 # OpenLDAP --with-threads
1499 # Check whether --with-threads or --without-threads was given.
1500 if test "${with_threads+set}" = set; then
1501 withval="$with_threads"
1504 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1512 ol_with_threads="$ol_arg"
1515 ol_with_threads="auto"
1517 # end --with-threads
1519 # OpenLDAP --with-tls
1520 # Check whether --with-tls or --without-tls was given.
1521 if test "${with_tls+set}" = set; then
1525 for ol_val in auto ssleay openssl yes no ; do
1526 if test "$withval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1533 ol_with_tls="$ol_arg"
1540 # OpenLDAP --with-yielding_select
1541 # Check whether --with-yielding_select or --without-yielding_select was given.
1542 if test "${with_yielding_select+set}" = set; then
1543 withval="$with_yielding_select"
1546 for ol_val in auto yes no manual ; do
1547 if test "$withval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1554 ol_with_yielding_select="$ol_arg"
1557 ol_with_yielding_select="auto"
1559 # end --with-yielding_select
1563 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1564 if test "${with_xxslapdoptions+set}" = set; then
1565 withval="$with_xxslapdoptions"
1569 # OpenLDAP --enable-slapd
1570 # Check whether --enable-slapd or --disable-slapd was given.
1571 if test "${enable_slapd+set}" = set; then
1572 enableval="$enable_slapd"
1575 for ol_val in auto yes no ; do
1576 if test "$enableval" = "$ol_val" ; then
1580 if test "$ol_arg" = "invalid" ; then
1581 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1583 ol_enable_slapd="$ol_arg"
1586 ol_enable_slapd="yes"
1588 # end --enable-slapd
1589 # OpenLDAP --enable-aci
1590 # Check whether --enable-aci or --disable-aci was given.
1591 if test "${enable_aci+set}" = set; then
1592 enableval="$enable_aci"
1595 for ol_val in auto yes no ; do
1596 if test "$enableval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1603 ol_enable_aci="$ol_arg"
1609 # OpenLDAP --enable-cleartext
1610 # Check whether --enable-cleartext or --disable-cleartext was given.
1611 if test "${enable_cleartext+set}" = set; then
1612 enableval="$enable_cleartext"
1615 for ol_val in auto yes no ; do
1616 if test "$enableval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1623 ol_enable_cleartext="$ol_arg"
1626 ol_enable_cleartext="yes"
1628 # end --enable-cleartext
1629 # OpenLDAP --enable-crypt
1630 # Check whether --enable-crypt or --disable-crypt was given.
1631 if test "${enable_crypt+set}" = set; then
1632 enableval="$enable_crypt"
1635 for ol_val in auto yes no ; do
1636 if test "$enableval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1643 ol_enable_crypt="$ol_arg"
1646 ol_enable_crypt="no"
1648 # end --enable-crypt
1649 # OpenLDAP --enable-dynamic
1650 # Check whether --enable-dynamic or --disable-dynamic was given.
1651 if test "${enable_dynamic+set}" = set; then
1652 enableval="$enable_dynamic"
1655 for ol_val in auto yes no ; do
1656 if test "$enableval" = "$ol_val" ; then
1660 if test "$ol_arg" = "invalid" ; then
1661 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1663 ol_enable_dynamic="$ol_arg"
1666 ol_enable_dynamic="no"
1668 # end --enable-dynamic
1669 # OpenLDAP --enable-kpasswd
1670 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1671 if test "${enable_kpasswd+set}" = set; then
1672 enableval="$enable_kpasswd"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1683 ol_enable_kpasswd="$ol_arg"
1686 ol_enable_kpasswd="no"
1688 # end --enable-kpasswd
1689 # OpenLDAP --enable-lmpasswd
1690 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1691 if test "${enable_lmpasswd+set}" = set; then
1692 enableval="$enable_lmpasswd"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1703 ol_enable_lmpasswd="$ol_arg"
1706 ol_enable_lmpasswd="no"
1708 # end --enable-lmpasswd
1709 # OpenLDAP --enable-spasswd
1710 # Check whether --enable-spasswd or --disable-spasswd was given.
1711 if test "${enable_spasswd+set}" = set; then
1712 enableval="$enable_spasswd"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1723 ol_enable_spasswd="$ol_arg"
1726 ol_enable_spasswd="no"
1728 # end --enable-spasswd
1729 # OpenLDAP --enable-modules
1730 # Check whether --enable-modules or --disable-modules was given.
1731 if test "${enable_modules+set}" = set; then
1732 enableval="$enable_modules"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1743 ol_enable_modules="$ol_arg"
1746 ol_enable_modules="no"
1748 # end --enable-modules
1749 # OpenLDAP --enable-phonetic
1750 # Check whether --enable-phonetic or --disable-phonetic was given.
1751 if test "${enable_phonetic+set}" = set; then
1752 enableval="$enable_phonetic"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1763 ol_enable_phonetic="$ol_arg"
1766 ol_enable_phonetic="no"
1768 # end --enable-phonetic
1769 # OpenLDAP --enable-rlookups
1770 # Check whether --enable-rlookups or --disable-rlookups was given.
1771 if test "${enable_rlookups+set}" = set; then
1772 enableval="$enable_rlookups"
1775 for ol_val in auto yes no ; do
1776 if test "$enableval" = "$ol_val" ; then
1780 if test "$ol_arg" = "invalid" ; then
1781 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1783 ol_enable_rlookups="$ol_arg"
1786 ol_enable_rlookups="no"
1788 # end --enable-rlookups
1789 # OpenLDAP --enable-slp
1790 # Check whether --enable-slp or --disable-slp was given.
1791 if test "${enable_slp+set}" = set; then
1792 enableval="$enable_slp"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1803 ol_enable_slp="$ol_arg"
1809 # OpenLDAP --enable-wrappers
1810 # Check whether --enable-wrappers or --disable-wrappers was given.
1811 if test "${enable_wrappers+set}" = set; then
1812 enableval="$enable_wrappers"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1823 ol_enable_wrappers="$ol_arg"
1826 ol_enable_wrappers="no"
1828 # end --enable-wrappers
1830 # OpenLDAP --enable-bdb
1831 # Check whether --enable-bdb or --disable-bdb was given.
1832 if test "${enable_bdb+set}" = set; then
1833 enableval="$enable_bdb"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1844 ol_enable_bdb="$ol_arg"
1850 # OpenLDAP --with-bdb_module
1851 # Check whether --with-bdb_module or --without-bdb_module was given.
1852 if test "${with_bdb_module+set}" = set; then
1853 withval="$with_bdb_module"
1856 for ol_val in static dynamic ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1864 ol_with_bdb_module="$ol_arg"
1867 ol_with_bdb_module="static"
1869 # end --with-bdb_module
1871 # OpenLDAP --enable-dnssrv
1872 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1873 if test "${enable_dnssrv+set}" = set; then
1874 enableval="$enable_dnssrv"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1885 ol_enable_dnssrv="$ol_arg"
1888 ol_enable_dnssrv="no"
1890 # end --enable-dnssrv
1891 # OpenLDAP --with-dnssrv_module
1892 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1893 if test "${with_dnssrv_module+set}" = set; then
1894 withval="$with_dnssrv_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1905 ol_with_dnssrv_module="$ol_arg"
1908 ol_with_dnssrv_module="static"
1910 # end --with-dnssrv_module
1912 # OpenLDAP --enable-ldap
1913 # Check whether --enable-ldap or --disable-ldap was given.
1914 if test "${enable_ldap+set}" = set; then
1915 enableval="$enable_ldap"
1918 for ol_val in auto yes no ; do
1919 if test "$enableval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1926 ol_enable_ldap="$ol_arg"
1932 # OpenLDAP --with-ldap_module
1933 # Check whether --with-ldap_module or --without-ldap_module was given.
1934 if test "${with_ldap_module+set}" = set; then
1935 withval="$with_ldap_module"
1938 for ol_val in static dynamic ; do
1939 if test "$withval" = "$ol_val" ; then
1943 if test "$ol_arg" = "invalid" ; then
1944 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1946 ol_with_ldap_module="$ol_arg"
1949 ol_with_ldap_module="static"
1951 # end --with-ldap_module
1953 # OpenLDAP --enable-ldbm
1954 # Check whether --enable-ldbm or --disable-ldbm was given.
1955 if test "${enable_ldbm+set}" = set; then
1956 enableval="$enable_ldbm"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1967 ol_enable_ldbm="$ol_arg"
1973 # OpenLDAP --with-ldbm_api
1974 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1975 if test "${with_ldbm_api+set}" = set; then
1976 withval="$with_ldbm_api"
1979 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1980 if test "$withval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1987 ol_with_ldbm_api="$ol_arg"
1990 ol_with_ldbm_api="auto"
1992 # end --with-ldbm_api
1994 # OpenLDAP --with-ldbm_module
1995 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1996 if test "${with_ldbm_module+set}" = set; then
1997 withval="$with_ldbm_module"
2000 for ol_val in static dynamic ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2008 ol_with_ldbm_module="$ol_arg"
2011 ol_with_ldbm_module="static"
2013 # end --with-ldbm_module
2015 # OpenLDAP --with-ldbm_type
2016 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2017 if test "${with_ldbm_type+set}" = set; then
2018 withval="$with_ldbm_type"
2021 for ol_val in auto btree hash ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2029 ol_with_ldbm_type="$ol_arg"
2032 ol_with_ldbm_type="auto"
2034 # end --with-ldbm_type
2036 # OpenLDAP --enable-meta
2037 # Check whether --enable-meta or --disable-meta was given.
2038 if test "${enable_meta+set}" = set; then
2039 enableval="$enable_meta"
2042 for ol_val in auto yes no ; do
2043 if test "$enableval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2050 ol_enable_meta="$ol_arg"
2056 # OpenLDAP --with-meta_module
2057 # Check whether --with-meta_module or --without-meta_module was given.
2058 if test "${with_meta_module+set}" = set; then
2059 withval="$with_meta_module"
2062 for ol_val in static dynamic ; do
2063 if test "$withval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2070 ol_with_meta_module="$ol_arg"
2073 ol_with_meta_module="static"
2075 # end --with-meta_module
2077 # OpenLDAP --enable-monitor
2078 # Check whether --enable-monitor or --disable-monitor was given.
2079 if test "${enable_monitor+set}" = set; then
2080 enableval="$enable_monitor"
2083 for ol_val in auto yes no ; do
2084 if test "$enableval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2091 ol_enable_monitor="$ol_arg"
2094 ol_enable_monitor="no"
2096 # end --enable-monitor
2097 # OpenLDAP --with-monitor_module
2098 # Check whether --with-monitor_module or --without-monitor_module was given.
2099 if test "${with_monitor_module+set}" = set; then
2100 withval="$with_monitor_module"
2103 for ol_val in static dynamic ; do
2104 if test "$withval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2111 ol_with_monitor_module="$ol_arg"
2114 ol_with_monitor_module="static"
2116 # end --with-monitor_module
2118 # OpenLDAP --enable-passwd
2119 # Check whether --enable-passwd or --disable-passwd was given.
2120 if test "${enable_passwd+set}" = set; then
2121 enableval="$enable_passwd"
2124 for ol_val in auto yes no ; do
2125 if test "$enableval" = "$ol_val" ; then
2129 if test "$ol_arg" = "invalid" ; then
2130 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2132 ol_enable_passwd="$ol_arg"
2135 ol_enable_passwd="no"
2137 # end --enable-passwd
2138 # OpenLDAP --with-passwd_module
2139 # Check whether --with-passwd_module or --without-passwd_module was given.
2140 if test "${with_passwd_module+set}" = set; then
2141 withval="$with_passwd_module"
2144 for ol_val in static dynamic ; do
2145 if test "$withval" = "$ol_val" ; then
2149 if test "$ol_arg" = "invalid" ; then
2150 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2152 ol_with_passwd_module="$ol_arg"
2155 ol_with_passwd_module="static"
2157 # end --with-passwd_module
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in auto yes no ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --with-perl_module
2180 # Check whether --with-perl_module or --without-perl_module was given.
2181 if test "${with_perl_module+set}" = set; then
2182 withval="$with_perl_module"
2185 for ol_val in static dynamic ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2193 ol_with_perl_module="$ol_arg"
2196 ol_with_perl_module="static"
2198 # end --with-perl_module
2200 # OpenLDAP --enable-shell
2201 # Check whether --enable-shell or --disable-shell was given.
2202 if test "${enable_shell+set}" = set; then
2203 enableval="$enable_shell"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2214 ol_enable_shell="$ol_arg"
2217 ol_enable_shell="no"
2219 # end --enable-shell
2220 # OpenLDAP --with-shell_module
2221 # Check whether --with-shell_module or --without-shell_module was given.
2222 if test "${with_shell_module+set}" = set; then
2223 withval="$with_shell_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2234 ol_with_shell_module="$ol_arg"
2237 ol_with_shell_module="static"
2239 # end --with-shell_module
2241 # OpenLDAP --enable-sql
2242 # Check whether --enable-sql or --disable-sql was given.
2243 if test "${enable_sql+set}" = set; then
2244 enableval="$enable_sql"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2255 ol_enable_sql="$ol_arg"
2261 # OpenLDAP --with-sql_module
2262 # Check whether --with-sql_module or --without-sql_module was given.
2263 if test "${with_sql_module+set}" = set; then
2264 withval="$with_sql_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2275 ol_with_sql_module="$ol_arg"
2278 ol_with_sql_module="static"
2280 # end --with-sql_module
2282 # OpenLDAP --enable-tcl
2283 # Check whether --enable-tcl or --disable-tcl was given.
2284 if test "${enable_tcl+set}" = set; then
2285 enableval="$enable_tcl"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2296 ol_enable_tcl="$ol_arg"
2302 # OpenLDAP --with-tcl_module
2303 # Check whether --with-tcl_module or --without-tcl_module was given.
2304 if test "${with_tcl_module+set}" = set; then
2305 withval="$with_tcl_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2316 ol_with_tcl_module="$ol_arg"
2319 ol_with_tcl_module="static"
2321 # end --with-tcl_module
2324 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2325 if test "${with_xxslurpdoptions+set}" = set; then
2326 withval="$with_xxslurpdoptions"
2330 # OpenLDAP --enable-slurpd
2331 # Check whether --enable-slurpd or --disable-slurpd was given.
2332 if test "${enable_slurpd+set}" = set; then
2333 enableval="$enable_slurpd"
2336 for ol_val in auto yes no ; do
2337 if test "$enableval" = "$ol_val" ; then
2341 if test "$ol_arg" = "invalid" ; then
2342 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2344 ol_enable_slurpd="$ol_arg"
2347 ol_enable_slurpd="auto"
2349 # end --enable-slurpd
2351 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2352 if test "${with_xxliboptions+set}" = set; then
2353 withval="$with_xxliboptions"
2357 # Check whether --enable-static or --disable-static was given.
2358 if test "${enable_static+set}" = set; then
2359 enableval="$enable_static"
2360 p=${PACKAGE-default}
2361 case "$enableval" in
2362 yes) enable_static=yes ;;
2363 no) enable_static=no ;;
2366 # Look at the argument we got. We use all the common list separators.
2367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2368 for pkg in $enableval; do
2369 if test "X$pkg" = "X$p"; then
2380 # Check whether --enable-shared or --disable-shared was given.
2381 if test "${enable_shared+set}" = set; then
2382 enableval="$enable_shared"
2383 p=${PACKAGE-default}
2384 case "$enableval" in
2385 yes) enable_shared=yes ;;
2386 no) enable_shared=no ;;
2389 # Look at the argument we got. We use all the common list separators.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2391 for pkg in $enableval; do
2392 if test "X$pkg" = "X$p"; then
2406 if test $ol_enable_slapd = no ; then
2407 if test $ol_enable_bdb = yes ; then
2408 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2410 if test $ol_enable_dnssrv = yes ; then
2411 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2413 if test $ol_enable_ldap = yes ; then
2414 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2416 if test $ol_enable_ldbm = yes ; then
2417 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2419 if test $ol_enable_meta = yes ; then
2420 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2422 if test $ol_enable_monitor = yes ; then
2423 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2425 if test $ol_enable_passwd = yes ; then
2426 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2428 if test $ol_enable_perl = yes ; then
2429 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2431 if test $ol_enable_shell = yes ; then
2432 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2434 if test $ol_enable_tcl = yes ; then
2435 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2437 if test $ol_enable_sql = yes ; then
2438 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2440 if test $ol_enable_modules = yes ; then
2441 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2443 if test $ol_enable_wrappers = yes ; then
2444 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2446 if test $ol_enable_phonetic = yes ; then
2447 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2449 if test $ol_enable_rlookups = yes ; then
2450 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2452 if test $ol_enable_aci = yes ; then
2453 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2455 if test $ol_with_ldbm_api != auto ; then
2456 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2458 if test $ol_with_ldbm_type != auto ; then
2459 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2461 if test $ol_with_bdb_module != static ; then
2462 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2464 if test $ol_with_dnssrv_module != static ; then
2465 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2467 if test $ol_with_ldap_module != static ; then
2468 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2470 if test $ol_with_ldbm_module != static ; then
2471 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2473 if test $ol_with_meta_module != static ; then
2474 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2476 if test $ol_with_monitor_module != static ; then
2477 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2479 if test $ol_with_passwd_module != static ; then
2480 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2482 if test $ol_with_perl_module != static ; then
2483 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2485 if test $ol_with_shell_module != static ; then
2486 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2488 if test $ol_with_tcl_module != static ; then
2489 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2491 if test $ol_with_sql_module != static ; then
2492 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2494 if test $ol_enable_slurpd = yes ; then
2495 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2497 if test $ol_enable_rewrite = yes ; then
2498 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2501 # force settings to no
2507 ol_enable_monitor=no
2514 ol_enable_modules=no
2515 ol_enable_phonetic=no
2516 ol_enable_rlookups=no
2518 ol_enable_wrappers=no
2519 ol_enable_dynamic=no
2522 ol_with_ldbm_type=no
2524 ol_with_bdb_module=static
2525 ol_with_dnssrv_module=static
2526 ol_with_ldap_module=static
2527 ol_with_ldbm_module=static
2528 ol_with_meta_module=static
2529 ol_with_monitor_module=static
2530 ol_with_passwd_module=static
2531 ol_with_perl_module=static
2532 ol_with_shell_module=static
2533 ol_with_tcl_module=static
2534 ol_with_sql_module=static
2538 ol_enable_rewrite=no
2540 elif test $ol_enable_ldbm = no ; then
2542 if test $ol_with_ldbm_api != auto ; then
2543 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2546 if test $ol_with_ldbm_type != auto ; then
2547 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2550 if test $ol_with_ldbm_module != static ; then
2551 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2554 if test $ol_enable_modules != yes -a \
2555 $ol_enable_bdb = no -a \
2556 $ol_enable_dnssrv = no -a \
2557 $ol_enable_ldap = no -a \
2558 $ol_enable_meta = no -a \
2559 $ol_enable_monitor = no -a \
2560 $ol_enable_passwd = no -a \
2561 $ol_enable_perl = no -a \
2562 $ol_enable_shell = no -a \
2563 $ol_enable_sql = no -a \
2564 $ol_enable_tcl = no ; then
2566 if test $ol_enable_slapd = yes ; then
2567 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2569 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2575 ol_with_ldbm_type=no
2576 ol_with_ldbm_module=static
2578 if test $ol_enable_bdb != no ; then
2579 ol_with_ldbm_api=berkeley
2583 if test $ol_with_ldbm_api = gdbm -a \
2584 $ol_with_ldbm_type = btree ; then
2585 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2587 if test $ol_with_ldbm_api = mdbm -a \
2588 $ol_with_ldbm_type = btree ; then
2589 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2591 if test $ol_with_ldbm_api = ndbm -a \
2592 $ol_with_ldbm_type = btree ; then
2593 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2596 if test $ol_enable_bdb = yes ; then
2597 if test $ol_with_ldbm_api = auto ; then
2598 ol_with_ldbm_api=berkeley
2599 elif test $ol_with_ldbm_api != berkeley ; then
2600 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2603 elif test $ol_enable_bdb = auto ; then
2604 if test $ol_with_ldbm_api != berkeley \
2605 -o $ol_with_ldbm_api != auto ; then
2606 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2612 if test $ol_enable_slurpd = yes ; then
2613 if test $ol_with_threads = no ; then
2614 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2618 if test $ol_enable_lmpasswd = yes ; then
2619 if test $ol_with_tls = no ; then
2620 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2624 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2625 if test $ol_with_kerberos = no ; then
2626 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2627 elif test $ol_with_kerberos = auto ; then
2628 ol_with_kerberos=yes
2631 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2632 if test $ol_with_kerberos = auto ; then
2634 elif test $ol_with_kerberos != no ; then
2635 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2640 if test $ol_enable_spasswd = yes ; then
2641 if test $ol_with_cyrus_sasl = no ; then
2642 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2644 ol_with_cyrus_sasl=yes
2647 echo "$ac_t""done" 1>&6
2676 BUILD_BDB_DYNAMIC=static
2677 BUILD_DNSSRV_DYNAMIC=static
2678 BUILD_LDAP_DYNAMIC=static
2679 BUILD_LDBM_DYNAMIC=static
2680 BUILD_META_DYNAMIC=static
2681 BUILD_MONITOR_DYNAMIC=static
2682 BUILD_PASSWD_DYNAMIC=static
2683 BUILD_PERL_DYNAMIC=static
2684 BUILD_SHELL_DYNAMIC=static
2685 BUILD_TCL_DYNAMIC=static
2686 BUILD_SQL_DYNAMIC=static
2688 SLAPD_MODULES_LDFLAGS=
2689 SLAPD_MODULES_CPPFLAGS=
2692 SLAPD_STATIC_BACKENDS=
2693 SLAPD_DYNAMIC_BACKENDS=
2717 cat >> confdefs.h <<\EOF
2718 #define HAVE_MKVERSION 1
2726 *-*-aix*) if test -z "$CC" ; then
2727 case "$ol_with_threads" in
2728 auto | yes | posix) ol_aix_threads=yes ;;
2734 if test $ol_aix_threads = yes ; then
2735 if test -z "${CC}" ; then
2736 for ac_prog in cc_r xlc_r cc
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_word" >&5
2742 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2750 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 if test -f $ac_dir/$ac_word; then
2753 ac_cv_prog_CC="$ac_prog"
2761 if test -n "$CC"; then
2762 echo "$ac_t""$CC" 1>&6
2764 echo "$ac_t""no" 1>&6
2767 test -n "$CC" && break
2771 if test "$CC" = cc ; then
2772 if test $ol_with_threads != auto ; then
2773 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2775 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2781 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2782 ol_with_threads=posix
2783 ol_cv_pthread_create=yes
2787 if test -z "${CC}"; then
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_word" >&5
2794 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2805 ac_cv_prog_CC="$ac_prog"
2813 if test -n "$CC"; then
2814 echo "$ac_t""$CC" 1>&6
2816 echo "$ac_t""no" 1>&6
2819 test -n "$CC" && break
2825 for ac_prog in ar gar
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2830 echo "configure:2831: checking for $ac_word" >&5
2831 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 if test -n "$AR"; then
2835 ac_cv_prog_AR="$AR" # Let the user override the test.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2839 for ac_dir in $ac_dummy; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_prog_AR="$ac_prog"
2850 if test -n "$AR"; then
2851 echo "$ac_t""$AR" 1>&6
2853 echo "$ac_t""no" 1>&6
2856 test -n "$AR" && break
2858 test -n "$AR" || AR="ar"
2863 # Check whether --enable-fast-install or --disable-fast-install was given.
2864 if test "${enable_fast_install+set}" = set; then
2865 enableval="$enable_fast_install"
2866 p=${PACKAGE-default}
2867 case "$enableval" in
2868 yes) enable_fast_install=yes ;;
2869 no) enable_fast_install=no ;;
2871 enable_fast_install=no
2872 # Look at the argument we got. We use all the common list separators.
2873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2874 for pkg in $enableval; do
2875 if test "X$pkg" = "X$p"; then
2876 enable_fast_install=yes
2883 enable_fast_install=yes
2886 # Extract the first word of "ranlib", so it can be a program name with args.
2887 set dummy ranlib; ac_word=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 if test -n "$RANLIB"; then
2894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2898 for ac_dir in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_prog_RANLIB="ranlib"
2906 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2909 RANLIB="$ac_cv_prog_RANLIB"
2910 if test -n "$RANLIB"; then
2911 echo "$ac_t""$RANLIB" 1>&6
2913 echo "$ac_t""no" 1>&6
2916 # Extract the first word of "gcc", so it can be a program name with args.
2917 set dummy gcc; ac_word=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2939 if test -n "$CC"; then
2940 echo "$ac_t""$CC" 1>&6
2942 echo "$ac_t""no" 1>&6
2945 if test -z "$CC"; then
2946 # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2959 for ac_dir in $ac_dummy; do
2960 test -z "$ac_dir" && ac_dir=.
2961 if test -f $ac_dir/$ac_word; then
2962 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2963 ac_prog_rejected=yes
2971 if test $ac_prog_rejected = yes; then
2972 # We found a bogon in the path, so make sure we never use it.
2973 set dummy $ac_cv_prog_CC
2975 if test $# -gt 0; then
2976 # We chose a different compiler from the bogus one.
2977 # However, it has the same basename, so the bogon will be chosen
2978 # first if we set CC to just the basename; use the full file name.
2980 set dummy "$ac_dir/$ac_word" "$@"
2988 if test -n "$CC"; then
2989 echo "$ac_t""$CC" 1>&6
2991 echo "$ac_t""no" 1>&6
2994 if test -z "$CC"; then
2995 case "`uname -s`" in
2996 *win32* | *WIN32* | *CYGWIN*)
2997 # Extract the first word of "cl", so it can be a program name with args.
2998 set dummy cl; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 for ac_dir in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir=.
3011 if test -f $ac_dir/$ac_word; then
3020 if test -n "$CC"; then
3021 echo "$ac_t""$CC" 1>&6
3023 echo "$ac_t""no" 1>&6
3028 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3032 echo "configure:3033: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3039 cross_compiling=$ac_cv_prog_cc_cross
3041 cat > conftest.$ac_ext << EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 ac_cv_prog_cc_works=yes
3050 # If we can't run a trivial program, we are probably using a cross compiler.
3051 if (./conftest; exit) 2>/dev/null; then
3052 ac_cv_prog_cc_cross=no
3054 ac_cv_prog_cc_cross=yes
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 ac_cv_prog_cc_works=no
3063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3064 ac_cpp='$CPP $CPPFLAGS'
3065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3067 cross_compiling=$ac_cv_prog_cc_cross
3069 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3070 if test $ac_cv_prog_cc_works = no; then
3071 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3073 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3074 echo "configure:3075: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3075 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3076 cross_compiling=$ac_cv_prog_cc_cross
3078 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3079 echo "configure:3080: checking whether we are using GNU C" >&5
3080 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.c <<EOF
3088 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3095 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3097 if test $ac_cv_prog_gcc = yes; then
3103 ac_test_CFLAGS="${CFLAGS+set}"
3104 ac_save_CFLAGS="$CFLAGS"
3106 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3107 echo "configure:3108: checking whether ${CC-cc} accepts -g" >&5
3108 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 echo 'void f(){}' > conftest.c
3112 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3121 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3122 if test "$ac_test_CFLAGS" = set; then
3123 CFLAGS="$ac_save_CFLAGS"
3124 elif test $ac_cv_prog_cc_g = yes; then
3125 if test "$GCC" = yes; then
3131 if test "$GCC" = yes; then
3138 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3139 if test "${with_gnu_ld+set}" = set; then
3140 withval="$with_gnu_ld"
3141 test "$withval" = no || with_gnu_ld=yes
3147 if test "$ac_cv_prog_gcc" = yes; then
3148 # Check if gcc -print-prog-name=ld gives a path.
3149 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3150 echo "configure:3151: checking for ld used by GCC" >&5
3151 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3153 # Accept absolute paths.
3154 [\\/]* | [A-Za-z]:[\\/]*)
3155 re_direlt='/[^/][^/]*/\.\./'
3156 # Canonicalize the path of ld
3157 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3159 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3161 test -z "$LD" && LD="$ac_prog"
3164 # If it fails, then pretend we aren't using GCC.
3168 # If it is relative, then search for the first ld in PATH.
3172 elif test "$with_gnu_ld" = yes; then
3173 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3174 echo "configure:3175: checking for GNU ld" >&5
3176 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3177 echo "configure:3178: checking for non-GNU ld" >&5
3179 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 if test -z "$LD"; then
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3184 for ac_dir in $PATH; do
3185 test -z "$ac_dir" && ac_dir=.
3186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3187 ac_cv_path_LD="$ac_dir/$ac_prog"
3188 # Check to see if the program is GNU ld. I'd rather use --version,
3189 # but apparently some GNU ld's only accept -v.
3190 # Break only if it was the GNU/non-GNU ld that we prefer.
3191 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3192 test "$with_gnu_ld" != no && break
3194 test "$with_gnu_ld" != yes && break
3200 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3205 if test -n "$LD"; then
3206 echo "$ac_t""$LD" 1>&6
3208 echo "$ac_t""no" 1>&6
3210 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3211 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3212 echo "configure:3213: checking if the linker ($LD) is GNU ld" >&5
3213 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3217 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3218 ac_cv_prog_gnu_ld=yes
3220 ac_cv_prog_gnu_ld=no
3224 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3227 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3228 echo "configure:3229: checking for BSD-compatible nm" >&5
3229 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 if test -n "$NM"; then
3233 # Let the user override the test.
3236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3237 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3238 test -z "$ac_dir" && ac_dir=.
3239 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3240 # Check to see if the nm accepts a BSD-compat flag.
3241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3242 # nm: unknown option "B" ignored
3243 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3244 ac_cv_path_NM="$ac_dir/nm -B"
3246 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3247 ac_cv_path_NM="$ac_dir/nm -p"
3250 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3251 continue # so that we can try to find one that supports BSD flags
3256 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3261 echo "$ac_t""$NM" 1>&6
3263 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether ln -s works" >&5
3265 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3269 if ln -s X conftestdata 2>/dev/null
3272 ac_cv_prog_LN_S="ln -s"
3277 LN_S="$ac_cv_prog_LN_S"
3278 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3279 echo "$ac_t""yes" 1>&6
3281 echo "$ac_t""no" 1>&6
3284 if test $host != $build; then
3285 ac_tool_prefix=${host_alias}-
3292 NONE) lt_target="$host" ;;
3293 *) lt_target="$target" ;;
3296 # Check for any special flags to pass to ltconfig.
3297 libtool_flags="--cache-file=$cache_file"
3298 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3299 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3300 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3301 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3302 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3303 libtool_flags="$libtool_flags --enable-dlopen"
3304 libtool_flags="$libtool_flags --enable-win32-dll"
3305 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3306 if test "${enable_libtool_lock+set}" = set; then
3307 enableval="$enable_libtool_lock"
3311 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3312 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3314 # Some flags need to be propagated to the compiler or linker for good
3316 case "$lt_target" in
3318 # Find out which ABI we are using.
3319 echo '#line 3320 "configure"' > conftest.$ac_ext
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321 case "`/usr/bin/file conftest.o`" in
3337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3338 SAVE_CFLAGS="$CFLAGS"
3339 CFLAGS="$CFLAGS -belf"
3340 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3341 echo "configure:3342: checking whether the C compiler needs -belf" >&5
3342 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 lt_cv_cc_needs_belf=yes
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 lt_cv_cc_needs_belf=no
3365 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3366 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3367 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3368 CFLAGS="$SAVE_CFLAGS"
3372 *-*-cygwin* | *-*-mingw*)
3373 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3374 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 if test -n "$DLLTOOL"; then
3381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3395 DLLTOOL="$ac_cv_prog_DLLTOOL"
3396 if test -n "$DLLTOOL"; then
3397 echo "$ac_t""$DLLTOOL" 1>&6
3399 echo "$ac_t""no" 1>&6
3403 if test -z "$ac_cv_prog_DLLTOOL"; then
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "dlltool", so it can be a program name with args.
3406 set dummy dlltool; ac_word=$2
3407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3408 echo "configure:3409: checking for $ac_word" >&5
3409 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 if test -n "$DLLTOOL"; then
3413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3417 for ac_dir in $ac_dummy; do
3418 test -z "$ac_dir" && ac_dir=.
3419 if test -f $ac_dir/$ac_word; then
3420 ac_cv_prog_DLLTOOL="dlltool"
3425 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3428 DLLTOOL="$ac_cv_prog_DLLTOOL"
3429 if test -n "$DLLTOOL"; then
3430 echo "$ac_t""$DLLTOOL" 1>&6
3432 echo "$ac_t""no" 1>&6
3440 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}as; ac_word=$2
3442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_word" >&5
3444 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 if test -n "$AS"; then
3448 ac_cv_prog_AS="$AS" # Let the user override the test.
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3452 for ac_dir in $ac_dummy; do
3453 test -z "$ac_dir" && ac_dir=.
3454 if test -f $ac_dir/$ac_word; then
3455 ac_cv_prog_AS="${ac_tool_prefix}as"
3463 if test -n "$AS"; then
3464 echo "$ac_t""$AS" 1>&6
3466 echo "$ac_t""no" 1>&6
3470 if test -z "$ac_cv_prog_AS"; then
3471 if test -n "$ac_tool_prefix"; then
3472 # Extract the first word of "as", so it can be a program name with args.
3473 set dummy as; ac_word=$2
3474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3475 echo "configure:3476: checking for $ac_word" >&5
3476 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 if test -n "$AS"; then
3480 ac_cv_prog_AS="$AS" # Let the user override the test.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/$ac_word; then
3492 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3496 if test -n "$AS"; then
3497 echo "$ac_t""$AS" 1>&6
3499 echo "$ac_t""no" 1>&6
3507 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_word" >&5
3511 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 if test -n "$OBJDUMP"; then
3515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 for ac_dir in $ac_dummy; do
3520 test -z "$ac_dir" && ac_dir=.
3521 if test -f $ac_dir/$ac_word; then
3522 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3529 OBJDUMP="$ac_cv_prog_OBJDUMP"
3530 if test -n "$OBJDUMP"; then
3531 echo "$ac_t""$OBJDUMP" 1>&6
3533 echo "$ac_t""no" 1>&6
3537 if test -z "$ac_cv_prog_OBJDUMP"; then
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "objdump", so it can be a program name with args.
3540 set dummy objdump; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 if test -n "$OBJDUMP"; then
3547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 if test -f $ac_dir/$ac_word; then
3554 ac_cv_prog_OBJDUMP="objdump"
3559 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3562 OBJDUMP="$ac_cv_prog_OBJDUMP"
3563 if test -n "$OBJDUMP"; then
3564 echo "$ac_t""$OBJDUMP" 1>&6
3566 echo "$ac_t""no" 1>&6
3579 # Save cache, so that ltconfig can load it
3582 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3583 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3584 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3585 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3586 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3587 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3588 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3589 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3591 # Reload cache, that may have been modified by ltconfig
3594 # This can be used to rebuild libtool when needed
3595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3597 # Always use our own libtool.
3598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3600 # Redirect the config.log output again, so that the ltconfig log is not
3601 # clobbered by the next message.
3602 exec 5>>./config.log
3605 for ac_prog in mawk gawk nawk awk
3607 # Extract the first word of "$ac_prog", so it can be a program name with args.
3608 set dummy $ac_prog; ac_word=$2
3609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_word" >&5
3611 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 if test -n "$AWK"; then
3615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3619 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if test -f $ac_dir/$ac_word; then
3622 ac_cv_prog_AWK="$ac_prog"
3629 AWK="$ac_cv_prog_AWK"
3630 if test -n "$AWK"; then
3631 echo "$ac_t""$AWK" 1>&6
3633 echo "$ac_t""no" 1>&6
3636 test -n "$AWK" && break
3639 # test for ln hardlink support
3640 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3641 echo "configure:3642: checking whether ln works" >&5
3642 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 rm -f conftest.src conftest.dst
3646 echo "conftest" > conftest.src
3647 if ln conftest.src conftest.dst 2>/dev/null
3649 ol_cv_prog_LN_H="ln"
3651 ol_cv_prog_LN_H="cp"
3653 rm -f conftest.src conftest.dst
3656 LN_H="$ol_cv_prog_LN_H"
3657 if test "$ol_cv_prog_LN_H" = "ln"; then
3658 echo "$ac_t""yes" 1>&6
3660 echo "$ac_t""no" 1>&6
3663 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether ln -s works" >&5
3665 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3669 if ln -s X conftestdata 2>/dev/null
3672 ac_cv_prog_LN_S="ln -s"
3677 LN_S="$ac_cv_prog_LN_S"
3678 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3679 echo "$ac_t""yes" 1>&6
3681 echo "$ac_t""no" 1>&6
3685 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3689 # Extract the first word of "sendmail", so it can be a program name with args.
3690 set dummy sendmail; ac_word=$2
3691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $ac_word" >&5
3693 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3701 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3705 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3706 for ac_dir in $ac_dummy; do
3707 test -z "$ac_dir" && ac_dir=.
3708 if test -f $ac_dir/$ac_word; then
3709 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3714 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3718 SENDMAIL="$ac_cv_path_SENDMAIL"
3719 if test -n "$SENDMAIL"; then
3720 echo "$ac_t""$SENDMAIL" 1>&6
3722 echo "$ac_t""no" 1>&6
3725 # Extract the first word of "vi", so it can be a program name with args.
3726 set dummy vi; ac_word=$2
3727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_word" >&5
3729 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3734 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3737 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3741 ac_dummy="$PATH:/usr/ucb"
3742 for ac_dir in $ac_dummy; do
3743 test -z "$ac_dir" && ac_dir=.
3744 if test -f $ac_dir/$ac_word; then
3745 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3750 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3754 EDITOR="$ac_cv_path_EDITOR"
3755 if test -n "$EDITOR"; then
3756 echo "$ac_t""$EDITOR" 1>&6
3758 echo "$ac_t""no" 1>&6
3761 # Extract the first word of "finger", so it can be a program name with args.
3762 set dummy finger; ac_word=$2
3763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_word" >&5
3765 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3773 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3777 ac_dummy="$PATH:/usr/ucb"
3778 for ac_dir in $ac_dummy; do
3779 test -z "$ac_dir" && ac_dir=.
3780 if test -f $ac_dir/$ac_word; then
3781 ac_cv_path_FINGER="$ac_dir/$ac_word"
3786 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3790 FINGER="$ac_cv_path_FINGER"
3791 if test -n "$FINGER"; then
3792 echo "$ac_t""$FINGER" 1>&6
3794 echo "$ac_t""no" 1>&6
3799 if test $ol_enable_perl != no ; then
3800 # Extract the first word of "perl", so it can be a program name with args.
3801 set dummy perl; ac_word=$2
3802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_word" >&5
3804 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3809 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3812 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3817 for ac_dir in $ac_dummy; do
3818 test -z "$ac_dir" && ac_dir=.
3819 if test -f $ac_dir/$ac_word; then
3820 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3825 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3829 PERLBIN="$ac_cv_path_PERLBIN"
3830 if test -n "$PERLBIN"; then
3831 echo "$ac_t""$PERLBIN" 1>&6
3833 echo "$ac_t""no" 1>&6
3837 if test "no$PERLBIN" = "no" ; then
3838 if test $ol_enable_perl = yes ; then
3839 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3843 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3844 if test x"$ol_with_perl_module" = "xstatic" ; then
3845 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3847 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3853 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3854 echo "configure:3855: checking how to run the C preprocessor" >&5
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3859 if test -z "$CPP"; then
3860 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 # This must be in double quotes, not single quotes, because CPP may get
3864 # substituted into the Makefile and "${CC-cc}" will confuse make.
3866 # On the NeXT, cc -E runs the code through the compiler's parser,
3867 # not just through cpp.
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3875 { (eval echo configure:3876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3877 if test -z "$ac_err"; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 CPP="${CC-cc} -E -traditional-cpp"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3892 { (eval echo configure:3893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3894 if test -z "$ac_err"; then
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 CPP="${CC-cc} -nologo -E"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3909 { (eval echo configure:3910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3911 if test -z "$ac_err"; then
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3925 ac_cv_prog_CPP="$CPP"
3927 CPP="$ac_cv_prog_CPP"
3929 ac_cv_prog_CPP="$CPP"
3931 echo "$ac_t""$CPP" 1>&6
3934 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3935 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3937 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3938 echo "configure: warning: programs compiled here do run here..." 1>&2
3939 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3941 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3942 echo "configure: warning: programs compiled here do not run here..." 1>&2
3943 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3946 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3947 echo "configure:3948: checking for AIX" >&5
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 egrep "yes" >/dev/null 2>&1; then
3959 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3960 #define _ALL_SOURCE 1
3965 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3971 echo "configure:3972: checking for POSIXized ISC" >&5
3972 if test -d /etc/conf/kconfig.d &&
3973 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3975 echo "$ac_t""yes" 1>&6
3976 ISC=yes # If later tests want to check for ISC.
3977 cat >> confdefs.h <<\EOF
3978 #define _POSIX_SOURCE 1
3981 if test "$GCC" = yes; then
3987 echo "$ac_t""no" 1>&6
3991 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3992 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3993 echo "configure:3994: checking for minix/config.h" >&5
3994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <minix/config.h>
4002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4003 { (eval echo configure:4004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4005 if test -z "$ac_err"; then
4007 eval "ac_cv_header_$ac_safe=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 eval "ac_cv_header_$ac_safe=no"
4017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 echo "$ac_t""no" 1>&6
4025 if test "$MINIX" = yes; then
4026 cat >> confdefs.h <<\EOF
4027 #define _POSIX_SOURCE 1
4030 cat >> confdefs.h <<\EOF
4031 #define _POSIX_1_SOURCE 2
4034 cat >> confdefs.h <<\EOF
4041 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4042 echo "configure:4043: checking for Cygwin environment" >&5
4043 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4053 #define __CYGWIN__ __CYGWIN32__
4058 if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4070 echo "$ac_t""$ac_cv_cygwin" 1>&6
4072 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4073 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4074 echo "configure:4075: checking for mingw32 environment" >&5
4075 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4098 echo "$ac_t""$ac_cv_mingw32" 1>&6
4100 test "$ac_cv_mingw32" = yes && MINGW32=yes
4101 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4102 echo "configure:4103: checking for EMX OS/2 environment" >&5
4103 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4114 if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4126 echo "$ac_t""$ac_cv_emxos2" 1>&6
4128 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4132 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4133 echo "configure:4134: checking for executable suffix" >&5
4134 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4141 echo 'int main () { return 0; }' > conftest.$ac_ext
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4144 for file in conftest.*; do
4146 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4147 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4151 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4154 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4159 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4160 echo "$ac_t""${ac_cv_exeext}" 1>&6
4163 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4164 echo "configure:4165: checking for object suffix" >&5
4165 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4169 echo 'int i = 1;' > conftest.$ac_ext
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 for ac_file in conftest.*; do
4174 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4178 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4183 echo "$ac_t""$ac_cv_objext" 1>&6
4184 OBJEXT=$ac_cv_objext
4185 ac_objext=$ac_cv_objext
4188 cat >> confdefs.h <<EOF
4189 #define EXEEXT "${EXEEXT}"
4193 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4194 echo "configure:4195: checking for be_app in -lbe" >&5
4195 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 ac_save_LIBS="$LIBS"
4200 LIBS="-lbe -lroot -lnet $LIBS"
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 eval "ac_cv_lib_$ac_lib_var=no"
4223 LIBS="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 LIBS="$LIBS -lbe -lroot -lnet"
4230 echo "$ac_t""no" 1>&6
4238 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4239 echo "configure:4240: checking for ${CC-cc} option to accept ANSI C" >&5
4240 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 am_cv_prog_cc_stdc=no
4245 # Don't try gcc -ansi; that turns off useful extensions and
4246 # breaks some systems' header files.
4247 # AIX -qlanglvl=ansi
4248 # Ultrix and OSF/1 -std1
4249 # HP-UX 10.20 and later -Ae
4250 # HP-UX older versions -Aa -D_HPUX_SOURCE
4251 # SVR4 -Xc -D__EXTENSIONS__
4252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 CC="$ac_save_CC $ac_arg"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 #include <sys/types.h>
4261 #include <sys/stat.h>
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4276 s = g (p, va_arg (v,int));
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 if { (eval echo configure:4294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4295 am_cv_prog_cc_stdc="$ac_arg"; break
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4306 if test -z "$am_cv_prog_cc_stdc"; then
4307 echo "$ac_t""none needed" 1>&6
4309 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4311 case "x$am_cv_prog_cc_stdc" in
4313 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4316 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4317 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4320 # test for make depend flag
4323 if test -z "${MKDEP}"; then
4325 if test -z "${MKDEP_FLAGS}"; then
4326 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4327 echo "configure:4328: checking for ${OL_MKDEP} depend flag" >&5
4328 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4333 for flag in "-M" "-xM"; do
4334 cat > conftest.c <<EOF
4337 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4338 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4340 if test ! -f conftest."${ac_object}" ; then
4342 OL_MKDEP_FLAGS="$flag"
4351 echo "$ac_t""$ol_cv_mkdep" 1>&6
4354 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4359 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4364 if test "${ol_cv_mkdep}" = no ; then
4365 # this will soon become an error
4366 echo "configure: warning: do not know how to generate dependencies" 1>&2
4369 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4370 echo "configure:4371: checking for afopen in -ls" >&5
4371 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS="$LIBS"
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4406 cat >> confdefs.h <<\EOF
4407 #define HAVE_AIX_SECURITY 1
4412 echo "$ac_t""no" 1>&6
4418 if test $ol_enable_modules != no ; then
4419 for ac_hdr in ltdl.h
4421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_hdr" >&5
4424 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4433 { (eval echo configure:4434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4435 if test -z "$ac_err"; then
4437 eval "ac_cv_header_$ac_safe=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_header_$ac_safe=no"
4447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_hdr 1
4455 echo "$ac_t""no" 1>&6
4460 if test $ac_cv_header_ltdl_h = no ; then
4461 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4464 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4465 echo "configure:4466: checking for lt_dlinit in -lltdl" >&5
4466 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 ac_save_LIBS="$LIBS"
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4494 LIBS="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4501 cat >> confdefs.h <<\EOF
4502 #define HAVE_LIBLTDL 1
4507 echo "$ac_t""no" 1>&6
4511 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4512 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4516 ol_with_bdb_module=static
4517 ol_with_dnssrv_module=static
4518 ol_with_ldap_module=static
4519 ol_with_ldbm_module=static
4520 ol_with_meta_module=static
4521 ol_with_monitor_module=static
4522 ol_with_passwd_module=static
4523 ol_with_perl_module=static
4524 ol_with_shell_module=static
4525 ol_with_tcl_module=static
4526 ol_with_sql_module=static
4530 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4531 echo "configure:4532: checking for EBCDIC" >&5
4532 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 #include <__ASCII__/generate_error.h>
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4550 ol_cv_cpp_ebcdic=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4561 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4562 if test $ol_cv_cpp_ebcdic = yes ; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_EBCDIC 1
4569 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4570 echo "configure:4571: checking for ANSI C header files" >&5
4571 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4583 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4585 if test -z "$ac_err"; then
4587 ol_cv_header_stdc=yes
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 ol_cv_header_stdc=no
4597 if test $ol_cv_header_stdc = yes; then
4598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 egrep "memchr" >/dev/null 2>&1; then
4609 ol_cv_header_stdc=no
4615 if test $ol_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 egrep "free" >/dev/null 2>&1; then
4627 ol_cv_header_stdc=no
4633 if test $ol_cv_header_stdc = yes; then
4634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4635 if test "$cross_compiling" = yes; then
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4652 int main () { int i; for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4661 echo "configure: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4664 ol_cv_header_stdc=no
4672 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4673 if test $ol_cv_header_stdc = yes; then
4674 cat >> confdefs.h <<\EOF
4675 #define STDC_HEADERS 1
4679 ac_cv_header_stdc=disable
4682 if test $ol_cv_header_stdc != yes; then
4683 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_hdr that defines DIR" >&5
4692 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <sys/types.h>
4704 if { (eval echo configure:4705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4706 eval "ac_cv_header_dirent_$ac_safe=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_header_dirent_$ac_safe=no"
4715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4716 echo "$ac_t""yes" 1>&6
4717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4718 cat >> confdefs.h <<EOF
4719 #define $ac_tr_hdr 1
4721 ac_header_dirent=$ac_hdr; break
4723 echo "$ac_t""no" 1>&6
4726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4727 if test $ac_header_dirent = dirent.h; then
4728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4729 echo "configure:4730: checking for opendir in -ldir" >&5
4730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS="$LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4765 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4770 echo "configure:4771: checking for opendir in -lx" >&5
4771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4772 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4806 echo "$ac_t""no" 1>&6
4811 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4812 echo "configure:4813: checking for sys/wait.h that is POSIX.1 compatible" >&5
4813 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 #include <sys/types.h>
4820 #include <sys/wait.h>
4822 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4825 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4830 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4833 if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 ac_cv_header_sys_wait_h=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 ac_cv_header_sys_wait_h=no
4845 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4846 if test $ac_cv_header_sys_wait_h = yes; then
4847 cat >> confdefs.h <<\EOF
4848 #define HAVE_SYS_WAIT_H 1
4853 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4854 echo "configure:4855: checking POSIX termios" >&5
4855 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 #include <sys/types.h>
4863 #include <termios.h>
4865 /* SunOS 4.0.3 has termios.h but not the library calls. */
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 am_cv_sys_posix_termios=yes
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 am_cv_sys_posix_termios=no
4881 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4884 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4885 echo "configure:4886: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4886 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4891 gwinsz_in_termios_h=no
4892 if test $am_cv_sys_posix_termios = yes; then
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <sys/types.h>
4897 # include <termios.h>
4903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4904 egrep "yes" >/dev/null 2>&1; then
4906 gwinsz_in_termios_h=yes
4912 if test $gwinsz_in_termios_h = no; then
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 #include <sys/types.h>
4917 # include <sys/ioctl.h>
4923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4924 egrep "yes" >/dev/null 2>&1; then
4926 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4934 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4935 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4936 cat >> confdefs.h <<\EOF
4937 #define GWINSZ_IN_SYS_IOCTL 1
4942 if test $am_cv_sys_posix_termios = yes ; then
4943 cat >> confdefs.h <<\EOF
4944 #define HAVE_POSIX_TERMIOS 1
4996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_hdr" >&5
4999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5012 eval "ac_cv_header_$ac_safe=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 eval "ac_cv_header_$ac_safe=no"
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5025 cat >> confdefs.h <<EOF
5026 #define $ac_tr_hdr 1
5030 echo "$ac_t""no" 1>&6
5037 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5038 echo "configure:5039: checking for dlopen" >&5
5039 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char dlopen(); below. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5056 /* The GNU C library defines this for functions which it implements
5057 to always fail with ENOSYS. Some functions are actually named
5058 something starting with __ and the normal name is an alias. */
5059 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5069 eval "ac_cv_func_dlopen=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5074 eval "ac_cv_func_dlopen=no"
5079 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5080 echo "$ac_t""yes" 1>&6
5083 echo "$ac_t""no" 1>&6
5084 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5085 echo "configure:5086: checking for dlopen in -ldl" >&5
5086 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 ac_save_LIBS="$LIBS"
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5096 /* We use char because int might match the return type of a gcc2
5097 builtin and then its argument prototype would still apply. */
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 eval "ac_cv_lib_$ac_lib_var=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_lib_$ac_lib_var=no"
5114 LIBS="$ac_save_LIBS"
5117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5119 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_lib 1
5128 echo "$ac_t""no" 1>&6
5134 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5135 echo "configure:5136: checking for sigset in -lV3" >&5
5136 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 ac_save_LIBS="$LIBS"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 eval "ac_cv_lib_$ac_lib_var=yes"
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 eval "ac_cv_lib_$ac_lib_var=no"
5164 LIBS="$ac_save_LIBS"
5167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_lib 1
5178 echo "$ac_t""no" 1>&6
5182 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5183 echo "configure:5184: checking for winsock" >&5
5185 for curlib in ws2_32 wsock32; do
5186 LIBS="$LIBS -l$curlib"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5193 char closesocket@4();
5194 char gethostname@8();
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5216 if test $have_winsock = yes; then
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_WINSOCK 1
5221 ac_cv_func_socket=yes
5222 ac_cv_func_select=yes
5223 ac_cv_func_closesocket=yes
5224 ac_cv_func_gethostname=yes
5225 if test $curlib = ws2_32; then
5226 have_winsock=winsock2
5227 cat >> confdefs.h <<\EOF
5228 #define HAVE_WINSOCK2 1
5236 echo "$ac_t""$have_winsock" 1>&6
5239 echo $ac_n "checking for socket""... $ac_c" 1>&6
5240 echo "configure:5241: checking for socket" >&5
5241 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* System header to define __stub macros and hopefully few prototypes,
5248 which can conflict with char socket(); below. */
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5258 /* The GNU C library defines this for functions which it implements
5259 to always fail with ENOSYS. Some functions are actually named
5260 something starting with __ and the normal name is an alias. */
5261 #if defined (__stub_socket) || defined (__stub___socket)
5269 if { (eval echo configure:5270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5271 eval "ac_cv_func_socket=yes"
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 eval "ac_cv_func_socket=no"
5281 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5285 echo "$ac_t""no" 1>&6
5287 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5288 echo "configure:5289: checking for main in -lsocket" >&5
5289 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 ac_save_LIBS="$LIBS"
5294 LIBS="-lsocket $LIBS"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 eval "ac_cv_lib_$ac_lib_var=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 eval "ac_cv_lib_$ac_lib_var=no"
5313 LIBS="$ac_save_LIBS"
5316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5317 echo "$ac_t""yes" 1>&6
5318 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5320 cat >> confdefs.h <<EOF
5321 #define $ac_tr_lib 1
5324 LIBS="-lsocket $LIBS"
5327 echo "$ac_t""no" 1>&6
5330 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5331 echo "configure:5332: checking for main in -lnet" >&5
5332 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 ac_save_LIBS="$LIBS"
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5348 eval "ac_cv_lib_$ac_lib_var=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 eval "ac_cv_lib_$ac_lib_var=no"
5356 LIBS="$ac_save_LIBS"
5359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5360 echo "$ac_t""yes" 1>&6
5361 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5363 cat >> confdefs.h <<EOF
5364 #define $ac_tr_lib 1
5370 echo "$ac_t""no" 1>&6
5373 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5374 echo "configure:5375: checking for main in -lnsl_s" >&5
5375 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 ac_save_LIBS="$LIBS"
5380 LIBS="-lnsl_s $LIBS"
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 eval "ac_cv_lib_$ac_lib_var=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_lib_$ac_lib_var=no"
5399 LIBS="$ac_save_LIBS"
5402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5406 cat >> confdefs.h <<EOF
5407 #define $ac_tr_lib 1
5410 LIBS="-lnsl_s $LIBS"
5413 echo "$ac_t""no" 1>&6
5416 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5417 echo "configure:5418: checking for main in -lnsl" >&5
5418 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5419 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 ac_save_LIBS="$LIBS"
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5434 eval "ac_cv_lib_$ac_lib_var=yes"
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5439 eval "ac_cv_lib_$ac_lib_var=no"
5442 LIBS="$ac_save_LIBS"
5445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5446 echo "$ac_t""yes" 1>&6
5447 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5449 cat >> confdefs.h <<EOF
5450 #define $ac_tr_lib 1
5456 echo "$ac_t""no" 1>&6
5459 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5460 echo "configure:5461: checking for socket in -linet" >&5
5461 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5462 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 ac_save_LIBS="$LIBS"
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* Override any gcc2 internal prototype to avoid an error. */
5471 /* We use char because int might match the return type of a gcc2
5472 builtin and then its argument prototype would still apply. */
5479 if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5481 eval "ac_cv_lib_$ac_lib_var=yes"
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5486 eval "ac_cv_lib_$ac_lib_var=no"
5489 LIBS="$ac_save_LIBS"
5492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5493 echo "$ac_t""yes" 1>&6
5494 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5496 cat >> confdefs.h <<EOF
5497 #define $ac_tr_lib 1
5503 echo "$ac_t""no" 1>&6
5506 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5507 echo "configure:5508: checking for main in -lgen" >&5
5508 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 ac_save_LIBS="$LIBS"
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524 eval "ac_cv_lib_$ac_lib_var=yes"
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 eval "ac_cv_lib_$ac_lib_var=no"
5532 LIBS="$ac_save_LIBS"
5535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5537 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5539 cat >> confdefs.h <<EOF
5540 #define $ac_tr_lib 1
5546 echo "$ac_t""no" 1>&6
5553 echo $ac_n "checking for select""... $ac_c" 1>&6
5554 echo "configure:5555: checking for select" >&5
5555 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char select(); below. */
5564 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5572 /* The GNU C library defines this for functions which it implements
5573 to always fail with ENOSYS. Some functions are actually named
5574 something starting with __ and the normal name is an alias. */
5575 #if defined (__stub_select) || defined (__stub___select)
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 eval "ac_cv_func_select=yes"
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 eval "ac_cv_func_select=no"
5595 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5599 echo "$ac_t""no" 1>&6
5600 { echo "configure: error: select() required." 1>&2; exit 1; }
5604 if test "${ac_cv_header_winsock_h}" != yes; then
5605 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5606 echo "configure:5607: checking types of arguments for select()" >&5
5607 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5617 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5618 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5622 #ifdef HAVE_SYS_TYPES_H
5623 #include <sys/types.h>
5625 #ifdef HAVE_SYS_TIME_H
5626 #include <sys/time.h>
5628 #ifdef HAVE_SYS_SELECT_H
5629 #include <sys/select.h>
5631 #ifdef HAVE_SYS_SOCKET_H
5632 #include <sys/socket.h>
5634 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);
5639 if { (eval echo configure:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 ac_not_found=no ; break 3
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5658 if test "$ac_not_found" = yes; then
5659 ac_cv_func_select_arg1=int
5660 ac_cv_func_select_arg234='int *'
5661 ac_cv_func_select_arg5='struct timeval *'
5663 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5664 cat >> confdefs.h <<EOF
5665 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5668 cat >> confdefs.h <<EOF
5669 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5672 cat >> confdefs.h <<EOF
5673 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5680 for ac_hdr in regex.h
5682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5684 echo "configure:5685: checking for $ac_hdr" >&5
5685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5694 { (eval echo configure:5695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5696 if test -z "$ac_err"; then
5698 eval "ac_cv_header_$ac_safe=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_header_$ac_safe=no"
5708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5709 echo "$ac_t""yes" 1>&6
5710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5711 cat >> confdefs.h <<EOF
5712 #define $ac_tr_hdr 1
5716 echo "$ac_t""no" 1>&6
5720 if test "$ac_cv_header_regex_h" != yes ; then
5721 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5724 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
5725 echo "configure:5726: checking for library containing regfree" >&5
5726 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5729 ac_func_search_save_LIBS="$LIBS"
5730 ac_cv_search_regfree="no"
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5734 /* Override any gcc2 internal prototype to avoid an error. */
5735 /* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5743 if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 ac_cv_search_regfree="none required"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5751 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
5752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 /* Override any gcc2 internal prototype to avoid an error. */
5757 /* We use char because int might match the return type of a gcc2
5758 builtin and then its argument prototype would still apply. */
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 ac_cv_search_regfree="-l$ac_lib"
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5775 LIBS="$ac_func_search_save_LIBS"
5778 echo "$ac_t""$ac_cv_search_regfree" 1>&6
5779 if test "$ac_cv_search_regfree" != "no"; then
5780 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
5783 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5787 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5788 echo "configure:5789: checking for compatible POSIX regex" >&5
5789 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5793 if test "$cross_compiling" = yes; then
5794 ol_cv_c_posix_regex=cross
5796 cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5800 #include <sys/types.h>
5802 static char *pattern, *string;
5810 if(regcomp(&re, pattern, 0)) {
5814 string = "ALL MATCH";
5816 rc = regexec(&re, string, 0, (void*)0, 0);
5823 if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5825 ol_cv_c_posix_regex=yes
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5830 ol_cv_c_posix_regex=no
5837 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5839 if test "$ol_cv_c_posix_regex" = no ; then
5840 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5843 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
5844 echo "configure:5845: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
5846 LIBS="$LIBS -lrpcrt4"
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5851 char UuidCreate@4();
5852 char UuidToStringA@8();
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5871 if test $need_rpcrt = yes; then
5872 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
5875 echo "$ac_t""$need_rpcrt" 1>&6
5878 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5879 echo "configure:5880: checking for res_query" >&5
5880 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char res_query(); below. */
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_res_query) || defined (__stub___res_query)
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5910 eval "ac_cv_func_res_query=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5915 eval "ac_cv_func_res_query=no"
5920 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5924 echo "$ac_t""no" 1>&6
5927 if test $ac_cv_func_res_query = no ; then
5928 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5929 echo "configure:5930: checking for __res_query" >&5
5930 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char __res_query(); below. */
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5947 /* The GNU C library defines this for functions which it implements
5948 to always fail with ENOSYS. Some functions are actually named
5949 something starting with __ and the normal name is an alias. */
5950 #if defined (__stub___res_query) || defined (__stub_____res_query)
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 eval "ac_cv_func___res_query=yes"
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 eval "ac_cv_func___res_query=no"
5970 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5974 echo "$ac_t""no" 1>&6
5977 ac_cv_func_res_query=$ac_cv_func___res_query
5980 if test $ac_cv_func_res_query = no ; then
5981 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5982 echo "configure:5983: checking for res_query in -lbind" >&5
5983 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5987 ac_save_LIBS="$LIBS"
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 /* Override any gcc2 internal prototype to avoid an error. */
5993 /* We use char because int might match the return type of a gcc2
5994 builtin and then its argument prototype would still apply. */
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6003 eval "ac_cv_lib_$ac_lib_var=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_lib_$ac_lib_var=no"
6011 LIBS="$ac_save_LIBS"
6014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6018 cat >> confdefs.h <<EOF
6019 #define $ac_tr_lib 1
6025 echo "$ac_t""no" 1>&6
6028 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
6031 if test $ac_cv_func_res_query = no ; then
6032 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
6033 echo "configure:6034: checking for __res_query in -lbind" >&5
6034 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
6035 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6038 ac_save_LIBS="$LIBS"
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6054 eval "ac_cv_lib_$ac_lib_var=yes"
6056 echo "configure: failed program was:" >&5
6057 cat conftest.$ac_ext >&5
6059 eval "ac_cv_lib_$ac_lib_var=no"
6062 LIBS="$ac_save_LIBS"
6065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6066 echo "$ac_t""yes" 1>&6
6067 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_lib 1
6076 echo "$ac_t""no" 1>&6
6079 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
6082 if test $ac_cv_func_res_query = no ; then
6083 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
6084 echo "configure:6085: checking for res_query in -lresolv" >&5
6085 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
6086 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 ac_save_LIBS="$LIBS"
6090 LIBS="-lresolv $LIBS"
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* Override any gcc2 internal prototype to avoid an error. */
6095 /* We use char because int might match the return type of a gcc2
6096 builtin and then its argument prototype would still apply. */
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 eval "ac_cv_lib_$ac_lib_var=yes"
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6110 eval "ac_cv_lib_$ac_lib_var=no"
6113 LIBS="$ac_save_LIBS"
6116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6117 echo "$ac_t""yes" 1>&6
6118 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6119 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6120 cat >> confdefs.h <<EOF
6121 #define $ac_tr_lib 1
6124 LIBS="-lresolv $LIBS"
6127 echo "$ac_t""no" 1>&6
6130 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
6133 if test $ac_cv_func_res_query = no ; then
6134 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
6135 echo "configure:6136: checking for __res_query in -lresolv" >&5
6136 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
6137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 ac_save_LIBS="$LIBS"
6141 LIBS="-lresolv $LIBS"
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 /* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 eval "ac_cv_lib_$ac_lib_var=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_lib_$ac_lib_var=no"
6164 LIBS="$ac_save_LIBS"
6167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6169 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_lib 1
6175 LIBS="-lresolv $LIBS"
6178 echo "$ac_t""no" 1>&6
6181 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
6184 if test "$ac_cv_func_res_query" = yes ; then
6185 cat >> confdefs.h <<\EOF
6186 #define HAVE_RES_QUERY 1
6190 if test $ol_enable_dnssrv != no ; then
6195 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
6196 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
6199 for ac_func in getaddrinfo gai_strerror inet_ntop
6201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6202 echo "configure:6203: checking for $ac_func" >&5
6203 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 /* System header to define __stub macros and hopefully few prototypes,
6210 which can conflict with char $ac_func(); below. */
6212 /* Override any gcc2 internal prototype to avoid an error. */
6213 /* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */
6220 /* The GNU C library defines this for functions which it implements
6221 to always fail with ENOSYS. Some functions are actually named
6222 something starting with __ and the normal name is an alias. */
6223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 eval "ac_cv_func_$ac_func=yes"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 eval "ac_cv_func_$ac_func=no"
6243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6246 cat >> confdefs.h <<EOF
6247 #define $ac_tr_func 1
6251 echo "$ac_t""no" 1>&6
6257 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6258 if test $ol_enable_ipv6 = yes ; then
6259 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6261 elif test $ol_enable_ipv6 != no ; then
6262 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6263 echo "configure:6264: checking INET6_ADDRSTRLEN" >&5
6264 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6272 # include <netinet/in.h>
6273 # ifdef INET6_ADDRSTRLEN
6274 __has_inet6_addrstrlen__;
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6281 ol_cv_inet6_addrstrlen=yes
6284 ol_cv_inet6_addrstrlen=no
6290 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6292 if test $ol_cv_inet6_addrstrlen = yes ; then
6294 elif test $ol_enable_ipv6 = yes ; then
6295 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6299 if test $ol_enable_local != no ; then
6300 for ac_hdr in sys/un.h
6302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6304 echo "configure:6305: checking for $ac_hdr" >&5
6305 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6306 echo $ac_n "(cached) $ac_c" 1>&6
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6314 { (eval echo configure:6315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6316 if test -z "$ac_err"; then
6318 eval "ac_cv_header_$ac_safe=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 eval "ac_cv_header_$ac_safe=no"
6328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6329 echo "$ac_t""yes" 1>&6
6330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6331 cat >> confdefs.h <<EOF
6332 #define $ac_tr_hdr 1
6336 echo "$ac_t""no" 1>&6
6341 if test $ol_enable_local = auto ; then
6342 ol_enable_local=$ac_cv_header_sys_un_h
6343 elif test $ac_cv_header_sys_un_h = no ; then
6344 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6353 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6354 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6355 -o $ol_with_kerberos = k425 ; then
6357 for ac_hdr in krb5.h
6359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6361 echo "configure:6362: checking for $ac_hdr" >&5
6362 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6371 { (eval echo configure:6372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6373 if test -z "$ac_err"; then
6375 eval "ac_cv_header_$ac_safe=yes"
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_header_$ac_safe=no"
6385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6388 cat >> confdefs.h <<EOF
6389 #define $ac_tr_hdr 1
6393 echo "$ac_t""no" 1>&6
6398 if test $ac_cv_header_krb5_h = yes ; then
6399 for ac_hdr in heim_err.h
6401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6403 echo "configure:6404: checking for $ac_hdr" >&5
6404 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6413 { (eval echo configure:6414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6415 if test -z "$ac_err"; then
6417 eval "ac_cv_header_$ac_safe=yes"
6420 echo "configure: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6423 eval "ac_cv_header_$ac_safe=no"
6427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6430 cat >> confdefs.h <<EOF
6431 #define $ac_tr_hdr 1
6435 echo "$ac_t""no" 1>&6
6439 if test $ac_cv_header_heim_err_h = yes ; then
6445 if test $krb5_impl = mit; then
6446 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
6447 echo "configure:6448: checking for main in -lk5crypto" >&5
6448 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
6449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 ac_save_LIBS="$LIBS"
6453 LIBS="-lk5crypto $LIBS"
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6464 eval "ac_cv_lib_$ac_lib_var=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6469 eval "ac_cv_lib_$ac_lib_var=no"
6472 LIBS="$ac_save_LIBS"
6475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6476 echo "$ac_t""yes" 1>&6
6479 echo "$ac_t""no" 1>&6
6484 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6485 echo "configure:6486: checking for main in -lkrb5" >&5
6486 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6487 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 ac_save_LIBS="$LIBS"
6491 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6500 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6502 eval "ac_cv_lib_$ac_lib_var=yes"
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6507 eval "ac_cv_lib_$ac_lib_var=no"
6510 LIBS="$ac_save_LIBS"
6513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6514 echo "$ac_t""yes" 1>&6
6516 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6518 echo "$ac_t""no" 1>&6
6523 elif test $krb5_impl = heimdal; then
6524 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6525 echo "configure:6526: checking for main in -lkrb5" >&5
6526 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6528 echo $ac_n "(cached) $ac_c" 1>&6
6530 ac_save_LIBS="$LIBS"
6531 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6534 "configure"
6534 #include "confdefs.h"
6540 if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6542 eval "ac_cv_lib_$ac_lib_var=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_lib_$ac_lib_var=no"
6550 LIBS="$ac_save_LIBS"
6553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6556 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6558 echo "$ac_t""no" 1>&6
6563 cat >> confdefs.h <<\EOF
6564 #define HAVE_HEIMDAL_KERBEROS 1
6570 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6573 if test $have_krb5 = yes ; then
6576 cat >> confdefs.h <<\EOF
6581 if test $ol_enable_kpasswd != no ; then
6582 ol_link_kpasswd=yes;
6585 if test $ol_with_kerberos = k5only ; then
6586 ol_with_kerberos=found
6589 elif test $ol_with_kerberos != auto ; then
6590 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6596 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6597 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6599 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6603 echo "configure:6604: checking for $ac_hdr" >&5
6604 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6605 echo $ac_n "(cached) $ac_c" 1>&6
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6613 { (eval echo configure:6614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6615 if test -z "$ac_err"; then
6617 eval "ac_cv_header_$ac_safe=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_header_$ac_safe=no"
6627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6630 cat >> confdefs.h <<EOF
6631 #define $ac_tr_hdr 1
6635 echo "$ac_t""no" 1>&6
6640 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6641 if test $krb5_impl = mit; then
6642 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6643 echo "configure:6644: checking for main in -lkrb4" >&5
6644 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 ac_save_LIBS="$LIBS"
6649 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6650 cat > conftest.$ac_ext <<EOF
6651 #line 6652 "configure"
6652 #include "confdefs.h"
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6660 eval "ac_cv_lib_$ac_lib_var=yes"
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6665 eval "ac_cv_lib_$ac_lib_var=no"
6668 LIBS="$ac_save_LIBS"
6671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6674 KRB4_LIBS="-lkrb4 -ldes425"
6676 echo "$ac_t""no" 1>&6
6681 elif test $krb5_impl = heimdal; then
6682 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6683 echo "configure:6684: checking for main in -lkrb4" >&5
6684 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6685 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 ac_save_LIBS="$LIBS"
6689 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 eval "ac_cv_lib_$ac_lib_var=yes"
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_lib_$ac_lib_var=no"
6708 LIBS="$ac_save_LIBS"
6711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6712 echo "$ac_t""yes" 1>&6
6716 echo "$ac_t""no" 1>&6
6723 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6726 if test $have_k425 = yes ; then
6727 ol_with_kerberos=found
6730 cat >> confdefs.h <<\EOF
6731 #define HAVE_KRB425 1
6734 cat >> confdefs.h <<\EOF
6739 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6740 echo "configure:6741: checking for des_debug in Kerberos libraries" >&5
6741 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6746 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6751 #include <kerberosIV/krb.h>
6752 #include <kerberosIV/des.h>
6753 extern int des_debug;
6761 if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6763 ol_cv_var_des_debug=yes
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6768 ol_cv_var_des_debug=no
6775 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6777 if test $ol_cv_var_des_debug = yes ; then
6778 cat >> confdefs.h <<\EOF
6779 #define HAVE_DES_DEBUG 1
6789 if test $ol_link_krb5 = yes ; then
6790 ol_with_kerberos=found
6793 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6794 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6796 for ac_hdr in krb.h des.h krb-archaeology.h
6798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6800 echo "configure:6801: checking for $ac_hdr" >&5
6801 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6810 { (eval echo configure:6811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6812 if test -z "$ac_err"; then
6814 eval "ac_cv_header_$ac_safe=yes"
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6820 eval "ac_cv_header_$ac_safe=no"
6824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6827 cat >> confdefs.h <<EOF
6828 #define $ac_tr_hdr 1
6832 echo "$ac_t""no" 1>&6
6837 if test $ac_cv_header_krb_h = yes ; then
6838 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6839 echo "configure:6840: checking for main in -lkrb" >&5
6840 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6841 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 ac_save_LIBS="$LIBS"
6845 LIBS="-lkrb -ldes $LIBS"
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856 eval "ac_cv_lib_$ac_lib_var=yes"
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6861 eval "ac_cv_lib_$ac_lib_var=no"
6864 LIBS="$ac_save_LIBS"
6867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6871 echo "$ac_t""no" 1>&6
6876 if test $have_k4 = yes ; then
6877 ol_with_kerberos=found
6880 cat >> confdefs.h <<\EOF
6885 KRB4_LIBS="-lkrb -ldes"
6887 if test $ac_cv_header_krb_archaeology_h = yes ; then
6888 cat >> confdefs.h <<\EOF
6889 #define HAVE_KTH_KERBEROS 1
6897 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6901 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6904 elif test $ol_enable_kbind = yes ; then
6905 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6908 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6909 cat >> confdefs.h <<\EOF
6910 #define HAVE_KERBEROS 1
6914 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6915 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6919 if test $ol_with_tls != no ; then
6920 for ac_hdr in openssl/ssl.h ssl.h
6922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6924 echo "configure:6925: checking for $ac_hdr" >&5
6925 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6934 { (eval echo configure:6935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6936 if test -z "$ac_err"; then
6938 eval "ac_cv_header_$ac_safe=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 eval "ac_cv_header_$ac_safe=no"
6948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6951 cat >> confdefs.h <<EOF
6952 #define $ac_tr_hdr 1
6956 echo "$ac_t""no" 1>&6
6961 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6962 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6963 echo "configure:6964: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6964 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6965 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 ac_save_LIBS="$LIBS"
6969 LIBS="-lssl -lcrypto $LIBS"
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6976 char SSLeay_add_ssl_algorithms();
6979 SSLeay_add_ssl_algorithms()
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 eval "ac_cv_lib_$ac_lib_var=no"
6992 LIBS="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
7000 echo "$ac_t""no" 1>&6
7005 if test $have_ssleay = no ; then
7006 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
7007 echo "configure:7008: checking for SSL_library_init in -lssl" >&5
7008 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
7009 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7012 ac_save_LIBS="$LIBS"
7013 LIBS="-lssl -lcrypto $LIBS"
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7020 char SSL_library_init();
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7028 eval "ac_cv_lib_$ac_lib_var=yes"
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7033 eval "ac_cv_lib_$ac_lib_var=no"
7036 LIBS="$ac_save_LIBS"
7039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7040 echo "$ac_t""yes" 1>&6
7044 echo "$ac_t""no" 1>&6
7050 if test $have_ssleay = no ; then
7051 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
7052 echo "configure:7053: checking for ssl3_accept in -lssl" >&5
7053 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
7054 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 ac_save_LIBS="$LIBS"
7058 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7073 eval "ac_cv_lib_$ac_lib_var=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 eval "ac_cv_lib_$ac_lib_var=no"
7081 LIBS="$ac_save_LIBS"
7084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7085 echo "$ac_t""yes" 1>&6
7089 echo "$ac_t""no" 1>&6
7095 if test $have_ssleay = yes ; then
7099 cat >> confdefs.h <<\EOF
7100 #define HAVE_SSLEAY 1
7104 if test $need_rsaref = yes; then
7105 cat >> confdefs.h <<\EOF
7106 #define HAVE_RSAREF 1
7110 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
7112 TLS_LIBS="-lssl -lcrypto"
7118 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7121 if test $ol_link_tls = yes ; then
7122 cat >> confdefs.h <<\EOF
7127 elif test $ol_with_tls = auto ; then
7128 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
7129 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7131 elif test $ol_with_tls != no ; then
7132 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
7135 if test $ol_enable_lmpasswd != no; then
7136 if test $ol_link_tls != yes ; then
7137 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
7140 cat >> confdefs.h <<\EOF
7141 #define SLAPD_LMHASH 1
7148 gethostbyname_r gethostbyaddr_r \
7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_func" >&5
7153 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char $ac_func(); below. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7170 /* The GNU C library defines this for functions which it implements
7171 to always fail with ENOSYS. Some functions are actually named
7172 something starting with __ and the normal name is an alias. */
7173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7181 if { (eval echo configure:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183 eval "ac_cv_func_$ac_func=yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.$ac_ext >&5
7188 eval "ac_cv_func_$ac_func=no"
7193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7194 echo "$ac_t""yes" 1>&6
7195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7196 cat >> confdefs.h <<EOF
7197 #define $ac_tr_func 1
7201 echo "$ac_t""no" 1>&6
7206 if test "$ac_cv_func_ctime_r" = no ; then
7207 ol_cv_func_ctime_r_nargs=0
7209 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7210 echo "configure:7211: checking number of arguments of ctime_r" >&5
7211 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 cat > conftest.$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7219 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7222 if { (eval echo configure:7223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7224 ol_cv_func_ctime_r_nargs3=yes
7226 echo "configure: failed program was:" >&5
7227 cat conftest.$ac_ext >&5
7229 ol_cv_func_ctime_r_nargs3=no
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7238 time_t ti; char *buffer; ctime_r(&ti,buffer);
7241 if { (eval echo configure:7242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7243 ol_cv_func_ctime_r_nargs2=yes
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7248 ol_cv_func_ctime_r_nargs2=no
7252 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7253 $ol_cv_func_ctime_r_nargs2 = no ; then
7255 ol_cv_func_ctime_r_nargs=3
7257 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7258 $ol_cv_func_ctime_r_nargs2 = yes ; then
7260 ol_cv_func_ctime_r_nargs=2
7263 ol_cv_func_ctime_r_nargs=0
7268 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7270 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7271 cat >> confdefs.h <<EOF
7272 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7279 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7280 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7281 echo "configure:7282: checking number of arguments of gethostbyname_r" >&5
7282 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 #include <sys/types.h>
7289 #include <sys/socket.h>
7290 #include <netinet/in.h>
7292 #define BUFSIZE (sizeof(struct hostent)+10)
7294 struct hostent hent; char buffer[BUFSIZE];
7295 int bufsize=BUFSIZE;int h_errno;
7296 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7297 buffer, bufsize, &h_errno);
7300 if { (eval echo configure:7301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7302 ol_cv_func_gethostbyname_r_nargs5=yes
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 ol_cv_func_gethostbyname_r_nargs5=no
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 #include <sys/types.h>
7315 #include <sys/socket.h>
7316 #include <netinet/in.h>
7318 #define BUFSIZE (sizeof(struct hostent)+10)
7320 struct hostent hent;struct hostent *rhent;
7321 char buffer[BUFSIZE];
7322 int bufsize=BUFSIZE;int h_errno;
7323 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7327 if { (eval echo configure:7328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7329 ol_cv_func_gethostbyname_r_nargs6=yes
7331 echo "configure: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7334 ol_cv_func_gethostbyname_r_nargs6=no
7338 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7339 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7341 ol_cv_func_gethostbyname_r_nargs=5
7343 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7344 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7346 ol_cv_func_gethostbyname_r_nargs=6
7349 ol_cv_func_gethostbyname_r_nargs=0
7354 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7355 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7356 cat >> confdefs.h <<EOF
7357 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7363 ol_cv_func_gethostbyname_r_nargs=0
7366 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7367 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7368 echo "configure:7369: checking number of arguments of gethostbyaddr_r" >&5
7369 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #include <sys/types.h>
7376 #include <sys/socket.h>
7377 #include <netinet/in.h>
7379 #define BUFSIZE (sizeof(struct hostent)+10)
7381 struct hostent hent; char buffer[BUFSIZE];
7383 size_t alen=sizeof(struct in_addr);
7384 int bufsize=BUFSIZE;int h_errno;
7385 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7386 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7389 if { (eval echo configure:7390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7391 ol_cv_func_gethostbyaddr_r_nargs7=yes
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7396 ol_cv_func_gethostbyaddr_r_nargs7=no
7400 cat > conftest.$ac_ext <<EOF
7401 #line 7402 "configure"
7402 #include "confdefs.h"
7403 #include <sys/types.h>
7404 #include <sys/socket.h>
7405 #include <netinet/in.h>
7407 #define BUFSIZE (sizeof(struct hostent)+10)
7409 struct hostent hent;
7410 struct hostent *rhent; char buffer[BUFSIZE];
7412 size_t alen=sizeof(struct in_addr);
7413 int bufsize=BUFSIZE;int h_errno;
7414 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7415 alen, AF_INET, &hent, buffer, bufsize,
7419 if { (eval echo configure:7420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7421 ol_cv_func_gethostbyaddr_r_nargs8=yes
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 ol_cv_func_gethostbyaddr_r_nargs8=no
7430 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7431 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7433 ol_cv_func_gethostbyaddr_r_nargs=7
7435 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7436 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7438 ol_cv_func_gethostbyaddr_r_nargs=8
7441 ol_cv_func_gethostbyaddr_r_nargs=0
7446 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7447 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7448 cat >> confdefs.h <<EOF
7449 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7455 ol_cv_func_gethostbyaddr_r_nargs=0
7458 if test "$ac_cv_func_ctime_r" = yes \
7459 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7460 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7461 -a "$ac_cv_func_gethostbyname_r" = yes \
7462 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7463 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7464 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7465 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7466 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7469 cat >> confdefs.h <<\EOF
7470 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7477 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7478 -o $ol_with_threads = nt ; then
7481 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7482 echo "configure:7483: checking for _beginthread" >&5
7483 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7489 /* System header to define __stub macros and hopefully few prototypes,
7490 which can conflict with char _beginthread(); below. */
7492 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7495 char _beginthread();
7500 /* The GNU C library defines this for functions which it implements
7501 to always fail with ENOSYS. Some functions are actually named
7502 something starting with __ and the normal name is an alias. */
7503 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513 eval "ac_cv_func__beginthread=yes"
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 eval "ac_cv_func__beginthread=no"
7523 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7527 echo "$ac_t""no" 1>&6
7531 if test $ac_cv_func__beginthread = yes ; then
7532 cat >> confdefs.h <<\EOF
7533 #define HAVE_NT_THREADS 1
7536 ol_cv_nt_threads=yes
7540 if test "$ol_cv_nt_threads" = yes ; then
7542 ol_with_threads=found
7543 ol_with_yielding_select=yes
7545 cat >> confdefs.h <<\EOF
7546 #define HAVE_NT_SERVICE_MANAGER 1
7549 cat >> confdefs.h <<\EOF
7550 #define HAVE_NT_EVENT_LOG 1
7555 if test $ol_with_threads = nt ; then
7556 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7560 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7561 -o $ol_with_threads = posix ; then
7563 for ac_hdr in pthread.h
7565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7567 echo "configure:7568: checking for $ac_hdr" >&5
7568 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7571 cat > conftest.$ac_ext <<EOF
7572 #line 7573 "configure"
7573 #include "confdefs.h"
7576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7577 { (eval echo configure:7578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7579 if test -z "$ac_err"; then
7581 eval "ac_cv_header_$ac_safe=yes"
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 eval "ac_cv_header_$ac_safe=no"
7591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7592 echo "$ac_t""yes" 1>&6
7593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7594 cat >> confdefs.h <<EOF
7595 #define $ac_tr_hdr 1
7599 echo "$ac_t""no" 1>&6
7604 if test $ac_cv_header_pthread_h = yes ; then
7605 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7606 echo "configure:7607: checking POSIX thread version" >&5
7607 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7615 # include <pthread.h>
7616 /* this check could be improved */
7617 # ifdef PTHREAD_ONCE_INIT
7618 pthread_version_final;
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623 egrep "pthread_version_final" >/dev/null 2>&1; then
7625 ol_pthread_final=yes
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7637 # include <pthread.h>
7638 /* this check could be improved */
7639 # ifdef pthread_once_init
7640 pthread_version_draft4;
7644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7645 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7647 ol_pthread_draft4=yes
7650 ol_pthread_draft4=no
7655 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7656 ol_cv_pthread_version=final
7657 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7658 ol_cv_pthread_version=draft4
7660 ol_cv_pthread_version=unknown
7665 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7668 if test $ol_cv_pthread_version = final ; then
7669 cat >> confdefs.h <<\EOF
7670 #define HAVE_PTHREADS_FINAL 1
7673 elif test $ol_cv_pthread_version = draft4 ; then
7674 cat >> confdefs.h <<\EOF
7675 #define HAVE_PTHREADS_D4 1
7679 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7682 # consider threads found
7683 ol_with_threads=found
7686 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7687 echo "configure:7688: checking for LinuxThreads pthread.h" >&5
7688 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 #include <pthread.h>
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7699 ol_cv_header_linux_threads=yes
7702 ol_cv_header_linux_threads=no
7709 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7710 if test $ol_cv_header_linux_threads = yes; then
7711 cat >> confdefs.h <<\EOF
7712 #define HAVE_LINUX_THREADS 1
7718 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7719 echo "configure:7720: checking for GNU Pth pthread.h" >&5
7720 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 #include <pthread.h>
7727 #ifdef _POSIX_THREAD_IS_GNU_PTH
7732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7733 egrep "__gnu_pth__" >/dev/null 2>&1; then
7735 ol_cv_header_gnu_pth_pthread_h=yes
7738 ol_cv_header_gnu_pth_pthread_h=no
7745 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7748 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7749 for ac_hdr in sched.h
7751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_hdr" >&5
7754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7763 { (eval echo configure:7764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7765 if test -z "$ac_err"; then
7767 eval "ac_cv_header_$ac_safe=yes"
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7773 eval "ac_cv_header_$ac_safe=no"
7777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7780 cat >> confdefs.h <<EOF
7781 #define $ac_tr_hdr 1
7785 echo "$ac_t""no" 1>&6
7792 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7793 echo "configure:7794: checking for pthread_create in default libraries" >&5
7794 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7798 if test "$cross_compiling" = yes; then
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802 /* pthread test headers */
7803 #include <pthread.h>
7805 #define NULL (void*)0
7808 static void *task(p)
7811 return (void *) (p == NULL);
7816 /* pthread test function */
7821 #ifdef HAVE_PTHREADS_FINAL
7822 /* Final pthreads */
7823 pthread_attr_t attr;
7825 status = pthread_attr_init(&attr);
7826 if( status ) return status;
7828 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7830 #if defined( PTHREAD_CREATE_JOINABLE )
7831 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7833 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7836 #ifdef PTHREAD_CREATE_DETACHED
7838 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7841 if( status ) return status;
7844 status = pthread_create( &t, &attr, task, NULL );
7845 if( status ) return status;
7847 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7849 /* give thread a chance to complete */
7850 /* it should remain joinable and hence detachable */
7853 status = pthread_detach( t );
7854 if( status ) return status;
7859 /* Draft 4 pthreads */
7860 status = pthread_create( &t, pthread_attr_default, task, NULL );
7861 if( status ) return status;
7864 /* give thread a chance to complete */
7865 /* it should remain joinable and hence detachable */
7868 status = pthread_detach( &t );
7869 if( status ) return status;
7873 #ifdef HAVE_LINUX_THREADS
7874 pthread_kill_other_threads_np();
7881 if { (eval echo configure:7882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7883 ol_cv_pthread_create=yes
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7888 ol_cv_pthread_create=no
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* pthread test headers */
7896 #include <pthread.h>
7898 #define NULL (void*)0
7901 static void *task(p)
7904 return (void *) (p == NULL);
7908 int main(argc, argv)
7913 /* pthread test function */
7918 #ifdef HAVE_PTHREADS_FINAL
7919 /* Final pthreads */
7920 pthread_attr_t attr;
7922 status = pthread_attr_init(&attr);
7923 if( status ) return status;
7925 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7927 #if defined( PTHREAD_CREATE_JOINABLE )
7928 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7930 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7933 #ifdef PTHREAD_CREATE_DETACHED
7935 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7938 if( status ) return status;
7941 status = pthread_create( &t, &attr, task, NULL );
7942 if( status ) return status;
7944 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7946 /* give thread a chance to complete */
7947 /* it should remain joinable and hence detachable */
7950 status = pthread_detach( t );
7951 if( status ) return status;
7956 /* Draft 4 pthreads */
7957 status = pthread_create( &t, pthread_attr_default, task, NULL );
7958 if( status ) return status;
7961 /* give thread a chance to complete */
7962 /* it should remain joinable and hence detachable */
7965 status = pthread_detach( &t );
7966 if( status ) return status;
7970 #ifdef HAVE_LINUX_THREADS
7971 pthread_kill_other_threads_np();
7979 if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7981 ol_cv_pthread_create=yes
7983 echo "configure: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7986 ol_cv_pthread_create=no
7993 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7995 if test $ol_cv_pthread_create != no ; then
7996 ol_link_threads=posix
8000 # Pthread try link: -kthread (ol_cv_pthread_kthread)
8001 if test "$ol_link_threads" = no ; then
8003 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
8004 echo "configure:8005: checking for pthread link with -kthread" >&5
8005 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8011 LIBS="-kthread $LIBS"
8013 if test "$cross_compiling" = yes; then
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* pthread test headers */
8018 #include <pthread.h>
8020 #define NULL (void*)0
8023 static void *task(p)
8026 return (void *) (p == NULL);
8031 /* pthread test function */
8036 #ifdef HAVE_PTHREADS_FINAL
8037 /* Final pthreads */
8038 pthread_attr_t attr;
8040 status = pthread_attr_init(&attr);
8041 if( status ) return status;
8043 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8045 #if defined( PTHREAD_CREATE_JOINABLE )
8046 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8048 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8051 #ifdef PTHREAD_CREATE_DETACHED
8053 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8056 if( status ) return status;
8059 status = pthread_create( &t, &attr, task, NULL );
8060 if( status ) return status;
8062 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8064 /* give thread a chance to complete */
8065 /* it should remain joinable and hence detachable */
8068 status = pthread_detach( t );
8069 if( status ) return status;
8074 /* Draft 4 pthreads */
8075 status = pthread_create( &t, pthread_attr_default, task, NULL );
8076 if( status ) return status;
8079 /* give thread a chance to complete */
8080 /* it should remain joinable and hence detachable */
8083 status = pthread_detach( &t );
8084 if( status ) return status;
8088 #ifdef HAVE_LINUX_THREADS
8089 pthread_kill_other_threads_np();
8096 if { (eval echo configure:8097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8098 ol_cv_pthread_kthread=yes
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8103 ol_cv_pthread_kthread=no
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* pthread test headers */
8111 #include <pthread.h>
8113 #define NULL (void*)0
8116 static void *task(p)
8119 return (void *) (p == NULL);
8123 int main(argc, argv)
8128 /* pthread test function */
8133 #ifdef HAVE_PTHREADS_FINAL
8134 /* Final pthreads */
8135 pthread_attr_t attr;
8137 status = pthread_attr_init(&attr);
8138 if( status ) return status;
8140 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8142 #if defined( PTHREAD_CREATE_JOINABLE )
8143 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8145 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8148 #ifdef PTHREAD_CREATE_DETACHED
8150 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8153 if( status ) return status;
8156 status = pthread_create( &t, &attr, task, NULL );
8157 if( status ) return status;
8159 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8161 /* give thread a chance to complete */
8162 /* it should remain joinable and hence detachable */
8165 status = pthread_detach( t );
8166 if( status ) return status;
8171 /* Draft 4 pthreads */
8172 status = pthread_create( &t, pthread_attr_default, task, NULL );
8173 if( status ) return status;
8176 /* give thread a chance to complete */
8177 /* it should remain joinable and hence detachable */
8180 status = pthread_detach( &t );
8181 if( status ) return status;
8185 #ifdef HAVE_LINUX_THREADS
8186 pthread_kill_other_threads_np();
8194 if { (eval echo configure:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8196 ol_cv_pthread_kthread=yes
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8201 ol_cv_pthread_kthread=no
8212 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8214 if test $ol_cv_pthread_kthread = yes ; then
8215 ol_link_pthreads="-kthread"
8216 ol_link_threads=posix
8220 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8221 if test "$ol_link_threads" = no ; then
8223 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8224 echo "configure:8225: checking for pthread link with -pthread" >&5
8225 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8231 LIBS="-pthread $LIBS"
8233 if test "$cross_compiling" = yes; then
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* pthread test headers */
8238 #include <pthread.h>
8240 #define NULL (void*)0
8243 static void *task(p)
8246 return (void *) (p == NULL);
8251 /* pthread test function */
8256 #ifdef HAVE_PTHREADS_FINAL
8257 /* Final pthreads */
8258 pthread_attr_t attr;
8260 status = pthread_attr_init(&attr);
8261 if( status ) return status;
8263 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8265 #if defined( PTHREAD_CREATE_JOINABLE )
8266 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8268 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8271 #ifdef PTHREAD_CREATE_DETACHED
8273 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8276 if( status ) return status;
8279 status = pthread_create( &t, &attr, task, NULL );
8280 if( status ) return status;
8282 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8284 /* give thread a chance to complete */
8285 /* it should remain joinable and hence detachable */
8288 status = pthread_detach( t );
8289 if( status ) return status;
8294 /* Draft 4 pthreads */
8295 status = pthread_create( &t, pthread_attr_default, task, NULL );
8296 if( status ) return status;
8299 /* give thread a chance to complete */
8300 /* it should remain joinable and hence detachable */
8303 status = pthread_detach( &t );
8304 if( status ) return status;
8308 #ifdef HAVE_LINUX_THREADS
8309 pthread_kill_other_threads_np();
8316 if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8318 ol_cv_pthread_pthread=yes
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 ol_cv_pthread_pthread=no
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 /* pthread test headers */
8331 #include <pthread.h>
8333 #define NULL (void*)0
8336 static void *task(p)
8339 return (void *) (p == NULL);
8343 int main(argc, argv)
8348 /* pthread test function */
8353 #ifdef HAVE_PTHREADS_FINAL
8354 /* Final pthreads */
8355 pthread_attr_t attr;
8357 status = pthread_attr_init(&attr);
8358 if( status ) return status;
8360 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8362 #if defined( PTHREAD_CREATE_JOINABLE )
8363 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8365 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8368 #ifdef PTHREAD_CREATE_DETACHED
8370 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8373 if( status ) return status;
8376 status = pthread_create( &t, &attr, task, NULL );
8377 if( status ) return status;
8379 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8381 /* give thread a chance to complete */
8382 /* it should remain joinable and hence detachable */
8385 status = pthread_detach( t );
8386 if( status ) return status;
8391 /* Draft 4 pthreads */
8392 status = pthread_create( &t, pthread_attr_default, task, NULL );
8393 if( status ) return status;
8396 /* give thread a chance to complete */
8397 /* it should remain joinable and hence detachable */
8400 status = pthread_detach( &t );
8401 if( status ) return status;
8405 #ifdef HAVE_LINUX_THREADS
8406 pthread_kill_other_threads_np();
8414 if { (eval echo configure:8415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8416 ol_cv_pthread_pthread=yes
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8421 ol_cv_pthread_pthread=no
8432 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8434 if test $ol_cv_pthread_pthread = yes ; then
8435 ol_link_pthreads="-pthread"
8436 ol_link_threads=posix
8440 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8441 if test "$ol_link_threads" = no ; then
8443 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8444 echo "configure:8445: checking for pthread link with -pthreads" >&5
8445 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8451 LIBS="-pthreads $LIBS"
8453 if test "$cross_compiling" = yes; then
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8457 /* pthread test headers */
8458 #include <pthread.h>
8460 #define NULL (void*)0
8463 static void *task(p)
8466 return (void *) (p == NULL);
8471 /* pthread test function */
8476 #ifdef HAVE_PTHREADS_FINAL
8477 /* Final pthreads */
8478 pthread_attr_t attr;
8480 status = pthread_attr_init(&attr);
8481 if( status ) return status;
8483 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8485 #if defined( PTHREAD_CREATE_JOINABLE )
8486 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8488 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8491 #ifdef PTHREAD_CREATE_DETACHED
8493 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8496 if( status ) return status;
8499 status = pthread_create( &t, &attr, task, NULL );
8500 if( status ) return status;
8502 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8504 /* give thread a chance to complete */
8505 /* it should remain joinable and hence detachable */
8508 status = pthread_detach( t );
8509 if( status ) return status;
8514 /* Draft 4 pthreads */
8515 status = pthread_create( &t, pthread_attr_default, task, NULL );
8516 if( status ) return status;
8519 /* give thread a chance to complete */
8520 /* it should remain joinable and hence detachable */
8523 status = pthread_detach( &t );
8524 if( status ) return status;
8528 #ifdef HAVE_LINUX_THREADS
8529 pthread_kill_other_threads_np();
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8538 ol_cv_pthread_pthreads=yes
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 ol_cv_pthread_pthreads=no
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 /* pthread test headers */
8551 #include <pthread.h>
8553 #define NULL (void*)0
8556 static void *task(p)
8559 return (void *) (p == NULL);
8563 int main(argc, argv)
8568 /* pthread test function */
8573 #ifdef HAVE_PTHREADS_FINAL
8574 /* Final pthreads */
8575 pthread_attr_t attr;
8577 status = pthread_attr_init(&attr);
8578 if( status ) return status;
8580 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8582 #if defined( PTHREAD_CREATE_JOINABLE )
8583 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8585 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8588 #ifdef PTHREAD_CREATE_DETACHED
8590 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8593 if( status ) return status;
8596 status = pthread_create( &t, &attr, task, NULL );
8597 if( status ) return status;
8599 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8601 /* give thread a chance to complete */
8602 /* it should remain joinable and hence detachable */
8605 status = pthread_detach( t );
8606 if( status ) return status;
8611 /* Draft 4 pthreads */
8612 status = pthread_create( &t, pthread_attr_default, task, NULL );
8613 if( status ) return status;
8616 /* give thread a chance to complete */
8617 /* it should remain joinable and hence detachable */
8620 status = pthread_detach( &t );
8621 if( status ) return status;
8625 #ifdef HAVE_LINUX_THREADS
8626 pthread_kill_other_threads_np();
8634 if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8636 ol_cv_pthread_pthreads=yes
8638 echo "configure: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8641 ol_cv_pthread_pthreads=no
8652 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8654 if test $ol_cv_pthread_pthreads = yes ; then
8655 ol_link_pthreads="-pthreads"
8656 ol_link_threads=posix
8660 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8661 if test "$ol_link_threads" = no ; then
8663 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8664 echo "configure:8665: checking for pthread link with -mthreads" >&5
8665 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8671 LIBS="-mthreads $LIBS"
8673 if test "$cross_compiling" = yes; then
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* pthread test headers */
8678 #include <pthread.h>
8680 #define NULL (void*)0
8683 static void *task(p)
8686 return (void *) (p == NULL);
8691 /* pthread test function */
8696 #ifdef HAVE_PTHREADS_FINAL
8697 /* Final pthreads */
8698 pthread_attr_t attr;
8700 status = pthread_attr_init(&attr);
8701 if( status ) return status;
8703 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8705 #if defined( PTHREAD_CREATE_JOINABLE )
8706 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8708 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8711 #ifdef PTHREAD_CREATE_DETACHED
8713 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8716 if( status ) return status;
8719 status = pthread_create( &t, &attr, task, NULL );
8720 if( status ) return status;
8722 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8724 /* give thread a chance to complete */
8725 /* it should remain joinable and hence detachable */
8728 status = pthread_detach( t );
8729 if( status ) return status;
8734 /* Draft 4 pthreads */
8735 status = pthread_create( &t, pthread_attr_default, task, NULL );
8736 if( status ) return status;
8739 /* give thread a chance to complete */
8740 /* it should remain joinable and hence detachable */
8743 status = pthread_detach( &t );
8744 if( status ) return status;
8748 #ifdef HAVE_LINUX_THREADS
8749 pthread_kill_other_threads_np();
8756 if { (eval echo configure:8757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8758 ol_cv_pthread_mthreads=yes
8760 echo "configure: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8763 ol_cv_pthread_mthreads=no
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 /* pthread test headers */
8771 #include <pthread.h>
8773 #define NULL (void*)0
8776 static void *task(p)
8779 return (void *) (p == NULL);
8783 int main(argc, argv)
8788 /* pthread test function */
8793 #ifdef HAVE_PTHREADS_FINAL
8794 /* Final pthreads */
8795 pthread_attr_t attr;
8797 status = pthread_attr_init(&attr);
8798 if( status ) return status;
8800 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8802 #if defined( PTHREAD_CREATE_JOINABLE )
8803 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8805 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8808 #ifdef PTHREAD_CREATE_DETACHED
8810 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8813 if( status ) return status;
8816 status = pthread_create( &t, &attr, task, NULL );
8817 if( status ) return status;
8819 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8821 /* give thread a chance to complete */
8822 /* it should remain joinable and hence detachable */
8825 status = pthread_detach( t );
8826 if( status ) return status;
8831 /* Draft 4 pthreads */
8832 status = pthread_create( &t, pthread_attr_default, task, NULL );
8833 if( status ) return status;
8836 /* give thread a chance to complete */
8837 /* it should remain joinable and hence detachable */
8840 status = pthread_detach( &t );
8841 if( status ) return status;
8845 #ifdef HAVE_LINUX_THREADS
8846 pthread_kill_other_threads_np();
8854 if { (eval echo configure:8855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8856 ol_cv_pthread_mthreads=yes
8858 echo "configure: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8861 ol_cv_pthread_mthreads=no
8872 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8874 if test $ol_cv_pthread_mthreads = yes ; then
8875 ol_link_pthreads="-mthreads"
8876 ol_link_threads=posix
8880 # Pthread try link: -thread (ol_cv_pthread_thread)
8881 if test "$ol_link_threads" = no ; then
8883 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8884 echo "configure:8885: checking for pthread link with -thread" >&5
8885 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8886 echo $ac_n "(cached) $ac_c" 1>&6
8891 LIBS="-thread $LIBS"
8893 if test "$cross_compiling" = yes; then
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 /* pthread test headers */
8898 #include <pthread.h>
8900 #define NULL (void*)0
8903 static void *task(p)
8906 return (void *) (p == NULL);
8911 /* pthread test function */
8916 #ifdef HAVE_PTHREADS_FINAL
8917 /* Final pthreads */
8918 pthread_attr_t attr;
8920 status = pthread_attr_init(&attr);
8921 if( status ) return status;
8923 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8925 #if defined( PTHREAD_CREATE_JOINABLE )
8926 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8928 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8931 #ifdef PTHREAD_CREATE_DETACHED
8933 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8936 if( status ) return status;
8939 status = pthread_create( &t, &attr, task, NULL );
8940 if( status ) return status;
8942 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8944 /* give thread a chance to complete */
8945 /* it should remain joinable and hence detachable */
8948 status = pthread_detach( t );
8949 if( status ) return status;
8954 /* Draft 4 pthreads */
8955 status = pthread_create( &t, pthread_attr_default, task, NULL );
8956 if( status ) return status;
8959 /* give thread a chance to complete */
8960 /* it should remain joinable and hence detachable */
8963 status = pthread_detach( &t );
8964 if( status ) return status;
8968 #ifdef HAVE_LINUX_THREADS
8969 pthread_kill_other_threads_np();
8976 if { (eval echo configure:8977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8978 ol_cv_pthread_thread=yes
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 ol_cv_pthread_thread=no
8987 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure"
8989 #include "confdefs.h"
8990 /* pthread test headers */
8991 #include <pthread.h>
8993 #define NULL (void*)0
8996 static void *task(p)
8999 return (void *) (p == NULL);
9003 int main(argc, argv)
9008 /* pthread test function */
9013 #ifdef HAVE_PTHREADS_FINAL
9014 /* Final pthreads */
9015 pthread_attr_t attr;
9017 status = pthread_attr_init(&attr);
9018 if( status ) return status;
9020 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9022 #if defined( PTHREAD_CREATE_JOINABLE )
9023 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9025 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9028 #ifdef PTHREAD_CREATE_DETACHED
9030 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9033 if( status ) return status;
9036 status = pthread_create( &t, &attr, task, NULL );
9037 if( status ) return status;
9039 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9041 /* give thread a chance to complete */
9042 /* it should remain joinable and hence detachable */
9045 status = pthread_detach( t );
9046 if( status ) return status;
9051 /* Draft 4 pthreads */
9052 status = pthread_create( &t, pthread_attr_default, task, NULL );
9053 if( status ) return status;
9056 /* give thread a chance to complete */
9057 /* it should remain joinable and hence detachable */
9060 status = pthread_detach( &t );
9061 if( status ) return status;
9065 #ifdef HAVE_LINUX_THREADS
9066 pthread_kill_other_threads_np();
9074 if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9076 ol_cv_pthread_thread=yes
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9081 ol_cv_pthread_thread=no
9092 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
9094 if test $ol_cv_pthread_thread = yes ; then
9095 ol_link_pthreads="-thread"
9096 ol_link_threads=posix
9101 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
9102 if test "$ol_link_threads" = no ; then
9103 # try -lpthread -lmach -lexc -lc_r
9104 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
9105 echo "configure:9106: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
9106 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9112 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
9114 if test "$cross_compiling" = yes; then
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 /* pthread test headers */
9119 #include <pthread.h>
9121 #define NULL (void*)0
9124 static void *task(p)
9127 return (void *) (p == NULL);
9132 /* pthread test function */
9137 #ifdef HAVE_PTHREADS_FINAL
9138 /* Final pthreads */
9139 pthread_attr_t attr;
9141 status = pthread_attr_init(&attr);
9142 if( status ) return status;
9144 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9146 #if defined( PTHREAD_CREATE_JOINABLE )
9147 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9149 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9152 #ifdef PTHREAD_CREATE_DETACHED
9154 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9157 if( status ) return status;
9160 status = pthread_create( &t, &attr, task, NULL );
9161 if( status ) return status;
9163 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9165 /* give thread a chance to complete */
9166 /* it should remain joinable and hence detachable */
9169 status = pthread_detach( t );
9170 if( status ) return status;
9175 /* Draft 4 pthreads */
9176 status = pthread_create( &t, pthread_attr_default, task, NULL );
9177 if( status ) return status;
9180 /* give thread a chance to complete */
9181 /* it should remain joinable and hence detachable */
9184 status = pthread_detach( &t );
9185 if( status ) return status;
9189 #ifdef HAVE_LINUX_THREADS
9190 pthread_kill_other_threads_np();
9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9199 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9204 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9211 /* pthread test headers */
9212 #include <pthread.h>
9214 #define NULL (void*)0
9217 static void *task(p)
9220 return (void *) (p == NULL);
9224 int main(argc, argv)
9229 /* pthread test function */
9234 #ifdef HAVE_PTHREADS_FINAL
9235 /* Final pthreads */
9236 pthread_attr_t attr;
9238 status = pthread_attr_init(&attr);
9239 if( status ) return status;
9241 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9243 #if defined( PTHREAD_CREATE_JOINABLE )
9244 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9246 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9249 #ifdef PTHREAD_CREATE_DETACHED
9251 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9254 if( status ) return status;
9257 status = pthread_create( &t, &attr, task, NULL );
9258 if( status ) return status;
9260 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9262 /* give thread a chance to complete */
9263 /* it should remain joinable and hence detachable */
9266 status = pthread_detach( t );
9267 if( status ) return status;
9272 /* Draft 4 pthreads */
9273 status = pthread_create( &t, pthread_attr_default, task, NULL );
9274 if( status ) return status;
9277 /* give thread a chance to complete */
9278 /* it should remain joinable and hence detachable */
9281 status = pthread_detach( &t );
9282 if( status ) return status;
9286 #ifdef HAVE_LINUX_THREADS
9287 pthread_kill_other_threads_np();
9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9297 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9302 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9313 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9315 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9316 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9317 ol_link_threads=posix
9321 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9322 if test "$ol_link_threads" = no ; then
9323 # try -lpthread -lmach -lexc
9324 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9325 echo "configure:9326: checking for pthread link with -lpthread -lmach -lexc" >&5
9326 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9332 LIBS="-lpthread -lmach -lexc $LIBS"
9334 if test "$cross_compiling" = yes; then
9335 cat > conftest.$ac_ext <<EOF
9336 #line 9337 "configure"
9337 #include "confdefs.h"
9338 /* pthread test headers */
9339 #include <pthread.h>
9341 #define NULL (void*)0
9344 static void *task(p)
9347 return (void *) (p == NULL);
9352 /* pthread test function */
9357 #ifdef HAVE_PTHREADS_FINAL
9358 /* Final pthreads */
9359 pthread_attr_t attr;
9361 status = pthread_attr_init(&attr);
9362 if( status ) return status;
9364 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9366 #if defined( PTHREAD_CREATE_JOINABLE )
9367 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9369 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9372 #ifdef PTHREAD_CREATE_DETACHED
9374 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9377 if( status ) return status;
9380 status = pthread_create( &t, &attr, task, NULL );
9381 if( status ) return status;
9383 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9385 /* give thread a chance to complete */
9386 /* it should remain joinable and hence detachable */
9389 status = pthread_detach( t );
9390 if( status ) return status;
9395 /* Draft 4 pthreads */
9396 status = pthread_create( &t, pthread_attr_default, task, NULL );
9397 if( status ) return status;
9400 /* give thread a chance to complete */
9401 /* it should remain joinable and hence detachable */
9404 status = pthread_detach( &t );
9405 if( status ) return status;
9409 #ifdef HAVE_LINUX_THREADS
9410 pthread_kill_other_threads_np();
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 ol_cv_pthread_lpthread_lmach_lexc=yes
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 ol_cv_pthread_lpthread_lmach_lexc=no
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 /* pthread test headers */
9432 #include <pthread.h>
9434 #define NULL (void*)0
9437 static void *task(p)
9440 return (void *) (p == NULL);
9444 int main(argc, argv)
9449 /* pthread test function */
9454 #ifdef HAVE_PTHREADS_FINAL
9455 /* Final pthreads */
9456 pthread_attr_t attr;
9458 status = pthread_attr_init(&attr);
9459 if( status ) return status;
9461 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9463 #if defined( PTHREAD_CREATE_JOINABLE )
9464 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9466 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9469 #ifdef PTHREAD_CREATE_DETACHED
9471 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9474 if( status ) return status;
9477 status = pthread_create( &t, &attr, task, NULL );
9478 if( status ) return status;
9480 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9482 /* give thread a chance to complete */
9483 /* it should remain joinable and hence detachable */
9486 status = pthread_detach( t );
9487 if( status ) return status;
9492 /* Draft 4 pthreads */
9493 status = pthread_create( &t, pthread_attr_default, task, NULL );
9494 if( status ) return status;
9497 /* give thread a chance to complete */
9498 /* it should remain joinable and hence detachable */
9501 status = pthread_detach( &t );
9502 if( status ) return status;
9506 #ifdef HAVE_LINUX_THREADS
9507 pthread_kill_other_threads_np();
9515 if { (eval echo configure:9516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9517 ol_cv_pthread_lpthread_lmach_lexc=yes
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9522 ol_cv_pthread_lpthread_lmach_lexc=no
9533 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9535 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9536 ol_link_pthreads="-lpthread -lmach -lexc"
9537 ol_link_threads=posix
9542 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9543 if test "$ol_link_threads" = no ; then
9544 # try -lpthread -Wl,-woff,85
9545 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9546 echo "configure:9547: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9547 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9553 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9555 if test "$cross_compiling" = yes; then
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 /* pthread test headers */
9560 #include <pthread.h>
9562 #define NULL (void*)0
9565 static void *task(p)
9568 return (void *) (p == NULL);
9573 /* pthread test function */
9578 #ifdef HAVE_PTHREADS_FINAL
9579 /* Final pthreads */
9580 pthread_attr_t attr;
9582 status = pthread_attr_init(&attr);
9583 if( status ) return status;
9585 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9587 #if defined( PTHREAD_CREATE_JOINABLE )
9588 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9590 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9593 #ifdef PTHREAD_CREATE_DETACHED
9595 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9598 if( status ) return status;
9601 status = pthread_create( &t, &attr, task, NULL );
9602 if( status ) return status;
9604 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9606 /* give thread a chance to complete */
9607 /* it should remain joinable and hence detachable */
9610 status = pthread_detach( t );
9611 if( status ) return status;
9616 /* Draft 4 pthreads */
9617 status = pthread_create( &t, pthread_attr_default, task, NULL );
9618 if( status ) return status;
9621 /* give thread a chance to complete */
9622 /* it should remain joinable and hence detachable */
9625 status = pthread_detach( &t );
9626 if( status ) return status;
9630 #ifdef HAVE_LINUX_THREADS
9631 pthread_kill_other_threads_np();
9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640 ol_cv_pthread_lib_lpthread_woff=yes
9642 echo "configure: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9645 ol_cv_pthread_lib_lpthread_woff=no
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9652 /* pthread test headers */
9653 #include <pthread.h>
9655 #define NULL (void*)0
9658 static void *task(p)
9661 return (void *) (p == NULL);
9665 int main(argc, argv)
9670 /* pthread test function */
9675 #ifdef HAVE_PTHREADS_FINAL
9676 /* Final pthreads */
9677 pthread_attr_t attr;
9679 status = pthread_attr_init(&attr);
9680 if( status ) return status;
9682 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9684 #if defined( PTHREAD_CREATE_JOINABLE )
9685 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9687 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9690 #ifdef PTHREAD_CREATE_DETACHED
9692 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9695 if( status ) return status;
9698 status = pthread_create( &t, &attr, task, NULL );
9699 if( status ) return status;
9701 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9703 /* give thread a chance to complete */
9704 /* it should remain joinable and hence detachable */
9707 status = pthread_detach( t );
9708 if( status ) return status;
9713 /* Draft 4 pthreads */
9714 status = pthread_create( &t, pthread_attr_default, task, NULL );
9715 if( status ) return status;
9718 /* give thread a chance to complete */
9719 /* it should remain joinable and hence detachable */
9722 status = pthread_detach( &t );
9723 if( status ) return status;
9727 #ifdef HAVE_LINUX_THREADS
9728 pthread_kill_other_threads_np();
9736 if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9738 ol_cv_pthread_lib_lpthread_woff=yes
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9743 ol_cv_pthread_lib_lpthread_woff=no
9754 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9756 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9757 ol_link_pthreads="-lpthread -Wl,-woff,85"
9758 ol_link_threads=posix
9763 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9764 if test "$ol_link_threads" = no ; then
9766 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9767 echo "configure:9768: checking for pthread link with -lpthread" >&5
9768 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9774 LIBS="-lpthread $LIBS"
9776 if test "$cross_compiling" = yes; then
9777 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9780 /* pthread test headers */
9781 #include <pthread.h>
9783 #define NULL (void*)0
9786 static void *task(p)
9789 return (void *) (p == NULL);
9794 /* pthread test function */
9799 #ifdef HAVE_PTHREADS_FINAL
9800 /* Final pthreads */
9801 pthread_attr_t attr;
9803 status = pthread_attr_init(&attr);
9804 if( status ) return status;
9806 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9808 #if defined( PTHREAD_CREATE_JOINABLE )
9809 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9811 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9814 #ifdef PTHREAD_CREATE_DETACHED
9816 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9819 if( status ) return status;
9822 status = pthread_create( &t, &attr, task, NULL );
9823 if( status ) return status;
9825 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9827 /* give thread a chance to complete */
9828 /* it should remain joinable and hence detachable */
9831 status = pthread_detach( t );
9832 if( status ) return status;
9837 /* Draft 4 pthreads */
9838 status = pthread_create( &t, pthread_attr_default, task, NULL );
9839 if( status ) return status;
9842 /* give thread a chance to complete */
9843 /* it should remain joinable and hence detachable */
9846 status = pthread_detach( &t );
9847 if( status ) return status;
9851 #ifdef HAVE_LINUX_THREADS
9852 pthread_kill_other_threads_np();
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861 ol_cv_pthread_lpthread=yes
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9866 ol_cv_pthread_lpthread=no
9870 cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure"
9872 #include "confdefs.h"
9873 /* pthread test headers */
9874 #include <pthread.h>
9876 #define NULL (void*)0
9879 static void *task(p)
9882 return (void *) (p == NULL);
9886 int main(argc, argv)
9891 /* pthread test function */
9896 #ifdef HAVE_PTHREADS_FINAL
9897 /* Final pthreads */
9898 pthread_attr_t attr;
9900 status = pthread_attr_init(&attr);
9901 if( status ) return status;
9903 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9905 #if defined( PTHREAD_CREATE_JOINABLE )
9906 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9908 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9911 #ifdef PTHREAD_CREATE_DETACHED
9913 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9916 if( status ) return status;
9919 status = pthread_create( &t, &attr, task, NULL );
9920 if( status ) return status;
9922 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9924 /* give thread a chance to complete */
9925 /* it should remain joinable and hence detachable */
9928 status = pthread_detach( t );
9929 if( status ) return status;
9934 /* Draft 4 pthreads */
9935 status = pthread_create( &t, pthread_attr_default, task, NULL );
9936 if( status ) return status;
9939 /* give thread a chance to complete */
9940 /* it should remain joinable and hence detachable */
9943 status = pthread_detach( &t );
9944 if( status ) return status;
9948 #ifdef HAVE_LINUX_THREADS
9949 pthread_kill_other_threads_np();
9957 if { (eval echo configure:9958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9959 ol_cv_pthread_lpthread=yes
9961 echo "configure: failed program was:" >&5
9962 cat conftest.$ac_ext >&5
9964 ol_cv_pthread_lpthread=no
9975 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9977 if test $ol_cv_pthread_lpthread = yes ; then
9978 ol_link_pthreads="-lpthread"
9979 ol_link_threads=posix
9983 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9984 if test "$ol_link_threads" = no ; then
9986 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9987 echo "configure:9988: checking for pthread link with -lc_r" >&5
9988 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9996 if test "$cross_compiling" = yes; then
9997 cat > conftest.$ac_ext <<EOF
9998 #line 9999 "configure"
9999 #include "confdefs.h"
10000 /* pthread test headers */
10001 #include <pthread.h>
10003 #define NULL (void*)0
10006 static void *task(p)
10009 return (void *) (p == NULL);
10014 /* pthread test function */
10019 #ifdef HAVE_PTHREADS_FINAL
10020 /* Final pthreads */
10021 pthread_attr_t attr;
10023 status = pthread_attr_init(&attr);
10024 if( status ) return status;
10026 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10028 #if defined( PTHREAD_CREATE_JOINABLE )
10029 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10031 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10034 #ifdef PTHREAD_CREATE_DETACHED
10036 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10039 if( status ) return status;
10042 status = pthread_create( &t, &attr, task, NULL );
10043 if( status ) return status;
10045 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10047 /* give thread a chance to complete */
10048 /* it should remain joinable and hence detachable */
10051 status = pthread_detach( t );
10052 if( status ) return status;
10057 /* Draft 4 pthreads */
10058 status = pthread_create( &t, pthread_attr_default, task, NULL );
10059 if( status ) return status;
10062 /* give thread a chance to complete */
10063 /* it should remain joinable and hence detachable */
10066 status = pthread_detach( &t );
10067 if( status ) return status;
10071 #ifdef HAVE_LINUX_THREADS
10072 pthread_kill_other_threads_np();
10079 if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10081 ol_cv_pthread_lc_r=yes
10083 echo "configure: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10086 ol_cv_pthread_lc_r=no
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 /* pthread test headers */
10094 #include <pthread.h>
10096 #define NULL (void*)0
10099 static void *task(p)
10102 return (void *) (p == NULL);
10106 int main(argc, argv)
10111 /* pthread test function */
10116 #ifdef HAVE_PTHREADS_FINAL
10117 /* Final pthreads */
10118 pthread_attr_t attr;
10120 status = pthread_attr_init(&attr);
10121 if( status ) return status;
10123 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10125 #if defined( PTHREAD_CREATE_JOINABLE )
10126 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10128 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10131 #ifdef PTHREAD_CREATE_DETACHED
10133 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10136 if( status ) return status;
10139 status = pthread_create( &t, &attr, task, NULL );
10140 if( status ) return status;
10142 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10144 /* give thread a chance to complete */
10145 /* it should remain joinable and hence detachable */
10148 status = pthread_detach( t );
10149 if( status ) return status;
10154 /* Draft 4 pthreads */
10155 status = pthread_create( &t, pthread_attr_default, task, NULL );
10156 if( status ) return status;
10159 /* give thread a chance to complete */
10160 /* it should remain joinable and hence detachable */
10163 status = pthread_detach( &t );
10164 if( status ) return status;
10168 #ifdef HAVE_LINUX_THREADS
10169 pthread_kill_other_threads_np();
10177 if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10179 ol_cv_pthread_lc_r=yes
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10184 ol_cv_pthread_lc_r=no
10195 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10197 if test $ol_cv_pthread_lc_r = yes ; then
10198 ol_link_pthreads="-lc_r"
10199 ol_link_threads=posix
10204 # Pthread try link: -threads (ol_cv_pthread_threads)
10205 if test "$ol_link_threads" = no ; then
10207 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10208 echo "configure:10209: checking for pthread link with -threads" >&5
10209 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10215 LIBS="-threads $LIBS"
10217 if test "$cross_compiling" = yes; then
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 /* pthread test headers */
10222 #include <pthread.h>
10224 #define NULL (void*)0
10227 static void *task(p)
10230 return (void *) (p == NULL);
10235 /* pthread test function */
10240 #ifdef HAVE_PTHREADS_FINAL
10241 /* Final pthreads */
10242 pthread_attr_t attr;
10244 status = pthread_attr_init(&attr);
10245 if( status ) return status;
10247 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10249 #if defined( PTHREAD_CREATE_JOINABLE )
10250 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10252 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10255 #ifdef PTHREAD_CREATE_DETACHED
10257 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10260 if( status ) return status;
10263 status = pthread_create( &t, &attr, task, NULL );
10264 if( status ) return status;
10266 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10268 /* give thread a chance to complete */
10269 /* it should remain joinable and hence detachable */
10272 status = pthread_detach( t );
10273 if( status ) return status;
10278 /* Draft 4 pthreads */
10279 status = pthread_create( &t, pthread_attr_default, task, NULL );
10280 if( status ) return status;
10283 /* give thread a chance to complete */
10284 /* it should remain joinable and hence detachable */
10287 status = pthread_detach( &t );
10288 if( status ) return status;
10292 #ifdef HAVE_LINUX_THREADS
10293 pthread_kill_other_threads_np();
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10302 ol_cv_pthread_threads=yes
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10307 ol_cv_pthread_threads=no
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 /* pthread test headers */
10315 #include <pthread.h>
10317 #define NULL (void*)0
10320 static void *task(p)
10323 return (void *) (p == NULL);
10327 int main(argc, argv)
10332 /* pthread test function */
10337 #ifdef HAVE_PTHREADS_FINAL
10338 /* Final pthreads */
10339 pthread_attr_t attr;
10341 status = pthread_attr_init(&attr);
10342 if( status ) return status;
10344 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10346 #if defined( PTHREAD_CREATE_JOINABLE )
10347 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10349 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10352 #ifdef PTHREAD_CREATE_DETACHED
10354 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10357 if( status ) return status;
10360 status = pthread_create( &t, &attr, task, NULL );
10361 if( status ) return status;
10363 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10365 /* give thread a chance to complete */
10366 /* it should remain joinable and hence detachable */
10369 status = pthread_detach( t );
10370 if( status ) return status;
10375 /* Draft 4 pthreads */
10376 status = pthread_create( &t, pthread_attr_default, task, NULL );
10377 if( status ) return status;
10380 /* give thread a chance to complete */
10381 /* it should remain joinable and hence detachable */
10384 status = pthread_detach( &t );
10385 if( status ) return status;
10389 #ifdef HAVE_LINUX_THREADS
10390 pthread_kill_other_threads_np();
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10400 ol_cv_pthread_threads=yes
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 ol_cv_pthread_threads=no
10416 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10418 if test $ol_cv_pthread_threads = yes ; then
10419 ol_link_pthreads="-threads"
10420 ol_link_threads=posix
10425 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10426 if test "$ol_link_threads" = no ; then
10427 # try -lpthreads -lmach -lexc -lc_r
10428 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10429 echo "configure:10430: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10430 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10436 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10438 if test "$cross_compiling" = yes; then
10439 cat > conftest.$ac_ext <<EOF
10440 #line 10441 "configure"
10441 #include "confdefs.h"
10442 /* pthread test headers */
10443 #include <pthread.h>
10445 #define NULL (void*)0
10448 static void *task(p)
10451 return (void *) (p == NULL);
10456 /* pthread test function */
10461 #ifdef HAVE_PTHREADS_FINAL
10462 /* Final pthreads */
10463 pthread_attr_t attr;
10465 status = pthread_attr_init(&attr);
10466 if( status ) return status;
10468 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10470 #if defined( PTHREAD_CREATE_JOINABLE )
10471 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10473 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10476 #ifdef PTHREAD_CREATE_DETACHED
10478 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10481 if( status ) return status;
10484 status = pthread_create( &t, &attr, task, NULL );
10485 if( status ) return status;
10487 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10489 /* give thread a chance to complete */
10490 /* it should remain joinable and hence detachable */
10493 status = pthread_detach( t );
10494 if( status ) return status;
10499 /* Draft 4 pthreads */
10500 status = pthread_create( &t, pthread_attr_default, task, NULL );
10501 if( status ) return status;
10504 /* give thread a chance to complete */
10505 /* it should remain joinable and hence detachable */
10508 status = pthread_detach( &t );
10509 if( status ) return status;
10513 #ifdef HAVE_LINUX_THREADS
10514 pthread_kill_other_threads_np();
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 /* pthread test headers */
10536 #include <pthread.h>
10538 #define NULL (void*)0
10541 static void *task(p)
10544 return (void *) (p == NULL);
10548 int main(argc, argv)
10553 /* pthread test function */
10558 #ifdef HAVE_PTHREADS_FINAL
10559 /* Final pthreads */
10560 pthread_attr_t attr;
10562 status = pthread_attr_init(&attr);
10563 if( status ) return status;
10565 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10567 #if defined( PTHREAD_CREATE_JOINABLE )
10568 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10570 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10573 #ifdef PTHREAD_CREATE_DETACHED
10575 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10578 if( status ) return status;
10581 status = pthread_create( &t, &attr, task, NULL );
10582 if( status ) return status;
10584 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10586 /* give thread a chance to complete */
10587 /* it should remain joinable and hence detachable */
10590 status = pthread_detach( t );
10591 if( status ) return status;
10596 /* Draft 4 pthreads */
10597 status = pthread_create( &t, pthread_attr_default, task, NULL );
10598 if( status ) return status;
10601 /* give thread a chance to complete */
10602 /* it should remain joinable and hence detachable */
10605 status = pthread_detach( &t );
10606 if( status ) return status;
10610 #ifdef HAVE_LINUX_THREADS
10611 pthread_kill_other_threads_np();
10619 if { (eval echo configure:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10621 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10626 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10637 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10639 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10640 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10641 ol_link_threads=posix
10645 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10646 if test "$ol_link_threads" = no ; then
10647 # try -lpthreads -lmach -lexc
10648 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10649 echo "configure:10650: checking for pthread link with -lpthreads -lmach -lexc" >&5
10650 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10656 LIBS="-lpthreads -lmach -lexc $LIBS"
10658 if test "$cross_compiling" = yes; then
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662 /* pthread test headers */
10663 #include <pthread.h>
10665 #define NULL (void*)0
10668 static void *task(p)
10671 return (void *) (p == NULL);
10676 /* pthread test function */
10681 #ifdef HAVE_PTHREADS_FINAL
10682 /* Final pthreads */
10683 pthread_attr_t attr;
10685 status = pthread_attr_init(&attr);
10686 if( status ) return status;
10688 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10690 #if defined( PTHREAD_CREATE_JOINABLE )
10691 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10693 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10696 #ifdef PTHREAD_CREATE_DETACHED
10698 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10701 if( status ) return status;
10704 status = pthread_create( &t, &attr, task, NULL );
10705 if( status ) return status;
10707 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10709 /* give thread a chance to complete */
10710 /* it should remain joinable and hence detachable */
10713 status = pthread_detach( t );
10714 if( status ) return status;
10719 /* Draft 4 pthreads */
10720 status = pthread_create( &t, pthread_attr_default, task, NULL );
10721 if( status ) return status;
10724 /* give thread a chance to complete */
10725 /* it should remain joinable and hence detachable */
10728 status = pthread_detach( &t );
10729 if( status ) return status;
10733 #ifdef HAVE_LINUX_THREADS
10734 pthread_kill_other_threads_np();
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10743 ol_cv_pthread_lpthreads_lmach_lexc=yes
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10748 ol_cv_pthread_lpthreads_lmach_lexc=no
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755 /* pthread test headers */
10756 #include <pthread.h>
10758 #define NULL (void*)0
10761 static void *task(p)
10764 return (void *) (p == NULL);
10768 int main(argc, argv)
10773 /* pthread test function */
10778 #ifdef HAVE_PTHREADS_FINAL
10779 /* Final pthreads */
10780 pthread_attr_t attr;
10782 status = pthread_attr_init(&attr);
10783 if( status ) return status;
10785 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10787 #if defined( PTHREAD_CREATE_JOINABLE )
10788 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10790 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10793 #ifdef PTHREAD_CREATE_DETACHED
10795 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10798 if( status ) return status;
10801 status = pthread_create( &t, &attr, task, NULL );
10802 if( status ) return status;
10804 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10806 /* give thread a chance to complete */
10807 /* it should remain joinable and hence detachable */
10810 status = pthread_detach( t );
10811 if( status ) return status;
10816 /* Draft 4 pthreads */
10817 status = pthread_create( &t, pthread_attr_default, task, NULL );
10818 if( status ) return status;
10821 /* give thread a chance to complete */
10822 /* it should remain joinable and hence detachable */
10825 status = pthread_detach( &t );
10826 if( status ) return status;
10830 #ifdef HAVE_LINUX_THREADS
10831 pthread_kill_other_threads_np();
10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10841 ol_cv_pthread_lpthreads_lmach_lexc=yes
10843 echo "configure: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10846 ol_cv_pthread_lpthreads_lmach_lexc=no
10857 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10859 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10860 ol_link_pthreads="-lpthreads -lmach -lexc"
10861 ol_link_threads=posix
10865 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10866 if test "$ol_link_threads" = no ; then
10867 # try -lpthreads -lexc
10868 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10869 echo "configure:10870: checking for pthread link with -lpthreads -lexc" >&5
10870 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10876 LIBS="-lpthreads -lexc $LIBS"
10878 if test "$cross_compiling" = yes; then
10879 cat > conftest.$ac_ext <<EOF
10880 #line 10881 "configure"
10881 #include "confdefs.h"
10882 /* pthread test headers */
10883 #include <pthread.h>
10885 #define NULL (void*)0
10888 static void *task(p)
10891 return (void *) (p == NULL);
10896 /* pthread test function */
10901 #ifdef HAVE_PTHREADS_FINAL
10902 /* Final pthreads */
10903 pthread_attr_t attr;
10905 status = pthread_attr_init(&attr);
10906 if( status ) return status;
10908 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10910 #if defined( PTHREAD_CREATE_JOINABLE )
10911 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10913 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10916 #ifdef PTHREAD_CREATE_DETACHED
10918 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10921 if( status ) return status;
10924 status = pthread_create( &t, &attr, task, NULL );
10925 if( status ) return status;
10927 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10929 /* give thread a chance to complete */
10930 /* it should remain joinable and hence detachable */
10933 status = pthread_detach( t );
10934 if( status ) return status;
10939 /* Draft 4 pthreads */
10940 status = pthread_create( &t, pthread_attr_default, task, NULL );
10941 if( status ) return status;
10944 /* give thread a chance to complete */
10945 /* it should remain joinable and hence detachable */
10948 status = pthread_detach( &t );
10949 if( status ) return status;
10953 #ifdef HAVE_LINUX_THREADS
10954 pthread_kill_other_threads_np();
10961 if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10963 ol_cv_pthread_lpthreads_lexc=yes
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10968 ol_cv_pthread_lpthreads_lexc=no
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 /* pthread test headers */
10976 #include <pthread.h>
10978 #define NULL (void*)0
10981 static void *task(p)
10984 return (void *) (p == NULL);
10988 int main(argc, argv)
10993 /* pthread test function */
10998 #ifdef HAVE_PTHREADS_FINAL
10999 /* Final pthreads */
11000 pthread_attr_t attr;
11002 status = pthread_attr_init(&attr);
11003 if( status ) return status;
11005 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11007 #if defined( PTHREAD_CREATE_JOINABLE )
11008 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11010 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11013 #ifdef PTHREAD_CREATE_DETACHED
11015 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11018 if( status ) return status;
11021 status = pthread_create( &t, &attr, task, NULL );
11022 if( status ) return status;
11024 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11026 /* give thread a chance to complete */
11027 /* it should remain joinable and hence detachable */
11030 status = pthread_detach( t );
11031 if( status ) return status;
11036 /* Draft 4 pthreads */
11037 status = pthread_create( &t, pthread_attr_default, task, NULL );
11038 if( status ) return status;
11041 /* give thread a chance to complete */
11042 /* it should remain joinable and hence detachable */
11045 status = pthread_detach( &t );
11046 if( status ) return status;
11050 #ifdef HAVE_LINUX_THREADS
11051 pthread_kill_other_threads_np();
11059 if { (eval echo configure:11060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11061 ol_cv_pthread_lpthreads_lexc=yes
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11066 ol_cv_pthread_lpthreads_lexc=no
11077 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
11079 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
11080 ol_link_pthreads="-lpthreads -lexc"
11081 ol_link_threads=posix
11086 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
11087 if test "$ol_link_threads" = no ; then
11089 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
11090 echo "configure:11091: checking for pthread link with -lpthreads" >&5
11091 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
11092 echo $ac_n "(cached) $ac_c" 1>&6
11097 LIBS="-lpthreads $LIBS"
11099 if test "$cross_compiling" = yes; then
11100 cat > conftest.$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 /* pthread test headers */
11104 #include <pthread.h>
11106 #define NULL (void*)0
11109 static void *task(p)
11112 return (void *) (p == NULL);
11117 /* pthread test function */
11122 #ifdef HAVE_PTHREADS_FINAL
11123 /* Final pthreads */
11124 pthread_attr_t attr;
11126 status = pthread_attr_init(&attr);
11127 if( status ) return status;
11129 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11131 #if defined( PTHREAD_CREATE_JOINABLE )
11132 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11134 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11137 #ifdef PTHREAD_CREATE_DETACHED
11139 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11142 if( status ) return status;
11145 status = pthread_create( &t, &attr, task, NULL );
11146 if( status ) return status;
11148 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11150 /* give thread a chance to complete */
11151 /* it should remain joinable and hence detachable */
11154 status = pthread_detach( t );
11155 if( status ) return status;
11160 /* Draft 4 pthreads */
11161 status = pthread_create( &t, pthread_attr_default, task, NULL );
11162 if( status ) return status;
11165 /* give thread a chance to complete */
11166 /* it should remain joinable and hence detachable */
11169 status = pthread_detach( &t );
11170 if( status ) return status;
11174 #ifdef HAVE_LINUX_THREADS
11175 pthread_kill_other_threads_np();
11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11184 ol_cv_pthread_lib_lpthreads=yes
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11189 ol_cv_pthread_lib_lpthreads=no
11193 cat > conftest.$ac_ext <<EOF
11194 #line 11195 "configure"
11195 #include "confdefs.h"
11196 /* pthread test headers */
11197 #include <pthread.h>
11199 #define NULL (void*)0
11202 static void *task(p)
11205 return (void *) (p == NULL);
11209 int main(argc, argv)
11214 /* pthread test function */
11219 #ifdef HAVE_PTHREADS_FINAL
11220 /* Final pthreads */
11221 pthread_attr_t attr;
11223 status = pthread_attr_init(&attr);
11224 if( status ) return status;
11226 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11228 #if defined( PTHREAD_CREATE_JOINABLE )
11229 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11231 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11234 #ifdef PTHREAD_CREATE_DETACHED
11236 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11239 if( status ) return status;
11242 status = pthread_create( &t, &attr, task, NULL );
11243 if( status ) return status;
11245 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11247 /* give thread a chance to complete */
11248 /* it should remain joinable and hence detachable */
11251 status = pthread_detach( t );
11252 if( status ) return status;
11257 /* Draft 4 pthreads */
11258 status = pthread_create( &t, pthread_attr_default, task, NULL );
11259 if( status ) return status;
11262 /* give thread a chance to complete */
11263 /* it should remain joinable and hence detachable */
11266 status = pthread_detach( &t );
11267 if( status ) return status;
11271 #ifdef HAVE_LINUX_THREADS
11272 pthread_kill_other_threads_np();
11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11282 ol_cv_pthread_lib_lpthreads=yes
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11287 ol_cv_pthread_lib_lpthreads=no
11298 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11300 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11301 ol_link_pthreads="-lpthreads"
11302 ol_link_threads=posix
11307 if test $ol_link_threads != no ; then
11308 cat >> confdefs.h <<\EOF
11309 #define HAVE_PTHREADS 1
11313 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11315 save_CPPFLAGS="$CPPFLAGS"
11317 LIBS="$LTHREAD_LIBS $LIBS"
11319 for ac_func in sched_yield pthread_yield
11321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11322 echo "configure:11323: checking for $ac_func" >&5
11323 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11326 cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11329 /* System header to define __stub macros and hopefully few prototypes,
11330 which can conflict with char $ac_func(); below. */
11331 #include <assert.h>
11332 /* Override any gcc2 internal prototype to avoid an error. */
11333 /* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11351 if { (eval echo configure:11352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11353 eval "ac_cv_func_$ac_func=yes"
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 eval "ac_cv_func_$ac_func=no"
11363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11364 echo "$ac_t""yes" 1>&6
11365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11366 cat >> confdefs.h <<EOF
11367 #define $ac_tr_func 1
11371 echo "$ac_t""no" 1>&6
11376 if test $ac_cv_func_sched_yield = no -a \
11377 $ac_cv_func_pthread_yield = no ; then
11378 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11379 echo "configure:11380: checking for sched_yield in -lrt" >&5
11380 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11381 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11384 ac_save_LIBS="$LIBS"
11386 cat > conftest.$ac_ext <<EOF
11387 #line 11388 "configure"
11388 #include "confdefs.h"
11389 /* Override any gcc2 internal prototype to avoid an error. */
11390 /* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11392 char sched_yield();
11398 if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11400 eval "ac_cv_lib_$ac_lib_var=yes"
11402 echo "configure: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11405 eval "ac_cv_lib_$ac_lib_var=no"
11408 LIBS="$ac_save_LIBS"
11411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11412 echo "$ac_t""yes" 1>&6
11413 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11414 cat >> confdefs.h <<\EOF
11415 #define HAVE_SCHED_YIELD 1
11418 ac_cv_func_sched_yield=yes
11420 echo "$ac_t""no" 1>&6
11421 ac_cv_func_sched_yield=no
11425 if test $ac_cv_func_sched_yield = no -a \
11426 $ac_cv_func_pthread_yield = no ; then
11427 for ac_func in thr_yield
11429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11430 echo "configure:11431: checking for $ac_func" >&5
11431 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* System header to define __stub macros and hopefully few prototypes,
11438 which can conflict with char $ac_func(); below. */
11439 #include <assert.h>
11440 /* Override any gcc2 internal prototype to avoid an error. */
11441 /* We use char because int might match the return type of a gcc2
11442 builtin and then its argument prototype would still apply. */
11448 /* The GNU C library defines this for functions which it implements
11449 to always fail with ENOSYS. Some functions are actually named
11450 something starting with __ and the normal name is an alias. */
11451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11459 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11461 eval "ac_cv_func_$ac_func=yes"
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11466 eval "ac_cv_func_$ac_func=no"
11471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11472 echo "$ac_t""yes" 1>&6
11473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11474 cat >> confdefs.h <<EOF
11475 #define $ac_tr_func 1
11479 echo "$ac_t""no" 1>&6
11484 if test $ac_cv_func_sched_yield = no -a \
11485 $ac_cv_func_pthread_yield = no -a \
11486 "$ac_cv_func_thr_yield" = no ; then
11487 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11490 for ac_func in pthread_kill pthread_rwlock_destroy
11492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11493 echo "configure:11494: checking for $ac_func" >&5
11494 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func(); below. */
11502 #include <assert.h>
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 /* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11511 /* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11522 if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11524 eval "ac_cv_func_$ac_func=yes"
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11529 eval "ac_cv_func_$ac_func=no"
11534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11537 cat >> confdefs.h <<EOF
11538 #define $ac_tr_func 1
11542 echo "$ac_t""no" 1>&6
11547 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11548 echo "configure:11549: checking for pthread_detach with <pthread.h>" >&5
11549 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11557 #include <pthread.h>
11559 #define NULL (void*)0
11563 pthread_detach(NULL);
11566 if { (eval echo configure:11567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11568 ol_cv_func_pthread_detach=yes
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11573 ol_cv_func_pthread_detach=no
11579 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11581 if test $ol_cv_func_pthread_detach = no ; then
11582 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11585 cat >> confdefs.h <<\EOF
11586 #define HAVE_PTHREAD_DETACH 1
11591 pthread_setconcurrency \
11592 pthread_getconcurrency \
11593 thr_setconcurrency \
11594 thr_getconcurrency \
11597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11598 echo "configure:11599: checking for $ac_func" >&5
11599 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11600 echo $ac_n "(cached) $ac_c" 1>&6
11602 cat > conftest.$ac_ext <<EOF
11603 #line 11604 "configure"
11604 #include "confdefs.h"
11605 /* System header to define __stub macros and hopefully few prototypes,
11606 which can conflict with char $ac_func(); below. */
11607 #include <assert.h>
11608 /* Override any gcc2 internal prototype to avoid an error. */
11609 /* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11616 /* The GNU C library defines this for functions which it implements
11617 to always fail with ENOSYS. Some functions are actually named
11618 something starting with __ and the normal name is an alias. */
11619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11627 if { (eval echo configure:11628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11629 eval "ac_cv_func_$ac_func=yes"
11631 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5
11634 eval "ac_cv_func_$ac_func=no"
11639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11640 echo "$ac_t""yes" 1>&6
11641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11642 cat >> confdefs.h <<EOF
11643 #define $ac_tr_func 1
11647 echo "$ac_t""no" 1>&6
11653 for ac_func in pthread_kill_other_threads_np
11655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11656 echo "configure:11657: checking for $ac_func" >&5
11657 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11660 cat > conftest.$ac_ext <<EOF
11661 #line 11662 "configure"
11662 #include "confdefs.h"
11663 /* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char $ac_func(); below. */
11665 #include <assert.h>
11666 /* Override any gcc2 internal prototype to avoid an error. */
11667 /* We use char because int might match the return type of a gcc2
11668 builtin and then its argument prototype would still apply. */
11674 /* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 eval "ac_cv_func_$ac_func=yes"
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11692 eval "ac_cv_func_$ac_func=no"
11697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11698 echo "$ac_t""yes" 1>&6
11699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11700 cat >> confdefs.h <<EOF
11701 #define $ac_tr_func 1
11705 echo "$ac_t""no" 1>&6
11709 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11710 echo "configure:11711: checking for LinuxThreads implementation" >&5
11711 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11714 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11717 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11722 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11723 echo "configure:11724: checking for LinuxThreads consistency" >&5
11724 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11725 echo $ac_n "(cached) $ac_c" 1>&6
11728 if test $ol_cv_header_linux_threads = yes -a \
11729 $ol_cv_sys_linux_threads = yes; then
11730 ol_cv_linux_threads=yes
11731 elif test $ol_cv_header_linux_threads = no -a \
11732 $ol_cv_sys_linux_threads = no; then
11733 ol_cv_linux_threads=no
11735 ol_cv_linux_threads=error
11740 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11743 if test $ol_cv_linux_threads = error; then
11744 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11747 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11748 echo "configure:11749: checking if pthread_create() works" >&5
11749 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11750 echo $ac_n "(cached) $ac_c" 1>&6
11753 if test "$cross_compiling" = yes; then
11754 ol_cv_pthread_create_works=yes
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759 /* pthread test headers */
11760 #include <pthread.h>
11762 #define NULL (void*)0
11765 static void *task(p)
11768 return (void *) (p == NULL);
11772 int main(argc, argv)
11777 /* pthread test function */
11782 #ifdef HAVE_PTHREADS_FINAL
11783 /* Final pthreads */
11784 pthread_attr_t attr;
11786 status = pthread_attr_init(&attr);
11787 if( status ) return status;
11789 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11791 #if defined( PTHREAD_CREATE_JOINABLE )
11792 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11794 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11797 #ifdef PTHREAD_CREATE_DETACHED
11799 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11802 if( status ) return status;
11805 status = pthread_create( &t, &attr, task, NULL );
11806 if( status ) return status;
11808 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11810 /* give thread a chance to complete */
11811 /* it should remain joinable and hence detachable */
11814 status = pthread_detach( t );
11815 if( status ) return status;
11820 /* Draft 4 pthreads */
11821 status = pthread_create( &t, pthread_attr_default, task, NULL );
11822 if( status ) return status;
11825 /* give thread a chance to complete */
11826 /* it should remain joinable and hence detachable */
11829 status = pthread_detach( &t );
11830 if( status ) return status;
11834 #ifdef HAVE_LINUX_THREADS
11835 pthread_kill_other_threads_np();
11843 if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11845 ol_cv_pthread_create_works=yes
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 ol_cv_pthread_create_works=no
11857 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11859 if test $ol_cv_pthread_create_works = no ; then
11860 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11863 if test $ol_with_yielding_select = auto ; then
11864 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11865 echo "configure:11866: checking if select yields when using pthreads" >&5
11866 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11870 if test "$cross_compiling" = yes; then
11871 ol_cv_pthread_select_yields=cross
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11877 #include <sys/types.h>
11878 #include <sys/time.h>
11879 #include <unistd.h>
11880 #include <pthread.h>
11882 #define NULL (void*) 0
11885 static int fildes[2];
11887 static void *task(p)
11899 FD_SET(fildes[0], &rfds);
11901 /* we're not interested in any fds */
11902 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11909 exit(0); /* if we exit here, the select blocked the whole process */
11912 int main(argc, argv)
11918 /* create a pipe to select */
11919 if(pipe(&fildes[0])) {
11924 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11925 (void) pthread_setconcurrency(2);
11927 #ifdef HAVE_THR_SETCONCURRENCY
11928 /* Set Solaris LWP concurrency to 2 */
11929 thr_setconcurrency(2);
11933 #if HAVE_PTHREADS_D4
11934 pthread_create(&t, pthread_attr_default, task, NULL);
11936 pthread_create(&t, NULL, task, NULL);
11939 #if HAVE_SCHED_YIELD
11940 sched_yield(); /* make sure task runs first */
11942 #ifdef HAVE_PTHREAD_YIELD
11943 pthread_yield(); /* make sure task runs first */
11950 if { (eval echo configure:11951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11952 ol_cv_pthread_select_yields=no
11954 echo "configure: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11957 ol_cv_pthread_select_yields=yes
11964 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11966 if test $ol_cv_pthread_select_yields = cross ; then
11967 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11970 if test $ol_cv_pthread_select_yields = yes ; then
11971 ol_with_yielding_select=yes
11975 CPPFLAGS="$save_CPPFLAGS"
11978 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11982 if test $ol_with_threads = posix ; then
11983 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11987 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11988 -o $ol_with_threads = mach ; then
11990 for ac_hdr in mach/cthreads.h cthreads.h
11992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11994 echo "configure:11995: checking for $ac_hdr" >&5
11995 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
11998 cat > conftest.$ac_ext <<EOF
11999 #line 12000 "configure"
12000 #include "confdefs.h"
12003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12004 { (eval echo configure:12005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12006 if test -z "$ac_err"; then
12008 eval "ac_cv_header_$ac_safe=yes"
12011 echo "configure: failed program was:" >&5
12012 cat conftest.$ac_ext >&5
12014 eval "ac_cv_header_$ac_safe=no"
12018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12019 echo "$ac_t""yes" 1>&6
12020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12021 cat >> confdefs.h <<EOF
12022 #define $ac_tr_hdr 1
12026 echo "$ac_t""no" 1>&6
12030 if test $ac_cv_header_mach_cthreads_h = yes ; then
12031 ol_with_threads=found
12033 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12034 echo "configure:12035: checking for cthread_fork" >&5
12035 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
12038 cat > conftest.$ac_ext <<EOF
12039 #line 12040 "configure"
12040 #include "confdefs.h"
12041 /* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char cthread_fork(); below. */
12043 #include <assert.h>
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 /* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12047 char cthread_fork();
12052 /* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
12055 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12063 if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12065 eval "ac_cv_func_cthread_fork=yes"
12067 echo "configure: failed program was:" >&5
12068 cat conftest.$ac_ext >&5
12070 eval "ac_cv_func_cthread_fork=no"
12075 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12076 echo "$ac_t""yes" 1>&6
12077 ol_link_threads=yes
12079 echo "$ac_t""no" 1>&6
12083 if test $ol_link_threads = no ; then
12084 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
12085 echo "configure:12086: checking for cthread_fork with -all_load" >&5
12086 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12091 LIBS="-all_load $LIBS"
12092 cat > conftest.$ac_ext <<EOF
12093 #line 12094 "configure"
12094 #include "confdefs.h"
12095 #include <mach/cthreads.h>
12098 cthread_fork((void *)0, (void *)0);
12102 if { (eval echo configure:12103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12104 ol_cv_cthread_all_load=yes
12106 echo "configure: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12109 ol_cv_cthread_all_load=no
12116 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
12118 if test $ol_cv_cthread_all_load = yes ; then
12119 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
12120 ol_link_threads=mach
12121 ol_with_threads=found
12125 elif test $ac_cv_header_cthreads_h = yes ; then
12127 ol_with_threads=found
12130 LIBS="$LIBS -lthreads"
12131 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
12132 echo "configure:12133: checking for cthread_fork" >&5
12133 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
12134 echo $ac_n "(cached) $ac_c" 1>&6
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12138 "configure"
12138 #include "confdefs.h"
12139 /* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char cthread_fork(); below. */
12141 #include <assert.h>
12142 /* Override any gcc2 internal prototype to avoid an error. */
12143 /* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12145 char cthread_fork();
12150 /* The GNU C library defines this for functions which it implements
12151 to always fail with ENOSYS. Some functions are actually named
12152 something starting with __ and the normal name is an alias. */
12153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12161 if { (eval echo configure:12162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12163 eval "ac_cv_func_cthread_fork=yes"
12165 echo "configure: failed program was:" >&5
12166 cat conftest.$ac_ext >&5
12168 eval "ac_cv_func_cthread_fork=no"
12173 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12174 echo "$ac_t""yes" 1>&6
12175 ol_link_threads=yes
12177 echo "$ac_t""no" 1>&6
12182 if test $ol_link_threads = yes ; then
12183 LTHREAD_LIBS="-lthreads"
12184 ol_link_threads=mach
12185 ol_with_threads=found
12187 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12190 elif test $ol_with_threads = mach ; then
12191 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
12194 if test $ol_link_threads = mach ; then
12195 cat >> confdefs.h <<\EOF
12196 #define HAVE_MACH_CTHREADS 1
12199 elif test $ol_with_threads = found ; then
12200 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12204 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12205 -o $ol_with_threads = pth ; then
12207 for ac_hdr in pth.h
12209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12211 echo "configure:12212: checking for $ac_hdr" >&5
12212 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12215 cat > conftest.$ac_ext <<EOF
12216 #line 12217 "configure"
12217 #include "confdefs.h"
12220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12221 { (eval echo configure:12222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12223 if test -z "$ac_err"; then
12225 eval "ac_cv_header_$ac_safe=yes"
12228 echo "configure: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12231 eval "ac_cv_header_$ac_safe=no"
12235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12236 echo "$ac_t""yes" 1>&6
12237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12238 cat >> confdefs.h <<EOF
12239 #define $ac_tr_hdr 1
12243 echo "$ac_t""no" 1>&6
12248 if test $ac_cv_header_pth_h = yes ; then
12249 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
12250 echo "configure:12251: checking for pth_version in -lpth" >&5
12251 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12253 echo $ac_n "(cached) $ac_c" 1>&6
12255 ac_save_LIBS="$LIBS"
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char pth_version();
12269 if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12271 eval "ac_cv_lib_$ac_lib_var=yes"
12273 echo "configure: failed program was:" >&5
12274 cat conftest.$ac_ext >&5
12276 eval "ac_cv_lib_$ac_lib_var=no"
12279 LIBS="$ac_save_LIBS"
12282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12283 echo "$ac_t""yes" 1>&6
12286 echo "$ac_t""no" 1>&6
12291 if test $have_pth = yes ; then
12292 cat >> confdefs.h <<\EOF
12293 #define HAVE_GNU_PTH 1
12296 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12297 ol_link_threads=pth
12298 ol_with_threads=found
12300 if test $ol_with_yielding_select = auto ; then
12301 ol_with_yielding_select=yes
12307 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12308 -o $ol_with_threads = lwp ; then
12310 for ac_hdr in thread.h synch.h
12312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12314 echo "configure:12315: checking for $ac_hdr" >&5
12315 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12318 cat > conftest.$ac_ext <<EOF
12319 #line 12320 "configure"
12320 #include "confdefs.h"
12323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12324 { (eval echo configure:12325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12326 if test -z "$ac_err"; then
12328 eval "ac_cv_header_$ac_safe=yes"
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12334 eval "ac_cv_header_$ac_safe=no"
12338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12339 echo "$ac_t""yes" 1>&6
12340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12341 cat >> confdefs.h <<EOF
12342 #define $ac_tr_hdr 1
12346 echo "$ac_t""no" 1>&6
12350 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12351 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12352 echo "configure:12353: checking for thr_create in -lthread" >&5
12353 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12354 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12357 ac_save_LIBS="$LIBS"
12358 LIBS="-lthread $LIBS"
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 /* Override any gcc2 internal prototype to avoid an error. */
12363 /* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12371 if { (eval echo configure:12372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12373 eval "ac_cv_lib_$ac_lib_var=yes"
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12378 eval "ac_cv_lib_$ac_lib_var=no"
12381 LIBS="$ac_save_LIBS"
12384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12385 echo "$ac_t""yes" 1>&6
12388 echo "$ac_t""no" 1>&6
12393 if test $have_thr = yes ; then
12394 cat >> confdefs.h <<\EOF
12398 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12399 ol_link_threads=thr
12401 if test $ol_with_yielding_select = auto ; then
12402 ol_with_yielding_select=yes
12406 thr_setconcurrency \
12407 thr_getconcurrency \
12410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12411 echo "configure:12412: checking for $ac_func" >&5
12412 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12413 echo $ac_n "(cached) $ac_c" 1>&6
12415 cat > conftest.$ac_ext <<EOF
12416 #line 12417 "configure"
12417 #include "confdefs.h"
12418 /* System header to define __stub macros and hopefully few prototypes,
12419 which can conflict with char $ac_func(); below. */
12420 #include <assert.h>
12421 /* Override any gcc2 internal prototype to avoid an error. */
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12429 /* The GNU C library defines this for functions which it implements
12430 to always fail with ENOSYS. Some functions are actually named
12431 something starting with __ and the normal name is an alias. */
12432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12440 if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12442 eval "ac_cv_func_$ac_func=yes"
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12447 eval "ac_cv_func_$ac_func=no"
12452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12455 cat >> confdefs.h <<EOF
12456 #define $ac_tr_func 1
12460 echo "$ac_t""no" 1>&6
12467 for ac_hdr in lwp/lwp.h
12469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12471 echo "configure:12472: checking for $ac_hdr" >&5
12472 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12475 cat > conftest.$ac_ext <<EOF
12476 #line 12477 "configure"
12477 #include "confdefs.h"
12480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12481 { (eval echo configure:12482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12483 if test -z "$ac_err"; then
12485 eval "ac_cv_header_$ac_safe=yes"
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12491 eval "ac_cv_header_$ac_safe=no"
12495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12496 echo "$ac_t""yes" 1>&6
12497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12498 cat >> confdefs.h <<EOF
12499 #define $ac_tr_hdr 1
12503 echo "$ac_t""no" 1>&6
12507 if test $ac_cv_header_lwp_lwp_h = yes ; then
12508 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12509 echo "configure:12510: checking for lwp_create in -llwp" >&5
12510 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12511 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12512 echo $ac_n "(cached) $ac_c" 1>&6
12514 ac_save_LIBS="$LIBS"
12516 cat > conftest.$ac_ext <<EOF
12517 #line 12518 "configure"
12518 #include "confdefs.h"
12519 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12528 if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12530 eval "ac_cv_lib_$ac_lib_var=yes"
12532 echo "configure: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12535 eval "ac_cv_lib_$ac_lib_var=no"
12538 LIBS="$ac_save_LIBS"
12541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12542 echo "$ac_t""yes" 1>&6
12545 echo "$ac_t""no" 1>&6
12550 if test $have_lwp = yes ; then
12551 cat >> confdefs.h <<\EOF
12555 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12556 ol_link_threads=lwp
12558 if test $ol_with_yielding_select = auto ; then
12559 ol_with_yielding_select=no
12565 if test $ol_with_yielding_select = yes ; then
12566 cat >> confdefs.h <<\EOF
12567 #define HAVE_YIELDING_SELECT 1
12572 if test $ol_with_threads = manual ; then
12573 ol_link_threads=yes
12575 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12577 for ac_hdr in pthread.h sched.h
12579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12581 echo "configure:12582: checking for $ac_hdr" >&5
12582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12591 { (eval echo configure:12592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12593 if test -z "$ac_err"; then
12595 eval "ac_cv_header_$ac_safe=yes"
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12601 eval "ac_cv_header_$ac_safe=no"
12605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12606 echo "$ac_t""yes" 1>&6
12607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12608 cat >> confdefs.h <<EOF
12609 #define $ac_tr_hdr 1
12613 echo "$ac_t""no" 1>&6
12617 for ac_func in sched_yield pthread_yield
12619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12620 echo "configure:12621: checking for $ac_func" >&5
12621 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12622 echo $ac_n "(cached) $ac_c" 1>&6
12624 cat > conftest.$ac_ext <<EOF
12625 #line 12626 "configure"
12626 #include "confdefs.h"
12627 /* System header to define __stub macros and hopefully few prototypes,
12628 which can conflict with char $ac_func(); below. */
12629 #include <assert.h>
12630 /* Override any gcc2 internal prototype to avoid an error. */
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12638 /* The GNU C library defines this for functions which it implements
12639 to always fail with ENOSYS. Some functions are actually named
12640 something starting with __ and the normal name is an alias. */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12649 if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12651 eval "ac_cv_func_$ac_func=yes"
12653 echo "configure: failed program was:" >&5
12654 cat conftest.$ac_ext >&5
12656 eval "ac_cv_func_$ac_func=no"
12661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12662 echo "$ac_t""yes" 1>&6
12663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12664 cat >> confdefs.h <<EOF
12665 #define $ac_tr_func 1
12669 echo "$ac_t""no" 1>&6
12674 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12675 echo "configure:12676: checking for LinuxThreads pthread.h" >&5
12676 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12677 echo $ac_n "(cached) $ac_c" 1>&6
12679 cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12682 #include <pthread.h>
12684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12685 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12687 ol_cv_header_linux_threads=yes
12690 ol_cv_header_linux_threads=no
12697 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12698 if test $ol_cv_header_linux_threads = yes; then
12699 cat >> confdefs.h <<\EOF
12700 #define HAVE_LINUX_THREADS 1
12706 for ac_hdr in mach/cthreads.h
12708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12710 echo "configure:12711: checking for $ac_hdr" >&5
12711 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12712 echo $ac_n "(cached) $ac_c" 1>&6
12714 cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12720 { (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12722 if test -z "$ac_err"; then
12724 eval "ac_cv_header_$ac_safe=yes"
12727 echo "configure: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12730 eval "ac_cv_header_$ac_safe=no"
12734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12735 echo "$ac_t""yes" 1>&6
12736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12737 cat >> confdefs.h <<EOF
12738 #define $ac_tr_hdr 1
12742 echo "$ac_t""no" 1>&6
12746 for ac_hdr in lwp/lwp.h
12748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12750 echo "configure:12751: checking for $ac_hdr" >&5
12751 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12760 { (eval echo configure:12761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12762 if test -z "$ac_err"; then
12764 eval "ac_cv_header_$ac_safe=yes"
12767 echo "configure: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12770 eval "ac_cv_header_$ac_safe=no"
12774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12775 echo "$ac_t""yes" 1>&6
12776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12777 cat >> confdefs.h <<EOF
12778 #define $ac_tr_hdr 1
12782 echo "$ac_t""no" 1>&6
12786 for ac_hdr in thread.h synch.h
12788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12790 echo "configure:12791: checking for $ac_hdr" >&5
12791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12792 echo $ac_n "(cached) $ac_c" 1>&6
12794 cat > conftest.$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12800 { (eval echo configure:12801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12802 if test -z "$ac_err"; then
12804 eval "ac_cv_header_$ac_safe=yes"
12807 echo "configure: failed program was:" >&5
12808 cat conftest.$ac_ext >&5
12810 eval "ac_cv_header_$ac_safe=no"
12814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12815 echo "$ac_t""yes" 1>&6
12816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12817 cat >> confdefs.h <<EOF
12818 #define $ac_tr_hdr 1
12822 echo "$ac_t""no" 1>&6
12828 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12829 cat >> confdefs.h <<\EOF
12830 #define REENTRANT 1
12833 cat >> confdefs.h <<\EOF
12834 #define _REENTRANT 1
12837 cat >> confdefs.h <<\EOF
12838 #define THREAD_SAFE 1
12841 cat >> confdefs.h <<\EOF
12842 #define _THREAD_SAFE 1
12845 cat >> confdefs.h <<\EOF
12846 #define THREADSAFE 1
12849 cat >> confdefs.h <<\EOF
12850 #define _THREADSAFE 1
12853 cat >> confdefs.h <<\EOF
12854 #define _SGI_MP_SOURCE 1
12858 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12859 echo "configure:12860: checking for thread specific errno" >&5
12860 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12864 cat > conftest.$ac_ext <<EOF
12865 #line 12866 "configure"
12866 #include "confdefs.h"
12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874 ol_cv_errno_thread_specific=yes
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 ol_cv_errno_thread_specific=no
12885 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12887 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12888 echo "configure:12889: checking for thread specific h_errno" >&5
12889 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12901 if { (eval echo configure:12902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12903 ol_cv_h_errno_thread_specific=yes
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12908 ol_cv_h_errno_thread_specific=no
12914 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12916 if test $ol_cv_errno_thread_specific != yes \
12917 -o $ol_cv_h_errno_thread_specific != yes ; then
12918 LIBS="$LTHREAD_LIBS $LIBS"
12924 if test $ol_link_threads = no ; then
12925 if test $ol_with_threads = yes ; then
12926 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12929 if test $ol_with_threads = auto ; then
12930 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12934 cat >> confdefs.h <<\EOF
12935 #define NO_THREADS 1
12941 if test $ol_link_threads != no ; then
12942 cat >> confdefs.h <<\EOF
12943 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12950 if test $ol_with_ldbm_api = auto \
12951 -o $ol_with_ldbm_api = berkeley \
12952 -o $ol_with_ldbm_api = bcompat ; then
12954 if test $ol_with_ldbm_api = bcompat; then \
12955 for ac_hdr in db_185.h db.h
12957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12959 echo "configure:12960: checking for $ac_hdr" >&5
12960 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12961 echo $ac_n "(cached) $ac_c" 1>&6
12963 cat > conftest.$ac_ext <<EOF
12964 #line 12965 "configure"
12965 #include "confdefs.h"
12968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12969 { (eval echo configure:12970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12971 if test -z "$ac_err"; then
12973 eval "ac_cv_header_$ac_safe=yes"
12976 echo "configure: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12979 eval "ac_cv_header_$ac_safe=no"
12983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12984 echo "$ac_t""yes" 1>&6
12985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12986 cat >> confdefs.h <<EOF
12987 #define $ac_tr_hdr 1
12991 echo "$ac_t""no" 1>&6
12995 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12996 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12997 echo "configure:12998: checking if Berkeley DB header compatibility" >&5
12998 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12999 echo $ac_n "(cached) $ac_c" 1>&6
13002 cat > conftest.$ac_ext <<EOF
13003 #line 13004 "configure"
13004 #include "confdefs.h"
13007 # include <db_185.h>
13012 /* this check could be improved */
13013 #ifndef DB_VERSION_MAJOR
13014 # define DB_VERSION_MAJOR 1
13017 #if DB_VERSION_MAJOR == 1
13022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13023 egrep "__db_version_1" >/dev/null 2>&1; then
13025 ol_cv_header_db1=yes
13028 ol_cv_header_db1=no
13034 echo "$ac_t""$ol_cv_header_db1" 1>&6
13036 if test $ol_cv_header_db1 = yes ; then
13038 if test $ol_cv_lib_db = no ; then
13039 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13040 echo "configure:13041: checking for Berkeley DB link (default)" >&5
13041 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13047 LIBS="$ol_DB_LIB $LIBS"
13049 cat > conftest.$ac_ext <<EOF
13050 #line 13051 "configure"
13051 #include "confdefs.h"
13053 #ifdef HAVE_DB_185_H
13054 # include <db_185.h>
13059 #ifndef DB_VERSION_MAJOR
13060 # define DB_VERSION_MAJOR 1
13064 #define NULL ((void*)0)
13069 #if DB_VERSION_MAJOR > 1
13072 int major, minor, patch;
13074 version = db_version( &major, &minor, &patch );
13076 if( major != DB_VERSION_MAJOR ||
13077 minor < DB_VERSION_MINOR )
13079 printf("Berkeley DB version mismatch\n"
13080 "\texpected: %s\n\tgot: %s\n",
13081 DB_VERSION_STRING, version);
13087 #if DB_VERSION_MAJOR > 2
13088 db_env_create( NULL, 0 );
13089 #elif DB_VERSION_MAJOR > 1
13090 db_appexit( NULL );
13092 (void) dbopen( NULL, 0, 0, 0, NULL);
13097 if { (eval echo configure:13098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13101 echo "configure: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13112 echo "$ac_t""$ol_cv_db_none" 1>&6
13114 if test $ol_cv_db_none = yes ; then
13119 if test $ol_cv_lib_db = no ; then
13120 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13121 echo "configure:13122: checking for Berkeley DB link (-ldb)" >&5
13122 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13123 echo $ac_n "(cached) $ac_c" 1>&6
13128 LIBS="$ol_DB_LIB $LIBS"
13130 cat > conftest.$ac_ext <<EOF
13131 #line 13132 "configure"
13132 #include "confdefs.h"
13134 #ifdef HAVE_DB_185_H
13135 # include <db_185.h>
13140 #ifndef DB_VERSION_MAJOR
13141 # define DB_VERSION_MAJOR 1
13145 #define NULL ((void*)0)
13150 #if DB_VERSION_MAJOR > 1
13153 int major, minor, patch;
13155 version = db_version( &major, &minor, &patch );
13157 if( major != DB_VERSION_MAJOR ||
13158 minor < DB_VERSION_MINOR )
13160 printf("Berkeley DB version mismatch\n"
13161 "\texpected: %s\n\tgot: %s\n",
13162 DB_VERSION_STRING, version);
13168 #if DB_VERSION_MAJOR > 2
13169 db_env_create( NULL, 0 );
13170 #elif DB_VERSION_MAJOR > 1
13171 db_appexit( NULL );
13173 (void) dbopen( NULL, 0, 0, 0, NULL);
13178 if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13193 echo "$ac_t""$ol_cv_db_db" 1>&6
13195 if test $ol_cv_db_db = yes ; then
13200 if test $ol_cv_lib_db = no ; then
13201 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
13202 echo "configure:13203: checking for Berkeley DB link (-ldb4)" >&5
13203 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13209 LIBS="$ol_DB_LIB $LIBS"
13211 cat > conftest.$ac_ext <<EOF
13212 #line 13213 "configure"
13213 #include "confdefs.h"
13215 #ifdef HAVE_DB_185_H
13216 # include <db_185.h>
13221 #ifndef DB_VERSION_MAJOR
13222 # define DB_VERSION_MAJOR 1
13226 #define NULL ((void*)0)
13231 #if DB_VERSION_MAJOR > 1
13234 int major, minor, patch;
13236 version = db_version( &major, &minor, &patch );
13238 if( major != DB_VERSION_MAJOR ||
13239 minor < DB_VERSION_MINOR )
13241 printf("Berkeley DB version mismatch\n"
13242 "\texpected: %s\n\tgot: %s\n",
13243 DB_VERSION_STRING, version);
13249 #if DB_VERSION_MAJOR > 2
13250 db_env_create( NULL, 0 );
13251 #elif DB_VERSION_MAJOR > 1
13252 db_appexit( NULL );
13254 (void) dbopen( NULL, 0, 0, 0, NULL);
13259 if { (eval echo configure:13260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13263 echo "configure: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13274 echo "$ac_t""$ol_cv_db_db4" 1>&6
13276 if test $ol_cv_db_db4 = yes ; then
13281 if test $ol_cv_lib_db = no ; then
13282 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13283 echo "configure:13284: checking for Berkeley DB link (-ldb3)" >&5
13284 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13290 LIBS="$ol_DB_LIB $LIBS"
13292 cat > conftest.$ac_ext <<EOF
13293 #line 13294 "configure"
13294 #include "confdefs.h"
13296 #ifdef HAVE_DB_185_H
13297 # include <db_185.h>
13302 #ifndef DB_VERSION_MAJOR
13303 # define DB_VERSION_MAJOR 1
13307 #define NULL ((void*)0)
13312 #if DB_VERSION_MAJOR > 1
13315 int major, minor, patch;
13317 version = db_version( &major, &minor, &patch );
13319 if( major != DB_VERSION_MAJOR ||
13320 minor < DB_VERSION_MINOR )
13322 printf("Berkeley DB version mismatch\n"
13323 "\texpected: %s\n\tgot: %s\n",
13324 DB_VERSION_STRING, version);
13330 #if DB_VERSION_MAJOR > 2
13331 db_env_create( NULL, 0 );
13332 #elif DB_VERSION_MAJOR > 1
13333 db_appexit( NULL );
13335 (void) dbopen( NULL, 0, 0, 0, NULL);
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13355 echo "$ac_t""$ol_cv_db_db3" 1>&6
13357 if test $ol_cv_db_db3 = yes ; then
13362 if test $ol_cv_lib_db = no ; then
13363 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13364 echo "configure:13365: checking for Berkeley DB link (-ldb2)" >&5
13365 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13366 echo $ac_n "(cached) $ac_c" 1>&6
13371 LIBS="$ol_DB_LIB $LIBS"
13373 cat > conftest.$ac_ext <<EOF
13374 #line 13375 "configure"
13375 #include "confdefs.h"
13377 #ifdef HAVE_DB_185_H
13378 # include <db_185.h>
13383 #ifndef DB_VERSION_MAJOR
13384 # define DB_VERSION_MAJOR 1
13388 #define NULL ((void*)0)
13393 #if DB_VERSION_MAJOR > 1
13396 int major, minor, patch;
13398 version = db_version( &major, &minor, &patch );
13400 if( major != DB_VERSION_MAJOR ||
13401 minor < DB_VERSION_MINOR )
13403 printf("Berkeley DB version mismatch\n"
13404 "\texpected: %s\n\tgot: %s\n",
13405 DB_VERSION_STRING, version);
13411 #if DB_VERSION_MAJOR > 2
13412 db_env_create( NULL, 0 );
13413 #elif DB_VERSION_MAJOR > 1
13414 db_appexit( NULL );
13416 (void) dbopen( NULL, 0, 0, 0, NULL);
13421 if { (eval echo configure:13422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13436 echo "$ac_t""$ol_cv_db_db2" 1>&6
13438 if test $ol_cv_db_db2 = yes ; then
13443 if test $ol_cv_lib_db = no ; then
13444 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13445 echo "configure:13446: checking for Berkeley DB link (-ldb1)" >&5
13446 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13447 echo $ac_n "(cached) $ac_c" 1>&6
13452 LIBS="$ol_DB_LIB $LIBS"
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13458 #ifdef HAVE_DB_185_H
13459 # include <db_185.h>
13464 #ifndef DB_VERSION_MAJOR
13465 # define DB_VERSION_MAJOR 1
13469 #define NULL ((void*)0)
13474 #if DB_VERSION_MAJOR > 1
13477 int major, minor, patch;
13479 version = db_version( &major, &minor, &patch );
13481 if( major != DB_VERSION_MAJOR ||
13482 minor < DB_VERSION_MINOR )
13484 printf("Berkeley DB version mismatch\n"
13485 "\texpected: %s\n\tgot: %s\n",
13486 DB_VERSION_STRING, version);
13492 #if DB_VERSION_MAJOR > 2
13493 db_env_create( NULL, 0 );
13494 #elif DB_VERSION_MAJOR > 1
13495 db_appexit( NULL );
13497 (void) dbopen( NULL, 0, 0, 0, NULL);
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13517 echo "$ac_t""$ol_cv_db_db1" 1>&6
13519 if test $ol_cv_db_db1 = yes ; then
13525 if test "$ol_cv_lib_db" != no ; then
13526 ol_cv_berkeley_db=yes
13532 ol_cv_berkeley_db=no
13535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13537 echo "configure:13538: checking for $ac_hdr" >&5
13538 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13539 echo $ac_n "(cached) $ac_c" 1>&6
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13547 { (eval echo configure:13548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13549 if test -z "$ac_err"; then
13551 eval "ac_cv_header_$ac_safe=yes"
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13557 eval "ac_cv_header_$ac_safe=no"
13561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13562 echo "$ac_t""yes" 1>&6
13563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13564 cat >> confdefs.h <<EOF
13565 #define $ac_tr_hdr 1
13569 echo "$ac_t""no" 1>&6
13573 if test $ac_cv_header_db_h = yes; then
13575 if test $ol_cv_lib_db = no ; then
13576 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13577 echo "configure:13578: checking for Berkeley DB link (default)" >&5
13578 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13579 echo $ac_n "(cached) $ac_c" 1>&6
13584 LIBS="$ol_DB_LIB $LIBS"
13586 cat > conftest.$ac_ext <<EOF
13587 #line 13588 "configure"
13588 #include "confdefs.h"
13590 #ifdef HAVE_DB_185_H
13591 # include <db_185.h>
13596 #ifndef DB_VERSION_MAJOR
13597 # define DB_VERSION_MAJOR 1
13601 #define NULL ((void*)0)
13606 #if DB_VERSION_MAJOR > 1
13609 int major, minor, patch;
13611 version = db_version( &major, &minor, &patch );
13613 if( major != DB_VERSION_MAJOR ||
13614 minor < DB_VERSION_MINOR )
13616 printf("Berkeley DB version mismatch\n"
13617 "\texpected: %s\n\tgot: %s\n",
13618 DB_VERSION_STRING, version);
13624 #if DB_VERSION_MAJOR > 2
13625 db_env_create( NULL, 0 );
13626 #elif DB_VERSION_MAJOR > 1
13627 db_appexit( NULL );
13629 (void) dbopen( NULL, 0, 0, 0, NULL);
13634 if { (eval echo configure:13635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13638 echo "configure: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13649 echo "$ac_t""$ol_cv_db_none" 1>&6
13651 if test $ol_cv_db_none = yes ; then
13656 if test $ol_cv_lib_db = no ; then
13657 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13658 echo "configure:13659: checking for Berkeley DB link (-ldb)" >&5
13659 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13660 echo $ac_n "(cached) $ac_c" 1>&6
13665 LIBS="$ol_DB_LIB $LIBS"
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13671 #ifdef HAVE_DB_185_H
13672 # include <db_185.h>
13677 #ifndef DB_VERSION_MAJOR
13678 # define DB_VERSION_MAJOR 1
13682 #define NULL ((void*)0)
13687 #if DB_VERSION_MAJOR > 1
13690 int major, minor, patch;
13692 version = db_version( &major, &minor, &patch );
13694 if( major != DB_VERSION_MAJOR ||
13695 minor < DB_VERSION_MINOR )
13697 printf("Berkeley DB version mismatch\n"
13698 "\texpected: %s\n\tgot: %s\n",
13699 DB_VERSION_STRING, version);
13705 #if DB_VERSION_MAJOR > 2
13706 db_env_create( NULL, 0 );
13707 #elif DB_VERSION_MAJOR > 1
13708 db_appexit( NULL );
13710 (void) dbopen( NULL, 0, 0, 0, NULL);
13715 if { (eval echo configure:13716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13719 echo "configure: failed program was:" >&5
13720 cat conftest.$ac_ext >&5
13730 echo "$ac_t""$ol_cv_db_db" 1>&6
13732 if test $ol_cv_db_db = yes ; then
13737 if test $ol_cv_lib_db = no ; then
13738 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
13739 echo "configure:13740: checking for Berkeley DB link (-ldb4)" >&5
13740 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
13741 echo $ac_n "(cached) $ac_c" 1>&6
13746 LIBS="$ol_DB_LIB $LIBS"
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13752 #ifdef HAVE_DB_185_H
13753 # include <db_185.h>
13758 #ifndef DB_VERSION_MAJOR
13759 # define DB_VERSION_MAJOR 1
13763 #define NULL ((void*)0)
13768 #if DB_VERSION_MAJOR > 1
13771 int major, minor, patch;
13773 version = db_version( &major, &minor, &patch );
13775 if( major != DB_VERSION_MAJOR ||
13776 minor < DB_VERSION_MINOR )
13778 printf("Berkeley DB version mismatch\n"
13779 "\texpected: %s\n\tgot: %s\n",
13780 DB_VERSION_STRING, version);
13786 #if DB_VERSION_MAJOR > 2
13787 db_env_create( NULL, 0 );
13788 #elif DB_VERSION_MAJOR > 1
13789 db_appexit( NULL );
13791 (void) dbopen( NULL, 0, 0, 0, NULL);
13796 if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13800 echo "configure: failed program was:" >&5
13801 cat conftest.$ac_ext >&5
13811 echo "$ac_t""$ol_cv_db_db4" 1>&6
13813 if test $ol_cv_db_db4 = yes ; then
13818 if test $ol_cv_lib_db = no ; then
13819 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13820 echo "configure:13821: checking for Berkeley DB link (-ldb3)" >&5
13821 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13822 echo $ac_n "(cached) $ac_c" 1>&6
13827 LIBS="$ol_DB_LIB $LIBS"
13829 cat > conftest.$ac_ext <<EOF
13830 #line 13831 "configure"
13831 #include "confdefs.h"
13833 #ifdef HAVE_DB_185_H
13834 # include <db_185.h>
13839 #ifndef DB_VERSION_MAJOR
13840 # define DB_VERSION_MAJOR 1
13844 #define NULL ((void*)0)
13849 #if DB_VERSION_MAJOR > 1
13852 int major, minor, patch;
13854 version = db_version( &major, &minor, &patch );
13856 if( major != DB_VERSION_MAJOR ||
13857 minor < DB_VERSION_MINOR )
13859 printf("Berkeley DB version mismatch\n"
13860 "\texpected: %s\n\tgot: %s\n",
13861 DB_VERSION_STRING, version);
13867 #if DB_VERSION_MAJOR > 2
13868 db_env_create( NULL, 0 );
13869 #elif DB_VERSION_MAJOR > 1
13870 db_appexit( NULL );
13872 (void) dbopen( NULL, 0, 0, 0, NULL);
13877 if { (eval echo configure:13878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13892 echo "$ac_t""$ol_cv_db_db3" 1>&6
13894 if test $ol_cv_db_db3 = yes ; then
13899 if test $ol_cv_lib_db = no ; then
13900 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13901 echo "configure:13902: checking for Berkeley DB link (-ldb2)" >&5
13902 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13908 LIBS="$ol_DB_LIB $LIBS"
13910 cat > conftest.$ac_ext <<EOF
13911 #line 13912 "configure"
13912 #include "confdefs.h"
13914 #ifdef HAVE_DB_185_H
13915 # include <db_185.h>
13920 #ifndef DB_VERSION_MAJOR
13921 # define DB_VERSION_MAJOR 1
13925 #define NULL ((void*)0)
13930 #if DB_VERSION_MAJOR > 1
13933 int major, minor, patch;
13935 version = db_version( &major, &minor, &patch );
13937 if( major != DB_VERSION_MAJOR ||
13938 minor < DB_VERSION_MINOR )
13940 printf("Berkeley DB version mismatch\n"
13941 "\texpected: %s\n\tgot: %s\n",
13942 DB_VERSION_STRING, version);
13948 #if DB_VERSION_MAJOR > 2
13949 db_env_create( NULL, 0 );
13950 #elif DB_VERSION_MAJOR > 1
13951 db_appexit( NULL );
13953 (void) dbopen( NULL, 0, 0, 0, NULL);
13958 if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13973 echo "$ac_t""$ol_cv_db_db2" 1>&6
13975 if test $ol_cv_db_db2 = yes ; then
13980 if test $ol_cv_lib_db = no ; then
13981 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13982 echo "configure:13983: checking for Berkeley DB link (-ldb1)" >&5
13983 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13989 LIBS="$ol_DB_LIB $LIBS"
13991 cat > conftest.$ac_ext <<EOF
13992 #line 13993 "configure"
13993 #include "confdefs.h"
13995 #ifdef HAVE_DB_185_H
13996 # include <db_185.h>
14001 #ifndef DB_VERSION_MAJOR
14002 # define DB_VERSION_MAJOR 1
14006 #define NULL ((void*)0)
14011 #if DB_VERSION_MAJOR > 1
14014 int major, minor, patch;
14016 version = db_version( &major, &minor, &patch );
14018 if( major != DB_VERSION_MAJOR ||
14019 minor < DB_VERSION_MINOR )
14021 printf("Berkeley DB version mismatch\n"
14022 "\texpected: %s\n\tgot: %s\n",
14023 DB_VERSION_STRING, version);
14029 #if DB_VERSION_MAJOR > 2
14030 db_env_create( NULL, 0 );
14031 #elif DB_VERSION_MAJOR > 1
14032 db_appexit( NULL );
14034 (void) dbopen( NULL, 0, 0, 0, NULL);
14039 if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14043 echo "configure: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14054 echo "$ac_t""$ol_cv_db_db1" 1>&6
14056 if test $ol_cv_db_db1 = yes ; then
14062 if test "$ol_cv_lib_db" != no ; then
14063 ol_cv_berkeley_db=yes
14064 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
14065 echo "configure:14066: checking for Berkeley DB thread support" >&5
14066 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
14071 if test $ol_cv_lib_db != yes ; then
14072 LIBS="$ol_cv_lib_db"
14075 if test "$cross_compiling" = yes; then
14076 ol_cv_berkeley_db_thread=cross
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14082 #ifdef HAVE_DB_185_H
14088 #define NULL ((void *)0)
14093 u_int32_t flags = DB_CREATE |
14099 #if DB_VERSION_MAJOR > 2
14100 DB_ENV *env = NULL;
14102 rc = db_env_create( &env, 0 );
14104 flags |= DB_INIT_MPOOL;
14105 #ifdef DB_MPOOL_PRIVATE
14106 flags |= DB_MPOOL_PRIVATE;
14110 printf("BerkeleyDB: %s\n", db_strerror(rc) );
14114 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
14115 rc = env->open( env, NULL, flags, 0 );
14117 rc = env->open( env, NULL, NULL, flags, 0 );
14121 rc = env->close( env, 0 );
14125 printf("BerkeleyDB: %s\n", db_strerror(rc) );
14131 memset( &env, '\0', sizeof(env) );
14133 rc = db_appinit( NULL, NULL, &env, flags );
14136 db_appexit( &env );
14139 unlink("__db_mpool.share");
14140 unlink("__db_lock.share");
14146 if { (eval echo configure:14147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14148 ol_cv_berkeley_db_thread=yes
14150 echo "configure: failed program was:" >&5
14151 cat conftest.$ac_ext >&5
14153 ol_cv_berkeley_db_thread=no
14161 if test $ol_cv_berkeley_db_thread != no ; then
14162 cat >> confdefs.h <<\EOF
14163 #define HAVE_BERKELEY_DB_THREAD 1
14170 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
14176 if test $ol_cv_berkeley_db != no ; then
14177 cat >> confdefs.h <<\EOF
14178 #define HAVE_BERKELEY_DB 1
14182 ol_link_ldbm=berkeley
14183 ol_with_ldbm_api=berkeley
14185 if test $ol_with_ldbm_type = hash ; then
14186 cat >> confdefs.h <<\EOF
14187 #define LDBM_USE_DBHASH 1
14191 cat >> confdefs.h <<\EOF
14192 #define LDBM_USE_DBBTREE 1
14197 if test $ol_cv_lib_db != yes ; then
14198 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
14203 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
14204 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
14205 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
14206 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
14207 echo "configure:14208: checking Berkeley DB version for BDB backend" >&5
14208 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14212 cat > conftest.$ac_ext <<EOF
14213 #line 14214 "configure"
14214 #include "confdefs.h"
14218 /* this check could be improved */
14219 #ifndef DB_VERSION_MAJOR
14220 # define DB_VERSION_MAJOR 1
14223 /* require 4.0 or later */
14224 #if DB_VERSION_MAJOR >= 4
14225 __db_version_compat
14229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14230 egrep "__db_version_compat" >/dev/null 2>&1; then
14232 ol_cv_bdb_compat=yes
14235 ol_cv_bdb_compat=no
14241 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
14244 if test $ol_cv_bdb_compat = yes ; then
14246 elif test $ol_enable_bdb = yes ; then
14247 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
14253 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
14254 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
14255 ol_with_ldbm_api=none
14258 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
14259 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
14260 echo "configure:14261: checking for MDBM library" >&5
14261 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
14262 echo $ac_n "(cached) $ac_c" 1>&6
14265 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
14266 echo "configure:14267: checking for mdbm_set_chain" >&5
14267 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
14268 echo $ac_n "(cached) $ac_c" 1>&6
14270 cat > conftest.$ac_ext <<EOF
14271 #line 14272 "configure"
14272 #include "confdefs.h"
14273 /* System header to define __stub macros and hopefully few prototypes,
14274 which can conflict with char mdbm_set_chain(); below. */
14275 #include <assert.h>
14276 /* Override any gcc2 internal prototype to avoid an error. */
14277 /* We use char because int might match the return type of a gcc2
14278 builtin and then its argument prototype would still apply. */
14279 char mdbm_set_chain();
14284 /* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
14290 f = mdbm_set_chain;
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14297 eval "ac_cv_func_mdbm_set_chain=yes"
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14302 eval "ac_cv_func_mdbm_set_chain=no"
14307 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14311 echo "$ac_t""no" 1>&6
14313 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
14314 echo "configure:14315: checking for mdbm_set_chain in -lmdbm" >&5
14315 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
14316 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14317 echo $ac_n "(cached) $ac_c" 1>&6
14319 ac_save_LIBS="$LIBS"
14320 LIBS="-lmdbm $LIBS"
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 /* Override any gcc2 internal prototype to avoid an error. */
14325 /* We use char because int might match the return type of a gcc2
14326 builtin and then its argument prototype would still apply. */
14327 char mdbm_set_chain();
14333 if { (eval echo configure:14334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14335 eval "ac_cv_lib_$ac_lib_var=yes"
14337 echo "configure: failed program was:" >&5
14338 cat conftest.$ac_ext >&5
14340 eval "ac_cv_lib_$ac_lib_var=no"
14343 LIBS="$ac_save_LIBS"
14346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14347 echo "$ac_t""yes" 1>&6
14348 ol_cv_lib_mdbm=-lmdbm
14350 echo "$ac_t""no" 1>&6
14361 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
14364 for ac_hdr in mdbm.h
14366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14368 echo "configure:14369: checking for $ac_hdr" >&5
14369 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14370 echo $ac_n "(cached) $ac_c" 1>&6
14372 cat > conftest.$ac_ext <<EOF
14373 #line 14374 "configure"
14374 #include "confdefs.h"
14377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14378 { (eval echo configure:14379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14380 if test -z "$ac_err"; then
14382 eval "ac_cv_header_$ac_safe=yes"
14385 echo "configure: failed program was:" >&5
14386 cat conftest.$ac_ext >&5
14388 eval "ac_cv_header_$ac_safe=no"
14392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14395 cat >> confdefs.h <<EOF
14396 #define $ac_tr_hdr 1
14400 echo "$ac_t""no" 1>&6
14404 echo $ac_n "checking for db""... $ac_c" 1>&6
14405 echo "configure:14406: checking for db" >&5
14406 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
14407 echo $ac_n "(cached) $ac_c" 1>&6
14410 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
14418 echo "$ac_t""$ol_cv_mdbm" 1>&6
14419 if test $ol_cv_mdbm = yes ; then
14420 cat >> confdefs.h <<\EOF
14421 #define HAVE_MDBM 1
14427 if test $ol_cv_mdbm = yes ; then
14429 ol_with_ldbm_api=mdbm
14430 if test $ol_cv_lib_mdbm != yes ; then
14431 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
14436 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
14437 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
14438 echo "configure:14439: checking for GDBM library" >&5
14439 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
14440 echo $ac_n "(cached) $ac_c" 1>&6
14443 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
14444 echo "configure:14445: checking for gdbm_open" >&5
14445 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
14446 echo $ac_n "(cached) $ac_c" 1>&6
14448 cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* System header to define __stub macros and hopefully few prototypes,
14452 which can conflict with char gdbm_open(); below. */
14453 #include <assert.h>
14454 /* Override any gcc2 internal prototype to avoid an error. */
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14462 /* The GNU C library defines this for functions which it implements
14463 to always fail with ENOSYS. Some functions are actually named
14464 something starting with __ and the normal name is an alias. */
14465 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14473 if { (eval echo configure:14474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14475 eval "ac_cv_func_gdbm_open=yes"
14477 echo "configure: failed program was:" >&5
14478 cat conftest.$ac_ext >&5
14480 eval "ac_cv_func_gdbm_open=no"
14485 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14486 echo "$ac_t""yes" 1>&6
14489 echo "$ac_t""no" 1>&6
14491 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14492 echo "configure:14493: checking for gdbm_open in -lgdbm" >&5
14493 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
14497 ac_save_LIBS="$LIBS"
14498 LIBS="-lgdbm $LIBS"
14499 cat > conftest.$ac_ext <<EOF
14500 #line 14501 "configure"
14501 #include "confdefs.h"
14502 /* Override any gcc2 internal prototype to avoid an error. */
14503 /* We use char because int might match the return type of a gcc2
14504 builtin and then its argument prototype would still apply. */
14511 if { (eval echo configure:14512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14513 eval "ac_cv_lib_$ac_lib_var=yes"
14515 echo "configure: failed program was:" >&5
14516 cat conftest.$ac_ext >&5
14518 eval "ac_cv_lib_$ac_lib_var=no"
14521 LIBS="$ac_save_LIBS"
14524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14525 echo "$ac_t""yes" 1>&6
14526 ol_cv_lib_gdbm=-lgdbm
14528 echo "$ac_t""no" 1>&6
14539 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14542 for ac_hdr in gdbm.h
14544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14546 echo "configure:14547: checking for $ac_hdr" >&5
14547 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14548 echo $ac_n "(cached) $ac_c" 1>&6
14550 cat > conftest.$ac_ext <<EOF
14551 #line 14552 "configure"
14552 #include "confdefs.h"
14555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14556 { (eval echo configure:14557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14558 if test -z "$ac_err"; then
14560 eval "ac_cv_header_$ac_safe=yes"
14563 echo "configure: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14566 eval "ac_cv_header_$ac_safe=no"
14570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14571 echo "$ac_t""yes" 1>&6
14572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14573 cat >> confdefs.h <<EOF
14574 #define $ac_tr_hdr 1
14578 echo "$ac_t""no" 1>&6
14582 echo $ac_n "checking for db""... $ac_c" 1>&6
14583 echo "configure:14584: checking for db" >&5
14584 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14585 echo $ac_n "(cached) $ac_c" 1>&6
14588 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14596 echo "$ac_t""$ol_cv_gdbm" 1>&6
14597 if test $ol_cv_gdbm = yes ; then
14598 cat >> confdefs.h <<\EOF
14599 #define HAVE_GDBM 1
14605 if test $ol_cv_gdbm = yes ; then
14607 ol_with_ldbm_api=gdbm
14609 if test $ol_cv_lib_gdbm != yes ; then
14610 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14615 if test $ol_with_ldbm_api = ndbm ; then
14616 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14617 echo "configure:14618: checking for NDBM library" >&5
14618 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14619 echo $ac_n "(cached) $ac_c" 1>&6
14622 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14623 echo "configure:14624: checking for dbm_open" >&5
14624 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14625 echo $ac_n "(cached) $ac_c" 1>&6
14627 cat > conftest.$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14630 /* System header to define __stub macros and hopefully few prototypes,
14631 which can conflict with char dbm_open(); below. */
14632 #include <assert.h>
14633 /* Override any gcc2 internal prototype to avoid an error. */
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14641 /* The GNU C library defines this for functions which it implements
14642 to always fail with ENOSYS. Some functions are actually named
14643 something starting with __ and the normal name is an alias. */
14644 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14652 if { (eval echo configure:14653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14654 eval "ac_cv_func_dbm_open=yes"
14656 echo "configure: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14659 eval "ac_cv_func_dbm_open=no"
14664 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14665 echo "$ac_t""yes" 1>&6
14668 echo "$ac_t""no" 1>&6
14670 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14671 echo "configure:14672: checking for dbm_open in -lndbm" >&5
14672 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14673 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14674 echo $ac_n "(cached) $ac_c" 1>&6
14676 ac_save_LIBS="$LIBS"
14677 LIBS="-lndbm $LIBS"
14678 cat > conftest.$ac_ext <<EOF
14679 #line 14680 "configure"
14680 #include "confdefs.h"
14681 /* Override any gcc2 internal prototype to avoid an error. */
14682 /* We use char because int might match the return type of a gcc2
14683 builtin and then its argument prototype would still apply. */
14690 if { (eval echo configure:14691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14692 eval "ac_cv_lib_$ac_lib_var=yes"
14694 echo "configure: failed program was:" >&5
14695 cat conftest.$ac_ext >&5
14697 eval "ac_cv_lib_$ac_lib_var=no"
14700 LIBS="$ac_save_LIBS"
14703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
14705 ol_cv_lib_ndbm=-lndbm
14707 echo "$ac_t""no" 1>&6
14709 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14710 echo "configure:14711: checking for dbm_open in -ldbm" >&5
14711 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14712 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14713 echo $ac_n "(cached) $ac_c" 1>&6
14715 ac_save_LIBS="$LIBS"
14717 cat > conftest.$ac_ext <<EOF
14718 #line 14719 "configure"
14719 #include "confdefs.h"
14720 /* Override any gcc2 internal prototype to avoid an error. */
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14729 if { (eval echo configure:14730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14731 eval "ac_cv_lib_$ac_lib_var=yes"
14733 echo "configure: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14736 eval "ac_cv_lib_$ac_lib_var=no"
14739 LIBS="$ac_save_LIBS"
14742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14743 echo "$ac_t""yes" 1>&6
14744 ol_cv_lib_ndbm=-ldbm
14746 echo "$ac_t""no" 1>&6
14759 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14762 for ac_hdr in ndbm.h
14764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14766 echo "configure:14767: checking for $ac_hdr" >&5
14767 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14768 echo $ac_n "(cached) $ac_c" 1>&6
14770 cat > conftest.$ac_ext <<EOF
14771 #line 14772 "configure"
14772 #include "confdefs.h"
14775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14776 { (eval echo configure:14777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14778 if test -z "$ac_err"; then
14780 eval "ac_cv_header_$ac_safe=yes"
14783 echo "configure: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14786 eval "ac_cv_header_$ac_safe=no"
14790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14791 echo "$ac_t""yes" 1>&6
14792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14793 cat >> confdefs.h <<EOF
14794 #define $ac_tr_hdr 1
14798 echo "$ac_t""no" 1>&6
14802 echo $ac_n "checking for db""... $ac_c" 1>&6
14803 echo "configure:14804: checking for db" >&5
14804 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14805 echo $ac_n "(cached) $ac_c" 1>&6
14808 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14816 echo "$ac_t""$ol_cv_ndbm" 1>&6
14817 if test $ol_cv_ndbm = yes ; then
14818 cat >> confdefs.h <<\EOF
14819 #define HAVE_NDBM 1
14825 if test $ol_cv_ndbm = yes ; then
14827 ol_with_ldbm_api=ndbm
14829 if test $ol_cv_lib_ndbm != yes ; then
14830 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14835 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14836 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14837 if test $ol_enable_ldbm = yes ; then
14838 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14841 echo "configure: warning: disabling LDBM" 1>&2
14845 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14846 BUILD_LIBS_DYNAMIC=shared
14847 cat >> confdefs.h <<\EOF
14848 #define LDAP_LIBS_DYNAMIC 1
14852 BUILD_LIBS_DYNAMIC=static
14855 if test $ol_enable_wrappers != no ; then
14856 for ac_hdr in tcpd.h
14858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14860 echo "configure:14861: checking for $ac_hdr" >&5
14861 if eval "test \"\${ac_cv_header_$ac_safe+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"
14869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14870 { (eval echo configure:14871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14872 if test -z "$ac_err"; then
14874 eval "ac_cv_header_$ac_safe=yes"
14877 echo "configure: failed program was:" >&5
14878 cat conftest.$ac_ext >&5
14880 eval "ac_cv_header_$ac_safe=no"
14884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14885 echo "$ac_t""yes" 1>&6
14886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14887 cat >> confdefs.h <<EOF
14888 #define $ac_tr_hdr 1
14891 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
14892 echo "configure:14893: checking for TCP wrappers library" >&5
14894 LIBS="$LIBS -lwrap"
14895 cat > conftest.$ac_ext <<EOF
14896 #line 14897 "configure"
14897 #include "confdefs.h"
14900 int allow_severity = 0;
14901 int deny_severity = 0;
14903 struct request_info *req;
14911 if { (eval echo configure:14912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14913 echo "$ac_t""-lwrap" 1>&6
14917 echo "configure: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14922 cat > conftest.$ac_ext <<EOF
14923 #line 14924 "configure"
14924 #include "confdefs.h"
14927 int allow_severity = 0;
14928 int deny_severity = 0;
14930 struct request_info *req;
14938 if { (eval echo configure:14939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14940 echo "$ac_t""-lwrap -lnsl" 1>&6
14942 LIBS="$save_LIBS -lnsl"
14944 echo "configure: failed program was:" >&5
14945 cat conftest.$ac_ext >&5
14948 echo "$ac_t""no" 1>&6
14956 echo "$ac_t""no" 1>&6
14962 if test $have_wrappers = yes ; then
14963 cat >> confdefs.h <<\EOF
14964 #define HAVE_TCPD 1
14968 elif test $ol_enable_wrappers = yes ; then
14969 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
14971 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
14976 if test $ol_enable_syslog != no ; then
14977 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14978 echo "configure:14979: checking for openlog" >&5
14979 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14980 echo $ac_n "(cached) $ac_c" 1>&6
14982 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure"
14984 #include "confdefs.h"
14985 /* System header to define __stub macros and hopefully few prototypes,
14986 which can conflict with char openlog(); below. */
14987 #include <assert.h>
14988 /* Override any gcc2 internal prototype to avoid an error. */
14989 /* We use char because int might match the return type of a gcc2
14990 builtin and then its argument prototype would still apply. */
14996 /* The GNU C library defines this for functions which it implements
14997 to always fail with ENOSYS. Some functions are actually named
14998 something starting with __ and the normal name is an alias. */
14999 #if defined (__stub_openlog) || defined (__stub___openlog)
15007 if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15009 eval "ac_cv_func_openlog=yes"
15011 echo "configure: failed program was:" >&5
15012 cat conftest.$ac_ext >&5
15014 eval "ac_cv_func_openlog=no"
15019 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
15020 echo "$ac_t""yes" 1>&6
15023 echo "$ac_t""no" 1>&6
15026 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
15027 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
15029 ol_enable_syslog=$ac_cv_func_openlog
15034 if test $ol_enable_sql != no ; then
15035 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
15036 echo "configure:15037: checking for SQLDriverConnect in -liodbc" >&5
15037 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
15038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15039 echo $ac_n "(cached) $ac_c" 1>&6
15041 ac_save_LIBS="$LIBS"
15042 LIBS="-liodbc $LIBS"
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 /* Override any gcc2 internal prototype to avoid an error. */
15047 /* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15049 char SQLDriverConnect();
15055 if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 eval "ac_cv_lib_$ac_lib_var=yes"
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15062 eval "ac_cv_lib_$ac_lib_var=no"
15065 LIBS="$ac_save_LIBS"
15068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15069 echo "$ac_t""yes" 1>&6
15072 echo "$ac_t""no" 1>&6
15076 if test $have_iodbc = yes ; then
15077 ol_link_sql="-liodbc"
15079 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
15080 echo "configure:15081: checking for SQLDriverConnect in -lodbc" >&5
15081 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
15082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15085 ac_save_LIBS="$LIBS"
15086 LIBS="-lodbc $LIBS"
15087 cat > conftest.$ac_ext <<EOF
15088 #line 15089 "configure"
15089 #include "confdefs.h"
15090 /* Override any gcc2 internal prototype to avoid an error. */
15091 /* We use char because int might match the return type of a gcc2
15092 builtin and then its argument prototype would still apply. */
15093 char SQLDriverConnect();
15099 if { (eval echo configure:15100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15101 eval "ac_cv_lib_$ac_lib_var=yes"
15103 echo "configure: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15106 eval "ac_cv_lib_$ac_lib_var=no"
15109 LIBS="$ac_save_LIBS"
15112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15113 echo "$ac_t""yes" 1>&6
15116 echo "$ac_t""no" 1>&6
15120 if test $have_odbc = yes ; then
15121 ol_link_sql="-lodbc"
15125 if test $ol_link_sql != no ; then
15126 SLAPD_SQL_LIBS="$ol_link_sql"
15128 elif test $ol_enable_sql != auto ; then
15129 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
15133 if test $ol_enable_tcl != no ; then
15134 for ac_hdr in tcl.h
15136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15138 echo "configure:15139: checking for $ac_hdr" >&5
15139 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15142 cat > conftest.$ac_ext <<EOF
15143 #line 15144 "configure"
15144 #include "confdefs.h"
15147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15148 { (eval echo configure:15149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15150 if test -z "$ac_err"; then
15152 eval "ac_cv_header_$ac_safe=yes"
15155 echo "configure: failed program was:" >&5
15156 cat conftest.$ac_ext >&5
15158 eval "ac_cv_header_$ac_safe=no"
15162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15163 echo "$ac_t""yes" 1>&6
15164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15165 cat >> confdefs.h <<EOF
15166 #define $ac_tr_hdr 1
15170 echo "$ac_t""no" 1>&6
15175 if test $ac_cv_header_tcl_h != yes ; then
15178 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
15179 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
15180 echo "configure:15181: checking for main in -l$lib" >&5
15181 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
15182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15183 echo $ac_n "(cached) $ac_c" 1>&6
15185 ac_save_LIBS="$LIBS"
15186 LIBS="-l$lib $LIBS"
15187 cat > conftest.$ac_ext <<EOF
15188 #line 15189 "configure"
15189 #include "confdefs.h"
15195 if { (eval echo configure:15196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15197 eval "ac_cv_lib_$ac_lib_var=yes"
15199 echo "configure: failed program was:" >&5
15200 cat conftest.$ac_ext >&5
15202 eval "ac_cv_lib_$ac_lib_var=no"
15205 LIBS="$ac_save_LIBS"
15208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15209 echo "$ac_t""yes" 1>&6
15211 if test x"$ol_with_tcl_module" = "xstatic" ; then
15212 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
15214 MOD_TCL_LIB="-l${lib}"
15217 echo "$ac_t""no" 1>&6
15224 if test $have_tcl != yes ; then
15225 echo "configure: warning: could not find -ltcl" 1>&2
15226 if test $ol_enable_tcl = yes ; then
15227 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
15235 for ac_hdr in termcap.h ncurses.h
15237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15239 echo "configure:15240: checking for $ac_hdr" >&5
15240 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15241 echo $ac_n "(cached) $ac_c" 1>&6
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15249 { (eval echo configure:15250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15251 if test -z "$ac_err"; then
15253 eval "ac_cv_header_$ac_safe=yes"
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15259 eval "ac_cv_header_$ac_safe=no"
15263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15264 echo "$ac_t""yes" 1>&6
15265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15266 cat >> confdefs.h <<EOF
15267 #define $ac_tr_hdr 1
15271 echo "$ac_t""no" 1>&6
15276 if test $ol_link_termcap = no ; then
15277 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
15278 echo "configure:15279: checking for tputs in -ltermcap" >&5
15279 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
15280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15281 echo $ac_n "(cached) $ac_c" 1>&6
15283 ac_save_LIBS="$LIBS"
15284 LIBS="-ltermcap $LIBS"
15285 cat > conftest.$ac_ext <<EOF
15286 #line 15287 "configure"
15287 #include "confdefs.h"
15288 /* Override any gcc2 internal prototype to avoid an error. */
15289 /* We use char because int might match the return type of a gcc2
15290 builtin and then its argument prototype would still apply. */
15297 if { (eval echo configure:15298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15299 eval "ac_cv_lib_$ac_lib_var=yes"
15301 echo "configure: failed program was:" >&5
15302 cat conftest.$ac_ext >&5
15304 eval "ac_cv_lib_$ac_lib_var=no"
15307 LIBS="$ac_save_LIBS"
15310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15311 echo "$ac_t""yes" 1>&6
15314 echo "$ac_t""no" 1>&6
15318 if test $have_termcap = yes ; then
15319 cat >> confdefs.h <<\EOF
15320 #define HAVE_TERMCAP 1
15323 ol_link_termcap=yes
15324 TERMCAP_LIBS=-ltermcap
15328 if test $ol_link_termcap = no ; then
15329 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
15330 echo "configure:15331: checking for initscr in -lncurses" >&5
15331 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
15332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15335 ac_save_LIBS="$LIBS"
15336 LIBS="-lncurses $LIBS"
15337 cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15340 /* Override any gcc2 internal prototype to avoid an error. */
15341 /* We use char because int might match the return type of a gcc2
15342 builtin and then its argument prototype would still apply. */
15349 if { (eval echo configure:15350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15351 eval "ac_cv_lib_$ac_lib_var=yes"
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15356 eval "ac_cv_lib_$ac_lib_var=no"
15359 LIBS="$ac_save_LIBS"
15362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15363 echo "$ac_t""yes" 1>&6
15366 echo "$ac_t""no" 1>&6
15370 if test $have_ncurses = yes ; then
15371 cat >> confdefs.h <<\EOF
15372 #define HAVE_NCURSES 1
15375 ol_link_termcap=yes
15376 TERMCAP_LIBS=-lncurses
15380 if test $ol_link_termcap = no ; then
15381 cat >> confdefs.h <<\EOF
15382 #define NO_TERMCAP 1
15390 if test $ol_with_cyrus_sasl != no ; then
15391 for ac_hdr in sasl.h
15393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15395 echo "configure:15396: checking for $ac_hdr" >&5
15396 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15397 echo $ac_n "(cached) $ac_c" 1>&6
15399 cat > conftest.$ac_ext <<EOF
15400 #line 15401 "configure"
15401 #include "confdefs.h"
15404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15405 { (eval echo configure:15406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15407 if test -z "$ac_err"; then
15409 eval "ac_cv_header_$ac_safe=yes"
15412 echo "configure: failed program was:" >&5
15413 cat conftest.$ac_ext >&5
15415 eval "ac_cv_header_$ac_safe=no"
15419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15420 echo "$ac_t""yes" 1>&6
15421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15422 cat >> confdefs.h <<EOF
15423 #define $ac_tr_hdr 1
15427 echo "$ac_t""no" 1>&6
15432 if test $ac_cv_header_sasl_h = yes ; then
15433 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
15434 echo "configure:15435: checking for sasl_client_init in -lsasl" >&5
15435 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
15436 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15437 echo $ac_n "(cached) $ac_c" 1>&6
15439 ac_save_LIBS="$LIBS"
15440 LIBS="-lsasl $LIBS"
15441 cat > conftest.$ac_ext <<EOF
15442 #line 15443 "configure"
15443 #include "confdefs.h"
15444 /* Override any gcc2 internal prototype to avoid an error. */
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15447 char sasl_client_init();
15453 if { (eval echo configure:15454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15455 eval "ac_cv_lib_$ac_lib_var=yes"
15457 echo "configure: failed program was:" >&5
15458 cat conftest.$ac_ext >&5
15460 eval "ac_cv_lib_$ac_lib_var=no"
15463 LIBS="$ac_save_LIBS"
15466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15467 echo "$ac_t""yes" 1>&6
15468 have_cyrus_sasl=yes
15470 echo "$ac_t""no" 1>&6
15475 if test $have_cyrus_sasl != no ; then
15477 cat >> confdefs.h <<\EOF
15478 #define HAVE_CYRUS_SASL 1
15485 if test $ol_link_sasl = no ; then
15486 if test $ol_with_cyrus_sasl != auto ; then
15487 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15489 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15490 echo "configure: warning: SASL authentication not supported!" 1>&2
15491 if test $ol_link_tls = no ; then
15492 echo "configure: warning: Strong authentication not supported!" 1>&2
15496 elif test $ol_enable_spasswd != no ; then
15497 ol_link_spasswd=yes
15501 echo "configure: warning: SASL authentication not supported!" 1>&2
15502 if test $ol_link_tls = no ; then
15503 echo "configure: warning: Strong authentication not supported!" 1>&2
15507 if test $cross_compiling != yes -a $ac_cv_mingw32 != yes ; then
15509 if test -r /dev/urandom ; then
15510 dev="/dev/urandom";
15511 elif test -r /idev/urandom ; then
15512 dev="/idev/urandom";
15513 elif test -r /dev/srandom ; then
15514 dev="/dev/srandom";
15515 elif test -r /dev/random ; then
15517 elif test -r /idev/random ; then
15518 dev="/idev/random";
15521 if test $dev != no ; then
15522 cat >> confdefs.h <<EOF
15523 #define URANDOM_DEVICE "$dev"
15530 if test $ol_with_fetch != no ; then
15532 LIBS="-lfetch -lcom_err $LIBS"
15533 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15534 echo "configure:15535: checking fetch(3) library" >&5
15535 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15536 echo $ac_n "(cached) $ac_c" 1>&6
15539 cat > conftest.$ac_ext <<EOF
15540 #line 15541 "configure"
15541 #include "confdefs.h"
15543 #include <sys/param.h>
15547 struct url *u = fetchParseURL("file:///");
15550 if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15552 ol_cv_lib_fetch=yes
15554 echo "configure: failed program was:" >&5
15555 cat conftest.$ac_ext >&5
15562 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15564 if test $ol_cv_lib_fetch != no ; then
15565 ol_link_fetch="-lfetch -lcom_err"
15566 cat >> confdefs.h <<\EOF
15567 #define HAVE_FETCH 1
15573 if test $ol_cv_lib_fetch != no ; then
15574 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15575 ol_link_fetch=freebsd
15577 elif test $ol_with_fetch != auto ; then
15578 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15582 ol_link_readline=no
15583 if test $ol_with_readline != no ; then
15584 for ac_hdr in readline/readline.h readline/history.h
15586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15588 echo "configure:15589: checking for $ac_hdr" >&5
15589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15590 echo $ac_n "(cached) $ac_c" 1>&6
15592 cat > conftest.$ac_ext <<EOF
15593 #line 15594 "configure"
15594 #include "confdefs.h"
15597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15598 { (eval echo configure:15599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15600 if test -z "$ac_err"; then
15602 eval "ac_cv_header_$ac_safe=yes"
15605 echo "configure: failed program was:" >&5
15606 cat conftest.$ac_ext >&5
15608 eval "ac_cv_header_$ac_safe=no"
15612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15613 echo "$ac_t""yes" 1>&6
15614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15615 cat >> confdefs.h <<EOF
15616 #define $ac_tr_hdr 1
15620 echo "$ac_t""no" 1>&6
15625 if test $ac_cv_header_readline_readline_h = yes ; then
15627 LIBS="$TERMCAP_LIBS $LIBS"
15628 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15629 echo "configure:15630: checking for readline in -lreadline" >&5
15630 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15631 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15632 echo $ac_n "(cached) $ac_c" 1>&6
15634 ac_save_LIBS="$LIBS"
15635 LIBS="-lreadline $LIBS"
15636 cat > conftest.$ac_ext <<EOF
15637 #line 15638 "configure"
15638 #include "confdefs.h"
15639 /* Override any gcc2 internal prototype to avoid an error. */
15640 /* We use char because int might match the return type of a gcc2
15641 builtin and then its argument prototype would still apply. */
15648 if { (eval echo configure:15649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15650 eval "ac_cv_lib_$ac_lib_var=yes"
15652 echo "configure: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15655 eval "ac_cv_lib_$ac_lib_var=no"
15658 LIBS="$ac_save_LIBS"
15661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15662 echo "$ac_t""yes" 1>&6
15665 echo "$ac_t""no" 1>&6
15671 if test $have_readline = yes ; then
15672 ol_with_readline=found
15673 ol_link_readline=yes
15675 READLINE_LIBS="-lreadline"
15680 if test $ol_link_readline = yes ; then
15681 cat >> confdefs.h <<\EOF
15682 #define HAVE_READLINE 1
15688 if test $ol_enable_crypt != no ; then
15689 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15690 echo "configure:15691: checking for crypt" >&5
15691 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15692 echo $ac_n "(cached) $ac_c" 1>&6
15694 cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 /* System header to define __stub macros and hopefully few prototypes,
15698 which can conflict with char crypt(); below. */
15699 #include <assert.h>
15700 /* Override any gcc2 internal prototype to avoid an error. */
15701 /* We use char because int might match the return type of a gcc2
15702 builtin and then its argument prototype would still apply. */
15708 /* The GNU C library defines this for functions which it implements
15709 to always fail with ENOSYS. Some functions are actually named
15710 something starting with __ and the normal name is an alias. */
15711 #if defined (__stub_crypt) || defined (__stub___crypt)
15719 if { (eval echo configure:15720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15721 eval "ac_cv_func_crypt=yes"
15723 echo "configure: failed program was:" >&5
15724 cat conftest.$ac_ext >&5
15726 eval "ac_cv_func_crypt=no"
15731 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15732 echo "$ac_t""yes" 1>&6
15735 echo "$ac_t""no" 1>&6
15737 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15738 echo "configure:15739: checking for crypt in -lcrypt" >&5
15739 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15741 echo $ac_n "(cached) $ac_c" 1>&6
15743 ac_save_LIBS="$LIBS"
15744 LIBS="-lcrypt $LIBS"
15745 cat > conftest.$ac_ext <<EOF
15746 #line 15747 "configure"
15747 #include "confdefs.h"
15748 /* Override any gcc2 internal prototype to avoid an error. */
15749 /* We use char because int might match the return type of a gcc2
15750 builtin and then its argument prototype would still apply. */
15757 if { (eval echo configure:15758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15759 eval "ac_cv_lib_$ac_lib_var=yes"
15761 echo "configure: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15764 eval "ac_cv_lib_$ac_lib_var=no"
15767 LIBS="$ac_save_LIBS"
15770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15771 echo "$ac_t""yes" 1>&6
15772 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15775 echo "$ac_t""no" 1>&6
15782 if test $have_crypt = yes ; then
15783 cat >> confdefs.h <<\EOF
15784 #define HAVE_CRYPT 1
15788 echo "configure: warning: could not find crypt" 1>&2
15789 if test $ol_enable_crypt = yes ; then
15790 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15793 echo "configure: warning: disabling crypt support" 1>&2
15798 if test $ol_enable_proctitle != no ; then
15799 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15800 echo "configure:15801: checking for setproctitle" >&5
15801 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15802 echo $ac_n "(cached) $ac_c" 1>&6
15804 cat > conftest.$ac_ext <<EOF
15805 #line 15806 "configure"
15806 #include "confdefs.h"
15807 /* System header to define __stub macros and hopefully few prototypes,
15808 which can conflict with char setproctitle(); below. */
15809 #include <assert.h>
15810 /* Override any gcc2 internal prototype to avoid an error. */
15811 /* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15813 char setproctitle();
15818 /* The GNU C library defines this for functions which it implements
15819 to always fail with ENOSYS. Some functions are actually named
15820 something starting with __ and the normal name is an alias. */
15821 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15829 if { (eval echo configure:15830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15831 eval "ac_cv_func_setproctitle=yes"
15833 echo "configure: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15836 eval "ac_cv_func_setproctitle=no"
15841 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15842 echo "$ac_t""yes" 1>&6
15843 have_setproctitle=yes
15845 echo "$ac_t""no" 1>&6
15847 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15848 echo "configure:15849: checking for setproctitle in -lutil" >&5
15849 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15850 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15851 echo $ac_n "(cached) $ac_c" 1>&6
15853 ac_save_LIBS="$LIBS"
15854 LIBS="-lutil $LIBS"
15855 cat > conftest.$ac_ext <<EOF
15856 #line 15857 "configure"
15857 #include "confdefs.h"
15858 /* Override any gcc2 internal prototype to avoid an error. */
15859 /* We use char because int might match the return type of a gcc2
15860 builtin and then its argument prototype would still apply. */
15861 char setproctitle();
15867 if { (eval echo configure:15868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15869 eval "ac_cv_lib_$ac_lib_var=yes"
15871 echo "configure: failed program was:" >&5
15872 cat conftest.$ac_ext >&5
15874 eval "ac_cv_lib_$ac_lib_var=no"
15877 LIBS="$ac_save_LIBS"
15880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15881 echo "$ac_t""yes" 1>&6
15882 have_setproctitle=yes
15883 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15885 echo "$ac_t""no" 1>&6
15886 have_setproctitle=no
15887 LIBOBJS="$LIBOBJS setproctitle.o"
15888 LIBSRCS="$LIBSRCS setproctitle.c"
15894 if test $have_setproctitle = yes ; then
15895 cat >> confdefs.h <<\EOF
15896 #define HAVE_SETPROCTITLE 1
15902 if test $ol_enable_slp != no ; then
15903 for ac_hdr in slp.h
15905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15907 echo "configure:15908: checking for $ac_hdr" >&5
15908 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15911 cat > conftest.$ac_ext <<EOF
15912 #line 15913 "configure"
15913 #include "confdefs.h"
15916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15917 { (eval echo configure:15918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15919 if test -z "$ac_err"; then
15921 eval "ac_cv_header_$ac_safe=yes"
15924 echo "configure: failed program was:" >&5
15925 cat conftest.$ac_ext >&5
15927 eval "ac_cv_header_$ac_safe=no"
15931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15932 echo "$ac_t""yes" 1>&6
15933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15934 cat >> confdefs.h <<EOF
15935 #define $ac_tr_hdr 1
15939 echo "$ac_t""no" 1>&6
15944 if test $ac_cv_header_slp_h = yes ; then
15945 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15946 echo "configure:15947: checking for SLPOpen in -lslp" >&5
15947 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15948 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15949 echo $ac_n "(cached) $ac_c" 1>&6
15951 ac_save_LIBS="$LIBS"
15953 cat > conftest.$ac_ext <<EOF
15954 #line 15955 "configure"
15955 #include "confdefs.h"
15956 /* Override any gcc2 internal prototype to avoid an error. */
15957 /* We use char because int might match the return type of a gcc2
15958 builtin and then its argument prototype would still apply. */
15965 if { (eval echo configure:15966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15967 eval "ac_cv_lib_$ac_lib_var=yes"
15969 echo "configure: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15972 eval "ac_cv_lib_$ac_lib_var=no"
15975 LIBS="$ac_save_LIBS"
15978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15979 echo "$ac_t""yes" 1>&6
15982 echo "$ac_t""no" 1>&6
15986 if test $have_slp = yes ; then
15987 cat >> confdefs.h <<\EOF
15991 SLAPD_SLP_LIBS=-lslp
15994 elif test $ol_enable_slp = yes ; then
15995 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15999 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16000 echo "configure:16001: checking for ANSI C header files" >&5
16001 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
16002 echo $ac_n "(cached) $ac_c" 1>&6
16004 cat > conftest.$ac_ext <<EOF
16005 #line 16006 "configure"
16006 #include "confdefs.h"
16007 #include <stdlib.h>
16008 #include <stdarg.h>
16009 #include <string.h>
16012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16013 { (eval echo configure:16014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16015 if test -z "$ac_err"; then
16017 ac_cv_header_stdc=yes
16020 echo "configure: failed program was:" >&5
16021 cat conftest.$ac_ext >&5
16023 ac_cv_header_stdc=no
16027 if test $ac_cv_header_stdc = yes; then
16028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16029 cat > conftest.$ac_ext <<EOF
16030 #line 16031 "configure"
16031 #include "confdefs.h"
16032 #include <string.h>
16034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16035 egrep "memchr" >/dev/null 2>&1; then
16039 ac_cv_header_stdc=no
16045 if test $ac_cv_header_stdc = yes; then
16046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16047 cat > conftest.$ac_ext <<EOF
16048 #line 16049 "configure"
16049 #include "confdefs.h"
16050 #include <stdlib.h>
16052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16053 egrep "free" >/dev/null 2>&1; then
16057 ac_cv_header_stdc=no
16063 if test $ac_cv_header_stdc = yes; then
16064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16065 if test "$cross_compiling" = yes; then
16068 cat > conftest.$ac_ext <<EOF
16069 #line 16070 "configure"
16070 #include "confdefs.h"
16072 #if ((' ' & 0x0FF) == 0x020)
16073 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16074 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16076 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
16077 || ('j' <= (c) && (c) <= 'r') \
16078 || ('s' <= (c) && (c) <= 'z'))
16079 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16082 int main () { int i; for (i = 0; i < 256; i++)
16083 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16087 if { (eval echo configure:16088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16094 ac_cv_header_stdc=no
16102 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16103 if test $ac_cv_header_stdc = yes; then
16104 cat >> confdefs.h <<\EOF
16105 #define STDC_HEADERS 1
16110 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16111 echo "configure:16112: checking for mode_t" >&5
16112 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
16113 echo $ac_n "(cached) $ac_c" 1>&6
16115 cat > conftest.$ac_ext <<EOF
16116 #line 16117 "configure"
16117 #include "confdefs.h"
16118 #include <sys/types.h>
16120 #include <stdlib.h>
16121 #include <stddef.h>
16125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16126 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16128 eval "ac_cv_type_mode_t=yes"
16131 eval "ac_cv_type_mode_t=no"
16136 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
16137 echo "$ac_t""yes" 1>&6
16139 echo "$ac_t""no" 1>&6
16140 cat >> confdefs.h <<EOF
16146 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16147 echo "configure:16148: checking for off_t" >&5
16148 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
16149 echo $ac_n "(cached) $ac_c" 1>&6
16151 cat > conftest.$ac_ext <<EOF
16152 #line 16153 "configure"
16153 #include "confdefs.h"
16154 #include <sys/types.h>
16156 #include <stdlib.h>
16157 #include <stddef.h>
16161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16162 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16164 eval "ac_cv_type_off_t=yes"
16167 eval "ac_cv_type_off_t=no"
16172 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
16173 echo "$ac_t""yes" 1>&6
16175 echo "$ac_t""no" 1>&6
16176 cat >> confdefs.h <<EOF
16182 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16183 echo "configure:16184: checking for pid_t" >&5
16184 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
16185 echo $ac_n "(cached) $ac_c" 1>&6
16187 cat > conftest.$ac_ext <<EOF
16188 #line 16189 "configure"
16189 #include "confdefs.h"
16190 #include <sys/types.h>
16192 #include <stdlib.h>
16193 #include <stddef.h>
16197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16198 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16200 eval "ac_cv_type_pid_t=yes"
16203 eval "ac_cv_type_pid_t=no"
16208 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
16209 echo "$ac_t""yes" 1>&6
16211 echo "$ac_t""no" 1>&6
16212 cat >> confdefs.h <<EOF
16218 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
16219 echo "configure:16220: checking for ptrdiff_t" >&5
16220 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
16221 echo $ac_n "(cached) $ac_c" 1>&6
16223 cat > conftest.$ac_ext <<EOF
16224 #line 16225 "configure"
16225 #include "confdefs.h"
16226 #include <stddef.h>
16231 if { (eval echo configure:16232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16233 am_cv_type_ptrdiff_t=yes
16235 echo "configure: failed program was:" >&5
16236 cat conftest.$ac_ext >&5
16238 am_cv_type_ptrdiff_t=no
16243 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
16244 if test $am_cv_type_ptrdiff_t = yes; then
16245 cat >> confdefs.h <<\EOF
16246 #define HAVE_PTRDIFF_T 1
16251 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
16252 echo "configure:16253: checking return type of signal handlers" >&5
16253 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
16254 echo $ac_n "(cached) $ac_c" 1>&6
16256 cat > conftest.$ac_ext <<EOF
16257 #line 16258 "configure"
16258 #include "confdefs.h"
16259 #include <sys/types.h>
16260 #include <signal.h>
16265 extern "C" void (*signal (int, void (*)(int)))(int);
16267 void (*signal ()) ();
16274 if { (eval echo configure:16275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16276 ac_cv_type_signal=void
16278 echo "configure: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16281 ac_cv_type_signal=int
16286 echo "$ac_t""$ac_cv_type_signal" 1>&6
16287 cat >> confdefs.h <<EOF
16288 #define RETSIGTYPE $ac_cv_type_signal
16292 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16293 echo "configure:16294: checking for size_t" >&5
16294 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
16295 echo $ac_n "(cached) $ac_c" 1>&6
16297 cat > conftest.$ac_ext <<EOF
16298 #line 16299 "configure"
16299 #include "confdefs.h"
16300 #include <sys/types.h>
16302 #include <stdlib.h>
16303 #include <stddef.h>
16307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16308 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16310 eval "ac_cv_type_size_t=yes"
16313 eval "ac_cv_type_size_t=no"
16318 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
16321 echo "$ac_t""no" 1>&6
16322 cat >> confdefs.h <<EOF
16323 #define size_t unsigned
16329 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
16330 echo "configure:16331: checking for ssize_t" >&5
16331 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
16332 echo $ac_n "(cached) $ac_c" 1>&6
16334 cat > conftest.$ac_ext <<EOF
16335 #line 16336 "configure"
16336 #include "confdefs.h"
16337 #include <sys/types.h>
16339 #include <stdlib.h>
16340 #include <stddef.h>
16344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16345 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16347 eval "ac_cv_type_ssize_t=yes"
16350 eval "ac_cv_type_ssize_t=no"
16355 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
16356 echo "$ac_t""yes" 1>&6
16358 echo "$ac_t""no" 1>&6
16359 cat >> confdefs.h <<EOF
16360 #define ssize_t signed int
16365 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
16366 echo "configure:16367: checking for caddr_t" >&5
16367 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
16368 echo $ac_n "(cached) $ac_c" 1>&6
16370 cat > conftest.$ac_ext <<EOF
16371 #line 16372 "configure"
16372 #include "confdefs.h"
16373 #include <sys/types.h>
16375 #include <stdlib.h>
16376 #include <stddef.h>
16380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16381 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16383 eval "ac_cv_type_caddr_t=yes"
16386 eval "ac_cv_type_caddr_t=no"
16391 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
16392 echo "$ac_t""yes" 1>&6
16394 echo "$ac_t""no" 1>&6
16395 cat >> confdefs.h <<EOF
16396 #define caddr_t char *
16402 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
16403 echo "configure:16404: checking for socklen_t" >&5
16404 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
16405 echo $ac_n "(cached) $ac_c" 1>&6
16407 cat > conftest.$ac_ext <<EOF
16408 #line 16409 "configure"
16409 #include "confdefs.h"
16411 #ifdef HAVE_SYS_TYPES_H
16412 #include <sys/types.h>
16414 #ifdef HAVE_SYS_SOCKET_H
16415 #include <sys/socket.h>
16422 if { (eval echo configure:16423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16424 ol_cv_type_socklen_t=yes
16426 echo "configure: failed program was:" >&5
16427 cat conftest.$ac_ext >&5
16429 ol_cv_type_socklen_t=no
16434 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
16435 if test $ol_cv_type_socklen_t = no; then
16436 cat >> confdefs.h <<\EOF
16437 #define socklen_t int
16442 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
16443 echo "configure:16444: checking for member st_blksize in aggregate type struct stat" >&5
16444 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
16445 echo $ac_n "(cached) $ac_c" 1>&6
16447 cat > conftest.$ac_ext <<EOF
16448 #line 16449 "configure"
16449 #include "confdefs.h"
16450 #include <sys/types.h>
16451 #include <sys/stat.h>
16453 struct stat foo; foo.st_blksize;
16456 if { (eval echo configure:16457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16458 ac_cv_c_struct_member_st_blksize=yes
16460 echo "configure: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16463 ac_cv_c_struct_member_st_blksize=no
16468 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16469 st_blksize="$ac_cv_c_struct_member_st_blksize"
16470 if test $ac_cv_c_struct_member_st_blksize = yes; then
16471 cat >> confdefs.h <<\EOF
16472 #define HAVE_ST_BLKSIZE 1
16477 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16478 echo "configure:16479: checking whether time.h and sys/time.h may both be included" >&5
16479 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16480 echo $ac_n "(cached) $ac_c" 1>&6
16482 cat > conftest.$ac_ext <<EOF
16483 #line 16484 "configure"
16484 #include "confdefs.h"
16485 #include <sys/types.h>
16486 #include <sys/time.h>
16492 if { (eval echo configure:16493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16494 ac_cv_header_time=yes
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16499 ac_cv_header_time=no
16504 echo "$ac_t""$ac_cv_header_time" 1>&6
16505 if test $ac_cv_header_time = yes; then
16506 cat >> confdefs.h <<\EOF
16507 #define TIME_WITH_SYS_TIME 1
16512 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16513 echo "configure:16514: checking whether struct tm is in sys/time.h or time.h" >&5
16514 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16515 echo $ac_n "(cached) $ac_c" 1>&6
16517 cat > conftest.$ac_ext <<EOF
16518 #line 16519 "configure"
16519 #include "confdefs.h"
16520 #include <sys/types.h>
16523 struct tm *tp; tp->tm_sec;
16526 if { (eval echo configure:16527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16528 ac_cv_struct_tm=time.h
16530 echo "configure: failed program was:" >&5
16531 cat conftest.$ac_ext >&5
16533 ac_cv_struct_tm=sys/time.h
16538 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16539 if test $ac_cv_struct_tm = sys/time.h; then
16540 cat >> confdefs.h <<\EOF
16541 #define TM_IN_SYS_TIME 1
16546 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16547 echo "configure:16548: checking for uid_t in sys/types.h" >&5
16548 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16549 echo $ac_n "(cached) $ac_c" 1>&6
16551 cat > conftest.$ac_ext <<EOF
16552 #line 16553 "configure"
16553 #include "confdefs.h"
16554 #include <sys/types.h>
16556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16557 egrep "uid_t" >/dev/null 2>&1; then
16559 ac_cv_type_uid_t=yes
16562 ac_cv_type_uid_t=no
16568 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16569 if test $ac_cv_type_uid_t = no; then
16570 cat >> confdefs.h <<\EOF
16574 cat >> confdefs.h <<\EOF
16580 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16581 echo "configure:16582: checking for sig_atomic_t" >&5
16582 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16583 echo $ac_n "(cached) $ac_c" 1>&6
16585 cat > conftest.$ac_ext <<EOF
16586 #line 16587 "configure"
16587 #include "confdefs.h"
16588 #include <signal.h>
16590 sig_atomic_t atomic;
16593 if { (eval echo configure:16594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16595 ol_cv_type_sig_atomic_t=yes
16597 echo "configure: failed program was:" >&5
16598 cat conftest.$ac_ext >&5
16600 ol_cv_type_sig_atomic_t=no
16605 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16606 if test $ol_cv_type_sig_atomic_t = no; then
16607 cat >> confdefs.h <<\EOF
16608 #define sig_atomic_t int
16615 # test for pw_gecos in struct passwd
16616 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16617 echo "configure:16618: checking struct passwd for pw_gecos" >&5
16618 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16619 echo $ac_n "(cached) $ac_c" 1>&6
16622 cat > conftest.$ac_ext <<EOF
16623 #line 16624 "configure"
16624 #include "confdefs.h"
16629 pwd.pw_gecos = pwd.pw_name;
16633 if { (eval echo configure:16634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16635 ol_cv_struct_passwd_pw_gecos=yes
16637 echo "configure: failed program was:" >&5
16638 cat conftest.$ac_ext >&5
16640 ol_cv_struct_passwd_pw_gecos=no
16645 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16646 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16647 cat >> confdefs.h <<\EOF
16648 #define HAVE_PW_GECOS 1
16653 # test for pw_passwd in struct passwd
16654 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16655 echo "configure:16656: checking struct passwd for pw_passwd" >&5
16656 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16657 echo $ac_n "(cached) $ac_c" 1>&6
16660 cat > conftest.$ac_ext <<EOF
16661 #line 16662 "configure"
16662 #include "confdefs.h"
16667 pwd.pw_passwd = pwd.pw_name;
16671 if { (eval echo configure:16672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16673 ol_cv_struct_passwd_pw_passwd=yes
16675 echo "configure: failed program was:" >&5
16676 cat conftest.$ac_ext >&5
16678 ol_cv_struct_passwd_pw_passwd=no
16683 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16684 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16685 cat >> confdefs.h <<\EOF
16686 #define HAVE_PW_PASSWD 1
16692 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16693 echo "configure:16694: checking if toupper() requires islower()" >&5
16694 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
16698 if test "$cross_compiling" = yes; then
16699 ol_cv_c_upper_lower=safe
16701 cat > conftest.$ac_ext <<EOF
16702 #line 16703 "configure"
16703 #include "confdefs.h"
16708 if ('C' == toupper('C'))
16714 if { (eval echo configure:16715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16716 ol_cv_c_upper_lower=no
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16721 ol_cv_c_upper_lower=yes
16728 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16729 if test $ol_cv_c_upper_lower != no ; then
16730 cat >> confdefs.h <<\EOF
16731 #define C_UPPER_LOWER 1
16736 echo $ac_n "checking for working const""... $ac_c" 1>&6
16737 echo "configure:16738: checking for working const" >&5
16738 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16739 echo $ac_n "(cached) $ac_c" 1>&6
16741 cat > conftest.$ac_ext <<EOF
16742 #line 16743 "configure"
16743 #include "confdefs.h"
16747 /* Ultrix mips cc rejects this. */
16748 typedef int charset[2]; const charset x;
16749 /* SunOS 4.1.1 cc rejects this. */
16750 char const *const *ccp;
16752 /* NEC SVR4.0.2 mips cc rejects this. */
16753 struct point {int x, y;};
16754 static struct point const zero = {0,0};
16755 /* AIX XL C 1.02.0.0 rejects this.
16756 It does not let you subtract one const X* pointer from another in an arm
16757 of an if-expression whose if-part is not a constant expression */
16758 const char *g = "string";
16759 ccp = &g + (g ? g-g : 0);
16760 /* HPUX 7.0 cc rejects these. */
16763 ccp = (char const *const *) p;
16764 { /* SCO 3.2v4 cc rejects this. */
16766 char const *s = 0 ? (char *) 0 : (char const *) 0;
16770 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16771 int x[] = {25, 17};
16772 const int *foo = &x[0];
16775 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16776 typedef const int *iptr;
16780 { /* AIX XL C 1.02.0.0 rejects this saying
16781 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16782 struct s { int j; const int *ap[3]; };
16783 struct s *b; b->j = 5;
16785 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16786 const int foo = 10;
16791 if { (eval echo configure:16792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16803 echo "$ac_t""$ac_cv_c_const" 1>&6
16804 if test $ac_cv_c_const = no; then
16805 cat >> confdefs.h <<\EOF
16811 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16812 echo "configure:16813: checking if compiler understands volatile" >&5
16813 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16821 volatile int a; int * volatile b = x ? &y : &z;
16822 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16826 if { (eval echo configure:16827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16828 ol_cv_c_volatile=yes
16830 echo "configure: failed program was:" >&5
16831 cat conftest.$ac_ext >&5
16833 ol_cv_c_volatile=no
16838 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16839 if test $ol_cv_c_volatile = yes; then
16842 cat >> confdefs.h <<\EOF
16849 if test $cross_compiling = yes ; then
16850 cat >> confdefs.h <<\EOF
16851 #define CROSS_COMPILING 1
16855 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16856 echo "configure:16857: checking whether byte ordering is bigendian" >&5
16857 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16858 echo $ac_n "(cached) $ac_c" 1>&6
16860 ac_cv_c_bigendian=unknown
16861 # See if sys/param.h defines the BYTE_ORDER macro.
16862 cat > conftest.$ac_ext <<EOF
16863 #line 16864 "configure"
16864 #include "confdefs.h"
16865 #include <sys/types.h>
16866 #include <sys/param.h>
16869 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16870 bogus endian macros
16874 if { (eval echo configure:16875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16876 # It does; now see whether it defined to BIG_ENDIAN or not.
16877 cat > conftest.$ac_ext <<EOF
16878 #line 16879 "configure"
16879 #include "confdefs.h"
16880 #include <sys/types.h>
16881 #include <sys/param.h>
16884 #if BYTE_ORDER != BIG_ENDIAN
16889 if { (eval echo configure:16890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16891 ac_cv_c_bigendian=yes
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16896 ac_cv_c_bigendian=no
16900 echo "configure: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16904 if test $ac_cv_c_bigendian = unknown; then
16905 if test "$cross_compiling" = yes; then
16906 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16908 cat > conftest.$ac_ext <<EOF
16909 #line 16910 "configure"
16910 #include "confdefs.h"
16912 /* Are we little or big endian? From Harbison&Steele. */
16916 char c[sizeof (long)];
16919 exit (u.c[sizeof (long) - 1] == 1);
16922 if { (eval echo configure:16923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16924 ac_cv_c_bigendian=no
16926 echo "configure: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16929 ac_cv_c_bigendian=yes
16937 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16938 if test $ac_cv_c_bigendian = yes; then
16939 cat >> confdefs.h <<\EOF
16940 #define WORDS_BIGENDIAN 1
16947 echo $ac_n "checking size of short""... $ac_c" 1>&6
16948 echo "configure:16949: checking size of short" >&5
16949 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16950 echo $ac_n "(cached) $ac_c" 1>&6
16952 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16953 cat > conftest.$ac_ext <<EOF
16954 #line 16955 "configure"
16955 #include "confdefs.h"
16956 #include "confdefs.h"
16957 #include <sys/types.h>
16961 switch (0) case 0: case (sizeof (short) == $ac_size):;
16964 if { (eval echo configure:16965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16966 ac_cv_sizeof_short=$ac_size
16968 echo "configure: failed program was:" >&5
16969 cat conftest.$ac_ext >&5
16972 if test x$ac_cv_sizeof_short != x ; then break; fi
16977 if test x$ac_cv_sizeof_short = x ; then
16978 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16980 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16981 cat >> confdefs.h <<EOF
16982 #define SIZEOF_SHORT $ac_cv_sizeof_short
16986 echo $ac_n "checking size of int""... $ac_c" 1>&6
16987 echo "configure:16988: checking size of int" >&5
16988 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16989 echo $ac_n "(cached) $ac_c" 1>&6
16991 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16992 cat > conftest.$ac_ext <<EOF
16993 #line 16994 "configure"
16994 #include "confdefs.h"
16995 #include "confdefs.h"
16996 #include <sys/types.h>
17000 switch (0) case 0: case (sizeof (int) == $ac_size):;
17003 if { (eval echo configure:17004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17005 ac_cv_sizeof_int=$ac_size
17007 echo "configure: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17011 if test x$ac_cv_sizeof_int != x ; then break; fi
17016 if test x$ac_cv_sizeof_int = x ; then
17017 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
17019 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
17020 cat >> confdefs.h <<EOF
17021 #define SIZEOF_INT $ac_cv_sizeof_int
17025 echo $ac_n "checking size of long""... $ac_c" 1>&6
17026 echo "configure:17027: checking size of long" >&5
17027 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
17028 echo $ac_n "(cached) $ac_c" 1>&6
17030 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
17031 cat > conftest.$ac_ext <<EOF
17032 #line 17033 "configure"
17033 #include "confdefs.h"
17034 #include "confdefs.h"
17035 #include <sys/types.h>
17039 switch (0) case 0: case (sizeof (long) == $ac_size):;
17042 if { (eval echo configure:17043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17044 ac_cv_sizeof_long=$ac_size
17046 echo "configure: failed program was:" >&5
17047 cat conftest.$ac_ext >&5
17050 if test x$ac_cv_sizeof_long != x ; then break; fi
17055 if test x$ac_cv_sizeof_long = x ; then
17056 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
17058 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
17059 cat >> confdefs.h <<EOF
17060 #define SIZEOF_LONG $ac_cv_sizeof_long
17065 if test "$ac_cv_sizeof_int" -lt 4 ; then
17066 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
17068 cat >> confdefs.h <<\EOF
17069 #define LBER_INT_T long
17073 cat >> confdefs.h <<\EOF
17074 #define LBER_INT_T int
17079 cat >> confdefs.h <<\EOF
17080 #define LBER_LEN_T long
17083 cat >> confdefs.h <<\EOF
17084 #define LBER_SOCKET_T int
17087 cat >> confdefs.h <<\EOF
17088 #define LBER_TAG_T long
17092 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
17093 echo "configure:17094: checking for 8-bit clean memcmp" >&5
17094 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
17095 echo $ac_n "(cached) $ac_c" 1>&6
17097 if test "$cross_compiling" = yes; then
17098 ac_cv_func_memcmp_clean=no
17100 cat > conftest.$ac_ext <<EOF
17101 #line 17102 "configure"
17102 #include "confdefs.h"
17106 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
17107 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
17111 if { (eval echo configure:17112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17113 ac_cv_func_memcmp_clean=yes
17115 echo "configure: failed program was:" >&5
17116 cat conftest.$ac_ext >&5
17118 ac_cv_func_memcmp_clean=no
17125 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
17126 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
17128 echo $ac_n "checking for strftime""... $ac_c" 1>&6
17129 echo "configure:17130: checking for strftime" >&5
17130 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
17131 echo $ac_n "(cached) $ac_c" 1>&6
17133 cat > conftest.$ac_ext <<EOF
17134 #line 17135 "configure"
17135 #include "confdefs.h"
17136 /* System header to define __stub macros and hopefully few prototypes,
17137 which can conflict with char strftime(); below. */
17138 #include <assert.h>
17139 /* Override any gcc2 internal prototype to avoid an error. */
17140 /* We use char because int might match the return type of a gcc2
17141 builtin and then its argument prototype would still apply. */
17147 /* The GNU C library defines this for functions which it implements
17148 to always fail with ENOSYS. Some functions are actually named
17149 something starting with __ and the normal name is an alias. */
17150 #if defined (__stub_strftime) || defined (__stub___strftime)
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17160 eval "ac_cv_func_strftime=yes"
17162 echo "configure: failed program was:" >&5
17163 cat conftest.$ac_ext >&5
17165 eval "ac_cv_func_strftime=no"
17170 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
17171 echo "$ac_t""yes" 1>&6
17172 cat >> confdefs.h <<\EOF
17173 #define HAVE_STRFTIME 1
17177 echo "$ac_t""no" 1>&6
17178 # strftime is in -lintl on SCO UNIX.
17179 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
17180 echo "configure:17181: checking for strftime in -lintl" >&5
17181 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
17182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
17183 echo $ac_n "(cached) $ac_c" 1>&6
17185 ac_save_LIBS="$LIBS"
17186 LIBS="-lintl $LIBS"
17187 cat > conftest.$ac_ext <<EOF
17188 #line 17189 "configure"
17189 #include "confdefs.h"
17190 /* Override any gcc2 internal prototype to avoid an error. */
17191 /* We use char because int might match the return type of a gcc2
17192 builtin and then its argument prototype would still apply. */
17199 if { (eval echo configure:17200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17201 eval "ac_cv_lib_$ac_lib_var=yes"
17203 echo "configure: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17206 eval "ac_cv_lib_$ac_lib_var=no"
17209 LIBS="$ac_save_LIBS"
17212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17213 echo "$ac_t""yes" 1>&6
17214 cat >> confdefs.h <<\EOF
17215 #define HAVE_STRFTIME 1
17218 LIBS="-lintl $LIBS"
17220 echo "$ac_t""no" 1>&6
17226 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
17227 echo "configure:17228: checking for inet_aton()" >&5
17228 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
17229 echo $ac_n "(cached) $ac_c" 1>&6
17231 cat > conftest.$ac_ext <<EOF
17232 #line 17233 "configure"
17233 #include "confdefs.h"
17235 #ifdef HAVE_SYS_TYPES_H
17236 # include <sys/types.h>
17238 #ifdef HAVE_SYS_SOCKET_H
17239 # include <sys/socket.h>
17240 # ifdef HAVE_SYS_SELECT_H
17241 # include <sys/select.h>
17243 # include <netinet/in.h>
17244 # ifdef HAVE_ARPA_INET_H
17245 # include <arpa/inet.h>
17251 int rc = inet_aton( "255.255.255.255", &in );
17254 if { (eval echo configure:17255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17256 ol_cv_func_inet_aton=yes
17258 echo "configure: failed program was:" >&5
17259 cat conftest.$ac_ext >&5
17261 ol_cv_func_inet_aton=no
17266 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
17267 if test $ol_cv_func_inet_aton != no; then
17268 cat >> confdefs.h <<\EOF
17269 #define HAVE_INET_ATON 1
17275 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
17276 echo "configure:17277: checking for _spawnlp" >&5
17277 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
17278 echo $ac_n "(cached) $ac_c" 1>&6
17280 cat > conftest.$ac_ext <<EOF
17281 #line 17282 "configure"
17282 #include "confdefs.h"
17283 /* System header to define __stub macros and hopefully few prototypes,
17284 which can conflict with char _spawnlp(); below. */
17285 #include <assert.h>
17286 /* Override any gcc2 internal prototype to avoid an error. */
17287 /* We use char because int might match the return type of a gcc2
17288 builtin and then its argument prototype would still apply. */
17294 /* The GNU C library defines this for functions which it implements
17295 to always fail with ENOSYS. Some functions are actually named
17296 something starting with __ and the normal name is an alias. */
17297 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
17305 if { (eval echo configure:17306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17307 eval "ac_cv_func__spawnlp=yes"
17309 echo "configure: failed program was:" >&5
17310 cat conftest.$ac_ext >&5
17312 eval "ac_cv_func__spawnlp=no"
17317 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
17318 echo "$ac_t""yes" 1>&6
17319 cat >> confdefs.h <<\EOF
17320 #define HAVE_SPAWNLP 1
17324 echo "$ac_t""no" 1>&6
17328 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
17329 echo "configure:17330: checking for _snprintf" >&5
17330 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
17331 echo $ac_n "(cached) $ac_c" 1>&6
17333 cat > conftest.$ac_ext <<EOF
17334 #line 17335 "configure"
17335 #include "confdefs.h"
17336 /* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char _snprintf(); below. */
17338 #include <assert.h>
17339 /* Override any gcc2 internal prototype to avoid an error. */
17340 /* We use char because int might match the return type of a gcc2
17341 builtin and then its argument prototype would still apply. */
17347 /* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350 #if defined (__stub__snprintf) || defined (__stub____snprintf)
17358 if { (eval echo configure:17359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17360 eval "ac_cv_func__snprintf=yes"
17362 echo "configure: failed program was:" >&5
17363 cat conftest.$ac_ext >&5
17365 eval "ac_cv_func__snprintf=no"
17370 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
17371 echo "$ac_t""yes" 1>&6
17372 ac_cv_func_snprintf=yes
17373 cat >> confdefs.h <<\EOF
17374 #define snprintf _snprintf
17379 echo "$ac_t""no" 1>&6
17383 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
17384 echo "configure:17385: checking for _vsnprintf" >&5
17385 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
17386 echo $ac_n "(cached) $ac_c" 1>&6
17388 cat > conftest.$ac_ext <<EOF
17389 #line 17390 "configure"
17390 #include "confdefs.h"
17391 /* System header to define __stub macros and hopefully few prototypes,
17392 which can conflict with char _vsnprintf(); below. */
17393 #include <assert.h>
17394 /* Override any gcc2 internal prototype to avoid an error. */
17395 /* We use char because int might match the return type of a gcc2
17396 builtin and then its argument prototype would still apply. */
17402 /* The GNU C library defines this for functions which it implements
17403 to always fail with ENOSYS. Some functions are actually named
17404 something starting with __ and the normal name is an alias. */
17405 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
17413 if { (eval echo configure:17414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17415 eval "ac_cv_func__vsnprintf=yes"
17417 echo "configure: failed program was:" >&5
17418 cat conftest.$ac_ext >&5
17420 eval "ac_cv_func__vsnprintf=no"
17425 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
17426 echo "$ac_t""yes" 1>&6
17427 ac_cv_func_vsnprintf=yes
17428 cat >> confdefs.h <<\EOF
17429 #define vsnprintf _vsnprintf
17434 echo "$ac_t""no" 1>&6
17438 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17439 echo "configure:17440: checking for vprintf" >&5
17440 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
17441 echo $ac_n "(cached) $ac_c" 1>&6
17443 cat > conftest.$ac_ext <<EOF
17444 #line 17445 "configure"
17445 #include "confdefs.h"
17446 /* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char vprintf(); below. */
17448 #include <assert.h>
17449 /* Override any gcc2 internal prototype to avoid an error. */
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17468 if { (eval echo configure:17469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17470 eval "ac_cv_func_vprintf=yes"
17472 echo "configure: failed program was:" >&5
17473 cat conftest.$ac_ext >&5
17475 eval "ac_cv_func_vprintf=no"
17480 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17481 echo "$ac_t""yes" 1>&6
17482 cat >> confdefs.h <<\EOF
17483 #define HAVE_VPRINTF 1
17487 echo "$ac_t""no" 1>&6
17490 if test "$ac_cv_func_vprintf" != yes; then
17491 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17492 echo "configure:17493: checking for _doprnt" >&5
17493 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17494 echo $ac_n "(cached) $ac_c" 1>&6
17496 cat > conftest.$ac_ext <<EOF
17497 #line 17498 "configure"
17498 #include "confdefs.h"
17499 /* System header to define __stub macros and hopefully few prototypes,
17500 which can conflict with char _doprnt(); below. */
17501 #include <assert.h>
17502 /* Override any gcc2 internal prototype to avoid an error. */
17503 /* We use char because int might match the return type of a gcc2
17504 builtin and then its argument prototype would still apply. */
17510 /* The GNU C library defines this for functions which it implements
17511 to always fail with ENOSYS. Some functions are actually named
17512 something starting with __ and the normal name is an alias. */
17513 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17521 if { (eval echo configure:17522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17523 eval "ac_cv_func__doprnt=yes"
17525 echo "configure: failed program was:" >&5
17526 cat conftest.$ac_ext >&5
17528 eval "ac_cv_func__doprnt=no"
17533 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17534 echo "$ac_t""yes" 1>&6
17535 cat >> confdefs.h <<\EOF
17536 #define HAVE_DOPRNT 1
17540 echo "$ac_t""no" 1>&6
17546 if test $ac_cv_func_vprintf = yes ; then
17547 for ac_func in vsnprintf vsprintf
17549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17550 echo "configure:17551: checking for $ac_func" >&5
17551 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17552 echo $ac_n "(cached) $ac_c" 1>&6
17554 cat > conftest.$ac_ext <<EOF
17555 #line 17556 "configure"
17556 #include "confdefs.h"
17557 /* System header to define __stub macros and hopefully few prototypes,
17558 which can conflict with char $ac_func(); below. */
17559 #include <assert.h>
17560 /* Override any gcc2 internal prototype to avoid an error. */
17561 /* We use char because int might match the return type of a gcc2
17562 builtin and then its argument prototype would still apply. */
17568 /* The GNU C library defines this for functions which it implements
17569 to always fail with ENOSYS. Some functions are actually named
17570 something starting with __ and the normal name is an alias. */
17571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17579 if { (eval echo configure:17580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17581 eval "ac_cv_func_$ac_func=yes"
17583 echo "configure: failed program was:" >&5
17584 cat conftest.$ac_ext >&5
17586 eval "ac_cv_func_$ac_func=no"
17591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17592 echo "$ac_t""yes" 1>&6
17593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17594 cat >> confdefs.h <<EOF
17595 #define $ac_tr_func 1
17599 echo "$ac_t""no" 1>&6
17659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17660 echo "configure:17661: checking for $ac_func" >&5
17661 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17662 echo $ac_n "(cached) $ac_c" 1>&6
17664 cat > conftest.$ac_ext <<EOF
17665 #line 17666 "configure"
17666 #include "confdefs.h"
17667 /* System header to define __stub macros and hopefully few prototypes,
17668 which can conflict with char $ac_func(); below. */
17669 #include <assert.h>
17670 /* Override any gcc2 internal prototype to avoid an error. */
17671 /* We use char because int might match the return type of a gcc2
17672 builtin and then its argument prototype would still apply. */
17678 /* The GNU C library defines this for functions which it implements
17679 to always fail with ENOSYS. Some functions are actually named
17680 something starting with __ and the normal name is an alias. */
17681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17689 if { (eval echo configure:17690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17691 eval "ac_cv_func_$ac_func=yes"
17693 echo "configure: failed program was:" >&5
17694 cat conftest.$ac_ext >&5
17696 eval "ac_cv_func_$ac_func=no"
17701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17702 echo "$ac_t""yes" 1>&6
17703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17704 cat >> confdefs.h <<EOF
17705 #define $ac_tr_func 1
17709 echo "$ac_t""no" 1>&6
17714 for ac_func in getopt
17716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17717 echo "configure:17718: checking for $ac_func" >&5
17718 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17719 echo $ac_n "(cached) $ac_c" 1>&6
17721 cat > conftest.$ac_ext <<EOF
17722 #line 17723 "configure"
17723 #include "confdefs.h"
17724 /* System header to define __stub macros and hopefully few prototypes,
17725 which can conflict with char $ac_func(); below. */
17726 #include <assert.h>
17727 /* Override any gcc2 internal prototype to avoid an error. */
17728 /* We use char because int might match the return type of a gcc2
17729 builtin and then its argument prototype would still apply. */
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17746 if { (eval echo configure:17747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17748 eval "ac_cv_func_$ac_func=yes"
17750 echo "configure: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17753 eval "ac_cv_func_$ac_func=no"
17758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17759 echo "$ac_t""yes" 1>&6
17760 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17761 cat >> confdefs.h <<EOF
17762 #define $ac_tr_func 1
17766 echo "$ac_t""no" 1>&6
17767 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17773 if test "$ac_cv_func_getopt" != yes; then
17774 LIBSRCS="$LIBSRCS getopt.c"
17777 # Check Configuration
17778 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17779 echo "configure:17780: checking declaration of sys_errlist" >&5
17780 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17781 echo $ac_n "(cached) $ac_c" 1>&6
17784 cat > conftest.$ac_ext <<EOF
17785 #line 17786 "configure"
17786 #include "confdefs.h"
17789 #include <sys/types.h>
17792 #include <stdlib.h>
17795 char *c = (char *) *sys_errlist
17798 if { (eval echo configure:17799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17800 ol_cv_dcl_sys_errlist=yes
17801 ol_cv_have_sys_errlist=yes
17803 echo "configure: failed program was:" >&5
17804 cat conftest.$ac_ext >&5
17806 ol_cv_dcl_sys_errlist=no
17811 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17813 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17814 if test $ol_cv_dcl_sys_errlist = no ; then
17815 cat >> confdefs.h <<\EOF
17816 #define DECL_SYS_ERRLIST 1
17820 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17821 echo "configure:17822: checking existence of sys_errlist" >&5
17822 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17823 echo $ac_n "(cached) $ac_c" 1>&6
17826 cat > conftest.$ac_ext <<EOF
17827 #line 17828 "configure"
17828 #include "confdefs.h"
17831 char *c = (char *) *sys_errlist
17834 if { (eval echo configure:17835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17836 ol_cv_have_sys_errlist=yes
17838 echo "configure: failed program was:" >&5
17839 cat conftest.$ac_ext >&5
17841 ol_cv_have_sys_errlist=no
17846 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17848 if test $ol_cv_have_sys_errlist = yes ; then
17849 cat >> confdefs.h <<\EOF
17850 #define HAVE_SYS_ERRLIST 1
17857 if test "$ol_enable_debug" != no ; then
17858 cat >> confdefs.h <<\EOF
17859 #define LDAP_DEBUG 1
17863 if test "$ol_enable_syslog" = yes ; then
17864 cat >> confdefs.h <<\EOF
17865 #define LDAP_SYSLOG 1
17869 if test "$ol_enable_cache" = no ; then
17870 cat >> confdefs.h <<\EOF
17871 #define LDAP_NOCACHE 1
17875 if test "$ol_link_kbind" != no ; then
17876 cat >> confdefs.h <<\EOF
17877 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17881 if test "$ol_enable_proctitle" != no ; then
17882 cat >> confdefs.h <<\EOF
17883 #define LDAP_PROCTITLE 1
17887 if test "$ol_enable_referrals" != no ; then
17888 cat >> confdefs.h <<\EOF
17889 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17893 if test "$ol_enable_local" != no; then
17894 cat >> confdefs.h <<\EOF
17895 #define LDAP_PF_LOCAL 1
17899 if test "$ol_link_ipv6" != no; then
17900 cat >> confdefs.h <<\EOF
17901 #define LDAP_PF_INET6 1
17905 if test "$ol_enable_cleartext" != no ; then
17906 cat >> confdefs.h <<\EOF
17907 #define SLAPD_CLEARTEXT 1
17911 if test "$ol_enable_crypt" != no ; then
17912 cat >> confdefs.h <<\EOF
17913 #define SLAPD_CRYPT 1
17917 if test "$ol_link_kpasswd" != no ; then
17918 cat >> confdefs.h <<\EOF
17919 #define SLAPD_KPASSWD 1
17923 if test "$ol_link_spasswd" != no ; then
17924 cat >> confdefs.h <<\EOF
17925 #define SLAPD_SPASSWD 1
17929 if test "$ol_enable_phonetic" != no ; then
17930 cat >> confdefs.h <<\EOF
17931 #define SLAPD_PHONETIC 1
17935 if test "$ol_enable_rlookups" != no ; then
17936 cat >> confdefs.h <<\EOF
17937 #define SLAPD_RLOOKUPS 1
17941 if test "$ol_enable_aci" != no ; then
17942 cat >> confdefs.h <<\EOF
17943 #define SLAPD_ACI_ENABLED 1
17948 if test "$ol_link_modules" != no ; then
17949 cat >> confdefs.h <<\EOF
17950 #define SLAPD_MODULES 1
17954 SLAPD_MODULES_LDFLAGS="-dlopen self"
17957 if test "$ol_enable_bdb" != no ; then
17958 cat >> confdefs.h <<\EOF
17959 #define SLAPD_BDB 1
17964 if test "$ol_with_bdb_module" != static ; then
17965 cat >> confdefs.h <<\EOF
17966 #define SLAPD_BDB_DYNAMIC 1
17970 BUILD_BDB_DYNAMIC=shared
17971 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17972 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
17974 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
17978 if test "$ol_link_dnssrv" != no ; then
17979 cat >> confdefs.h <<\EOF
17980 #define SLAPD_DNSSRV 1
17985 if test "$ol_with_dnssrv_module" != static ; then
17986 cat >> confdefs.h <<\EOF
17987 #define SLAPD_DNSSRV_DYNAMIC 1
17991 BUILD_DNSSRV_DYNAMIC=shared
17992 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17993 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
17995 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
17999 if test "$ol_enable_ldap" != no ; then
18000 cat >> confdefs.h <<\EOF
18001 #define SLAPD_LDAP 1
18006 if test "$ol_with_ldap_module" != static ; then
18007 cat >> confdefs.h <<\EOF
18008 #define SLAPD_LDAP_DYNAMIC 1
18012 BUILD_LDAP_DYNAMIC=shared
18013 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
18014 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
18016 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
18020 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
18021 cat >> confdefs.h <<\EOF
18022 #define SLAPD_LDBM 1
18028 if test "$ol_with_ldbm_module" != static ; then
18029 cat >> confdefs.h <<\EOF
18030 #define SLAPD_LDBM_DYNAMIC 1
18034 BUILD_LDBM_DYNAMIC=shared
18035 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
18036 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
18038 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
18042 if test "$ol_enable_meta" != no ; then
18043 if test "$ol_enable_ldap" = no ; then
18044 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
18046 if test "$ol_enable_rewrite" = no ; then
18047 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
18049 cat >> confdefs.h <<\EOF
18050 #define SLAPD_META 1
18055 if test "$ol_with_meta_module" != static ; then
18056 cat >> confdefs.h <<\EOF
18057 #define SLAPD_META_DYNAMIC 1
18061 BUILD_META_DYNAMIC=shared
18062 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
18063 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
18065 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
18069 if test "$ol_enable_monitor" != no ; then
18070 cat >> confdefs.h <<\EOF
18071 #define SLAPD_MONITOR 1
18076 if test "$ol_with_monitor_module" != static ; then
18077 cat >> confdefs.h <<\EOF
18078 #define SLAPD_MONITOR_DYNAMIC 1
18082 BUILD_MONITOR_DYNAMIC=shared
18083 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
18084 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
18086 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
18090 if test "$ol_enable_passwd" != no ; then
18091 cat >> confdefs.h <<\EOF
18092 #define SLAPD_PASSWD 1
18097 if test "$ol_with_passwd_module" != static ; then
18098 cat >> confdefs.h <<\EOF
18099 #define SLAPD_PASSWD_DYNAMIC 1
18103 BUILD_PASSWD_DYNAMIC=shared
18104 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
18105 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
18107 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
18111 if test "$ol_link_perl" != no ; then
18112 cat >> confdefs.h <<\EOF
18113 #define SLAPD_PERL 1
18118 if test "$ol_with_perl_module" != static ; then
18119 cat >> confdefs.h <<\EOF
18120 #define SLAPD_PERL_DYNAMIC 1
18124 BUILD_PERL_DYNAMIC=shared
18125 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
18126 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
18128 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
18132 if test "$ol_enable_shell" != no ; then
18133 cat >> confdefs.h <<\EOF
18134 #define SLAPD_SHELL 1
18139 if test "$ol_with_shell_module" != static ; then
18140 cat >> confdefs.h <<\EOF
18141 #define SLAPD_SHELL_DYNAMIC 1
18145 BUILD_SHELL_DYNAMIC=shared
18146 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
18147 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
18149 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
18153 if test "$ol_enable_tcl" != no ; then
18154 cat >> confdefs.h <<\EOF
18155 #define SLAPD_TCL 1
18160 if test "$ol_with_tcl_module" != static; then
18161 cat >> confdefs.h <<\EOF
18162 #define SLAPD_TCL_DYNAMIC 1
18166 BUILD_TCL_DYNAMIC=shared
18167 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
18168 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
18170 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
18174 if test "$ol_link_sql" != no ; then
18175 cat >> confdefs.h <<\EOF
18176 #define SLAPD_SQL 1
18181 if test "$ol_with_sql_module" != static; then
18182 cat >> confdefs.h <<\EOF
18183 #define SLAPD_SQL_DYNAMIC 1
18187 BUILD_SQL_DYNAMIC=shared
18188 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
18189 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
18191 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
18195 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
18196 $BUILD_SLAPD = yes ; then
18200 if test "$ol_enable_rewrite" != no ; then
18201 cat >> confdefs.h <<\EOF
18202 #define ENABLE_REWRITE 1
18206 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
18211 if test "$ac_cv_mingw32" = yes ; then
18213 SLAPD_MODULES_LDFLAGS=
18214 SLAPD_MODULES_LIST=
18289 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18292 # Let make expand exec_prefix.
18293 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18295 # Any assignment to VPATH causes Sun make to only execute
18296 # the first set of double-colon rules, so remove it if not needed.
18297 # If there is a colon in the path, we need to keep it.
18298 if test "x$srcdir" = x.; then
18299 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18302 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18304 DEFS=-DHAVE_CONFIG_H
18306 # Without the "./", some shells look in PATH for config.status.
18307 : ${CONFIG_STATUS=./config.status}
18309 echo creating $CONFIG_STATUS
18310 rm -f $CONFIG_STATUS
18311 cat > $CONFIG_STATUS <<EOF
18313 # Generated automatically by configure.
18314 # Run this file to recreate the current configuration.
18315 # This directory was configured as follows,
18316 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18318 # $0 $ac_configure_args
18320 # Compiler output produced by configure, useful for debugging
18321 # configure, is in ./config.log if it exists.
18323 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18326 case "\$ac_option" in
18327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18328 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18329 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18330 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18331 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
18333 -help | --help | --hel | --he | --h)
18334 echo "\$ac_cs_usage"; exit 0 ;;
18335 *) echo "\$ac_cs_usage"; exit 1 ;;
18339 ac_given_srcdir=$srcdir
18340 ac_given_INSTALL="$INSTALL"
18342 trap 'rm -fr `echo "\
18343 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18344 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18345 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18346 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18347 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18348 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18349 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18350 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18351 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18352 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18353 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18354 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18355 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18356 include/Makefile:build/top.mk:include/Makefile.in \
18357 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18358 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18359 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18360 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18361 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18362 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18363 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18364 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18365 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18366 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18367 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18368 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18369 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18370 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18371 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18372 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18373 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18374 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18375 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18376 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18377 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18378 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18379 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18380 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18381 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18382 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18383 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18384 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18385 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18387 cat >> $CONFIG_STATUS <<EOF
18389 # Protect against being on the right side of a sed subst in config.status.
18390 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18391 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18395 s%@CFLAGS@%$CFLAGS%g
18396 s%@CPPFLAGS@%$CPPFLAGS%g
18397 s%@CXXFLAGS@%$CXXFLAGS%g
18398 s%@FFLAGS@%$FFLAGS%g
18400 s%@LDFLAGS@%$LDFLAGS%g
18402 s%@exec_prefix@%$exec_prefix%g
18403 s%@prefix@%$prefix%g
18404 s%@program_transform_name@%$program_transform_name%g
18405 s%@bindir@%$bindir%g
18406 s%@sbindir@%$sbindir%g
18407 s%@libexecdir@%$libexecdir%g
18408 s%@datadir@%$datadir%g
18409 s%@sysconfdir@%$sysconfdir%g
18410 s%@sharedstatedir@%$sharedstatedir%g
18411 s%@localstatedir@%$localstatedir%g
18412 s%@libdir@%$libdir%g
18413 s%@includedir@%$includedir%g
18414 s%@oldincludedir@%$oldincludedir%g
18415 s%@infodir@%$infodir%g
18416 s%@mandir@%$mandir%g
18418 s%@host_alias@%$host_alias%g
18419 s%@host_cpu@%$host_cpu%g
18420 s%@host_vendor@%$host_vendor%g
18421 s%@host_os@%$host_os%g
18422 s%@target@%$target%g
18423 s%@target_alias@%$target_alias%g
18424 s%@target_cpu@%$target_cpu%g
18425 s%@target_vendor@%$target_vendor%g
18426 s%@target_os@%$target_os%g
18428 s%@build_alias@%$build_alias%g
18429 s%@build_cpu@%$build_cpu%g
18430 s%@build_vendor@%$build_vendor%g
18431 s%@build_os@%$build_os%g
18432 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18433 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18434 s%@INSTALL_DATA@%$INSTALL_DATA%g
18435 s%@PACKAGE@%$PACKAGE%g
18436 s%@VERSION@%$VERSION%g
18437 s%@ACLOCAL@%$ACLOCAL%g
18438 s%@AUTOCONF@%$AUTOCONF%g
18439 s%@AUTOMAKE@%$AUTOMAKE%g
18440 s%@AUTOHEADER@%$AUTOHEADER%g
18441 s%@MAKEINFO@%$MAKEINFO%g
18442 s%@install_sh@%$install_sh%g
18445 s%@AMTARFLAGS@%$AMTARFLAGS%g
18446 s%@SET_MAKE@%$SET_MAKE%g
18447 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
18448 s%@top_builddir@%$top_builddir%g
18449 s%@ldap_subdir@%$ldap_subdir%g
18452 s%@RANLIB@%$RANLIB%g
18454 s%@DLLTOOL@%$DLLTOOL%g
18456 s%@OBJDUMP@%$OBJDUMP%g
18457 s%@LIBTOOL@%$LIBTOOL%g
18459 s%@SENDMAIL@%$SENDMAIL%g
18460 s%@EDITOR@%$EDITOR%g
18461 s%@FINGER@%$FINGER%g
18462 s%@PERLBIN@%$PERLBIN%g
18464 s%@EXEEXT@%$EXEEXT%g
18465 s%@OBJEXT@%$OBJEXT%g
18466 s%@OL_MKDEP@%$OL_MKDEP%g
18467 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
18468 s%@LIBOBJS@%$LIBOBJS%g
18469 s%@LIBSRCS@%$LIBSRCS%g
18471 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
18472 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
18473 s%@BUILD_BDB@%$BUILD_BDB%g
18474 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
18475 s%@BUILD_LDAP@%$BUILD_LDAP%g
18476 s%@BUILD_LDBM@%$BUILD_LDBM%g
18477 s%@BUILD_META@%$BUILD_META%g
18478 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18479 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18480 s%@BUILD_PERL@%$BUILD_PERL%g
18481 s%@BUILD_SHELL@%$BUILD_SHELL%g
18482 s%@BUILD_SQL@%$BUILD_SQL%g
18483 s%@BUILD_TCL@%$BUILD_TCL%g
18484 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18485 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18486 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18487 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18488 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18489 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18490 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18491 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18492 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18493 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18494 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18495 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18496 s%@LDBM_LIB@%$LDBM_LIB%g
18497 s%@LDAP_LIBS@%$LDAP_LIBS%g
18498 s%@LDIF_LIBS@%$LDIF_LIBS%g
18499 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18500 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18501 s%@LDBM_LIBS@%$LDBM_LIBS%g
18502 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18503 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18504 s%@WRAP_LIBS@%$WRAP_LIBS%g
18505 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18506 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18507 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18508 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18509 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
18510 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
18511 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18512 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18513 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18514 s%@KRB4_LIBS@%$KRB4_LIBS%g
18515 s%@KRB5_LIBS@%$KRB5_LIBS%g
18516 s%@READLINE_LIBS@%$READLINE_LIBS%g
18517 s%@SASL_LIBS@%$SASL_LIBS%g
18518 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18519 s%@TLS_LIBS@%$TLS_LIBS%g
18520 s%@MODULES_LIBS@%$MODULES_LIBS%g
18521 s%@AUTH_LIBS@%$AUTH_LIBS%g
18522 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18523 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18524 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18525 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18530 cat >> $CONFIG_STATUS <<\EOF
18532 # Split the substitutions into bite-sized pieces for seds with
18533 # small command number limits, like on Digital OSF/1 and HP-UX.
18534 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18535 ac_file=1 # Number of current file.
18536 ac_beg=1 # First line for current file.
18537 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18540 while $ac_more_lines; do
18541 if test $ac_beg -gt 1; then
18542 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18544 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18546 if test ! -s conftest.s$ac_file; then
18547 ac_more_lines=false
18548 rm -f conftest.s$ac_file
18550 if test -z "$ac_sed_cmds"; then
18551 ac_sed_cmds="sed -f conftest.s$ac_file"
18553 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18555 ac_file=`expr $ac_file + 1`
18557 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18560 if test -z "$ac_sed_cmds"; then
18565 cat >> $CONFIG_STATUS <<EOF
18567 CONFIG_FILES=\${CONFIG_FILES-"\
18568 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18569 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18570 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18571 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18572 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18573 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18574 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18575 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18576 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18577 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18578 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18579 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18580 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18581 include/Makefile:build/top.mk:include/Makefile.in \
18582 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18583 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18584 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18585 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18586 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18587 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18588 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18589 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18590 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18591 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18592 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18593 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18594 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18595 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18596 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18597 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18598 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18599 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18600 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18601 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18602 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18603 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18604 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18605 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18606 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18607 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18608 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18609 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18612 cat >> $CONFIG_STATUS <<\EOF
18613 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18616 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18617 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18618 *) ac_file_in="${ac_file}.in" ;;
18621 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18623 # Remove last slash and all that follows it. Not all systems have dirname.
18624 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18625 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18626 # The file is in a subdirectory.
18627 test ! -d "$ac_dir" && mkdir "$ac_dir"
18628 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18629 # A "../" for each directory in $ac_dir_suffix.
18630 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18632 ac_dir_suffix= ac_dots=
18635 case "$ac_given_srcdir" in
18637 if test -z "$ac_dots"; then top_srcdir=.
18638 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18639 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18640 *) # Relative path.
18641 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18642 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18645 case "$ac_given_INSTALL" in
18646 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18647 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18650 echo creating "$ac_file"
18652 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18654 *[Mm]akefile*) ac_comsub="1i\\
18655 # $configure_input" ;;
18659 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18661 s%@configure_input@%$configure_input%g
18662 s%@srcdir@%$srcdir%g
18663 s%@top_srcdir@%$top_srcdir%g
18664 s%@INSTALL@%$INSTALL%g
18665 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18669 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18670 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18672 # ac_d sets the value in "#define NAME VALUE" lines.
18673 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18674 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18677 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18678 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18679 ac_uB='\([ ]\)%\1#\2define\3'
18682 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18683 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18684 ac_eB='$%\1#\2define\3'
18688 if test "${CONFIG_HEADERS+set}" != set; then
18690 cat >> $CONFIG_STATUS <<EOF
18691 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18693 cat >> $CONFIG_STATUS <<\EOF
18695 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18696 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18698 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18699 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18700 *) ac_file_in="${ac_file}.in" ;;
18703 echo creating $ac_file
18705 rm -f conftest.frag conftest.in conftest.out
18706 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18707 cat $ac_file_inputs > conftest.in
18711 # Transform confdefs.h into a sed script conftest.vals that substitutes
18712 # the proper values into config.h.in to produce config.h. And first:
18713 # Protect against being on the right side of a sed subst in config.status.
18714 # Protect against being in an unquoted here document in config.status.
18715 rm -f conftest.vals
18716 cat > conftest.hdr <<\EOF
18719 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18723 sed -n -f conftest.hdr confdefs.h > conftest.vals
18726 # This sed command replaces #undef with comments. This is necessary, for
18727 # example, in the case of _POSIX_SOURCE, which is predefined and required
18728 # on some systems where configure will not decide to define it.
18729 cat >> conftest.vals <<\EOF
18730 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18733 # Break up conftest.vals because some shells have a limit on
18734 # the size of here documents, and old seds have small limits too.
18736 rm -f conftest.tail
18739 ac_lines=`grep -c . conftest.vals`
18740 # grep -c gives empty output for an empty file on some AIX systems.
18741 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18742 # Write a limited-size here document to conftest.frag.
18743 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18744 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18746 sed -f conftest.frag conftest.in > conftest.out
18748 mv conftest.out conftest.in
18749 ' >> $CONFIG_STATUS
18750 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18751 rm -f conftest.vals
18752 mv conftest.tail conftest.vals
18754 rm -f conftest.vals
18756 cat >> $CONFIG_STATUS <<\EOF
18757 rm -f conftest.frag conftest.h
18758 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18759 cat conftest.in >> conftest.h
18761 if cmp -s $ac_file conftest.h 2>/dev/null; then
18762 echo "$ac_file is unchanged"
18765 # Remove last slash and all that follows it. Not all systems have dirname.
18766 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18767 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18768 # The file is in a subdirectory.
18769 test ! -d "$ac_dir" && mkdir "$ac_dir"
18772 mv conftest.h $ac_file
18777 cat >> $CONFIG_STATUS <<EOF
18780 cat >> $CONFIG_STATUS <<\EOF
18783 echo Please \"make depend\" to build dependencies
18787 chmod +x $CONFIG_STATUS
18788 rm -fr confdefs* $ac_clean_files
18789 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1