3 # from OpenLDAP: pkg/ldap/configure.in,v 1.374 2001/10/23 15:33:03 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [no]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [yes]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-monitor enable monitor backend [no]"
119 --with-monitor-module module type [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
145 Library Generation & Linking Options"
147 --enable-static[=PKGS] build static libraries [default=yes]"
149 --enable-shared[=PKGS] build shared libraries [default=yes]"
151 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
153 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
155 --disable-libtool-lock avoid locking (might break parallel builds)"
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
161 cache_file=./config.cache
170 program_transform_name=s,x,x,
178 bindir='${exec_prefix}/bin'
179 sbindir='${exec_prefix}/sbin'
180 libexecdir='${exec_prefix}/libexec'
181 datadir='${prefix}/share'
182 sysconfdir='${prefix}/etc'
183 sharedstatedir='${prefix}/com'
184 localstatedir='${prefix}/var'
185 libdir='${exec_prefix}/lib'
186 includedir='${prefix}/include'
187 oldincludedir='/usr/include'
188 infodir='${prefix}/info'
189 mandir='${prefix}/man'
191 # Initialize some other variables.
194 SHELL=${CONFIG_SHELL-/bin/sh}
195 # Maximum number of lines to put in a shell here document.
202 # If the previous option needs an argument, assign it.
203 if test -n "$ac_prev"; then
204 eval "$ac_prev=\$ac_option"
210 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
214 # Accept the important Cygnus configure options, so we can diagnose typos.
218 -bindir | --bindir | --bindi | --bind | --bin | --bi)
220 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
221 bindir="$ac_optarg" ;;
223 -build | --build | --buil | --bui | --bu)
225 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
226 build="$ac_optarg" ;;
228 -cache-file | --cache-file | --cache-fil | --cache-fi \
229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
230 ac_prev=cache_file ;;
231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
233 cache_file="$ac_optarg" ;;
235 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
237 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
239 datadir="$ac_optarg" ;;
241 -disable-* | --disable-*)
242 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
247 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
254 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
261 eval "enable_${ac_feature}='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix="$ac_optarg" ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he)
277 # Omit some internal or obsolete options to make the list less imposing.
278 # This message is too long to be a string in the A/UX 3.1 sh.
280 Usage: configure [options] [host]
281 Options: [defaults in brackets after descriptions]
283 --cache-file=FILE cache test results in FILE
284 --help print this message
285 --no-create do not create output files
286 --quiet, --silent do not print \`checking...' messages
287 --version print the version of autoconf that created configure
288 Directory and file names:
289 --prefix=PREFIX install architecture-independent files in PREFIX
291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
293 --bindir=DIR user executables in DIR [EPREFIX/bin]
294 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
295 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
296 --datadir=DIR read-only architecture-independent data in DIR
298 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
299 --sharedstatedir=DIR modifiable architecture-independent data in DIR
301 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
302 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
303 --includedir=DIR C header files in DIR [PREFIX/include]
304 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
305 --infodir=DIR info documentation in DIR [PREFIX/info]
306 --mandir=DIR man documentation in DIR [PREFIX/man]
307 --srcdir=DIR find the sources in DIR [configure dir or ..]
308 --program-prefix=PREFIX prepend PREFIX to installed program names
309 --program-suffix=SUFFIX append SUFFIX to installed program names
310 --program-transform-name=PROGRAM
311 run sed PROGRAM on installed program names
315 --build=BUILD configure for building on BUILD [BUILD=HOST]
316 --host=HOST configure for HOST [guessed]
317 --target=TARGET configure for TARGET [TARGET=HOST]
318 Features and packages:
319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
323 --x-includes=DIR X include files are in DIR
324 --x-libraries=DIR X library files are in DIR
326 if test -n "$ac_help"; then
327 echo "--enable and --with options recognized:$ac_help"
331 -host | --host | --hos | --ho)
333 -host=* | --host=* | --hos=* | --ho=*)
336 -includedir | --includedir | --includedi | --included | --include \
337 | --includ | --inclu | --incl | --inc)
338 ac_prev=includedir ;;
339 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
340 | --includ=* | --inclu=* | --incl=* | --inc=*)
341 includedir="$ac_optarg" ;;
343 -infodir | --infodir | --infodi | --infod | --info | --inf)
345 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
346 infodir="$ac_optarg" ;;
348 -libdir | --libdir | --libdi | --libd)
350 -libdir=* | --libdir=* | --libdi=* | --libd=*)
351 libdir="$ac_optarg" ;;
353 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
354 | --libexe | --libex | --libe)
355 ac_prev=libexecdir ;;
356 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
357 | --libexe=* | --libex=* | --libe=*)
358 libexecdir="$ac_optarg" ;;
360 -localstatedir | --localstatedir | --localstatedi | --localstated \
361 | --localstate | --localstat | --localsta | --localst \
362 | --locals | --local | --loca | --loc | --lo)
363 ac_prev=localstatedir ;;
364 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
365 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
366 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
367 localstatedir="$ac_optarg" ;;
369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
372 mandir="$ac_optarg" ;;
375 # Obsolete; use --without-fp.
378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
388 | --oldin | --oldi | --old | --ol | --o)
389 ac_prev=oldincludedir ;;
390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
393 oldincludedir="$ac_optarg" ;;
395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
398 prefix="$ac_optarg" ;;
400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
401 | --program-pre | --program-pr | --program-p)
402 ac_prev=program_prefix ;;
403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
405 program_prefix="$ac_optarg" ;;
407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
408 | --program-suf | --program-su | --program-s)
409 ac_prev=program_suffix ;;
410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
412 program_suffix="$ac_optarg" ;;
414 -program-transform-name | --program-transform-name \
415 | --program-transform-nam | --program-transform-na \
416 | --program-transform-n | --program-transform- \
417 | --program-transform | --program-transfor \
418 | --program-transfo | --program-transf \
419 | --program-trans | --program-tran \
420 | --progr-tra | --program-tr | --program-t)
421 ac_prev=program_transform_name ;;
422 -program-transform-name=* | --program-transform-name=* \
423 | --program-transform-nam=* | --program-transform-na=* \
424 | --program-transform-n=* | --program-transform-=* \
425 | --program-transform=* | --program-transfor=* \
426 | --program-transfo=* | --program-transf=* \
427 | --program-trans=* | --program-tran=* \
428 | --progr-tra=* | --program-tr=* | --program-t=*)
429 program_transform_name="$ac_optarg" ;;
431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
432 | -silent | --silent | --silen | --sile | --sil)
435 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
437 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
439 sbindir="$ac_optarg" ;;
441 -sharedstatedir | --sharedstatedir | --sharedstatedi \
442 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
443 | --sharedst | --shareds | --shared | --share | --shar \
445 ac_prev=sharedstatedir ;;
446 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
447 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
448 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
450 sharedstatedir="$ac_optarg" ;;
452 -site | --site | --sit)
454 -site=* | --site=* | --sit=*)
457 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
459 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
460 srcdir="$ac_optarg" ;;
462 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
463 | --syscon | --sysco | --sysc | --sys | --sy)
464 ac_prev=sysconfdir ;;
465 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
466 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
467 sysconfdir="$ac_optarg" ;;
469 -target | --target | --targe | --targ | --tar | --ta | --t)
471 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
472 target="$ac_optarg" ;;
474 -v | -verbose | --verbose | --verbos | --verbo | --verb)
477 -version | --version | --versio | --versi | --vers)
478 echo "configure generated by autoconf version 2.13.1"
482 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
492 eval "with_${ac_package}='$ac_optarg'" ;;
494 -without-* | --without-*)
495 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
496 # Reject names that are not valid shell variable names.
497 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
498 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
500 ac_package=`echo $ac_package| sed 's/-/_/g'`
501 eval "with_${ac_package}=no" ;;
504 # Obsolete; use --with-x.
507 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
508 | --x-incl | --x-inc | --x-in | --x-i)
509 ac_prev=x_includes ;;
510 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
511 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
512 x_includes="$ac_optarg" ;;
514 -x-libraries | --x-libraries | --x-librarie | --x-librari \
515 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
516 ac_prev=x_libraries ;;
517 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
518 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
519 x_libraries="$ac_optarg" ;;
521 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
525 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
526 echo "configure: warning: $ac_option: invalid host type" 1>&2
528 if test "x$nonopt" != xNONE; then
529 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
537 if test -n "$ac_prev"; then
538 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
543 # File descriptor usage:
546 # 2 errors and warnings
547 # 3 some systems may open it to /dev/tty
548 # 4 used on the Kubota Titan
549 # 6 checking for... messages and results
550 # 5 compiler messages saved in config.log
551 if test "$silent" = yes; then
559 This file contains any messages produced by compilers while
560 running configure, to aid debugging if configure makes a mistake.
563 # Strip out --no-create and --no-recursion so they do not pile up.
564 # Also quote any args containing shell metacharacters.
569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
570 | --no-cr | --no-c) ;;
571 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
572 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
573 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
574 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
575 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
580 # Only set these to C if already set. These must not be set unconditionally
581 # because not all systems understand e.g. LANG=C (notably SCO).
582 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
583 # Non-C LC_CTYPE values break the ctype check.
584 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
585 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
586 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
587 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
590 rm -rf conftest* confdefs.h
591 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
594 # A filename unique to this package, relative to the directory that
595 # configure is in, which we can look for to find out if srcdir is correct.
596 ac_unique_file=build/version.sh
598 # Find the source files, if location was not specified.
599 if test -z "$srcdir"; then
600 ac_srcdir_defaulted=yes
601 # Try the directory containing this script, then its parent.
603 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
604 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
606 if test ! -r $srcdir/$ac_unique_file; then
610 ac_srcdir_defaulted=no
612 if test ! -r $srcdir/$ac_unique_file; then
613 if test "$ac_srcdir_defaulted" = yes; then
614 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
616 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
619 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
621 # Prefer explicitly selected file to automatically selected ones.
622 if test -z "$CONFIG_SITE"; then
623 if test "x$prefix" != xNONE; then
624 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
626 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
629 for ac_site_file in $CONFIG_SITE; do
630 if test -r "$ac_site_file"; then
631 echo "loading site script $ac_site_file"
638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639 ac_cpp='$CPP $CPPFLAGS'
640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642 cross_compiling=$ac_cv_prog_cc_cross
646 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
647 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
648 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
655 ac_n= ac_c='\c' ac_t=
659 # set unset (borrowed from autoconf 2.49c)
660 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
666 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
669 for ac_dir in build $srcdir/build; do
670 if test -f $ac_dir/install-sh; then
672 ac_install_sh="$ac_aux_dir/install-sh -c"
674 elif test -f $ac_dir/install.sh; then
676 ac_install_sh="$ac_aux_dir/install.sh -c"
678 elif test -f $ac_dir/shtool; then
680 ac_install_sh="$ac_aux_dir/shtool install -c"
684 if test -z "$ac_aux_dir"; then
685 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
687 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
688 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
689 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
691 eval `$ac_aux_dir/version.sh`
692 if test -z "$OL_STRING"; then
693 { echo "configure: error: could not determine version" 1>&2; exit 1; }
696 echo "Configuring $OL_STRING ..."
699 echo $ac_n "checking host system type""... $ac_c" 1>&6
700 echo "configure:701: checking host system type" >&5
701 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
703 # Make sure we can run config.sub.
704 if $ac_config_sub sun4 >/dev/null 2>&1; then :
705 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 ac_cv_host_alias=$host
709 case "$ac_cv_host_alias" in
713 if ac_cv_host_alias=`$ac_config_guess`; then :
714 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
716 *) ac_cv_host_alias=$nonopt ;;
720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
721 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725 echo $ac_n "(cached) $ac_c" 1>&6
728 echo "$ac_t""$ac_cv_host" 1>&6
731 host_alias=$ac_cv_host_alias
732 host_cpu=$ac_cv_host_cpu
733 host_vendor=$ac_cv_host_vendor
734 host_os=$ac_cv_host_os
740 echo $ac_n "checking target system type""... $ac_c" 1>&6
741 echo "configure:742: checking target system type" >&5
742 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
744 # Make sure we can run config.sub.
745 if $ac_config_sub sun4 >/dev/null 2>&1; then :
746 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749 ac_cv_target_alias=$target
750 case "$ac_cv_target_alias" in
754 ac_cv_target_alias=$host_alias ;;
756 *) ac_cv_target_alias=$nonopt ;;
760 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
761 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo $ac_n "(cached) $ac_c" 1>&6
768 echo "$ac_t""$ac_cv_target" 1>&6
771 target_alias=$ac_cv_target_alias
772 target_cpu=$ac_cv_target_cpu
773 target_vendor=$ac_cv_target_vendor
774 target_os=$ac_cv_target_os
780 echo $ac_n "checking build system type""... $ac_c" 1>&6
781 echo "configure:782: checking build system type" >&5
782 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
784 # Make sure we can run config.sub.
785 if $ac_config_sub sun4 >/dev/null 2>&1; then :
786 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
789 ac_cv_build_alias=$build
790 case "$ac_cv_build_alias" in
794 ac_cv_build_alias=$host_alias ;;
796 *) ac_cv_build_alias=$nonopt ;;
800 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
801 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
805 echo $ac_n "(cached) $ac_c" 1>&6
808 echo "$ac_t""$ac_cv_build" 1>&6
811 build_alias=$ac_cv_build_alias
812 build_cpu=$ac_cv_build_cpu
813 build_vendor=$ac_cv_build_vendor
814 build_os=$ac_cv_build_os
820 # Do some error checking and defaulting for the host and target type.
822 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
825 # 1. You are not allowed to specify --host, --target, and nonopt at the
827 # 2. Host defaults to nonopt.
828 # 3. If nonopt is not specified, then host defaults to the current host,
829 # as determined by config.guess.
830 # 4. Target and build default to nonopt.
831 # 5. If nonopt is not specified, then target and build default to host.
833 # The aliases save the names the user supplied, while $host etc.
834 # will get canonicalized.
835 case $host---$target---$nonopt in
836 NONE---*---* | *---NONE---* | *---*---NONE) ;;
837 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
840 test "$host_alias" != "$target_alias" &&
841 test "$program_prefix$program_suffix$program_transform_name" = \
843 program_prefix=${target_alias}-
846 # Find a good install program. We prefer a C program (faster),
847 # so one script is as good as another. But avoid the broken or
848 # incompatible versions:
849 # SysV /etc/install, /usr/sbin/install
850 # SunOS /usr/etc/install
853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
856 # ./install, which can be erroneously created by make from ./install.sh.
857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
858 echo "configure:859: checking for a BSD compatible install" >&5
859 if test -z "$INSTALL"; then
860 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
864 for ac_dir in $PATH; do
865 # Account for people who put trailing slashes in PATH elements.
867 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 # OSF1 and SCO ODT 3.0 have their own names for install.
870 # Don't use installbsd from OSF since it installs stuff as root
872 for ac_prog in ginstall scoinst install; do
873 if test -f $ac_dir/$ac_prog; then
874 if test $ac_prog = install &&
875 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # AIX install. It has an incompatible calling convention.
878 elif test $ac_prog = install &&
879 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
880 # program-specific install script used by HP pwplus--don't use.
883 ac_cv_path_install="$ac_dir/$ac_prog -c"
894 if test "${ac_cv_path_install+set}" = set; then
895 INSTALL="$ac_cv_path_install"
897 # As a last resort, use the slow shell script. We don't cache a
898 # path for INSTALL within a source directory, because that will
899 # break other packages using the cache if that directory is
900 # removed, or if the path is relative.
901 INSTALL="$ac_install_sh"
904 echo "$ac_t""$INSTALL" 1>&6
906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
907 # It thinks the first close brace ends the variable substitution.
908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
912 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
914 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
915 echo "configure:916: checking whether build environment is sane" >&5
918 echo timestamp > conftestfile
919 # Do `set' in a subshell so we don't clobber the current shell's
920 # arguments. Must try -L first in case configure is actually a
921 # symlink; some systems play weird games with the mod time of symlinks
922 # (eg FreeBSD returns the mod time of the symlink's containing
925 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
926 if test "$*" = "X"; then
928 set X `ls -t $srcdir/configure conftestfile`
930 if test "$*" != "X $srcdir/configure conftestfile" \
931 && test "$*" != "X conftestfile $srcdir/configure"; then
933 # If neither matched, then we have a broken ls. This can happen
934 # if, for instance, CONFIG_SHELL is bash and it inherits a
935 # broken ls alias from the environment. This has actually
936 # happened. Such a system could not be considered "sane".
937 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
938 alias in your environment" 1>&2; exit 1; }
941 test "$2" = conftestfile
947 { echo "configure: error: newly created file is older than distributed files!
948 Check your system clock" 1>&2; exit 1; }
951 echo "$ac_t""yes" 1>&6
952 if test "$program_transform_name" = s,x,x,; then
953 program_transform_name=
955 # Double any \ or $. echo might interpret backslashes.
956 cat <<\EOF_SED > conftestsed
957 s,\\,\\\\,g; s,\$,$$,g
959 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
962 test "$program_prefix" != NONE &&
963 program_transform_name="s,^,${program_prefix},;$program_transform_name"
964 # Use a double $ so make ignores it.
965 test "$program_suffix" != NONE &&
966 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
968 # sed with no file args requires a program.
969 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
971 for ac_prog in mawk gawk nawk awk
973 # Extract the first word of "$ac_prog", so it can be a program name with args.
974 set dummy $ac_prog; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 if test -n "$AWK"; then
981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
985 for ac_dir in $ac_dummy; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_AWK="$ac_prog"
995 AWK="$ac_cv_prog_AWK"
996 if test -n "$AWK"; then
997 echo "$ac_t""$AWK" 1>&6
999 echo "$ac_t""no" 1>&6
1002 test -n "$AWK" && break
1005 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${MAKE-make} sets \${MAKE}" >&5
1007 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1008 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftestmake <<\EOF
1013 @echo 'ac_maketemp="${MAKE}"'
1015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1016 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1017 if test -n "$ac_maketemp"; then
1018 eval ac_cv_prog_make_${ac_make}_set=yes
1020 eval ac_cv_prog_make_${ac_make}_set=no
1024 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1028 echo "$ac_t""no" 1>&6
1029 SET_MAKE="MAKE=${MAKE-make}"
1038 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1039 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1044 missing_dir=`cd $ac_aux_dir && pwd`
1045 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working aclocal" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 ACLOCAL="$missing_dir/missing aclocal"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoconf" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOCONF="$missing_dir/missing autoconf"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working automake" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (automake --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 AUTOMAKE="$missing_dir/missing automake"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working autoheader" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1090 AUTOHEADER=autoheader
1091 echo "$ac_t""found" 1>&6
1093 AUTOHEADER="$missing_dir/missing autoheader"
1094 echo "$ac_t""missing" 1>&6
1097 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1098 echo "configure:1099: checking for working makeinfo" >&5
1099 # Run test in a subshell; some versions of sh will print an error if
1100 # an executable is not found, even if stderr is redirected.
1101 # Redirect stdin to placate older versions of autoconf. Sigh.
1102 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1104 echo "$ac_t""found" 1>&6
1106 MAKEINFO="$missing_dir/missing makeinfo"
1107 echo "$ac_t""missing" 1>&6
1110 install_sh="$missing_dir/install-sh"
1111 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1113 for ac_prog in gnutar gtar tar
1115 # Extract the first word of "$ac_prog", so it can be a program name with args.
1116 set dummy $ac_prog; ac_word=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$AMTAR"; then
1123 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 ac_cv_prog_AMTAR="$ac_prog"
1137 AMTAR="$ac_cv_prog_AMTAR"
1138 if test -n "$AMTAR"; then
1139 echo "$ac_t""$AMTAR" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 test -n "$AMTAR" && break
1149 if test -n "$AMTAR"; then
1150 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1155 cat >> confdefs.h <<EOF
1156 #define OPENLDAP_PACKAGE "$PACKAGE"
1159 cat >> confdefs.h <<EOF
1160 #define OPENLDAP_VERSION "$VERSION"
1164 cat >> confdefs.h <<EOF
1165 #define LDAP_VENDOR_VERSION $OL_API_INC
1168 cat >> confdefs.h <<EOF
1169 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1172 cat >> confdefs.h <<EOF
1173 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1176 cat >> confdefs.h <<EOF
1177 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1181 OPENLDAP_LIBVERSION=$OL_API_LIB
1185 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1186 echo "configure:1187: checking configure arguments" >&5
1191 ldap_subdir="/openldap"
1193 # Check whether --with-subdir or --without-subdir was given.
1194 if test "${with_subdir+set}" = set; then
1195 withval="$with_subdir"
1202 ldap_subdir="$withval"
1205 ldap_subdir="/$withval"
1212 # OpenLDAP --enable-debug
1213 # Check whether --enable-debug or --disable-debug was given.
1214 if test "${enable_debug+set}" = set; then
1215 enableval="$enable_debug"
1218 for ol_val in auto yes no ; do
1219 if test "$enableval" = "$ol_val" ; then
1223 if test "$ol_arg" = "invalid" ; then
1224 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1226 ol_enable_debug="$ol_arg"
1229 ol_enable_debug="yes"
1231 # end --enable-debug
1232 # OpenLDAP --enable-syslog
1233 # Check whether --enable-syslog or --disable-syslog was given.
1234 if test "${enable_syslog+set}" = set; then
1235 enableval="$enable_syslog"
1238 for ol_val in auto yes no ; do
1239 if test "$enableval" = "$ol_val" ; then
1243 if test "$ol_arg" = "invalid" ; then
1244 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1246 ol_enable_syslog="$ol_arg"
1249 ol_enable_syslog="auto"
1251 # end --enable-syslog
1252 # OpenLDAP --enable-proctitle
1253 # Check whether --enable-proctitle or --disable-proctitle was given.
1254 if test "${enable_proctitle+set}" = set; then
1255 enableval="$enable_proctitle"
1258 for ol_val in auto yes no ; do
1259 if test "$enableval" = "$ol_val" ; then
1263 if test "$ol_arg" = "invalid" ; then
1264 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1266 ol_enable_proctitle="$ol_arg"
1269 ol_enable_proctitle="yes"
1271 # end --enable-proctitle
1272 # OpenLDAP --enable-cache
1273 # Check whether --enable-cache or --disable-cache was given.
1274 if test "${enable_cache+set}" = set; then
1275 enableval="$enable_cache"
1278 for ol_val in auto yes no ; do
1279 if test "$enableval" = "$ol_val" ; then
1283 if test "$ol_arg" = "invalid" ; then
1284 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1286 ol_enable_cache="$ol_arg"
1289 ol_enable_cache="no"
1291 # end --enable-cache
1292 # OpenLDAP --enable-referrals
1293 # Check whether --enable-referrals or --disable-referrals was given.
1294 if test "${enable_referrals+set}" = set; then
1295 enableval="$enable_referrals"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1306 ol_enable_referrals="$ol_arg"
1309 ol_enable_referrals="no"
1311 # end --enable-referrals
1312 # OpenLDAP --enable-kbind
1313 # Check whether --enable-kbind or --disable-kbind was given.
1314 if test "${enable_kbind+set}" = set; then
1315 enableval="$enable_kbind"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1326 ol_enable_kbind="$ol_arg"
1329 ol_enable_kbind="no"
1331 # end --enable-kbind
1332 # OpenLDAP --enable-ipv6
1333 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1334 if test "${enable_ipv6+set}" = set; then
1335 enableval="$enable_ipv6"
1338 for ol_val in auto yes no ; do
1339 if test "$enableval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1346 ol_enable_ipv6="$ol_arg"
1349 ol_enable_ipv6="auto"
1352 # OpenLDAP --enable-local
1353 # Check whether --enable-local or --disable-local was given.
1354 if test "${enable_local+set}" = set; then
1355 enableval="$enable_local"
1358 for ol_val in auto yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1366 ol_enable_local="$ol_arg"
1369 ol_enable_local="auto"
1371 # end --enable-local
1372 # OpenLDAP --enable-rewrite
1373 # Check whether --enable-rewrite or --disable-rewrite was given.
1374 if test "${enable_rewrite+set}" = set; then
1375 enableval="$enable_rewrite"
1378 for ol_val in auto yes no ; do
1379 if test "$enableval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1386 ol_enable_rewrite="$ol_arg"
1389 ol_enable_rewrite="no"
1391 # end --enable-rewrite
1392 # OpenLDAP --enable-x_compile
1393 # Check whether --enable-x_compile or --disable-x_compile was given.
1394 if test "${enable_x_compile+set}" = set; then
1395 enableval="$enable_x_compile"
1398 for ol_val in yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1406 ol_enable_x_compile="$ol_arg"
1409 ol_enable_x_compile="no"
1411 # end --enable-x_compile
1414 # OpenLDAP --with-cyrus_sasl
1415 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1416 if test "${with_cyrus_sasl+set}" = set; then
1417 withval="$with_cyrus_sasl"
1420 for ol_val in auto yes no ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1428 ol_with_cyrus_sasl="$ol_arg"
1431 ol_with_cyrus_sasl="auto"
1433 # end --with-cyrus_sasl
1435 # OpenLDAP --with-fetch
1436 # Check whether --with-fetch or --without-fetch was given.
1437 if test "${with_fetch+set}" = set; then
1438 withval="$with_fetch"
1441 for ol_val in auto yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1449 ol_with_fetch="$ol_arg"
1452 ol_with_fetch="auto"
1456 # OpenLDAP --with-kerberos
1457 # Check whether --with-kerberos or --without-kerberos was given.
1458 if test "${with_kerberos+set}" = set; then
1459 withval="$with_kerberos"
1462 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1470 ol_with_kerberos="$ol_arg"
1473 ol_with_kerberos="auto"
1475 # end --with-kerberos
1477 # OpenLDAP --with-readline
1478 # Check whether --with-readline or --without-readline was given.
1479 if test "${with_readline+set}" = set; then
1480 withval="$with_readline"
1483 for ol_val in auto yes no ; do
1484 if test "$withval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1491 ol_with_readline="$ol_arg"
1494 ol_with_readline="auto"
1496 # end --with-readline
1498 # OpenLDAP --with-threads
1499 # Check whether --with-threads or --without-threads was given.
1500 if test "${with_threads+set}" = set; then
1501 withval="$with_threads"
1504 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1512 ol_with_threads="$ol_arg"
1515 ol_with_threads="auto"
1517 # end --with-threads
1519 # OpenLDAP --with-tls
1520 # Check whether --with-tls or --without-tls was given.
1521 if test "${with_tls+set}" = set; then
1525 for ol_val in auto ssleay openssl yes no ; do
1526 if test "$withval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1533 ol_with_tls="$ol_arg"
1540 # OpenLDAP --with-yielding_select
1541 # Check whether --with-yielding_select or --without-yielding_select was given.
1542 if test "${with_yielding_select+set}" = set; then
1543 withval="$with_yielding_select"
1546 for ol_val in auto yes no manual ; do
1547 if test "$withval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1554 ol_with_yielding_select="$ol_arg"
1557 ol_with_yielding_select="auto"
1559 # end --with-yielding_select
1563 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1564 if test "${with_xxslapdoptions+set}" = set; then
1565 withval="$with_xxslapdoptions"
1569 # OpenLDAP --enable-slapd
1570 # Check whether --enable-slapd or --disable-slapd was given.
1571 if test "${enable_slapd+set}" = set; then
1572 enableval="$enable_slapd"
1575 for ol_val in auto yes no ; do
1576 if test "$enableval" = "$ol_val" ; then
1580 if test "$ol_arg" = "invalid" ; then
1581 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1583 ol_enable_slapd="$ol_arg"
1586 ol_enable_slapd="yes"
1588 # end --enable-slapd
1589 # OpenLDAP --enable-aci
1590 # Check whether --enable-aci or --disable-aci was given.
1591 if test "${enable_aci+set}" = set; then
1592 enableval="$enable_aci"
1595 for ol_val in auto yes no ; do
1596 if test "$enableval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1603 ol_enable_aci="$ol_arg"
1609 # OpenLDAP --enable-cleartext
1610 # Check whether --enable-cleartext or --disable-cleartext was given.
1611 if test "${enable_cleartext+set}" = set; then
1612 enableval="$enable_cleartext"
1615 for ol_val in auto yes no ; do
1616 if test "$enableval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1623 ol_enable_cleartext="$ol_arg"
1626 ol_enable_cleartext="yes"
1628 # end --enable-cleartext
1629 # OpenLDAP --enable-crypt
1630 # Check whether --enable-crypt or --disable-crypt was given.
1631 if test "${enable_crypt+set}" = set; then
1632 enableval="$enable_crypt"
1635 for ol_val in auto yes no ; do
1636 if test "$enableval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1643 ol_enable_crypt="$ol_arg"
1646 ol_enable_crypt="no"
1648 # end --enable-crypt
1649 # OpenLDAP --enable-dynamic
1650 # Check whether --enable-dynamic or --disable-dynamic was given.
1651 if test "${enable_dynamic+set}" = set; then
1652 enableval="$enable_dynamic"
1655 for ol_val in auto yes no ; do
1656 if test "$enableval" = "$ol_val" ; then
1660 if test "$ol_arg" = "invalid" ; then
1661 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1663 ol_enable_dynamic="$ol_arg"
1666 ol_enable_dynamic="no"
1668 # end --enable-dynamic
1669 # OpenLDAP --enable-kpasswd
1670 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1671 if test "${enable_kpasswd+set}" = set; then
1672 enableval="$enable_kpasswd"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1683 ol_enable_kpasswd="$ol_arg"
1686 ol_enable_kpasswd="no"
1688 # end --enable-kpasswd
1689 # OpenLDAP --enable-lmpasswd
1690 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1691 if test "${enable_lmpasswd+set}" = set; then
1692 enableval="$enable_lmpasswd"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1703 ol_enable_lmpasswd="$ol_arg"
1706 ol_enable_lmpasswd="no"
1708 # end --enable-lmpasswd
1709 # OpenLDAP --enable-spasswd
1710 # Check whether --enable-spasswd or --disable-spasswd was given.
1711 if test "${enable_spasswd+set}" = set; then
1712 enableval="$enable_spasswd"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1723 ol_enable_spasswd="$ol_arg"
1726 ol_enable_spasswd="no"
1728 # end --enable-spasswd
1729 # OpenLDAP --enable-modules
1730 # Check whether --enable-modules or --disable-modules was given.
1731 if test "${enable_modules+set}" = set; then
1732 enableval="$enable_modules"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1743 ol_enable_modules="$ol_arg"
1746 ol_enable_modules="no"
1748 # end --enable-modules
1749 # OpenLDAP --enable-phonetic
1750 # Check whether --enable-phonetic or --disable-phonetic was given.
1751 if test "${enable_phonetic+set}" = set; then
1752 enableval="$enable_phonetic"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1763 ol_enable_phonetic="$ol_arg"
1766 ol_enable_phonetic="no"
1768 # end --enable-phonetic
1769 # OpenLDAP --enable-rlookups
1770 # Check whether --enable-rlookups or --disable-rlookups was given.
1771 if test "${enable_rlookups+set}" = set; then
1772 enableval="$enable_rlookups"
1775 for ol_val in auto yes no ; do
1776 if test "$enableval" = "$ol_val" ; then
1780 if test "$ol_arg" = "invalid" ; then
1781 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1783 ol_enable_rlookups="$ol_arg"
1786 ol_enable_rlookups="no"
1788 # end --enable-rlookups
1789 # OpenLDAP --enable-slp
1790 # Check whether --enable-slp or --disable-slp was given.
1791 if test "${enable_slp+set}" = set; then
1792 enableval="$enable_slp"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1803 ol_enable_slp="$ol_arg"
1809 # OpenLDAP --enable-wrappers
1810 # Check whether --enable-wrappers or --disable-wrappers was given.
1811 if test "${enable_wrappers+set}" = set; then
1812 enableval="$enable_wrappers"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1823 ol_enable_wrappers="$ol_arg"
1826 ol_enable_wrappers="no"
1828 # end --enable-wrappers
1830 # OpenLDAP --enable-bdb
1831 # Check whether --enable-bdb or --disable-bdb was given.
1832 if test "${enable_bdb+set}" = set; then
1833 enableval="$enable_bdb"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1844 ol_enable_bdb="$ol_arg"
1850 # OpenLDAP --with-bdb_module
1851 # Check whether --with-bdb_module or --without-bdb_module was given.
1852 if test "${with_bdb_module+set}" = set; then
1853 withval="$with_bdb_module"
1856 for ol_val in static dynamic ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1864 ol_with_bdb_module="$ol_arg"
1867 ol_with_bdb_module="static"
1869 # end --with-bdb_module
1871 # OpenLDAP --enable-dnssrv
1872 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1873 if test "${enable_dnssrv+set}" = set; then
1874 enableval="$enable_dnssrv"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1885 ol_enable_dnssrv="$ol_arg"
1888 ol_enable_dnssrv="no"
1890 # end --enable-dnssrv
1891 # OpenLDAP --with-dnssrv_module
1892 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1893 if test "${with_dnssrv_module+set}" = set; then
1894 withval="$with_dnssrv_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1905 ol_with_dnssrv_module="$ol_arg"
1908 ol_with_dnssrv_module="static"
1910 # end --with-dnssrv_module
1912 # OpenLDAP --enable-ldap
1913 # Check whether --enable-ldap or --disable-ldap was given.
1914 if test "${enable_ldap+set}" = set; then
1915 enableval="$enable_ldap"
1918 for ol_val in auto yes no ; do
1919 if test "$enableval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1926 ol_enable_ldap="$ol_arg"
1932 # OpenLDAP --with-ldap_module
1933 # Check whether --with-ldap_module or --without-ldap_module was given.
1934 if test "${with_ldap_module+set}" = set; then
1935 withval="$with_ldap_module"
1938 for ol_val in static dynamic ; do
1939 if test "$withval" = "$ol_val" ; then
1943 if test "$ol_arg" = "invalid" ; then
1944 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1946 ol_with_ldap_module="$ol_arg"
1949 ol_with_ldap_module="static"
1951 # end --with-ldap_module
1953 # OpenLDAP --enable-ldbm
1954 # Check whether --enable-ldbm or --disable-ldbm was given.
1955 if test "${enable_ldbm+set}" = set; then
1956 enableval="$enable_ldbm"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1967 ol_enable_ldbm="$ol_arg"
1970 ol_enable_ldbm="yes"
1973 # OpenLDAP --with-ldbm_api
1974 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1975 if test "${with_ldbm_api+set}" = set; then
1976 withval="$with_ldbm_api"
1979 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1980 if test "$withval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1987 ol_with_ldbm_api="$ol_arg"
1990 ol_with_ldbm_api="auto"
1992 # end --with-ldbm_api
1994 # OpenLDAP --with-ldbm_module
1995 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1996 if test "${with_ldbm_module+set}" = set; then
1997 withval="$with_ldbm_module"
2000 for ol_val in static dynamic ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2008 ol_with_ldbm_module="$ol_arg"
2011 ol_with_ldbm_module="static"
2013 # end --with-ldbm_module
2015 # OpenLDAP --with-ldbm_type
2016 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2017 if test "${with_ldbm_type+set}" = set; then
2018 withval="$with_ldbm_type"
2021 for ol_val in auto btree hash ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2029 ol_with_ldbm_type="$ol_arg"
2032 ol_with_ldbm_type="auto"
2034 # end --with-ldbm_type
2036 # OpenLDAP --enable-meta
2037 # Check whether --enable-meta or --disable-meta was given.
2038 if test "${enable_meta+set}" = set; then
2039 enableval="$enable_meta"
2042 for ol_val in auto yes no ; do
2043 if test "$enableval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2050 ol_enable_meta="$ol_arg"
2056 # OpenLDAP --with-meta_module
2057 # Check whether --with-meta_module or --without-meta_module was given.
2058 if test "${with_meta_module+set}" = set; then
2059 withval="$with_meta_module"
2062 for ol_val in static dynamic ; do
2063 if test "$withval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2070 ol_with_meta_module="$ol_arg"
2073 ol_with_meta_module="static"
2075 # end --with-meta_module
2077 # OpenLDAP --enable-monitor
2078 # Check whether --enable-monitor or --disable-monitor was given.
2079 if test "${enable_monitor+set}" = set; then
2080 enableval="$enable_monitor"
2083 for ol_val in auto yes no ; do
2084 if test "$enableval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2091 ol_enable_monitor="$ol_arg"
2094 ol_enable_monitor="no"
2096 # end --enable-monitor
2097 # OpenLDAP --with-monitor_module
2098 # Check whether --with-monitor_module or --without-monitor_module was given.
2099 if test "${with_monitor_module+set}" = set; then
2100 withval="$with_monitor_module"
2103 for ol_val in static dynamic ; do
2104 if test "$withval" = "$ol_val" ; then
2108 if test "$ol_arg" = "invalid" ; then
2109 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2111 ol_with_monitor_module="$ol_arg"
2114 ol_with_monitor_module="static"
2116 # end --with-monitor_module
2118 # OpenLDAP --enable-passwd
2119 # Check whether --enable-passwd or --disable-passwd was given.
2120 if test "${enable_passwd+set}" = set; then
2121 enableval="$enable_passwd"
2124 for ol_val in auto yes no ; do
2125 if test "$enableval" = "$ol_val" ; then
2129 if test "$ol_arg" = "invalid" ; then
2130 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2132 ol_enable_passwd="$ol_arg"
2135 ol_enable_passwd="no"
2137 # end --enable-passwd
2138 # OpenLDAP --with-passwd_module
2139 # Check whether --with-passwd_module or --without-passwd_module was given.
2140 if test "${with_passwd_module+set}" = set; then
2141 withval="$with_passwd_module"
2144 for ol_val in static dynamic ; do
2145 if test "$withval" = "$ol_val" ; then
2149 if test "$ol_arg" = "invalid" ; then
2150 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2152 ol_with_passwd_module="$ol_arg"
2155 ol_with_passwd_module="static"
2157 # end --with-passwd_module
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in auto yes no ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --with-perl_module
2180 # Check whether --with-perl_module or --without-perl_module was given.
2181 if test "${with_perl_module+set}" = set; then
2182 withval="$with_perl_module"
2185 for ol_val in static dynamic ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2193 ol_with_perl_module="$ol_arg"
2196 ol_with_perl_module="static"
2198 # end --with-perl_module
2200 # OpenLDAP --enable-shell
2201 # Check whether --enable-shell or --disable-shell was given.
2202 if test "${enable_shell+set}" = set; then
2203 enableval="$enable_shell"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2214 ol_enable_shell="$ol_arg"
2217 ol_enable_shell="no"
2219 # end --enable-shell
2220 # OpenLDAP --with-shell_module
2221 # Check whether --with-shell_module or --without-shell_module was given.
2222 if test "${with_shell_module+set}" = set; then
2223 withval="$with_shell_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2234 ol_with_shell_module="$ol_arg"
2237 ol_with_shell_module="static"
2239 # end --with-shell_module
2241 # OpenLDAP --enable-sql
2242 # Check whether --enable-sql or --disable-sql was given.
2243 if test "${enable_sql+set}" = set; then
2244 enableval="$enable_sql"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2255 ol_enable_sql="$ol_arg"
2261 # OpenLDAP --with-sql_module
2262 # Check whether --with-sql_module or --without-sql_module was given.
2263 if test "${with_sql_module+set}" = set; then
2264 withval="$with_sql_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2275 ol_with_sql_module="$ol_arg"
2278 ol_with_sql_module="static"
2280 # end --with-sql_module
2282 # OpenLDAP --enable-tcl
2283 # Check whether --enable-tcl or --disable-tcl was given.
2284 if test "${enable_tcl+set}" = set; then
2285 enableval="$enable_tcl"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2296 ol_enable_tcl="$ol_arg"
2302 # OpenLDAP --with-tcl_module
2303 # Check whether --with-tcl_module or --without-tcl_module was given.
2304 if test "${with_tcl_module+set}" = set; then
2305 withval="$with_tcl_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2316 ol_with_tcl_module="$ol_arg"
2319 ol_with_tcl_module="static"
2321 # end --with-tcl_module
2324 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2325 if test "${with_xxslurpdoptions+set}" = set; then
2326 withval="$with_xxslurpdoptions"
2330 # OpenLDAP --enable-slurpd
2331 # Check whether --enable-slurpd or --disable-slurpd was given.
2332 if test "${enable_slurpd+set}" = set; then
2333 enableval="$enable_slurpd"
2336 for ol_val in auto yes no ; do
2337 if test "$enableval" = "$ol_val" ; then
2341 if test "$ol_arg" = "invalid" ; then
2342 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2344 ol_enable_slurpd="$ol_arg"
2347 ol_enable_slurpd="auto"
2349 # end --enable-slurpd
2351 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2352 if test "${with_xxliboptions+set}" = set; then
2353 withval="$with_xxliboptions"
2357 # Check whether --enable-static or --disable-static was given.
2358 if test "${enable_static+set}" = set; then
2359 enableval="$enable_static"
2360 p=${PACKAGE-default}
2361 case "$enableval" in
2362 yes) enable_static=yes ;;
2363 no) enable_static=no ;;
2366 # Look at the argument we got. We use all the common list separators.
2367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2368 for pkg in $enableval; do
2369 if test "X$pkg" = "X$p"; then
2380 # Check whether --enable-shared or --disable-shared was given.
2381 if test "${enable_shared+set}" = set; then
2382 enableval="$enable_shared"
2383 p=${PACKAGE-default}
2384 case "$enableval" in
2385 yes) enable_shared=yes ;;
2386 no) enable_shared=no ;;
2389 # Look at the argument we got. We use all the common list separators.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2391 for pkg in $enableval; do
2392 if test "X$pkg" = "X$p"; then
2406 if test $ol_enable_slapd = no ; then
2407 if test $ol_enable_bdb = yes ; then
2408 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2410 if test $ol_enable_dnssrv = yes ; then
2411 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2413 if test $ol_enable_ldap = yes ; then
2414 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2416 if test $ol_enable_ldbm = yes ; then
2417 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2419 if test $ol_enable_meta = yes ; then
2420 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2422 if test $ol_enable_monitor = yes ; then
2423 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2425 if test $ol_enable_passwd = yes ; then
2426 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2428 if test $ol_enable_perl = yes ; then
2429 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2431 if test $ol_enable_shell = yes ; then
2432 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2434 if test $ol_enable_tcl = yes ; then
2435 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2437 if test $ol_enable_sql = yes ; then
2438 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2440 if test $ol_enable_modules = yes ; then
2441 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2443 if test $ol_enable_wrappers = yes ; then
2444 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2446 if test $ol_enable_phonetic = yes ; then
2447 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2449 if test $ol_enable_rlookups = yes ; then
2450 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2452 if test $ol_enable_aci = yes ; then
2453 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2455 if test $ol_with_ldbm_api != auto ; then
2456 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2458 if test $ol_with_ldbm_type != auto ; then
2459 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2461 if test $ol_with_bdb_module != static ; then
2462 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2464 if test $ol_with_dnssrv_module != static ; then
2465 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2467 if test $ol_with_ldap_module != static ; then
2468 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2470 if test $ol_with_ldbm_module != static ; then
2471 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2473 if test $ol_with_meta_module != static ; then
2474 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2476 if test $ol_with_monitor_module != static ; then
2477 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2479 if test $ol_with_passwd_module != static ; then
2480 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2482 if test $ol_with_perl_module != static ; then
2483 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2485 if test $ol_with_shell_module != static ; then
2486 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2488 if test $ol_with_tcl_module != static ; then
2489 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2491 if test $ol_with_sql_module != static ; then
2492 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2494 if test $ol_enable_slurpd = yes ; then
2495 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2497 if test $ol_enable_rewrite = yes ; then
2498 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2501 # force settings to no
2507 ol_enable_monitor=no
2514 ol_enable_modules=no
2515 ol_enable_phonetic=no
2516 ol_enable_rlookups=no
2518 ol_enable_wrappers=no
2519 ol_enable_dynamic=no
2522 ol_with_ldbm_type=no
2524 ol_with_bdb_module=static
2525 ol_with_dnssrv_module=static
2526 ol_with_ldap_module=static
2527 ol_with_ldbm_module=static
2528 ol_with_meta_module=static
2529 ol_with_monitor_module=static
2530 ol_with_passwd_module=static
2531 ol_with_perl_module=static
2532 ol_with_shell_module=static
2533 ol_with_tcl_module=static
2534 ol_with_sql_module=static
2538 ol_enable_rewrite=no
2540 elif test $ol_enable_ldbm = no ; then
2542 if test $ol_with_ldbm_api != auto ; then
2543 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2546 if test $ol_with_ldbm_type != auto ; then
2547 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2550 if test $ol_with_ldbm_module != static ; then
2551 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2554 if test $ol_enable_modules != yes -a \
2555 $ol_enable_bdb = no -a \
2556 $ol_enable_dnssrv = no -a \
2557 $ol_enable_ldap = no -a \
2558 $ol_enable_meta = no -a \
2559 $ol_enable_monitor = no -a \
2560 $ol_enable_passwd = no -a \
2561 $ol_enable_perl = no -a \
2562 $ol_enable_shell = no -a \
2563 $ol_enable_sql = no -a \
2564 $ol_enable_tcl = no ; then
2566 if test $ol_enable_slapd = yes ; then
2567 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2569 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2575 ol_with_ldbm_type=no
2576 ol_with_ldbm_module=static
2578 if test $ol_enable_bdb != no ; then
2579 ol_with_ldbm_api=berkeley
2583 if test $ol_with_ldbm_api = gdbm -a \
2584 $ol_with_ldbm_type = btree ; then
2585 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2587 if test $ol_with_ldbm_api = mdbm -a \
2588 $ol_with_ldbm_type = btree ; then
2589 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2591 if test $ol_with_ldbm_api = ndbm -a \
2592 $ol_with_ldbm_type = btree ; then
2593 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2596 if test $ol_enable_bdb = yes ; then
2597 if test $ol_with_ldbm_api = auto ; then
2598 ol_with_ldbm_api=berkeley
2599 elif test $ol_with_ldbm_api != berkeley ; then
2600 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2603 elif test $ol_enable_bdb = auto ; then
2604 if test $ol_with_ldbm_api != berkeley \
2605 -o $ol_with_ldbm_api != auto ; then
2606 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2612 if test $ol_enable_slurpd = yes ; then
2613 if test $ol_with_threads = no ; then
2614 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2618 if test $ol_enable_lmpasswd = yes ; then
2619 if test $ol_with_tls = no ; then
2620 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2624 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2625 if test $ol_with_kerberos = no ; then
2626 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2627 elif $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=
2714 cat >> confdefs.h <<\EOF
2715 #define HAVE_MKVERSION 1
2723 *-*-aix*) if test -z "$CC" ; then
2724 case "$ol_with_threads" in
2725 auto | yes | posix) ol_aix_threads=yes ;;
2731 if test $ol_aix_threads = yes ; then
2732 if test -z "${CC}" ; then
2733 for ac_prog in cc_r xlc_r cc
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2738 echo "configure:2739: checking for $ac_word" >&5
2739 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2747 for ac_dir in $ac_dummy; do
2748 test -z "$ac_dir" && ac_dir=.
2749 if test -f $ac_dir/$ac_word; then
2750 ac_cv_prog_CC="$ac_prog"
2758 if test -n "$CC"; then
2759 echo "$ac_t""$CC" 1>&6
2761 echo "$ac_t""no" 1>&6
2764 test -n "$CC" && break
2768 if test "$CC" = cc ; then
2769 if test $ol_with_threads != auto ; then
2770 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2772 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2778 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2779 ol_with_threads=posix
2780 ol_cv_pthread_create=yes
2784 if test -z "${CC}"; then
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2799 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if test -f $ac_dir/$ac_word; then
2802 ac_cv_prog_CC="$ac_prog"
2810 if test -n "$CC"; then
2811 echo "$ac_t""$CC" 1>&6
2813 echo "$ac_t""no" 1>&6
2816 test -n "$CC" && break
2824 # Check whether --enable-fast-install or --disable-fast-install was given.
2825 if test "${enable_fast_install+set}" = set; then
2826 enableval="$enable_fast_install"
2827 p=${PACKAGE-default}
2828 case "$enableval" in
2829 yes) enable_fast_install=yes ;;
2830 no) enable_fast_install=no ;;
2832 enable_fast_install=no
2833 # Look at the argument we got. We use all the common list separators.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2835 for pkg in $enableval; do
2836 if test "X$pkg" = "X$p"; then
2837 enable_fast_install=yes
2844 enable_fast_install=yes
2847 # Extract the first word of "ranlib", so it can be a program name with args.
2848 set dummy ranlib; ac_word=$2
2849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_word" >&5
2851 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 if test -n "$RANLIB"; then
2855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2859 for ac_dir in $ac_dummy; do
2860 test -z "$ac_dir" && ac_dir=.
2861 if test -f $ac_dir/$ac_word; then
2862 ac_cv_prog_RANLIB="ranlib"
2867 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2870 RANLIB="$ac_cv_prog_RANLIB"
2871 if test -n "$RANLIB"; then
2872 echo "$ac_t""$RANLIB" 1>&6
2874 echo "$ac_t""no" 1>&6
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_word" >&5
2881 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2889 for ac_dir in $ac_dummy; do
2890 test -z "$ac_dir" && ac_dir=.
2891 if test -f $ac_dir/$ac_word; then
2900 if test -n "$CC"; then
2901 echo "$ac_t""$CC" 1>&6
2903 echo "$ac_t""no" 1>&6
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2920 for ac_dir in $ac_dummy; do
2921 test -z "$ac_dir" && ac_dir=.
2922 if test -f $ac_dir/$ac_word; then
2923 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2924 ac_prog_rejected=yes
2932 if test $ac_prog_rejected = yes; then
2933 # We found a bogon in the path, so make sure we never use it.
2934 set dummy $ac_cv_prog_CC
2936 if test $# -gt 0; then
2937 # We chose a different compiler from the bogus one.
2938 # However, it has the same basename, so the bogon will be chosen
2939 # first if we set CC to just the basename; use the full file name.
2941 set dummy "$ac_dir/$ac_word" "$@"
2949 if test -n "$CC"; then
2950 echo "$ac_t""$CC" 1>&6
2952 echo "$ac_t""no" 1>&6
2955 if test -z "$CC"; then
2956 case "`uname -s`" in
2957 *win32* | *WIN32* | *CYGWIN*)
2958 # Extract the first word of "cl", so it can be a program name with args.
2959 set dummy cl; ac_word=$2
2960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_word" >&5
2962 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2970 for ac_dir in $ac_dummy; do
2971 test -z "$ac_dir" && ac_dir=.
2972 if test -f $ac_dir/$ac_word; then
2981 if test -n "$CC"; then
2982 echo "$ac_t""$CC" 1>&6
2984 echo "$ac_t""no" 1>&6
2989 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2993 echo "configure:2994: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3000 cross_compiling=$ac_cv_prog_cc_cross
3002 cat > conftest.$ac_ext << EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3009 if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3010 ac_cv_prog_cc_works=yes
3011 # If we can't run a trivial program, we are probably using a cross compiler.
3012 if (./conftest; exit) 2>/dev/null; then
3013 ac_cv_prog_cc_cross=no
3015 ac_cv_prog_cc_cross=yes
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 ac_cv_prog_cc_works=no
3024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3028 cross_compiling=$ac_cv_prog_cc_cross
3030 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3031 if test $ac_cv_prog_cc_works = no; then
3032 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3035 echo "configure:3036: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3036 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3037 cross_compiling=$ac_cv_prog_cc_cross
3039 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3040 echo "configure:3041: checking whether we are using GNU C" >&5
3041 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.c <<EOF
3049 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3056 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3058 if test $ac_cv_prog_gcc = yes; then
3064 ac_test_CFLAGS="${CFLAGS+set}"
3065 ac_save_CFLAGS="$CFLAGS"
3067 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3068 echo "configure:3069: checking whether ${CC-cc} accepts -g" >&5
3069 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 echo 'void f(){}' > conftest.c
3073 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3082 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3083 if test "$ac_test_CFLAGS" = set; then
3084 CFLAGS="$ac_save_CFLAGS"
3085 elif test $ac_cv_prog_cc_g = yes; then
3086 if test "$GCC" = yes; then
3092 if test "$GCC" = yes; then
3099 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3100 if test "${with_gnu_ld+set}" = set; then
3101 withval="$with_gnu_ld"
3102 test "$withval" = no || with_gnu_ld=yes
3108 if test "$ac_cv_prog_gcc" = yes; then
3109 # Check if gcc -print-prog-name=ld gives a path.
3110 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3111 echo "configure:3112: checking for ld used by GCC" >&5
3112 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3114 # Accept absolute paths.
3115 [\\/]* | [A-Za-z]:[\\/]*)
3116 re_direlt='/[^/][^/]*/\.\./'
3117 # Canonicalize the path of ld
3118 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3120 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3122 test -z "$LD" && LD="$ac_prog"
3125 # If it fails, then pretend we aren't using GCC.
3129 # If it is relative, then search for the first ld in PATH.
3133 elif test "$with_gnu_ld" = yes; then
3134 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3135 echo "configure:3136: checking for GNU ld" >&5
3137 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3138 echo "configure:3139: checking for non-GNU ld" >&5
3140 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 if test -z "$LD"; then
3144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3145 for ac_dir in $PATH; do
3146 test -z "$ac_dir" && ac_dir=.
3147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3148 ac_cv_path_LD="$ac_dir/$ac_prog"
3149 # Check to see if the program is GNU ld. I'd rather use --version,
3150 # but apparently some GNU ld's only accept -v.
3151 # Break only if it was the GNU/non-GNU ld that we prefer.
3152 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3153 test "$with_gnu_ld" != no && break
3155 test "$with_gnu_ld" != yes && break
3161 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3166 if test -n "$LD"; then
3167 echo "$ac_t""$LD" 1>&6
3169 echo "$ac_t""no" 1>&6
3171 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3172 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3173 echo "configure:3174: checking if the linker ($LD) is GNU ld" >&5
3174 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3179 ac_cv_prog_gnu_ld=yes
3181 ac_cv_prog_gnu_ld=no
3185 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3188 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3189 echo "configure:3190: checking for BSD-compatible nm" >&5
3190 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 if test -n "$NM"; then
3194 # Let the user override the test.
3197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3198 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3199 test -z "$ac_dir" && ac_dir=.
3200 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3201 # Check to see if the nm accepts a BSD-compat flag.
3202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3203 # nm: unknown option "B" ignored
3204 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3205 ac_cv_path_NM="$ac_dir/nm -B"
3207 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3208 ac_cv_path_NM="$ac_dir/nm -p"
3211 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3212 continue # so that we can try to find one that supports BSD flags
3217 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3222 echo "$ac_t""$NM" 1>&6
3224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3225 echo "configure:3226: checking whether ln -s works" >&5
3226 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3230 if ln -s X conftestdata 2>/dev/null
3233 ac_cv_prog_LN_S="ln -s"
3238 LN_S="$ac_cv_prog_LN_S"
3239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3240 echo "$ac_t""yes" 1>&6
3242 echo "$ac_t""no" 1>&6
3245 if test $host != $build; then
3246 ac_tool_prefix=${host_alias}-
3253 NONE) lt_target="$host" ;;
3254 *) lt_target="$target" ;;
3257 # Check for any special flags to pass to ltconfig.
3258 libtool_flags="--cache-file=$cache_file"
3259 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3260 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3261 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3262 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3263 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3264 libtool_flags="$libtool_flags --enable-dlopen"
3265 libtool_flags="$libtool_flags --enable-win32-dll"
3266 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3267 if test "${enable_libtool_lock+set}" = set; then
3268 enableval="$enable_libtool_lock"
3272 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3273 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3275 # Some flags need to be propagated to the compiler or linker for good
3277 case "$lt_target" in
3279 # Find out which ABI we are using.
3280 echo '#line 3281 "configure"' > conftest.$ac_ext
3281 if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3282 case "`/usr/bin/file conftest.o`" in
3298 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3299 SAVE_CFLAGS="$CFLAGS"
3300 CFLAGS="$CFLAGS -belf"
3301 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3302 echo "configure:3303: checking whether the C compiler needs -belf" >&5
3303 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3314 if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3316 lt_cv_cc_needs_belf=yes
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3321 lt_cv_cc_needs_belf=no
3326 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3329 CFLAGS="$SAVE_CFLAGS"
3333 *-*-cygwin* | *-*-mingw*)
3334 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 if test -n "$DLLTOOL"; then
3342 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3346 for ac_dir in $ac_dummy; do
3347 test -z "$ac_dir" && ac_dir=.
3348 if test -f $ac_dir/$ac_word; then
3349 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3356 DLLTOOL="$ac_cv_prog_DLLTOOL"
3357 if test -n "$DLLTOOL"; then
3358 echo "$ac_t""$DLLTOOL" 1>&6
3360 echo "$ac_t""no" 1>&6
3364 if test -z "$ac_cv_prog_DLLTOOL"; then
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "dlltool", so it can be a program name with args.
3367 set dummy dlltool; ac_word=$2
3368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3369 echo "configure:3370: checking for $ac_word" >&5
3370 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 if test -n "$DLLTOOL"; then
3374 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3378 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/$ac_word; then
3381 ac_cv_prog_DLLTOOL="dlltool"
3386 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3389 DLLTOOL="$ac_cv_prog_DLLTOOL"
3390 if test -n "$DLLTOOL"; then
3391 echo "$ac_t""$DLLTOOL" 1>&6
3393 echo "$ac_t""no" 1>&6
3401 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3402 set dummy ${ac_tool_prefix}as; ac_word=$2
3403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3404 echo "configure:3405: checking for $ac_word" >&5
3405 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 if test -n "$AS"; then
3409 ac_cv_prog_AS="$AS" # Let the user override the test.
3411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3413 for ac_dir in $ac_dummy; do
3414 test -z "$ac_dir" && ac_dir=.
3415 if test -f $ac_dir/$ac_word; then
3416 ac_cv_prog_AS="${ac_tool_prefix}as"
3424 if test -n "$AS"; then
3425 echo "$ac_t""$AS" 1>&6
3427 echo "$ac_t""no" 1>&6
3431 if test -z "$ac_cv_prog_AS"; then
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "as", so it can be a program name with args.
3434 set dummy as; ac_word=$2
3435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_word" >&5
3437 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 if test -n "$AS"; then
3441 ac_cv_prog_AS="$AS" # Let the user override the test.
3443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3445 for ac_dir in $ac_dummy; do
3446 test -z "$ac_dir" && ac_dir=.
3447 if test -f $ac_dir/$ac_word; then
3453 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3457 if test -n "$AS"; then
3458 echo "$ac_t""$AS" 1>&6
3460 echo "$ac_t""no" 1>&6
3468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3471 echo "configure:3472: checking for $ac_word" >&5
3472 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 if test -n "$OBJDUMP"; then
3476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3480 for ac_dir in $ac_dummy; do
3481 test -z "$ac_dir" && ac_dir=.
3482 if test -f $ac_dir/$ac_word; then
3483 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3490 OBJDUMP="$ac_cv_prog_OBJDUMP"
3491 if test -n "$OBJDUMP"; then
3492 echo "$ac_t""$OBJDUMP" 1>&6
3494 echo "$ac_t""no" 1>&6
3498 if test -z "$ac_cv_prog_OBJDUMP"; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "objdump", so it can be a program name with args.
3501 set dummy objdump; ac_word=$2
3502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3503 echo "configure:3504: checking for $ac_word" >&5
3504 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 if test -n "$OBJDUMP"; then
3508 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3512 for ac_dir in $ac_dummy; do
3513 test -z "$ac_dir" && ac_dir=.
3514 if test -f $ac_dir/$ac_word; then
3515 ac_cv_prog_OBJDUMP="objdump"
3520 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3523 OBJDUMP="$ac_cv_prog_OBJDUMP"
3524 if test -n "$OBJDUMP"; then
3525 echo "$ac_t""$OBJDUMP" 1>&6
3527 echo "$ac_t""no" 1>&6
3540 # Save cache, so that ltconfig can load it
3543 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3544 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3545 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3546 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3547 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3548 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3549 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3550 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3552 # Reload cache, that may have been modified by ltconfig
3555 # This can be used to rebuild libtool when needed
3556 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3558 # Always use our own libtool.
3559 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3561 # Redirect the config.log output again, so that the ltconfig log is not
3562 # clobbered by the next message.
3563 exec 5>>./config.log
3566 for ac_prog in mawk gawk nawk awk
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_word" >&5
3572 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 if test -n "$AWK"; then
3576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3580 for ac_dir in $ac_dummy; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f $ac_dir/$ac_word; then
3583 ac_cv_prog_AWK="$ac_prog"
3590 AWK="$ac_cv_prog_AWK"
3591 if test -n "$AWK"; then
3592 echo "$ac_t""$AWK" 1>&6
3594 echo "$ac_t""no" 1>&6
3597 test -n "$AWK" && break
3600 # test for ln hardlink support
3601 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3602 echo "configure:3603: checking whether ln works" >&5
3603 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 rm -f conftest.src conftest.dst
3607 echo "conftest" > conftest.src
3608 if ln conftest.src conftest.dst 2>/dev/null
3610 ol_cv_prog_LN_H="ln"
3612 ol_cv_prog_LN_H="cp"
3614 rm -f conftest.src conftest.dst
3617 LN_H="$ol_cv_prog_LN_H"
3618 if test "$ol_cv_prog_LN_H" = "ln"; then
3619 echo "$ac_t""yes" 1>&6
3621 echo "$ac_t""no" 1>&6
3624 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3625 echo "configure:3626: checking whether ln -s works" >&5
3626 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3630 if ln -s X conftestdata 2>/dev/null
3633 ac_cv_prog_LN_S="ln -s"
3638 LN_S="$ac_cv_prog_LN_S"
3639 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3640 echo "$ac_t""yes" 1>&6
3642 echo "$ac_t""no" 1>&6
3646 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3650 # Extract the first word of "sendmail", so it can be a program name with args.
3651 set dummy sendmail; ac_word=$2
3652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $ac_word" >&5
3654 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3659 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3662 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3666 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3667 for ac_dir in $ac_dummy; do
3668 test -z "$ac_dir" && ac_dir=.
3669 if test -f $ac_dir/$ac_word; then
3670 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3675 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3679 SENDMAIL="$ac_cv_path_SENDMAIL"
3680 if test -n "$SENDMAIL"; then
3681 echo "$ac_t""$SENDMAIL" 1>&6
3683 echo "$ac_t""no" 1>&6
3686 # Extract the first word of "vi", so it can be a program name with args.
3687 set dummy vi; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3695 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3698 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3702 ac_dummy="$PATH:/usr/ucb"
3703 for ac_dir in $ac_dummy; do
3704 test -z "$ac_dir" && ac_dir=.
3705 if test -f $ac_dir/$ac_word; then
3706 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3711 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3715 EDITOR="$ac_cv_path_EDITOR"
3716 if test -n "$EDITOR"; then
3717 echo "$ac_t""$EDITOR" 1>&6
3719 echo "$ac_t""no" 1>&6
3722 # Extract the first word of "finger", so it can be a program name with args.
3723 set dummy finger; ac_word=$2
3724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_word" >&5
3726 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3734 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3738 ac_dummy="$PATH:/usr/ucb"
3739 for ac_dir in $ac_dummy; do
3740 test -z "$ac_dir" && ac_dir=.
3741 if test -f $ac_dir/$ac_word; then
3742 ac_cv_path_FINGER="$ac_dir/$ac_word"
3747 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3751 FINGER="$ac_cv_path_FINGER"
3752 if test -n "$FINGER"; then
3753 echo "$ac_t""$FINGER" 1>&6
3755 echo "$ac_t""no" 1>&6
3760 if test $ol_enable_perl != no ; then
3761 # Extract the first word of "perl", so it can be a program name with args.
3762 set dummy perl; 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_PERLBIN+set}\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3773 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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_PERLBIN="$ac_dir/$ac_word"
3786 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3790 PERLBIN="$ac_cv_path_PERLBIN"
3791 if test -n "$PERLBIN"; then
3792 echo "$ac_t""$PERLBIN" 1>&6
3794 echo "$ac_t""no" 1>&6
3798 if test "no$PERLBIN" = "no" ; then
3799 if test $ol_enable_perl = yes ; then
3800 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3804 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3805 if test x"$ol_with_perl_module" = "xstatic" ; then
3806 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3808 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3814 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3815 echo "configure:3816: checking how to run the C preprocessor" >&5
3816 # On Suns, sometimes $CPP names a directory.
3817 if test -n "$CPP" && test -d "$CPP"; then
3820 if test -z "$CPP"; then
3821 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 # This must be in double quotes, not single quotes, because CPP may get
3825 # substituted into the Makefile and "${CC-cc}" will confuse make.
3827 # On the NeXT, cc -E runs the code through the compiler's parser,
3828 # not just through cpp.
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 CPP="${CC-cc} -E -traditional-cpp"
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3853 { (eval echo configure:3854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3855 if test -z "$ac_err"; then
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 CPP="${CC-cc} -nologo -E"
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3870 { (eval echo configure:3871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3872 if test -z "$ac_err"; then
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3886 ac_cv_prog_CPP="$CPP"
3888 CPP="$ac_cv_prog_CPP"
3890 ac_cv_prog_CPP="$CPP"
3892 echo "$ac_t""$CPP" 1>&6
3895 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3896 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3898 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3899 echo "configure: warning: programs compiled here do run here..." 1>&2
3900 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3902 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3903 echo "configure: warning: programs compiled here do not run here..." 1>&2
3904 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3907 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3908 echo "configure:3909: checking for AIX" >&5
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918 egrep "yes" >/dev/null 2>&1; then
3920 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3921 #define _ALL_SOURCE 1
3926 echo "$ac_t""no" 1>&6
3931 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3932 echo "configure:3933: checking for POSIXized ISC" >&5
3933 if test -d /etc/conf/kconfig.d &&
3934 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3936 echo "$ac_t""yes" 1>&6
3937 ISC=yes # If later tests want to check for ISC.
3938 cat >> confdefs.h <<\EOF
3939 #define _POSIX_SOURCE 1
3942 if test "$GCC" = yes; then
3948 echo "$ac_t""no" 1>&6
3952 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3953 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3954 echo "configure:3955: checking for minix/config.h" >&5
3955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 #include <minix/config.h>
3963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3964 { (eval echo configure:3965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3966 if test -z "$ac_err"; then
3968 eval "ac_cv_header_$ac_safe=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_header_$ac_safe=no"
3978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3979 echo "$ac_t""yes" 1>&6
3982 echo "$ac_t""no" 1>&6
3986 if test "$MINIX" = yes; then
3987 cat >> confdefs.h <<\EOF
3988 #define _POSIX_SOURCE 1
3991 cat >> confdefs.h <<\EOF
3992 #define _POSIX_1_SOURCE 2
3995 cat >> confdefs.h <<\EOF
4002 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4003 echo "configure:4004: checking for Cygwin environment" >&5
4004 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4014 #define __CYGWIN__ __CYGWIN32__
4019 if { (eval echo configure:4020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4031 echo "$ac_t""$ac_cv_cygwin" 1>&6
4033 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4034 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4035 echo "configure:4036: checking for mingw32 environment" >&5
4036 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4047 if { (eval echo configure:4048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4059 echo "$ac_t""$ac_cv_mingw32" 1>&6
4061 test "$ac_cv_mingw32" = yes && MINGW32=yes
4062 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4063 echo "configure:4064: checking for EMX OS/2 environment" >&5
4064 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4075 if { (eval echo configure:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4087 echo "$ac_t""$ac_cv_emxos2" 1>&6
4089 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4093 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4094 echo "configure:4095: checking for executable suffix" >&5
4095 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4102 echo 'int main () { return 0; }' > conftest.$ac_ext
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4105 for file in conftest.*; do
4107 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4108 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4112 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4115 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4120 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4121 echo "$ac_t""${ac_cv_exeext}" 1>&6
4124 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4125 echo "configure:4126: checking for object suffix" >&5
4126 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4130 echo 'int i = 1;' > conftest.$ac_ext
4131 if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4132 for ac_file in conftest.*; do
4135 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4139 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4144 echo "$ac_t""$ac_cv_objext" 1>&6
4145 OBJEXT=$ac_cv_objext
4146 ac_objext=$ac_cv_objext
4149 cat >> confdefs.h <<EOF
4150 #define EXEEXT "${EXEEXT}"
4154 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4155 echo "configure:4156: checking for be_app in -lbe" >&5
4156 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4157 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_save_LIBS="$LIBS"
4161 LIBS="-lbe -lroot -lnet $LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 LIBS="$LIBS -lbe -lroot -lnet"
4191 echo "$ac_t""no" 1>&6
4199 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4200 echo "configure:4201: checking for ${CC-cc} option to accept ANSI C" >&5
4201 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 am_cv_prog_cc_stdc=no
4206 # Don't try gcc -ansi; that turns off useful extensions and
4207 # breaks some systems' header files.
4208 # AIX -qlanglvl=ansi
4209 # Ultrix and OSF/1 -std1
4210 # HP-UX 10.20 and later -Ae
4211 # HP-UX older versions -Aa -D_HPUX_SOURCE
4212 # SVR4 -Xc -D__EXTENSIONS__
4213 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215 CC="$ac_save_CC $ac_arg"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4221 #include <sys/types.h>
4222 #include <sys/stat.h>
4223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4224 struct buf { int x; };
4225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4226 static char *e (p, i)
4232 static char *f (char * (*g) (char **, int), char **p, ...)
4237 s = g (p, va_arg (v,int));
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4254 if { (eval echo configure:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 am_cv_prog_cc_stdc="$ac_arg"; break
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4267 if test -z "$am_cv_prog_cc_stdc"; then
4268 echo "$ac_t""none needed" 1>&6
4270 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4272 case "x$am_cv_prog_cc_stdc" in
4274 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4277 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4278 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4281 # test for make depend flag
4284 if test -z "${MKDEP}"; then
4286 if test -z "${MKDEP_FLAGS}"; then
4287 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4288 echo "configure:4289: checking for ${OL_MKDEP} depend flag" >&5
4289 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4294 for flag in "-M" "-xM"; do
4295 cat > conftest.c <<EOF
4298 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4299 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4301 if test ! -f conftest."${ac_object}" ; then
4303 OL_MKDEP_FLAGS="$flag"
4312 echo "$ac_t""$ol_cv_mkdep" 1>&6
4315 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4320 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4325 if test "${ol_cv_mkdep}" = no ; then
4326 # this will soon become an error
4327 echo "configure: warning: do not know how to generate dependencies" 1>&2
4330 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4331 echo "configure:4332: checking for afopen in -ls" >&5
4332 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 ac_save_LIBS="$LIBS"
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 eval "ac_cv_lib_$ac_lib_var=yes"
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4357 eval "ac_cv_lib_$ac_lib_var=no"
4360 LIBS="$ac_save_LIBS"
4363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4364 echo "$ac_t""yes" 1>&6
4367 cat >> confdefs.h <<\EOF
4368 #define HAVE_AIX_SECURITY 1
4373 echo "$ac_t""no" 1>&6
4379 if test $ol_enable_modules != no ; then
4380 for ac_hdr in ltdl.h
4382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_hdr" >&5
4385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4394 { (eval echo configure:4395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4396 if test -z "$ac_err"; then
4398 eval "ac_cv_header_$ac_safe=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4404 eval "ac_cv_header_$ac_safe=no"
4408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4411 cat >> confdefs.h <<EOF
4412 #define $ac_tr_hdr 1
4416 echo "$ac_t""no" 1>&6
4421 if test $ac_cv_header_ltdl_h = no ; then
4422 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4425 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4426 echo "configure:4427: checking for lt_dlinit in -lltdl" >&5
4427 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4428 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 ac_save_LIBS="$LIBS"
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* Override any gcc2 internal prototype to avoid an error. */
4437 /* We use char because int might match the return type of a gcc2
4438 builtin and then its argument prototype would still apply. */
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 eval "ac_cv_lib_$ac_lib_var=yes"
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 eval "ac_cv_lib_$ac_lib_var=no"
4455 LIBS="$ac_save_LIBS"
4458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4462 cat >> confdefs.h <<\EOF
4463 #define HAVE_LIBLTDL 1
4468 echo "$ac_t""no" 1>&6
4472 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4473 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4477 ol_with_bdb_module=static
4478 ol_with_dnssrv_module=static
4479 ol_with_ldap_module=static
4480 ol_with_ldbm_module=static
4481 ol_with_meta_module=static
4482 ol_with_monitor_module=static
4483 ol_with_passwd_module=static
4484 ol_with_perl_module=static
4485 ol_with_shell_module=static
4486 ol_with_tcl_module=static
4487 ol_with_sql_module=static
4491 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4492 echo "configure:4493: checking for EBCDIC" >&5
4493 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4502 #include <__ASCII__/generate_error.h>
4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4511 ol_cv_cpp_ebcdic=yes
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4522 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4523 if test $ol_cv_cpp_ebcdic = yes ; then
4524 cat >> confdefs.h <<\EOF
4525 #define HAVE_EBCDIC 1
4530 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4531 echo "configure:4532: checking for ANSI C header files" >&5
4532 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 ol_cv_header_stdc=yes
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 ol_cv_header_stdc=no
4558 if test $ol_cv_header_stdc = yes; then
4559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 egrep "memchr" >/dev/null 2>&1; then
4570 ol_cv_header_stdc=no
4576 if test $ol_cv_header_stdc = yes; then
4577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 egrep "free" >/dev/null 2>&1; then
4588 ol_cv_header_stdc=no
4594 if test $ol_cv_header_stdc = yes; then
4595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4596 if test "$cross_compiling" = yes; then
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4607 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4608 || ('j' <= (c) && (c) <= 'r') \
4609 || ('s' <= (c) && (c) <= 'z'))
4610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4613 int main () { int i; for (i = 0; i < 256; i++)
4614 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4625 ol_cv_header_stdc=no
4633 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4634 if test $ol_cv_header_stdc = yes; then
4635 cat >> confdefs.h <<\EOF
4636 #define STDC_HEADERS 1
4640 ac_cv_header_stdc=disable
4643 if test $ol_cv_header_stdc != yes; then
4644 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4651 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_hdr that defines DIR" >&5
4653 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <sys/types.h>
4665 if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4667 eval "ac_cv_header_dirent_$ac_safe=yes"
4669 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4672 eval "ac_cv_header_dirent_$ac_safe=no"
4676 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4677 echo "$ac_t""yes" 1>&6
4678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4679 cat >> confdefs.h <<EOF
4680 #define $ac_tr_hdr 1
4682 ac_header_dirent=$ac_hdr; break
4684 echo "$ac_t""no" 1>&6
4687 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4688 if test $ac_header_dirent = dirent.h; then
4689 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4690 echo "configure:4691: checking for opendir in -ldir" >&5
4691 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4692 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 ac_save_LIBS="$LIBS"
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 /* Override any gcc2 internal prototype to avoid an error. */
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 eval "ac_cv_lib_$ac_lib_var=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_lib_$ac_lib_var=no"
4719 LIBS="$ac_save_LIBS"
4722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4726 echo "$ac_t""no" 1>&6
4730 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4731 echo "configure:4732: checking for opendir in -lx" >&5
4732 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4733 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 ac_save_LIBS="$LIBS"
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 /* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4750 if { (eval echo configure:4751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4752 eval "ac_cv_lib_$ac_lib_var=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 eval "ac_cv_lib_$ac_lib_var=no"
4760 LIBS="$ac_save_LIBS"
4763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4764 echo "$ac_t""yes" 1>&6
4767 echo "$ac_t""no" 1>&6
4772 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4773 echo "configure:4774: checking for sys/wait.h that is POSIX.1 compatible" >&5
4774 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 #include <sys/types.h>
4781 #include <sys/wait.h>
4783 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4786 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4794 if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4796 ac_cv_header_sys_wait_h=yes
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4801 ac_cv_header_sys_wait_h=no
4806 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4807 if test $ac_cv_header_sys_wait_h = yes; then
4808 cat >> confdefs.h <<\EOF
4809 #define HAVE_SYS_WAIT_H 1
4814 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4815 echo "configure:4816: checking POSIX termios" >&5
4816 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 #include <sys/types.h>
4824 #include <termios.h>
4826 /* SunOS 4.0.3 has termios.h but not the library calls. */
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832 am_cv_sys_posix_termios=yes
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 am_cv_sys_posix_termios=no
4842 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4845 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4846 echo "configure:4847: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4847 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4852 gwinsz_in_termios_h=no
4853 if test $am_cv_sys_posix_termios = yes; then
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <sys/types.h>
4858 # include <termios.h>
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 egrep "yes" >/dev/null 2>&1; then
4867 gwinsz_in_termios_h=yes
4873 if test $gwinsz_in_termios_h = no; then
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 #include <sys/types.h>
4878 # include <sys/ioctl.h>
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885 egrep "yes" >/dev/null 2>&1; then
4887 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4895 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4896 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4897 cat >> confdefs.h <<\EOF
4898 #define GWINSZ_IN_SYS_IOCTL 1
4903 if test $am_cv_sys_posix_termios = yes ; then
4904 cat >> confdefs.h <<\EOF
4905 #define HAVE_POSIX_TERMIOS 1
4956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4958 echo "configure:4959: checking for $ac_hdr" >&5
4959 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4968 { (eval echo configure:4969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4970 if test -z "$ac_err"; then
4972 eval "ac_cv_header_$ac_safe=yes"
4975 echo "configure: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4978 eval "ac_cv_header_$ac_safe=no"
4982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4985 cat >> confdefs.h <<EOF
4986 #define $ac_tr_hdr 1
4990 echo "$ac_t""no" 1>&6
4997 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4998 echo "configure:4999: checking for dlopen" >&5
4999 if eval "test \"\${ac_cv_func_dlopen+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"
5005 /* System header to define __stub macros and hopefully few prototypes,
5006 which can conflict with char dlopen(); below. */
5008 /* Override any gcc2 internal prototype to avoid an error. */
5009 /* We use char because int might match the return type of a gcc2
5010 builtin and then its argument prototype would still apply. */
5016 /* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 eval "ac_cv_func_dlopen=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_func_dlopen=no"
5039 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5043 echo "$ac_t""no" 1>&6
5044 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5045 echo "configure:5046: checking for dlopen in -ldl" >&5
5046 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5047 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 ac_save_LIBS="$LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066 eval "ac_cv_lib_$ac_lib_var=yes"
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5071 eval "ac_cv_lib_$ac_lib_var=no"
5074 LIBS="$ac_save_LIBS"
5077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5081 cat >> confdefs.h <<EOF
5082 #define $ac_tr_lib 1
5088 echo "$ac_t""no" 1>&6
5094 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5095 echo "configure:5096: checking for sigset in -lV3" >&5
5096 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 ac_save_LIBS="$LIBS"
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 eval "ac_cv_lib_$ac_lib_var=yes"
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5121 eval "ac_cv_lib_$ac_lib_var=no"
5124 LIBS="$ac_save_LIBS"
5127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5131 cat >> confdefs.h <<EOF
5132 #define $ac_tr_lib 1
5138 echo "$ac_t""no" 1>&6
5142 if test $ac_cv_header_winsock_h = yes; then
5143 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5144 echo "configure:5145: checking for winsock" >&5
5145 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 #include <winsock.h>
5155 select(0,NULL,NULL,NULL,NULL);
5157 gethostname(NULL,0);
5161 if { (eval echo configure:5162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5165 echo "configure: failed program was:" >&5
5166 cat conftest.$ac_ext >&5
5173 echo "$ac_t""$ol_cv_winsock" 1>&6
5175 if test $ol_cv_winsock = yes ; then
5176 cat >> confdefs.h <<\EOF
5177 #define HAVE_WINSOCK 1
5180 ac_cv_func_socket=yes
5181 ac_cv_func_select=yes
5182 ac_cv_func_closesocket=yes
5183 ac_cv_func_gethostname=yes
5188 echo $ac_n "checking for socket""... $ac_c" 1>&6
5189 echo "configure:5190: checking for socket" >&5
5190 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char socket(); below. */
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5207 /* The GNU C library defines this for functions which it implements
5208 to always fail with ENOSYS. Some functions are actually named
5209 something starting with __ and the normal name is an alias. */
5210 #if defined (__stub_socket) || defined (__stub___socket)
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220 eval "ac_cv_func_socket=yes"
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5225 eval "ac_cv_func_socket=no"
5230 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5231 echo "$ac_t""yes" 1>&6
5234 echo "$ac_t""no" 1>&6
5236 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5237 echo "configure:5238: checking for main in -lsocket" >&5
5238 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 ac_save_LIBS="$LIBS"
5243 LIBS="-lsocket $LIBS"
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 eval "ac_cv_lib_$ac_lib_var=yes"
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5259 eval "ac_cv_lib_$ac_lib_var=no"
5262 LIBS="$ac_save_LIBS"
5265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5269 cat >> confdefs.h <<EOF
5270 #define $ac_tr_lib 1
5273 LIBS="-lsocket $LIBS"
5276 echo "$ac_t""no" 1>&6
5279 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5280 echo "configure:5281: checking for main in -lnet" >&5
5281 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5282 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 ac_save_LIBS="$LIBS"
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297 eval "ac_cv_lib_$ac_lib_var=yes"
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 eval "ac_cv_lib_$ac_lib_var=no"
5305 LIBS="$ac_save_LIBS"
5308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5309 echo "$ac_t""yes" 1>&6
5310 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5312 cat >> confdefs.h <<EOF
5313 #define $ac_tr_lib 1
5319 echo "$ac_t""no" 1>&6
5322 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5323 echo "configure:5324: checking for main in -lnsl_s" >&5
5324 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 ac_save_LIBS="$LIBS"
5329 LIBS="-lnsl_s $LIBS"
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5338 if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340 eval "ac_cv_lib_$ac_lib_var=yes"
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5345 eval "ac_cv_lib_$ac_lib_var=no"
5348 LIBS="$ac_save_LIBS"
5351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5352 echo "$ac_t""yes" 1>&6
5353 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5354 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5355 cat >> confdefs.h <<EOF
5356 #define $ac_tr_lib 1
5359 LIBS="-lnsl_s $LIBS"
5362 echo "$ac_t""no" 1>&6
5365 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5366 echo "configure:5367: checking for main in -lnsl" >&5
5367 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 ac_save_LIBS="$LIBS"
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5381 if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 eval "ac_cv_lib_$ac_lib_var=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 eval "ac_cv_lib_$ac_lib_var=no"
5391 LIBS="$ac_save_LIBS"
5394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5395 echo "$ac_t""yes" 1>&6
5396 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5398 cat >> confdefs.h <<EOF
5399 #define $ac_tr_lib 1
5405 echo "$ac_t""no" 1>&6
5408 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5409 echo "configure:5410: checking for socket in -linet" >&5
5410 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5411 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 ac_save_LIBS="$LIBS"
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 eval "ac_cv_lib_$ac_lib_var=yes"
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 eval "ac_cv_lib_$ac_lib_var=no"
5438 LIBS="$ac_save_LIBS"
5441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5443 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5445 cat >> confdefs.h <<EOF
5446 #define $ac_tr_lib 1
5452 echo "$ac_t""no" 1>&6
5455 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5456 echo "configure:5457: checking for main in -lgen" >&5
5457 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5458 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 ac_save_LIBS="$LIBS"
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5471 if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 eval "ac_cv_lib_$ac_lib_var=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 eval "ac_cv_lib_$ac_lib_var=no"
5481 LIBS="$ac_save_LIBS"
5484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5488 cat >> confdefs.h <<EOF
5489 #define $ac_tr_lib 1
5495 echo "$ac_t""no" 1>&6
5502 echo $ac_n "checking for select""... $ac_c" 1>&6
5503 echo "configure:5504: checking for select" >&5
5504 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char select(); below. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5521 /* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524 #if defined (__stub_select) || defined (__stub___select)
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 eval "ac_cv_func_select=yes"
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 eval "ac_cv_func_select=no"
5544 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5548 echo "$ac_t""no" 1>&6
5549 { echo "configure: error: select() required." 1>&2; exit 1; }
5553 if test "${ac_cv_header_winsock_h}" != yes; then
5554 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5555 echo "configure:5556: checking types of arguments for select()" >&5
5556 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5566 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5567 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 #ifdef HAVE_SYS_TYPES_H
5572 #include <sys/types.h>
5574 #ifdef HAVE_SYS_TIME_H
5575 #include <sys/time.h>
5577 #ifdef HAVE_SYS_SELECT_H
5578 #include <sys/select.h>
5580 #ifdef HAVE_SYS_SOCKET_H
5581 #include <sys/socket.h>
5583 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);
5588 if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5590 ac_not_found=no ; break 3
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5607 if test "$ac_not_found" = yes; then
5608 ac_cv_func_select_arg1=int
5609 ac_cv_func_select_arg234='int *'
5610 ac_cv_func_select_arg5='struct timeval *'
5612 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5613 cat >> confdefs.h <<EOF
5614 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5617 cat >> confdefs.h <<EOF
5618 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5621 cat >> confdefs.h <<EOF
5622 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5629 for ac_hdr in regex.h
5631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5633 echo "configure:5634: checking for $ac_hdr" >&5
5634 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643 { (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5645 if test -z "$ac_err"; then
5647 eval "ac_cv_header_$ac_safe=yes"
5650 echo "configure: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5653 eval "ac_cv_header_$ac_safe=no"
5657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5658 echo "$ac_t""yes" 1>&6
5659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5660 cat >> confdefs.h <<EOF
5661 #define $ac_tr_hdr 1
5665 echo "$ac_t""no" 1>&6
5669 if test "$ac_cv_header_regex_h" != yes ; then
5670 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5672 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5673 echo "configure:5674: checking for regfree" >&5
5674 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5675 echo $ac_n "(cached) $ac_c" 1>&6
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5680 /* System header to define __stub macros and hopefully few prototypes,
5681 which can conflict with char regfree(); below. */
5683 /* Override any gcc2 internal prototype to avoid an error. */
5684 /* We use char because int might match the return type of a gcc2
5685 builtin and then its argument prototype would still apply. */
5691 /* The GNU C library defines this for functions which it implements
5692 to always fail with ENOSYS. Some functions are actually named
5693 something starting with __ and the normal name is an alias. */
5694 #if defined (__stub_regfree) || defined (__stub___regfree)
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5704 eval "ac_cv_func_regfree=yes"
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5709 eval "ac_cv_func_regfree=no"
5714 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5715 echo "$ac_t""yes" 1>&6
5718 echo "$ac_t""no" 1>&6
5719 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5724 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5725 echo "configure:5726: checking for compatible POSIX regex" >&5
5726 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5730 if test "$cross_compiling" = yes; then
5731 ol_cv_c_posix_regex=cross
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5737 #include <sys/types.h>
5739 static char *pattern, *string;
5747 if(regcomp(&re, pattern, 0)) {
5751 string = "ALL MATCH";
5753 rc = regexec(&re, string, 0, (void*)0, 0);
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5762 ol_cv_c_posix_regex=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 ol_cv_c_posix_regex=no
5774 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5776 if test "$ol_cv_c_posix_regex" = no ; then
5777 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5781 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5782 echo "configure:5783: checking for res_query" >&5
5783 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 /* System header to define __stub macros and hopefully few prototypes,
5790 which can conflict with char res_query(); below. */
5792 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5800 /* The GNU C library defines this for functions which it implements
5801 to always fail with ENOSYS. Some functions are actually named
5802 something starting with __ and the normal name is an alias. */
5803 #if defined (__stub_res_query) || defined (__stub___res_query)
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5813 eval "ac_cv_func_res_query=yes"
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 eval "ac_cv_func_res_query=no"
5823 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5824 echo "$ac_t""yes" 1>&6
5827 echo "$ac_t""no" 1>&6
5830 if test $ac_cv_func_res_query = no ; then
5831 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5832 echo "configure:5833: checking for __res_query" >&5
5833 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 /* System header to define __stub macros and hopefully few prototypes,
5840 which can conflict with char __res_query(); below. */
5842 /* Override any gcc2 internal prototype to avoid an error. */
5843 /* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub___res_query) || defined (__stub_____res_query)
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863 eval "ac_cv_func___res_query=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5868 eval "ac_cv_func___res_query=no"
5873 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5877 echo "$ac_t""no" 1>&6
5880 ac_cv_func_res_query=$ac_cv_func___res_query
5883 if test $ac_cv_func_res_query = no ; then
5884 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5885 echo "configure:5886: checking for res_query in -lbind" >&5
5886 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 ac_save_LIBS="$LIBS"
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* Override any gcc2 internal prototype to avoid an error. */
5896 /* We use char because int might match the return type of a gcc2
5897 builtin and then its argument prototype would still apply. */
5904 if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5906 eval "ac_cv_lib_$ac_lib_var=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_lib_$ac_lib_var=no"
5914 LIBS="$ac_save_LIBS"
5917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
5919 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5921 cat >> confdefs.h <<EOF
5922 #define $ac_tr_lib 1
5928 echo "$ac_t""no" 1>&6
5931 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5934 if test $ac_cv_func_res_query = no ; then
5935 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5936 echo "configure:5937: checking for __res_query in -lbind" >&5
5937 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5941 ac_save_LIBS="$LIBS"
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5955 if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5957 eval "ac_cv_lib_$ac_lib_var=yes"
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5962 eval "ac_cv_lib_$ac_lib_var=no"
5965 LIBS="$ac_save_LIBS"
5968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5972 cat >> confdefs.h <<EOF
5973 #define $ac_tr_lib 1
5979 echo "$ac_t""no" 1>&6
5982 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5985 if test $ac_cv_func_res_query = no ; then
5986 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5987 echo "configure:5988: checking for res_query in -lresolv" >&5
5988 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 ac_save_LIBS="$LIBS"
5993 LIBS="-lresolv $LIBS"
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6006 if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6008 eval "ac_cv_lib_$ac_lib_var=yes"
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 eval "ac_cv_lib_$ac_lib_var=no"
6016 LIBS="$ac_save_LIBS"
6019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6022 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6023 cat >> confdefs.h <<EOF
6024 #define $ac_tr_lib 1
6027 LIBS="-lresolv $LIBS"
6030 echo "$ac_t""no" 1>&6
6033 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
6036 if test $ac_cv_func_res_query = no ; then
6037 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
6038 echo "configure:6039: checking for __res_query in -lresolv" >&5
6039 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
6040 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6043 ac_save_LIBS="$LIBS"
6044 LIBS="-lresolv $LIBS"
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 eval "ac_cv_lib_$ac_lib_var=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_lib_$ac_lib_var=no"
6067 LIBS="$ac_save_LIBS"
6070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6071 echo "$ac_t""yes" 1>&6
6072 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6073 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6074 cat >> confdefs.h <<EOF
6075 #define $ac_tr_lib 1
6078 LIBS="-lresolv $LIBS"
6081 echo "$ac_t""no" 1>&6
6084 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
6087 if test "$ac_cv_func_res_query" = yes ; then
6088 cat >> confdefs.h <<\EOF
6089 #define HAVE_RES_QUERY 1
6093 if test $ol_enable_dnssrv != no ; then
6098 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
6099 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
6102 for ac_func in getaddrinfo inet_ntop
6104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_func" >&5
6106 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 /* System header to define __stub macros and hopefully few prototypes,
6113 which can conflict with char $ac_func(); below. */
6115 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6123 /* The GNU C library defines this for functions which it implements
6124 to always fail with ENOSYS. Some functions are actually named
6125 something starting with __ and the normal name is an alias. */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136 eval "ac_cv_func_$ac_func=yes"
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6141 eval "ac_cv_func_$ac_func=no"
6146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6149 cat >> confdefs.h <<EOF
6150 #define $ac_tr_func 1
6154 echo "$ac_t""no" 1>&6
6160 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6161 if test $ol_enable_ipv6 = yes ; then
6162 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6165 for ac_func in gai_strerror
6167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6168 echo "configure:6169: checking for $ac_func" >&5
6169 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 /* System header to define __stub macros and hopefully few prototypes,
6176 which can conflict with char $ac_func(); below. */
6178 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6186 /* The GNU C library defines this for functions which it implements
6187 to always fail with ENOSYS. Some functions are actually named
6188 something starting with __ and the normal name is an alias. */
6189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 eval "ac_cv_func_$ac_func=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_func_$ac_func=no"
6209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6210 echo "$ac_t""yes" 1>&6
6211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6212 cat >> confdefs.h <<EOF
6213 #define $ac_tr_func 1
6217 echo "$ac_t""no" 1>&6
6222 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6223 echo "configure:6224: checking INET6_ADDRSTRLEN" >&5
6224 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6232 # include <netinet/in.h>
6233 # ifdef INET6_ADDRSTRLEN
6234 __has_inet6_addrstrlen__;
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6241 ol_cv_inet6_addrstrlen=yes
6244 ol_cv_inet6_addrstrlen=no
6250 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6252 if test $ol_cv_inet6_addrstrlen = yes ; then
6254 elif test $ol_enable_ipv6 = yes ; then
6255 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6259 if test $ol_enable_local != no ; then
6260 for ac_hdr in sys/un.h
6262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_hdr" >&5
6265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6274 { (eval echo configure:6275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6276 if test -z "$ac_err"; then
6278 eval "ac_cv_header_$ac_safe=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 eval "ac_cv_header_$ac_safe=no"
6288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6289 echo "$ac_t""yes" 1>&6
6290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6291 cat >> confdefs.h <<EOF
6292 #define $ac_tr_hdr 1
6296 echo "$ac_t""no" 1>&6
6301 if test $ol_enable_local = auto ; then
6302 ol_enable_local=$ac_cv_header_sys_un_h
6303 elif test $ac_cv_header_sys_un_h = no ; then
6304 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6313 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6314 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6315 -o $ol_with_kerberos = k425 ; then
6317 for ac_hdr in krb5.h
6319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6321 echo "configure:6322: checking for $ac_hdr" >&5
6322 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6331 { (eval echo configure:6332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6333 if test -z "$ac_err"; then
6335 eval "ac_cv_header_$ac_safe=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 eval "ac_cv_header_$ac_safe=no"
6345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6348 cat >> confdefs.h <<EOF
6349 #define $ac_tr_hdr 1
6353 echo "$ac_t""no" 1>&6
6358 if test $ac_cv_header_krb5_h = yes ; then
6359 for ac_hdr in heim_err.h
6361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6363 echo "configure:6364: checking for $ac_hdr" >&5
6364 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6365 echo $ac_n "(cached) $ac_c" 1>&6
6367 cat > conftest.$ac_ext <<EOF
6368 #line 6369 "configure"
6369 #include "confdefs.h"
6372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6373 { (eval echo configure:6374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6375 if test -z "$ac_err"; then
6377 eval "ac_cv_header_$ac_safe=yes"
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6383 eval "ac_cv_header_$ac_safe=no"
6387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6390 cat >> confdefs.h <<EOF
6391 #define $ac_tr_hdr 1
6395 echo "$ac_t""no" 1>&6
6399 if test $ac_cv_header_heim_err_h = yes ; then
6405 if test $krb5_impl = mit; then
6406 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
6407 echo "configure:6408: checking for main in -lk5crypto" >&5
6408 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
6409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6412 ac_save_LIBS="$LIBS"
6413 LIBS="-lk5crypto $LIBS"
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6422 if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6424 eval "ac_cv_lib_$ac_lib_var=yes"
6426 echo "configure: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6429 eval "ac_cv_lib_$ac_lib_var=no"
6432 LIBS="$ac_save_LIBS"
6435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6436 echo "$ac_t""yes" 1>&6
6439 echo "$ac_t""no" 1>&6
6444 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6445 echo "configure:6446: checking for main in -lkrb5" >&5
6446 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 ac_save_LIBS="$LIBS"
6451 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 eval "ac_cv_lib_$ac_lib_var=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_lib_$ac_lib_var=no"
6470 LIBS="$ac_save_LIBS"
6473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6476 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6478 echo "$ac_t""no" 1>&6
6483 elif test $krb5_impl = heimdal; then
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 -ldes -lasn1 -lroken -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 -ldes -lasn1 -lroken -lcom_err"
6518 echo "$ac_t""no" 1>&6
6523 cat >> confdefs.h <<\EOF
6524 #define HAVE_HEIMDAL_KERBEROS 1
6530 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6533 if test $have_krb5 = yes ; then
6536 cat >> confdefs.h <<\EOF
6541 if test $ol_enable_kpasswd != no ; then
6542 ol_link_kpasswd=yes;
6545 if test $ol_with_kerberos = k5only ; then
6546 ol_with_kerberos=found
6549 elif test $ol_with_kerberos != auto ; then
6550 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6556 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6557 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6559 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6563 echo "configure:6564: checking for $ac_hdr" >&5
6564 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6573 { (eval echo configure:6574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6575 if test -z "$ac_err"; then
6577 eval "ac_cv_header_$ac_safe=yes"
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 eval "ac_cv_header_$ac_safe=no"
6587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6590 cat >> confdefs.h <<EOF
6591 #define $ac_tr_hdr 1
6595 echo "$ac_t""no" 1>&6
6600 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6601 if test $krb5_impl = mit; then
6602 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6603 echo "configure:6604: checking for main in -lkrb4" >&5
6604 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 ac_save_LIBS="$LIBS"
6609 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6618 if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6620 eval "ac_cv_lib_$ac_lib_var=yes"
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 eval "ac_cv_lib_$ac_lib_var=no"
6628 LIBS="$ac_save_LIBS"
6631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6632 echo "$ac_t""yes" 1>&6
6634 KRB4_LIBS="-lkrb4 -ldes425"
6636 echo "$ac_t""no" 1>&6
6641 elif test $krb5_impl = heimdal; 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 -lkrb5 -ldes -lasn1 -lroken -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
6676 echo "$ac_t""no" 1>&6
6683 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6686 if test $have_k425 = yes ; then
6687 ol_with_kerberos=found
6690 cat >> confdefs.h <<\EOF
6691 #define HAVE_KRB425 1
6694 cat >> confdefs.h <<\EOF
6699 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6700 echo "configure:6701: checking for des_debug in Kerberos libraries" >&5
6701 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6706 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6711 #include <kerberosIV/krb.h>
6712 #include <kerberosIV/des.h>
6713 extern int des_debug;
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 ol_cv_var_des_debug=yes
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 ol_cv_var_des_debug=no
6735 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6737 if test $ol_cv_var_des_debug = yes ; then
6738 cat >> confdefs.h <<\EOF
6739 #define HAVE_DES_DEBUG 1
6749 if test $ol_link_krb5 = yes ; then
6750 ol_with_kerberos=found
6753 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6754 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6756 for ac_hdr in krb.h des.h krb-archaeology.h
6758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_hdr" >&5
6761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6774 eval "ac_cv_header_$ac_safe=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_header_$ac_safe=no"
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6787 cat >> confdefs.h <<EOF
6788 #define $ac_tr_hdr 1
6792 echo "$ac_t""no" 1>&6
6797 if test $ac_cv_header_krb_h = yes ; then
6798 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6799 echo "configure:6800: checking for main in -lkrb" >&5
6800 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6801 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 ac_save_LIBS="$LIBS"
6805 LIBS="-lkrb -ldes $LIBS"
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6816 eval "ac_cv_lib_$ac_lib_var=yes"
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_lib_$ac_lib_var=no"
6824 LIBS="$ac_save_LIBS"
6827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6828 echo "$ac_t""yes" 1>&6
6831 echo "$ac_t""no" 1>&6
6836 if test $have_k4 = yes ; then
6837 ol_with_kerberos=found
6840 cat >> confdefs.h <<\EOF
6845 KRB4_LIBS="-lkrb -ldes"
6847 if test $ac_cv_header_krb_archaeology_h = yes ; then
6848 cat >> confdefs.h <<\EOF
6849 #define HAVE_KTH_KERBEROS 1
6857 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6861 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6864 elif test $ol_enable_kbind = yes ; then
6865 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6868 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6869 cat >> confdefs.h <<\EOF
6870 #define HAVE_KERBEROS 1
6874 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6875 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6879 if test $ol_with_tls != no ; then
6880 for ac_hdr in openssl/ssl.h ssl.h
6882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6884 echo "configure:6885: checking for $ac_hdr" >&5
6885 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6888 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6894 { (eval echo configure:6895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6896 if test -z "$ac_err"; then
6898 eval "ac_cv_header_$ac_safe=yes"
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 eval "ac_cv_header_$ac_safe=no"
6908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6911 cat >> confdefs.h <<EOF
6912 #define $ac_tr_hdr 1
6916 echo "$ac_t""no" 1>&6
6921 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6922 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6923 echo "configure:6924: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6924 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6928 ac_save_LIBS="$LIBS"
6929 LIBS="-lssl -lcrypto $LIBS"
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char SSLeay_add_ssl_algorithms();
6939 SSLeay_add_ssl_algorithms()
6942 if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6944 eval "ac_cv_lib_$ac_lib_var=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6949 eval "ac_cv_lib_$ac_lib_var=no"
6952 LIBS="$ac_save_LIBS"
6955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6956 echo "$ac_t""yes" 1>&6
6960 echo "$ac_t""no" 1>&6
6965 if test $have_ssleay = no ; then
6966 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6967 echo "configure:6968: checking for SSL_library_init in -lssl" >&5
6968 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6969 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 ac_save_LIBS="$LIBS"
6973 LIBS="-lssl -lcrypto $LIBS"
6974 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char SSL_library_init();
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 eval "ac_cv_lib_$ac_lib_var=no"
6996 LIBS="$ac_save_LIBS"
6999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7004 echo "$ac_t""no" 1>&6
7010 if test $have_ssleay = no ; then
7011 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
7012 echo "configure:7013: checking for ssl3_accept in -lssl" >&5
7013 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
7014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7017 ac_save_LIBS="$LIBS"
7018 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
7019 cat > conftest.$ac_ext <<EOF
7020 #line 7021 "configure"
7021 #include "confdefs.h"
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7033 eval "ac_cv_lib_$ac_lib_var=yes"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7038 eval "ac_cv_lib_$ac_lib_var=no"
7041 LIBS="$ac_save_LIBS"
7044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7049 echo "$ac_t""no" 1>&6
7055 if test $have_ssleay = yes ; then
7059 cat >> confdefs.h <<\EOF
7060 #define HAVE_SSLEAY 1
7064 if test $need_rsaref = yes; then
7065 cat >> confdefs.h <<\EOF
7066 #define HAVE_RSAREF 1
7070 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
7072 TLS_LIBS="-lssl -lcrypto"
7078 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7081 if test $ol_link_tls = yes ; then
7082 cat >> confdefs.h <<\EOF
7087 elif test $ol_with_tls = auto ; then
7088 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
7089 echo "configure: warning: TLS privacy protection not supported!" 1>&2
7091 elif test $ol_with_tls != no ; then
7092 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
7095 if test $ol_enable_lmpasswd != no; then
7096 if test $ol_link_tls != yes ; then
7097 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
7100 cat >> confdefs.h <<\EOF
7101 #define SLAPD_LMHASH 1
7108 gethostbyname_r gethostbyaddr_r \
7111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7112 echo "configure:7113: checking for $ac_func" >&5
7113 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7114 echo $ac_n "(cached) $ac_c" 1>&6
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7119 /* System header to define __stub macros and hopefully few prototypes,
7120 which can conflict with char $ac_func(); below. */
7122 /* Override any gcc2 internal prototype to avoid an error. */
7123 /* We use char because int might match the return type of a gcc2
7124 builtin and then its argument prototype would still apply. */
7130 /* The GNU C library defines this for functions which it implements
7131 to always fail with ENOSYS. Some functions are actually named
7132 something starting with __ and the normal name is an alias. */
7133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7141 if { (eval echo configure:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143 eval "ac_cv_func_$ac_func=yes"
7145 echo "configure: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7148 eval "ac_cv_func_$ac_func=no"
7153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7154 echo "$ac_t""yes" 1>&6
7155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7156 cat >> confdefs.h <<EOF
7157 #define $ac_tr_func 1
7161 echo "$ac_t""no" 1>&6
7166 if test "$ac_cv_func_ctime_r" = no ; then
7167 ol_cv_func_ctime_r_nargs=0
7169 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7170 echo "configure:7171: checking number of arguments of ctime_r" >&5
7171 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7174 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7179 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7182 if { (eval echo configure:7183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7184 ol_cv_func_ctime_r_nargs3=yes
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7189 ol_cv_func_ctime_r_nargs3=no
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7198 time_t ti; char *buffer; ctime_r(&ti,buffer);
7201 if { (eval echo configure:7202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 ol_cv_func_ctime_r_nargs2=yes
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 ol_cv_func_ctime_r_nargs2=no
7212 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7213 $ol_cv_func_ctime_r_nargs2 = no ; then
7215 ol_cv_func_ctime_r_nargs=3
7217 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7218 $ol_cv_func_ctime_r_nargs2 = yes ; then
7220 ol_cv_func_ctime_r_nargs=2
7223 ol_cv_func_ctime_r_nargs=0
7228 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7230 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7231 cat >> confdefs.h <<EOF
7232 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7239 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7240 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7241 echo "configure:7242: checking number of arguments of gethostbyname_r" >&5
7242 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 #include <sys/types.h>
7249 #include <sys/socket.h>
7250 #include <netinet/in.h>
7252 #define BUFSIZE (sizeof(struct hostent)+10)
7254 struct hostent hent; char buffer[BUFSIZE];
7255 int bufsize=BUFSIZE;int h_errno;
7256 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7257 buffer, bufsize, &h_errno);
7260 if { (eval echo configure:7261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7262 ol_cv_func_gethostbyname_r_nargs5=yes
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 ol_cv_func_gethostbyname_r_nargs5=no
7271 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7274 #include <sys/types.h>
7275 #include <sys/socket.h>
7276 #include <netinet/in.h>
7278 #define BUFSIZE (sizeof(struct hostent)+10)
7280 struct hostent hent;struct hostent *rhent;
7281 char buffer[BUFSIZE];
7282 int bufsize=BUFSIZE;int h_errno;
7283 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7287 if { (eval echo configure:7288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7289 ol_cv_func_gethostbyname_r_nargs6=yes
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 ol_cv_func_gethostbyname_r_nargs6=no
7298 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7299 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7301 ol_cv_func_gethostbyname_r_nargs=5
7303 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7304 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7306 ol_cv_func_gethostbyname_r_nargs=6
7309 ol_cv_func_gethostbyname_r_nargs=0
7314 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7315 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7316 cat >> confdefs.h <<EOF
7317 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7323 ol_cv_func_gethostbyname_r_nargs=0
7326 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7327 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7328 echo "configure:7329: checking number of arguments of gethostbyaddr_r" >&5
7329 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7330 echo $ac_n "(cached) $ac_c" 1>&6
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <sys/types.h>
7336 #include <sys/socket.h>
7337 #include <netinet/in.h>
7339 #define BUFSIZE (sizeof(struct hostent)+10)
7341 struct hostent hent; char buffer[BUFSIZE];
7343 size_t alen=sizeof(struct in_addr);
7344 int bufsize=BUFSIZE;int h_errno;
7345 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7346 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7349 if { (eval echo configure:7350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7351 ol_cv_func_gethostbyaddr_r_nargs7=yes
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 ol_cv_func_gethostbyaddr_r_nargs7=no
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7363 #include <sys/types.h>
7364 #include <sys/socket.h>
7365 #include <netinet/in.h>
7367 #define BUFSIZE (sizeof(struct hostent)+10)
7369 struct hostent hent;
7370 struct hostent *rhent; char buffer[BUFSIZE];
7372 size_t alen=sizeof(struct in_addr);
7373 int bufsize=BUFSIZE;int h_errno;
7374 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7375 alen, AF_INET, &hent, buffer, bufsize,
7379 if { (eval echo configure:7380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7381 ol_cv_func_gethostbyaddr_r_nargs8=yes
7383 echo "configure: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7386 ol_cv_func_gethostbyaddr_r_nargs8=no
7390 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7391 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7393 ol_cv_func_gethostbyaddr_r_nargs=7
7395 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7396 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7398 ol_cv_func_gethostbyaddr_r_nargs=8
7401 ol_cv_func_gethostbyaddr_r_nargs=0
7406 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7407 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7408 cat >> confdefs.h <<EOF
7409 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7415 ol_cv_func_gethostbyaddr_r_nargs=0
7418 if test "$ac_cv_func_ctime_r" = yes \
7419 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7420 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7421 -a "$ac_cv_func_gethostbyname_r" = yes \
7422 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7423 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7424 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7425 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7426 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7429 cat >> confdefs.h <<\EOF
7430 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7437 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7438 -o $ol_with_threads = nt ; then
7441 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7442 echo "configure:7443: checking for _beginthread" >&5
7443 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7444 echo $ac_n "(cached) $ac_c" 1>&6
7446 cat > conftest.$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 /* System header to define __stub macros and hopefully few prototypes,
7450 which can conflict with char _beginthread(); below. */
7452 /* Override any gcc2 internal prototype to avoid an error. */
7453 /* We use char because int might match the return type of a gcc2
7454 builtin and then its argument prototype would still apply. */
7455 char _beginthread();
7460 /* The GNU C library defines this for functions which it implements
7461 to always fail with ENOSYS. Some functions are actually named
7462 something starting with __ and the normal name is an alias. */
7463 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473 eval "ac_cv_func__beginthread=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 eval "ac_cv_func__beginthread=no"
7483 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7487 echo "$ac_t""no" 1>&6
7491 if test $ac_cv_func__beginthread = yes ; then
7492 cat >> confdefs.h <<\EOF
7493 #define HAVE_NT_THREADS 1
7499 if test "$ol_cv_nt_threads" = yes ; then
7501 ol_with_threads=found
7502 ol_with_yielding_select=yes
7504 cat >> confdefs.h <<\EOF
7505 #define HAVE_NT_SERVICE_MANAGER 1
7508 cat >> confdefs.h <<\EOF
7509 #define HAVE_NT_EVENT_LOG 1
7514 if test $ol_with_threads = nt ; then
7515 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7519 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7520 -o $ol_with_threads = posix ; then
7522 for ac_hdr in pthread.h
7524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7526 echo "configure:7527: checking for $ac_hdr" >&5
7527 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7536 { (eval echo configure:7537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7538 if test -z "$ac_err"; then
7540 eval "ac_cv_header_$ac_safe=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 eval "ac_cv_header_$ac_safe=no"
7550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7553 cat >> confdefs.h <<EOF
7554 #define $ac_tr_hdr 1
7558 echo "$ac_t""no" 1>&6
7563 if test $ac_cv_header_pthread_h = yes ; then
7564 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7565 echo "configure:7566: checking POSIX thread version" >&5
7566 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7574 # include <pthread.h>
7575 /* this check could be improved */
7576 # ifdef PTHREAD_ONCE_INIT
7577 pthread_version_final;
7581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582 egrep "pthread_version_final" >/dev/null 2>&1; then
7584 ol_pthread_final=yes
7592 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7596 # include <pthread.h>
7597 /* this check could be improved */
7598 # ifdef pthread_once_init
7599 pthread_version_draft4;
7603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7606 ol_pthread_draft4=yes
7609 ol_pthread_draft4=no
7614 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7615 ol_cv_pthread_version=final
7616 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7617 ol_cv_pthread_version=draft4
7619 ol_cv_pthread_version=unknown
7624 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7627 if test $ol_cv_pthread_version = final ; then
7628 cat >> confdefs.h <<\EOF
7629 #define HAVE_PTHREADS_FINAL 1
7632 elif test $ol_cv_pthread_version = draft4 ; then
7633 cat >> confdefs.h <<\EOF
7634 #define HAVE_PTHREADS_D4 1
7638 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7641 # consider threads found
7642 ol_with_threads=found
7645 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7646 echo "configure:7647: checking for LinuxThreads pthread.h" >&5
7647 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7650 cat > conftest.$ac_ext <<EOF
7651 #line 7652 "configure"
7652 #include "confdefs.h"
7653 #include <pthread.h>
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7658 ol_cv_header_linux_threads=yes
7661 ol_cv_header_linux_threads=no
7668 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7669 if test $ol_cv_header_linux_threads = yes; then
7670 cat >> confdefs.h <<\EOF
7671 #define HAVE_LINUX_THREADS 1
7677 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7678 echo "configure:7679: checking for GNU Pth pthread.h" >&5
7679 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 #include <pthread.h>
7686 #ifdef _POSIX_THREAD_IS_GNU_PTH
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 egrep "__gnu_pth__" >/dev/null 2>&1; then
7694 ol_cv_header_gnu_pth_pthread_h=yes
7697 ol_cv_header_gnu_pth_pthread_h=no
7704 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7707 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7708 for ac_hdr in sched.h
7710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7712 echo "configure:7713: checking for $ac_hdr" >&5
7713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7714 echo $ac_n "(cached) $ac_c" 1>&6
7716 cat > conftest.$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7722 { (eval echo configure:7723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7724 if test -z "$ac_err"; then
7726 eval "ac_cv_header_$ac_safe=yes"
7729 echo "configure: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 eval "ac_cv_header_$ac_safe=no"
7736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7737 echo "$ac_t""yes" 1>&6
7738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7739 cat >> confdefs.h <<EOF
7740 #define $ac_tr_hdr 1
7744 echo "$ac_t""no" 1>&6
7751 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7752 echo "configure:7753: checking for pthread_create in default libraries" >&5
7753 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7757 if test "$cross_compiling" = yes; then
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* pthread test headers */
7762 #include <pthread.h>
7764 #define NULL (void*)0
7767 static void *task(p)
7770 return (void *) (p == NULL);
7775 /* pthread test function */
7780 #ifdef HAVE_PTHREADS_FINAL
7781 /* Final pthreads */
7782 pthread_attr_t attr;
7784 status = pthread_attr_init(&attr);
7785 if( status ) return status;
7787 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7789 #if defined( PTHREAD_CREATE_JOINABLE )
7790 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7792 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7795 #ifdef PTHREAD_CREATE_DETACHED
7797 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7800 if( status ) return status;
7803 status = pthread_create( &t, &attr, task, NULL );
7804 if( status ) return status;
7806 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7808 /* give thread a chance to complete */
7809 /* it should remain joinable and hence detachable */
7812 status = pthread_detach( t );
7813 if( status ) return status;
7818 /* Draft 4 pthreads */
7819 status = pthread_create( &t, pthread_attr_default, task, NULL );
7820 if( status ) return status;
7823 /* give thread a chance to complete */
7824 /* it should remain joinable and hence detachable */
7827 status = pthread_detach( &t );
7828 if( status ) return status;
7832 #ifdef HAVE_LINUX_THREADS
7833 pthread_kill_other_threads_np();
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 ol_cv_pthread_create=yes
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 ol_cv_pthread_create=no
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* pthread test headers */
7855 #include <pthread.h>
7857 #define NULL (void*)0
7860 static void *task(p)
7863 return (void *) (p == NULL);
7867 int main(argc, argv)
7872 /* pthread test function */
7877 #ifdef HAVE_PTHREADS_FINAL
7878 /* Final pthreads */
7879 pthread_attr_t attr;
7881 status = pthread_attr_init(&attr);
7882 if( status ) return status;
7884 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7886 #if defined( PTHREAD_CREATE_JOINABLE )
7887 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7889 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7892 #ifdef PTHREAD_CREATE_DETACHED
7894 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7897 if( status ) return status;
7900 status = pthread_create( &t, &attr, task, NULL );
7901 if( status ) return status;
7903 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7905 /* give thread a chance to complete */
7906 /* it should remain joinable and hence detachable */
7909 status = pthread_detach( t );
7910 if( status ) return status;
7915 /* Draft 4 pthreads */
7916 status = pthread_create( &t, pthread_attr_default, task, NULL );
7917 if( status ) return status;
7920 /* give thread a chance to complete */
7921 /* it should remain joinable and hence detachable */
7924 status = pthread_detach( &t );
7925 if( status ) return status;
7929 #ifdef HAVE_LINUX_THREADS
7930 pthread_kill_other_threads_np();
7938 if { (eval echo configure:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7940 ol_cv_pthread_create=yes
7942 echo "configure: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7945 ol_cv_pthread_create=no
7952 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7954 if test $ol_cv_pthread_create != no ; then
7955 ol_link_threads=posix
7959 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7960 if test "$ol_link_threads" = no ; then
7962 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7963 echo "configure:7964: checking for pthread link with -kthread" >&5
7964 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7970 LIBS="-kthread $LIBS"
7972 if test "$cross_compiling" = yes; then
7973 cat > conftest.$ac_ext <<EOF
7974 #line 7975 "configure"
7975 #include "confdefs.h"
7976 /* pthread test headers */
7977 #include <pthread.h>
7979 #define NULL (void*)0
7982 static void *task(p)
7985 return (void *) (p == NULL);
7990 /* pthread test function */
7995 #ifdef HAVE_PTHREADS_FINAL
7996 /* Final pthreads */
7997 pthread_attr_t attr;
7999 status = pthread_attr_init(&attr);
8000 if( status ) return status;
8002 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8004 #if defined( PTHREAD_CREATE_JOINABLE )
8005 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8007 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8010 #ifdef PTHREAD_CREATE_DETACHED
8012 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8015 if( status ) return status;
8018 status = pthread_create( &t, &attr, task, NULL );
8019 if( status ) return status;
8021 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8023 /* give thread a chance to complete */
8024 /* it should remain joinable and hence detachable */
8027 status = pthread_detach( t );
8028 if( status ) return status;
8033 /* Draft 4 pthreads */
8034 status = pthread_create( &t, pthread_attr_default, task, NULL );
8035 if( status ) return status;
8038 /* give thread a chance to complete */
8039 /* it should remain joinable and hence detachable */
8042 status = pthread_detach( &t );
8043 if( status ) return status;
8047 #ifdef HAVE_LINUX_THREADS
8048 pthread_kill_other_threads_np();
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8057 ol_cv_pthread_kthread=yes
8059 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8062 ol_cv_pthread_kthread=no
8066 cat > conftest.$ac_ext <<EOF
8067 #line 8068 "configure"
8068 #include "confdefs.h"
8069 /* pthread test headers */
8070 #include <pthread.h>
8072 #define NULL (void*)0
8075 static void *task(p)
8078 return (void *) (p == NULL);
8082 int main(argc, argv)
8087 /* pthread test function */
8092 #ifdef HAVE_PTHREADS_FINAL
8093 /* Final pthreads */
8094 pthread_attr_t attr;
8096 status = pthread_attr_init(&attr);
8097 if( status ) return status;
8099 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8101 #if defined( PTHREAD_CREATE_JOINABLE )
8102 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8107 #ifdef PTHREAD_CREATE_DETACHED
8109 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8112 if( status ) return status;
8115 status = pthread_create( &t, &attr, task, NULL );
8116 if( status ) return status;
8118 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8120 /* give thread a chance to complete */
8121 /* it should remain joinable and hence detachable */
8124 status = pthread_detach( t );
8125 if( status ) return status;
8130 /* Draft 4 pthreads */
8131 status = pthread_create( &t, pthread_attr_default, task, NULL );
8132 if( status ) return status;
8135 /* give thread a chance to complete */
8136 /* it should remain joinable and hence detachable */
8139 status = pthread_detach( &t );
8140 if( status ) return status;
8144 #ifdef HAVE_LINUX_THREADS
8145 pthread_kill_other_threads_np();
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8155 ol_cv_pthread_kthread=yes
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8160 ol_cv_pthread_kthread=no
8171 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8173 if test $ol_cv_pthread_kthread = yes ; then
8174 ol_link_pthreads="-kthread"
8175 ol_link_threads=posix
8179 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8180 if test "$ol_link_threads" = no ; then
8182 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8183 echo "configure:8184: checking for pthread link with -pthread" >&5
8184 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8190 LIBS="-pthread $LIBS"
8192 if test "$cross_compiling" = yes; then
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* pthread test headers */
8197 #include <pthread.h>
8199 #define NULL (void*)0
8202 static void *task(p)
8205 return (void *) (p == NULL);
8210 /* pthread test function */
8215 #ifdef HAVE_PTHREADS_FINAL
8216 /* Final pthreads */
8217 pthread_attr_t attr;
8219 status = pthread_attr_init(&attr);
8220 if( status ) return status;
8222 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8224 #if defined( PTHREAD_CREATE_JOINABLE )
8225 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8227 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8230 #ifdef PTHREAD_CREATE_DETACHED
8232 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8235 if( status ) return status;
8238 status = pthread_create( &t, &attr, task, NULL );
8239 if( status ) return status;
8241 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8243 /* give thread a chance to complete */
8244 /* it should remain joinable and hence detachable */
8247 status = pthread_detach( t );
8248 if( status ) return status;
8253 /* Draft 4 pthreads */
8254 status = pthread_create( &t, pthread_attr_default, task, NULL );
8255 if( status ) return status;
8258 /* give thread a chance to complete */
8259 /* it should remain joinable and hence detachable */
8262 status = pthread_detach( &t );
8263 if( status ) return status;
8267 #ifdef HAVE_LINUX_THREADS
8268 pthread_kill_other_threads_np();
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8277 ol_cv_pthread_pthread=yes
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 ol_cv_pthread_pthread=no
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8289 /* pthread test headers */
8290 #include <pthread.h>
8292 #define NULL (void*)0
8295 static void *task(p)
8298 return (void *) (p == NULL);
8302 int main(argc, argv)
8307 /* pthread test function */
8312 #ifdef HAVE_PTHREADS_FINAL
8313 /* Final pthreads */
8314 pthread_attr_t attr;
8316 status = pthread_attr_init(&attr);
8317 if( status ) return status;
8319 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8321 #if defined( PTHREAD_CREATE_JOINABLE )
8322 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8324 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8327 #ifdef PTHREAD_CREATE_DETACHED
8329 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8332 if( status ) return status;
8335 status = pthread_create( &t, &attr, task, NULL );
8336 if( status ) return status;
8338 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8340 /* give thread a chance to complete */
8341 /* it should remain joinable and hence detachable */
8344 status = pthread_detach( t );
8345 if( status ) return status;
8350 /* Draft 4 pthreads */
8351 status = pthread_create( &t, pthread_attr_default, task, NULL );
8352 if( status ) return status;
8355 /* give thread a chance to complete */
8356 /* it should remain joinable and hence detachable */
8359 status = pthread_detach( &t );
8360 if( status ) return status;
8364 #ifdef HAVE_LINUX_THREADS
8365 pthread_kill_other_threads_np();
8373 if { (eval echo configure:8374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8375 ol_cv_pthread_pthread=yes
8377 echo "configure: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8380 ol_cv_pthread_pthread=no
8391 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8393 if test $ol_cv_pthread_pthread = yes ; then
8394 ol_link_pthreads="-pthread"
8395 ol_link_threads=posix
8399 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8400 if test "$ol_link_threads" = no ; then
8402 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8403 echo "configure:8404: checking for pthread link with -pthreads" >&5
8404 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8410 LIBS="-pthreads $LIBS"
8412 if test "$cross_compiling" = yes; then
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 /* pthread test headers */
8417 #include <pthread.h>
8419 #define NULL (void*)0
8422 static void *task(p)
8425 return (void *) (p == NULL);
8430 /* pthread test function */
8435 #ifdef HAVE_PTHREADS_FINAL
8436 /* Final pthreads */
8437 pthread_attr_t attr;
8439 status = pthread_attr_init(&attr);
8440 if( status ) return status;
8442 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8444 #if defined( PTHREAD_CREATE_JOINABLE )
8445 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8447 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8450 #ifdef PTHREAD_CREATE_DETACHED
8452 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8455 if( status ) return status;
8458 status = pthread_create( &t, &attr, task, NULL );
8459 if( status ) return status;
8461 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8463 /* give thread a chance to complete */
8464 /* it should remain joinable and hence detachable */
8467 status = pthread_detach( t );
8468 if( status ) return status;
8473 /* Draft 4 pthreads */
8474 status = pthread_create( &t, pthread_attr_default, task, NULL );
8475 if( status ) return status;
8478 /* give thread a chance to complete */
8479 /* it should remain joinable and hence detachable */
8482 status = pthread_detach( &t );
8483 if( status ) return status;
8487 #ifdef HAVE_LINUX_THREADS
8488 pthread_kill_other_threads_np();
8495 if { (eval echo configure:8496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8497 ol_cv_pthread_pthreads=yes
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 ol_cv_pthread_pthreads=no
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 /* pthread test headers */
8510 #include <pthread.h>
8512 #define NULL (void*)0
8515 static void *task(p)
8518 return (void *) (p == NULL);
8522 int main(argc, argv)
8527 /* pthread test function */
8532 #ifdef HAVE_PTHREADS_FINAL
8533 /* Final pthreads */
8534 pthread_attr_t attr;
8536 status = pthread_attr_init(&attr);
8537 if( status ) return status;
8539 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8541 #if defined( PTHREAD_CREATE_JOINABLE )
8542 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8544 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8547 #ifdef PTHREAD_CREATE_DETACHED
8549 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8552 if( status ) return status;
8555 status = pthread_create( &t, &attr, task, NULL );
8556 if( status ) return status;
8558 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8560 /* give thread a chance to complete */
8561 /* it should remain joinable and hence detachable */
8564 status = pthread_detach( t );
8565 if( status ) return status;
8570 /* Draft 4 pthreads */
8571 status = pthread_create( &t, pthread_attr_default, task, NULL );
8572 if( status ) return status;
8575 /* give thread a chance to complete */
8576 /* it should remain joinable and hence detachable */
8579 status = pthread_detach( &t );
8580 if( status ) return status;
8584 #ifdef HAVE_LINUX_THREADS
8585 pthread_kill_other_threads_np();
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8595 ol_cv_pthread_pthreads=yes
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8600 ol_cv_pthread_pthreads=no
8611 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8613 if test $ol_cv_pthread_pthreads = yes ; then
8614 ol_link_pthreads="-pthreads"
8615 ol_link_threads=posix
8619 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8620 if test "$ol_link_threads" = no ; then
8622 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8623 echo "configure:8624: checking for pthread link with -mthreads" >&5
8624 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8630 LIBS="-mthreads $LIBS"
8632 if test "$cross_compiling" = yes; then
8633 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8636 /* pthread test headers */
8637 #include <pthread.h>
8639 #define NULL (void*)0
8642 static void *task(p)
8645 return (void *) (p == NULL);
8650 /* pthread test function */
8655 #ifdef HAVE_PTHREADS_FINAL
8656 /* Final pthreads */
8657 pthread_attr_t attr;
8659 status = pthread_attr_init(&attr);
8660 if( status ) return status;
8662 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8664 #if defined( PTHREAD_CREATE_JOINABLE )
8665 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8667 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8670 #ifdef PTHREAD_CREATE_DETACHED
8672 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8675 if( status ) return status;
8678 status = pthread_create( &t, &attr, task, NULL );
8679 if( status ) return status;
8681 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8683 /* give thread a chance to complete */
8684 /* it should remain joinable and hence detachable */
8687 status = pthread_detach( t );
8688 if( status ) return status;
8693 /* Draft 4 pthreads */
8694 status = pthread_create( &t, pthread_attr_default, task, NULL );
8695 if( status ) return status;
8698 /* give thread a chance to complete */
8699 /* it should remain joinable and hence detachable */
8702 status = pthread_detach( &t );
8703 if( status ) return status;
8707 #ifdef HAVE_LINUX_THREADS
8708 pthread_kill_other_threads_np();
8715 if { (eval echo configure:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8717 ol_cv_pthread_mthreads=yes
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8722 ol_cv_pthread_mthreads=no
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 /* pthread test headers */
8730 #include <pthread.h>
8732 #define NULL (void*)0
8735 static void *task(p)
8738 return (void *) (p == NULL);
8742 int main(argc, argv)
8747 /* pthread test function */
8752 #ifdef HAVE_PTHREADS_FINAL
8753 /* Final pthreads */
8754 pthread_attr_t attr;
8756 status = pthread_attr_init(&attr);
8757 if( status ) return status;
8759 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8761 #if defined( PTHREAD_CREATE_JOINABLE )
8762 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8764 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8767 #ifdef PTHREAD_CREATE_DETACHED
8769 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8772 if( status ) return status;
8775 status = pthread_create( &t, &attr, task, NULL );
8776 if( status ) return status;
8778 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8780 /* give thread a chance to complete */
8781 /* it should remain joinable and hence detachable */
8784 status = pthread_detach( t );
8785 if( status ) return status;
8790 /* Draft 4 pthreads */
8791 status = pthread_create( &t, pthread_attr_default, task, NULL );
8792 if( status ) return status;
8795 /* give thread a chance to complete */
8796 /* it should remain joinable and hence detachable */
8799 status = pthread_detach( &t );
8800 if( status ) return status;
8804 #ifdef HAVE_LINUX_THREADS
8805 pthread_kill_other_threads_np();
8813 if { (eval echo configure:8814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8815 ol_cv_pthread_mthreads=yes
8817 echo "configure: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8820 ol_cv_pthread_mthreads=no
8831 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8833 if test $ol_cv_pthread_mthreads = yes ; then
8834 ol_link_pthreads="-mthreads"
8835 ol_link_threads=posix
8839 # Pthread try link: -thread (ol_cv_pthread_thread)
8840 if test "$ol_link_threads" = no ; then
8842 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8843 echo "configure:8844: checking for pthread link with -thread" >&5
8844 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8850 LIBS="-thread $LIBS"
8852 if test "$cross_compiling" = yes; then
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 /* pthread test headers */
8857 #include <pthread.h>
8859 #define NULL (void*)0
8862 static void *task(p)
8865 return (void *) (p == NULL);
8870 /* pthread test function */
8875 #ifdef HAVE_PTHREADS_FINAL
8876 /* Final pthreads */
8877 pthread_attr_t attr;
8879 status = pthread_attr_init(&attr);
8880 if( status ) return status;
8882 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8884 #if defined( PTHREAD_CREATE_JOINABLE )
8885 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8887 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8890 #ifdef PTHREAD_CREATE_DETACHED
8892 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8895 if( status ) return status;
8898 status = pthread_create( &t, &attr, task, NULL );
8899 if( status ) return status;
8901 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8903 /* give thread a chance to complete */
8904 /* it should remain joinable and hence detachable */
8907 status = pthread_detach( t );
8908 if( status ) return status;
8913 /* Draft 4 pthreads */
8914 status = pthread_create( &t, pthread_attr_default, task, NULL );
8915 if( status ) return status;
8918 /* give thread a chance to complete */
8919 /* it should remain joinable and hence detachable */
8922 status = pthread_detach( &t );
8923 if( status ) return status;
8927 #ifdef HAVE_LINUX_THREADS
8928 pthread_kill_other_threads_np();
8935 if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8937 ol_cv_pthread_thread=yes
8939 echo "configure: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8942 ol_cv_pthread_thread=no
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 /* pthread test headers */
8950 #include <pthread.h>
8952 #define NULL (void*)0
8955 static void *task(p)
8958 return (void *) (p == NULL);
8962 int main(argc, argv)
8967 /* pthread test function */
8972 #ifdef HAVE_PTHREADS_FINAL
8973 /* Final pthreads */
8974 pthread_attr_t attr;
8976 status = pthread_attr_init(&attr);
8977 if( status ) return status;
8979 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8981 #if defined( PTHREAD_CREATE_JOINABLE )
8982 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8984 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8987 #ifdef PTHREAD_CREATE_DETACHED
8989 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8992 if( status ) return status;
8995 status = pthread_create( &t, &attr, task, NULL );
8996 if( status ) return status;
8998 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9000 /* give thread a chance to complete */
9001 /* it should remain joinable and hence detachable */
9004 status = pthread_detach( t );
9005 if( status ) return status;
9010 /* Draft 4 pthreads */
9011 status = pthread_create( &t, pthread_attr_default, task, NULL );
9012 if( status ) return status;
9015 /* give thread a chance to complete */
9016 /* it should remain joinable and hence detachable */
9019 status = pthread_detach( &t );
9020 if( status ) return status;
9024 #ifdef HAVE_LINUX_THREADS
9025 pthread_kill_other_threads_np();
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9035 ol_cv_pthread_thread=yes
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 ol_cv_pthread_thread=no
9051 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
9053 if test $ol_cv_pthread_thread = yes ; then
9054 ol_link_pthreads="-thread"
9055 ol_link_threads=posix
9060 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
9061 if test "$ol_link_threads" = no ; then
9062 # try -lpthread -lmach -lexc -lc_r
9063 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
9064 echo "configure:9065: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
9065 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9071 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
9073 if test "$cross_compiling" = yes; then
9074 cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 /* pthread test headers */
9078 #include <pthread.h>
9080 #define NULL (void*)0
9083 static void *task(p)
9086 return (void *) (p == NULL);
9091 /* pthread test function */
9096 #ifdef HAVE_PTHREADS_FINAL
9097 /* Final pthreads */
9098 pthread_attr_t attr;
9100 status = pthread_attr_init(&attr);
9101 if( status ) return status;
9103 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9105 #if defined( PTHREAD_CREATE_JOINABLE )
9106 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9108 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9111 #ifdef PTHREAD_CREATE_DETACHED
9113 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9116 if( status ) return status;
9119 status = pthread_create( &t, &attr, task, NULL );
9120 if( status ) return status;
9122 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9124 /* give thread a chance to complete */
9125 /* it should remain joinable and hence detachable */
9128 status = pthread_detach( t );
9129 if( status ) return status;
9134 /* Draft 4 pthreads */
9135 status = pthread_create( &t, pthread_attr_default, task, NULL );
9136 if( status ) return status;
9139 /* give thread a chance to complete */
9140 /* it should remain joinable and hence detachable */
9143 status = pthread_detach( &t );
9144 if( status ) return status;
9148 #ifdef HAVE_LINUX_THREADS
9149 pthread_kill_other_threads_np();
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9158 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 /* pthread test headers */
9171 #include <pthread.h>
9173 #define NULL (void*)0
9176 static void *task(p)
9179 return (void *) (p == NULL);
9183 int main(argc, argv)
9188 /* pthread test function */
9193 #ifdef HAVE_PTHREADS_FINAL
9194 /* Final pthreads */
9195 pthread_attr_t attr;
9197 status = pthread_attr_init(&attr);
9198 if( status ) return status;
9200 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9202 #if defined( PTHREAD_CREATE_JOINABLE )
9203 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9205 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9208 #ifdef PTHREAD_CREATE_DETACHED
9210 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9213 if( status ) return status;
9216 status = pthread_create( &t, &attr, task, NULL );
9217 if( status ) return status;
9219 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9221 /* give thread a chance to complete */
9222 /* it should remain joinable and hence detachable */
9225 status = pthread_detach( t );
9226 if( status ) return status;
9231 /* Draft 4 pthreads */
9232 status = pthread_create( &t, pthread_attr_default, task, NULL );
9233 if( status ) return status;
9236 /* give thread a chance to complete */
9237 /* it should remain joinable and hence detachable */
9240 status = pthread_detach( &t );
9241 if( status ) return status;
9245 #ifdef HAVE_LINUX_THREADS
9246 pthread_kill_other_threads_np();
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9256 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9261 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9272 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9274 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9275 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9276 ol_link_threads=posix
9280 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9281 if test "$ol_link_threads" = no ; then
9282 # try -lpthread -lmach -lexc
9283 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9284 echo "configure:9285: checking for pthread link with -lpthread -lmach -lexc" >&5
9285 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9291 LIBS="-lpthread -lmach -lexc $LIBS"
9293 if test "$cross_compiling" = yes; then
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9297 /* pthread test headers */
9298 #include <pthread.h>
9300 #define NULL (void*)0
9303 static void *task(p)
9306 return (void *) (p == NULL);
9311 /* pthread test function */
9316 #ifdef HAVE_PTHREADS_FINAL
9317 /* Final pthreads */
9318 pthread_attr_t attr;
9320 status = pthread_attr_init(&attr);
9321 if( status ) return status;
9323 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9325 #if defined( PTHREAD_CREATE_JOINABLE )
9326 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9328 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9331 #ifdef PTHREAD_CREATE_DETACHED
9333 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9336 if( status ) return status;
9339 status = pthread_create( &t, &attr, task, NULL );
9340 if( status ) return status;
9342 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9344 /* give thread a chance to complete */
9345 /* it should remain joinable and hence detachable */
9348 status = pthread_detach( t );
9349 if( status ) return status;
9354 /* Draft 4 pthreads */
9355 status = pthread_create( &t, pthread_attr_default, task, NULL );
9356 if( status ) return status;
9359 /* give thread a chance to complete */
9360 /* it should remain joinable and hence detachable */
9363 status = pthread_detach( &t );
9364 if( status ) return status;
9368 #ifdef HAVE_LINUX_THREADS
9369 pthread_kill_other_threads_np();
9376 if { (eval echo configure:9377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9378 ol_cv_pthread_lpthread_lmach_lexc=yes
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9383 ol_cv_pthread_lpthread_lmach_lexc=no
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390 /* pthread test headers */
9391 #include <pthread.h>
9393 #define NULL (void*)0
9396 static void *task(p)
9399 return (void *) (p == NULL);
9403 int main(argc, argv)
9408 /* pthread test function */
9413 #ifdef HAVE_PTHREADS_FINAL
9414 /* Final pthreads */
9415 pthread_attr_t attr;
9417 status = pthread_attr_init(&attr);
9418 if( status ) return status;
9420 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9422 #if defined( PTHREAD_CREATE_JOINABLE )
9423 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9425 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9428 #ifdef PTHREAD_CREATE_DETACHED
9430 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9433 if( status ) return status;
9436 status = pthread_create( &t, &attr, task, NULL );
9437 if( status ) return status;
9439 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9441 /* give thread a chance to complete */
9442 /* it should remain joinable and hence detachable */
9445 status = pthread_detach( t );
9446 if( status ) return status;
9451 /* Draft 4 pthreads */
9452 status = pthread_create( &t, pthread_attr_default, task, NULL );
9453 if( status ) return status;
9456 /* give thread a chance to complete */
9457 /* it should remain joinable and hence detachable */
9460 status = pthread_detach( &t );
9461 if( status ) return status;
9465 #ifdef HAVE_LINUX_THREADS
9466 pthread_kill_other_threads_np();
9474 if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9476 ol_cv_pthread_lpthread_lmach_lexc=yes
9478 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9481 ol_cv_pthread_lpthread_lmach_lexc=no
9492 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9494 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9495 ol_link_pthreads="-lpthread -lmach -lexc"
9496 ol_link_threads=posix
9501 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9502 if test "$ol_link_threads" = no ; then
9503 # try -lpthread -Wl,-woff,85
9504 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9505 echo "configure:9506: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9506 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9512 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9514 if test "$cross_compiling" = yes; then
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 /* pthread test headers */
9519 #include <pthread.h>
9521 #define NULL (void*)0
9524 static void *task(p)
9527 return (void *) (p == NULL);
9532 /* pthread test function */
9537 #ifdef HAVE_PTHREADS_FINAL
9538 /* Final pthreads */
9539 pthread_attr_t attr;
9541 status = pthread_attr_init(&attr);
9542 if( status ) return status;
9544 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9546 #if defined( PTHREAD_CREATE_JOINABLE )
9547 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9549 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9552 #ifdef PTHREAD_CREATE_DETACHED
9554 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9557 if( status ) return status;
9560 status = pthread_create( &t, &attr, task, NULL );
9561 if( status ) return status;
9563 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9565 /* give thread a chance to complete */
9566 /* it should remain joinable and hence detachable */
9569 status = pthread_detach( t );
9570 if( status ) return status;
9575 /* Draft 4 pthreads */
9576 status = pthread_create( &t, pthread_attr_default, task, NULL );
9577 if( status ) return status;
9580 /* give thread a chance to complete */
9581 /* it should remain joinable and hence detachable */
9584 status = pthread_detach( &t );
9585 if( status ) return status;
9589 #ifdef HAVE_LINUX_THREADS
9590 pthread_kill_other_threads_np();
9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9599 ol_cv_pthread_lib_lpthread_woff=yes
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9604 ol_cv_pthread_lib_lpthread_woff=no
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 /* pthread test headers */
9612 #include <pthread.h>
9614 #define NULL (void*)0
9617 static void *task(p)
9620 return (void *) (p == NULL);
9624 int main(argc, argv)
9629 /* pthread test function */
9634 #ifdef HAVE_PTHREADS_FINAL
9635 /* Final pthreads */
9636 pthread_attr_t attr;
9638 status = pthread_attr_init(&attr);
9639 if( status ) return status;
9641 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9643 #if defined( PTHREAD_CREATE_JOINABLE )
9644 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9646 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9649 #ifdef PTHREAD_CREATE_DETACHED
9651 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9654 if( status ) return status;
9657 status = pthread_create( &t, &attr, task, NULL );
9658 if( status ) return status;
9660 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9662 /* give thread a chance to complete */
9663 /* it should remain joinable and hence detachable */
9666 status = pthread_detach( t );
9667 if( status ) return status;
9672 /* Draft 4 pthreads */
9673 status = pthread_create( &t, pthread_attr_default, task, NULL );
9674 if( status ) return status;
9677 /* give thread a chance to complete */
9678 /* it should remain joinable and hence detachable */
9681 status = pthread_detach( &t );
9682 if( status ) return status;
9686 #ifdef HAVE_LINUX_THREADS
9687 pthread_kill_other_threads_np();
9695 if { (eval echo configure:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9697 ol_cv_pthread_lib_lpthread_woff=yes
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9702 ol_cv_pthread_lib_lpthread_woff=no
9713 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9715 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9716 ol_link_pthreads="-lpthread -Wl,-woff,85"
9717 ol_link_threads=posix
9722 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9723 if test "$ol_link_threads" = no ; then
9725 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9726 echo "configure:9727: checking for pthread link with -lpthread" >&5
9727 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9733 LIBS="-lpthread $LIBS"
9735 if test "$cross_compiling" = yes; then
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* pthread test headers */
9740 #include <pthread.h>
9742 #define NULL (void*)0
9745 static void *task(p)
9748 return (void *) (p == NULL);
9753 /* pthread test function */
9758 #ifdef HAVE_PTHREADS_FINAL
9759 /* Final pthreads */
9760 pthread_attr_t attr;
9762 status = pthread_attr_init(&attr);
9763 if( status ) return status;
9765 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9767 #if defined( PTHREAD_CREATE_JOINABLE )
9768 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9770 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9773 #ifdef PTHREAD_CREATE_DETACHED
9775 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9778 if( status ) return status;
9781 status = pthread_create( &t, &attr, task, NULL );
9782 if( status ) return status;
9784 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9786 /* give thread a chance to complete */
9787 /* it should remain joinable and hence detachable */
9790 status = pthread_detach( t );
9791 if( status ) return status;
9796 /* Draft 4 pthreads */
9797 status = pthread_create( &t, pthread_attr_default, task, NULL );
9798 if( status ) return status;
9801 /* give thread a chance to complete */
9802 /* it should remain joinable and hence detachable */
9805 status = pthread_detach( &t );
9806 if( status ) return status;
9810 #ifdef HAVE_LINUX_THREADS
9811 pthread_kill_other_threads_np();
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9820 ol_cv_pthread_lpthread=yes
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9825 ol_cv_pthread_lpthread=no
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 /* pthread test headers */
9833 #include <pthread.h>
9835 #define NULL (void*)0
9838 static void *task(p)
9841 return (void *) (p == NULL);
9845 int main(argc, argv)
9850 /* pthread test function */
9855 #ifdef HAVE_PTHREADS_FINAL
9856 /* Final pthreads */
9857 pthread_attr_t attr;
9859 status = pthread_attr_init(&attr);
9860 if( status ) return status;
9862 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9864 #if defined( PTHREAD_CREATE_JOINABLE )
9865 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9867 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9870 #ifdef PTHREAD_CREATE_DETACHED
9872 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9875 if( status ) return status;
9878 status = pthread_create( &t, &attr, task, NULL );
9879 if( status ) return status;
9881 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9883 /* give thread a chance to complete */
9884 /* it should remain joinable and hence detachable */
9887 status = pthread_detach( t );
9888 if( status ) return status;
9893 /* Draft 4 pthreads */
9894 status = pthread_create( &t, pthread_attr_default, task, NULL );
9895 if( status ) return status;
9898 /* give thread a chance to complete */
9899 /* it should remain joinable and hence detachable */
9902 status = pthread_detach( &t );
9903 if( status ) return status;
9907 #ifdef HAVE_LINUX_THREADS
9908 pthread_kill_other_threads_np();
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9918 ol_cv_pthread_lpthread=yes
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9923 ol_cv_pthread_lpthread=no
9934 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9936 if test $ol_cv_pthread_lpthread = yes ; then
9937 ol_link_pthreads="-lpthread"
9938 ol_link_threads=posix
9942 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9943 if test "$ol_link_threads" = no ; then
9945 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9946 echo "configure:9947: checking for pthread link with -lc_r" >&5
9947 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9955 if test "$cross_compiling" = yes; then
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959 /* pthread test headers */
9960 #include <pthread.h>
9962 #define NULL (void*)0
9965 static void *task(p)
9968 return (void *) (p == NULL);
9973 /* pthread test function */
9978 #ifdef HAVE_PTHREADS_FINAL
9979 /* Final pthreads */
9980 pthread_attr_t attr;
9982 status = pthread_attr_init(&attr);
9983 if( status ) return status;
9985 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9987 #if defined( PTHREAD_CREATE_JOINABLE )
9988 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9990 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9993 #ifdef PTHREAD_CREATE_DETACHED
9995 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9998 if( status ) return status;
10001 status = pthread_create( &t, &attr, task, NULL );
10002 if( status ) return status;
10004 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10006 /* give thread a chance to complete */
10007 /* it should remain joinable and hence detachable */
10010 status = pthread_detach( t );
10011 if( status ) return status;
10016 /* Draft 4 pthreads */
10017 status = pthread_create( &t, pthread_attr_default, task, NULL );
10018 if( status ) return status;
10021 /* give thread a chance to complete */
10022 /* it should remain joinable and hence detachable */
10025 status = pthread_detach( &t );
10026 if( status ) return status;
10030 #ifdef HAVE_LINUX_THREADS
10031 pthread_kill_other_threads_np();
10038 if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10040 ol_cv_pthread_lc_r=yes
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 ol_cv_pthread_lc_r=no
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 /* pthread test headers */
10053 #include <pthread.h>
10055 #define NULL (void*)0
10058 static void *task(p)
10061 return (void *) (p == NULL);
10065 int main(argc, argv)
10070 /* pthread test function */
10075 #ifdef HAVE_PTHREADS_FINAL
10076 /* Final pthreads */
10077 pthread_attr_t attr;
10079 status = pthread_attr_init(&attr);
10080 if( status ) return status;
10082 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10084 #if defined( PTHREAD_CREATE_JOINABLE )
10085 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10087 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10090 #ifdef PTHREAD_CREATE_DETACHED
10092 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10095 if( status ) return status;
10098 status = pthread_create( &t, &attr, task, NULL );
10099 if( status ) return status;
10101 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10103 /* give thread a chance to complete */
10104 /* it should remain joinable and hence detachable */
10107 status = pthread_detach( t );
10108 if( status ) return status;
10113 /* Draft 4 pthreads */
10114 status = pthread_create( &t, pthread_attr_default, task, NULL );
10115 if( status ) return status;
10118 /* give thread a chance to complete */
10119 /* it should remain joinable and hence detachable */
10122 status = pthread_detach( &t );
10123 if( status ) return status;
10127 #ifdef HAVE_LINUX_THREADS
10128 pthread_kill_other_threads_np();
10136 if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10138 ol_cv_pthread_lc_r=yes
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 ol_cv_pthread_lc_r=no
10154 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10156 if test $ol_cv_pthread_lc_r = yes ; then
10157 ol_link_pthreads="-lc_r"
10158 ol_link_threads=posix
10163 # Pthread try link: -threads (ol_cv_pthread_threads)
10164 if test "$ol_link_threads" = no ; then
10166 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10167 echo "configure:10168: checking for pthread link with -threads" >&5
10168 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10174 LIBS="-threads $LIBS"
10176 if test "$cross_compiling" = yes; then
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 /* pthread test headers */
10181 #include <pthread.h>
10183 #define NULL (void*)0
10186 static void *task(p)
10189 return (void *) (p == NULL);
10194 /* pthread test function */
10199 #ifdef HAVE_PTHREADS_FINAL
10200 /* Final pthreads */
10201 pthread_attr_t attr;
10203 status = pthread_attr_init(&attr);
10204 if( status ) return status;
10206 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10208 #if defined( PTHREAD_CREATE_JOINABLE )
10209 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10211 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10214 #ifdef PTHREAD_CREATE_DETACHED
10216 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10219 if( status ) return status;
10222 status = pthread_create( &t, &attr, task, NULL );
10223 if( status ) return status;
10225 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10227 /* give thread a chance to complete */
10228 /* it should remain joinable and hence detachable */
10231 status = pthread_detach( t );
10232 if( status ) return status;
10237 /* Draft 4 pthreads */
10238 status = pthread_create( &t, pthread_attr_default, task, NULL );
10239 if( status ) return status;
10242 /* give thread a chance to complete */
10243 /* it should remain joinable and hence detachable */
10246 status = pthread_detach( &t );
10247 if( status ) return status;
10251 #ifdef HAVE_LINUX_THREADS
10252 pthread_kill_other_threads_np();
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 ol_cv_pthread_threads=yes
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 ol_cv_pthread_threads=no
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 /* pthread test headers */
10274 #include <pthread.h>
10276 #define NULL (void*)0
10279 static void *task(p)
10282 return (void *) (p == NULL);
10286 int main(argc, argv)
10291 /* pthread test function */
10296 #ifdef HAVE_PTHREADS_FINAL
10297 /* Final pthreads */
10298 pthread_attr_t attr;
10300 status = pthread_attr_init(&attr);
10301 if( status ) return status;
10303 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10305 #if defined( PTHREAD_CREATE_JOINABLE )
10306 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10308 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10311 #ifdef PTHREAD_CREATE_DETACHED
10313 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10316 if( status ) return status;
10319 status = pthread_create( &t, &attr, task, NULL );
10320 if( status ) return status;
10322 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10324 /* give thread a chance to complete */
10325 /* it should remain joinable and hence detachable */
10328 status = pthread_detach( t );
10329 if( status ) return status;
10334 /* Draft 4 pthreads */
10335 status = pthread_create( &t, pthread_attr_default, task, NULL );
10336 if( status ) return status;
10339 /* give thread a chance to complete */
10340 /* it should remain joinable and hence detachable */
10343 status = pthread_detach( &t );
10344 if( status ) return status;
10348 #ifdef HAVE_LINUX_THREADS
10349 pthread_kill_other_threads_np();
10357 if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10359 ol_cv_pthread_threads=yes
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10364 ol_cv_pthread_threads=no
10375 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10377 if test $ol_cv_pthread_threads = yes ; then
10378 ol_link_pthreads="-threads"
10379 ol_link_threads=posix
10384 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10385 if test "$ol_link_threads" = no ; then
10386 # try -lpthreads -lmach -lexc -lc_r
10387 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10388 echo "configure:10389: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10389 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10390 echo $ac_n "(cached) $ac_c" 1>&6
10395 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10397 if test "$cross_compiling" = yes; then
10398 cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure"
10400 #include "confdefs.h"
10401 /* pthread test headers */
10402 #include <pthread.h>
10404 #define NULL (void*)0
10407 static void *task(p)
10410 return (void *) (p == NULL);
10415 /* pthread test function */
10420 #ifdef HAVE_PTHREADS_FINAL
10421 /* Final pthreads */
10422 pthread_attr_t attr;
10424 status = pthread_attr_init(&attr);
10425 if( status ) return status;
10427 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10429 #if defined( PTHREAD_CREATE_JOINABLE )
10430 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10432 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10435 #ifdef PTHREAD_CREATE_DETACHED
10437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10440 if( status ) return status;
10443 status = pthread_create( &t, &attr, task, NULL );
10444 if( status ) return status;
10446 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10448 /* give thread a chance to complete */
10449 /* it should remain joinable and hence detachable */
10452 status = pthread_detach( t );
10453 if( status ) return status;
10458 /* Draft 4 pthreads */
10459 status = pthread_create( &t, pthread_attr_default, task, NULL );
10460 if( status ) return status;
10463 /* give thread a chance to complete */
10464 /* it should remain joinable and hence detachable */
10467 status = pthread_detach( &t );
10468 if( status ) return status;
10472 #ifdef HAVE_LINUX_THREADS
10473 pthread_kill_other_threads_np();
10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10482 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10487 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 /* pthread test headers */
10495 #include <pthread.h>
10497 #define NULL (void*)0
10500 static void *task(p)
10503 return (void *) (p == NULL);
10507 int main(argc, argv)
10512 /* pthread test function */
10517 #ifdef HAVE_PTHREADS_FINAL
10518 /* Final pthreads */
10519 pthread_attr_t attr;
10521 status = pthread_attr_init(&attr);
10522 if( status ) return status;
10524 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10526 #if defined( PTHREAD_CREATE_JOINABLE )
10527 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10529 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10532 #ifdef PTHREAD_CREATE_DETACHED
10534 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10537 if( status ) return status;
10540 status = pthread_create( &t, &attr, task, NULL );
10541 if( status ) return status;
10543 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10545 /* give thread a chance to complete */
10546 /* it should remain joinable and hence detachable */
10549 status = pthread_detach( t );
10550 if( status ) return status;
10555 /* Draft 4 pthreads */
10556 status = pthread_create( &t, pthread_attr_default, task, NULL );
10557 if( status ) return status;
10560 /* give thread a chance to complete */
10561 /* it should remain joinable and hence detachable */
10564 status = pthread_detach( &t );
10565 if( status ) return status;
10569 #ifdef HAVE_LINUX_THREADS
10570 pthread_kill_other_threads_np();
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10596 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10598 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10599 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10600 ol_link_threads=posix
10604 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10605 if test "$ol_link_threads" = no ; then
10606 # try -lpthreads -lmach -lexc
10607 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10608 echo "configure:10609: checking for pthread link with -lpthreads -lmach -lexc" >&5
10609 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10615 LIBS="-lpthreads -lmach -lexc $LIBS"
10617 if test "$cross_compiling" = yes; then
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 /* pthread test headers */
10622 #include <pthread.h>
10624 #define NULL (void*)0
10627 static void *task(p)
10630 return (void *) (p == NULL);
10635 /* pthread test function */
10640 #ifdef HAVE_PTHREADS_FINAL
10641 /* Final pthreads */
10642 pthread_attr_t attr;
10644 status = pthread_attr_init(&attr);
10645 if( status ) return status;
10647 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10649 #if defined( PTHREAD_CREATE_JOINABLE )
10650 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10652 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10655 #ifdef PTHREAD_CREATE_DETACHED
10657 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10660 if( status ) return status;
10663 status = pthread_create( &t, &attr, task, NULL );
10664 if( status ) return status;
10666 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10668 /* give thread a chance to complete */
10669 /* it should remain joinable and hence detachable */
10672 status = pthread_detach( t );
10673 if( status ) return status;
10678 /* Draft 4 pthreads */
10679 status = pthread_create( &t, pthread_attr_default, task, NULL );
10680 if( status ) return status;
10683 /* give thread a chance to complete */
10684 /* it should remain joinable and hence detachable */
10687 status = pthread_detach( &t );
10688 if( status ) return status;
10692 #ifdef HAVE_LINUX_THREADS
10693 pthread_kill_other_threads_np();
10700 if { (eval echo configure:10701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10702 ol_cv_pthread_lpthreads_lmach_lexc=yes
10704 echo "configure: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10707 ol_cv_pthread_lpthreads_lmach_lexc=no
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714 /* pthread test headers */
10715 #include <pthread.h>
10717 #define NULL (void*)0
10720 static void *task(p)
10723 return (void *) (p == NULL);
10727 int main(argc, argv)
10732 /* pthread test function */
10737 #ifdef HAVE_PTHREADS_FINAL
10738 /* Final pthreads */
10739 pthread_attr_t attr;
10741 status = pthread_attr_init(&attr);
10742 if( status ) return status;
10744 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10746 #if defined( PTHREAD_CREATE_JOINABLE )
10747 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10749 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10752 #ifdef PTHREAD_CREATE_DETACHED
10754 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10757 if( status ) return status;
10760 status = pthread_create( &t, &attr, task, NULL );
10761 if( status ) return status;
10763 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10765 /* give thread a chance to complete */
10766 /* it should remain joinable and hence detachable */
10769 status = pthread_detach( t );
10770 if( status ) return status;
10775 /* Draft 4 pthreads */
10776 status = pthread_create( &t, pthread_attr_default, task, NULL );
10777 if( status ) return status;
10780 /* give thread a chance to complete */
10781 /* it should remain joinable and hence detachable */
10784 status = pthread_detach( &t );
10785 if( status ) return status;
10789 #ifdef HAVE_LINUX_THREADS
10790 pthread_kill_other_threads_np();
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10800 ol_cv_pthread_lpthreads_lmach_lexc=yes
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 ol_cv_pthread_lpthreads_lmach_lexc=no
10816 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10818 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10819 ol_link_pthreads="-lpthreads -lmach -lexc"
10820 ol_link_threads=posix
10824 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10825 if test "$ol_link_threads" = no ; then
10826 # try -lpthreads -lexc
10827 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10828 echo "configure:10829: checking for pthread link with -lpthreads -lexc" >&5
10829 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10830 echo $ac_n "(cached) $ac_c" 1>&6
10835 LIBS="-lpthreads -lexc $LIBS"
10837 if test "$cross_compiling" = yes; then
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10841 /* pthread test headers */
10842 #include <pthread.h>
10844 #define NULL (void*)0
10847 static void *task(p)
10850 return (void *) (p == NULL);
10855 /* pthread test function */
10860 #ifdef HAVE_PTHREADS_FINAL
10861 /* Final pthreads */
10862 pthread_attr_t attr;
10864 status = pthread_attr_init(&attr);
10865 if( status ) return status;
10867 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10869 #if defined( PTHREAD_CREATE_JOINABLE )
10870 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10872 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10875 #ifdef PTHREAD_CREATE_DETACHED
10877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10880 if( status ) return status;
10883 status = pthread_create( &t, &attr, task, NULL );
10884 if( status ) return status;
10886 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10888 /* give thread a chance to complete */
10889 /* it should remain joinable and hence detachable */
10892 status = pthread_detach( t );
10893 if( status ) return status;
10898 /* Draft 4 pthreads */
10899 status = pthread_create( &t, pthread_attr_default, task, NULL );
10900 if( status ) return status;
10903 /* give thread a chance to complete */
10904 /* it should remain joinable and hence detachable */
10907 status = pthread_detach( &t );
10908 if( status ) return status;
10912 #ifdef HAVE_LINUX_THREADS
10913 pthread_kill_other_threads_np();
10920 if { (eval echo configure:10921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10922 ol_cv_pthread_lpthreads_lexc=yes
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 ol_cv_pthread_lpthreads_lexc=no
10931 cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 /* pthread test headers */
10935 #include <pthread.h>
10937 #define NULL (void*)0
10940 static void *task(p)
10943 return (void *) (p == NULL);
10947 int main(argc, argv)
10952 /* pthread test function */
10957 #ifdef HAVE_PTHREADS_FINAL
10958 /* Final pthreads */
10959 pthread_attr_t attr;
10961 status = pthread_attr_init(&attr);
10962 if( status ) return status;
10964 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10966 #if defined( PTHREAD_CREATE_JOINABLE )
10967 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10969 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10972 #ifdef PTHREAD_CREATE_DETACHED
10974 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10977 if( status ) return status;
10980 status = pthread_create( &t, &attr, task, NULL );
10981 if( status ) return status;
10983 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10985 /* give thread a chance to complete */
10986 /* it should remain joinable and hence detachable */
10989 status = pthread_detach( t );
10990 if( status ) return status;
10995 /* Draft 4 pthreads */
10996 status = pthread_create( &t, pthread_attr_default, task, NULL );
10997 if( status ) return status;
11000 /* give thread a chance to complete */
11001 /* it should remain joinable and hence detachable */
11004 status = pthread_detach( &t );
11005 if( status ) return status;
11009 #ifdef HAVE_LINUX_THREADS
11010 pthread_kill_other_threads_np();
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11020 ol_cv_pthread_lpthreads_lexc=yes
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11025 ol_cv_pthread_lpthreads_lexc=no
11036 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
11038 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
11039 ol_link_pthreads="-lpthreads -lexc"
11040 ol_link_threads=posix
11045 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
11046 if test "$ol_link_threads" = no ; then
11048 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
11049 echo "configure:11050: checking for pthread link with -lpthreads" >&5
11050 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
11051 echo $ac_n "(cached) $ac_c" 1>&6
11056 LIBS="-lpthreads $LIBS"
11058 if test "$cross_compiling" = yes; then
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11062 /* pthread test headers */
11063 #include <pthread.h>
11065 #define NULL (void*)0
11068 static void *task(p)
11071 return (void *) (p == NULL);
11076 /* pthread test function */
11081 #ifdef HAVE_PTHREADS_FINAL
11082 /* Final pthreads */
11083 pthread_attr_t attr;
11085 status = pthread_attr_init(&attr);
11086 if( status ) return status;
11088 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11090 #if defined( PTHREAD_CREATE_JOINABLE )
11091 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11093 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11096 #ifdef PTHREAD_CREATE_DETACHED
11098 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11101 if( status ) return status;
11104 status = pthread_create( &t, &attr, task, NULL );
11105 if( status ) return status;
11107 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11109 /* give thread a chance to complete */
11110 /* it should remain joinable and hence detachable */
11113 status = pthread_detach( t );
11114 if( status ) return status;
11119 /* Draft 4 pthreads */
11120 status = pthread_create( &t, pthread_attr_default, task, NULL );
11121 if( status ) return status;
11124 /* give thread a chance to complete */
11125 /* it should remain joinable and hence detachable */
11128 status = pthread_detach( &t );
11129 if( status ) return status;
11133 #ifdef HAVE_LINUX_THREADS
11134 pthread_kill_other_threads_np();
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 ol_cv_pthread_lib_lpthreads=yes
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11148 ol_cv_pthread_lib_lpthreads=no
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 /* pthread test headers */
11156 #include <pthread.h>
11158 #define NULL (void*)0
11161 static void *task(p)
11164 return (void *) (p == NULL);
11168 int main(argc, argv)
11173 /* pthread test function */
11178 #ifdef HAVE_PTHREADS_FINAL
11179 /* Final pthreads */
11180 pthread_attr_t attr;
11182 status = pthread_attr_init(&attr);
11183 if( status ) return status;
11185 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11187 #if defined( PTHREAD_CREATE_JOINABLE )
11188 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11190 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11193 #ifdef PTHREAD_CREATE_DETACHED
11195 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11198 if( status ) return status;
11201 status = pthread_create( &t, &attr, task, NULL );
11202 if( status ) return status;
11204 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11206 /* give thread a chance to complete */
11207 /* it should remain joinable and hence detachable */
11210 status = pthread_detach( t );
11211 if( status ) return status;
11216 /* Draft 4 pthreads */
11217 status = pthread_create( &t, pthread_attr_default, task, NULL );
11218 if( status ) return status;
11221 /* give thread a chance to complete */
11222 /* it should remain joinable and hence detachable */
11225 status = pthread_detach( &t );
11226 if( status ) return status;
11230 #ifdef HAVE_LINUX_THREADS
11231 pthread_kill_other_threads_np();
11239 if { (eval echo configure:11240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11241 ol_cv_pthread_lib_lpthreads=yes
11243 echo "configure: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11246 ol_cv_pthread_lib_lpthreads=no
11257 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11259 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11260 ol_link_pthreads="-lpthreads"
11261 ol_link_threads=posix
11266 if test $ol_link_threads != no ; then
11267 cat >> confdefs.h <<\EOF
11268 #define HAVE_PTHREADS 1
11272 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11274 save_CPPFLAGS="$CPPFLAGS"
11276 LIBS="$LTHREAD_LIBS $LIBS"
11278 for ac_func in sched_yield pthread_yield
11280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11281 echo "configure:11282: checking for $ac_func" >&5
11282 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char $ac_func(); below. */
11290 #include <assert.h>
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11299 /* The GNU C library defines this for functions which it implements
11300 to always fail with ENOSYS. Some functions are actually named
11301 something starting with __ and the normal name is an alias. */
11302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11312 eval "ac_cv_func_$ac_func=yes"
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11317 eval "ac_cv_func_$ac_func=no"
11322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11325 cat >> confdefs.h <<EOF
11326 #define $ac_tr_func 1
11330 echo "$ac_t""no" 1>&6
11335 if test $ac_cv_func_sched_yield = no -a \
11336 $ac_cv_func_pthread_yield = no ; then
11337 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11338 echo "configure:11339: checking for sched_yield in -lrt" >&5
11339 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11343 ac_save_LIBS="$LIBS"
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 /* Override any gcc2 internal prototype to avoid an error. */
11349 /* We use char because int might match the return type of a gcc2
11350 builtin and then its argument prototype would still apply. */
11351 char sched_yield();
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11359 eval "ac_cv_lib_$ac_lib_var=yes"
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 eval "ac_cv_lib_$ac_lib_var=no"
11367 LIBS="$ac_save_LIBS"
11370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11372 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11373 cat >> confdefs.h <<\EOF
11374 #define HAVE_SCHED_YIELD 1
11377 ac_cv_func_sched_yield=yes
11379 echo "$ac_t""no" 1>&6
11380 ac_cv_func_sched_yield=no
11384 if test $ac_cv_func_sched_yield = no -a \
11385 $ac_cv_func_pthread_yield = no ; then
11386 for ac_func in thr_yield
11388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11389 echo "configure:11390: checking for $ac_func" >&5
11390 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11396 /* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char $ac_func(); below. */
11398 #include <assert.h>
11399 /* Override any gcc2 internal prototype to avoid an error. */
11400 /* We use char because int might match the return type of a gcc2
11401 builtin and then its argument prototype would still apply. */
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11418 if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11420 eval "ac_cv_func_$ac_func=yes"
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11425 eval "ac_cv_func_$ac_func=no"
11430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11431 echo "$ac_t""yes" 1>&6
11432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11433 cat >> confdefs.h <<EOF
11434 #define $ac_tr_func 1
11438 echo "$ac_t""no" 1>&6
11443 if test $ac_cv_func_sched_yield = no -a \
11444 $ac_cv_func_pthread_yield = no -a \
11445 "$ac_cv_func_thr_yield" = no ; then
11446 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11449 for ac_func in pthread_kill pthread_rwlock_destroy
11451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11452 echo "configure:11453: checking for $ac_func" >&5
11453 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func(); below. */
11461 #include <assert.h>
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11470 /* The GNU C library defines this for functions which it implements
11471 to always fail with ENOSYS. Some functions are actually named
11472 something starting with __ and the normal name is an alias. */
11473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11481 if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11483 eval "ac_cv_func_$ac_func=yes"
11485 echo "configure: failed program was:" >&5
11486 cat conftest.$ac_ext >&5
11488 eval "ac_cv_func_$ac_func=no"
11493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11494 echo "$ac_t""yes" 1>&6
11495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11496 cat >> confdefs.h <<EOF
11497 #define $ac_tr_func 1
11501 echo "$ac_t""no" 1>&6
11506 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11507 echo "configure:11508: checking for pthread_detach with <pthread.h>" >&5
11508 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11509 echo $ac_n "(cached) $ac_c" 1>&6
11512 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure"
11514 #include "confdefs.h"
11516 #include <pthread.h>
11518 #define NULL (void*)0
11522 pthread_detach(NULL);
11525 if { (eval echo configure:11526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527 ol_cv_func_pthread_detach=yes
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11532 ol_cv_func_pthread_detach=no
11538 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11540 if test $ol_cv_func_pthread_detach = no ; then
11541 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11544 cat >> confdefs.h <<\EOF
11545 #define HAVE_PTHREAD_DETACH 1
11550 pthread_setconcurrency \
11551 pthread_getconcurrency \
11552 thr_setconcurrency \
11553 thr_getconcurrency \
11556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11557 echo "configure:11558: checking for $ac_func" >&5
11558 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11561 cat > conftest.$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 /* System header to define __stub macros and hopefully few prototypes,
11565 which can conflict with char $ac_func(); below. */
11566 #include <assert.h>
11567 /* Override any gcc2 internal prototype to avoid an error. */
11568 /* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11575 /* The GNU C library defines this for functions which it implements
11576 to always fail with ENOSYS. Some functions are actually named
11577 something starting with __ and the normal name is an alias. */
11578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11588 eval "ac_cv_func_$ac_func=yes"
11590 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11593 eval "ac_cv_func_$ac_func=no"
11598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11601 cat >> confdefs.h <<EOF
11602 #define $ac_tr_func 1
11606 echo "$ac_t""no" 1>&6
11612 for ac_func in pthread_kill_other_threads_np
11614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11615 echo "configure:11616: checking for $ac_func" >&5
11616 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11619 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 /* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func(); below. */
11624 #include <assert.h>
11625 /* Override any gcc2 internal prototype to avoid an error. */
11626 /* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11633 /* The GNU C library defines this for functions which it implements
11634 to always fail with ENOSYS. Some functions are actually named
11635 something starting with __ and the normal name is an alias. */
11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11644 if { (eval echo configure:11645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11646 eval "ac_cv_func_$ac_func=yes"
11648 echo "configure: failed program was:" >&5
11649 cat conftest.$ac_ext >&5
11651 eval "ac_cv_func_$ac_func=no"
11656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11657 echo "$ac_t""yes" 1>&6
11658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11659 cat >> confdefs.h <<EOF
11660 #define $ac_tr_func 1
11664 echo "$ac_t""no" 1>&6
11668 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11669 echo "configure:11670: checking for LinuxThreads implementation" >&5
11670 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11671 echo $ac_n "(cached) $ac_c" 1>&6
11673 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11676 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11681 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11682 echo "configure:11683: checking for LinuxThreads consistency" >&5
11683 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11687 if test $ol_cv_header_linux_threads = yes -a \
11688 $ol_cv_sys_linux_threads = yes; then
11689 ol_cv_linux_threads=yes
11690 elif test $ol_cv_header_linux_threads = no -a \
11691 $ol_cv_sys_linux_threads = no; then
11692 ol_cv_linux_threads=no
11694 ol_cv_linux_threads=error
11699 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11702 if test $ol_cv_linux_threads = error; then
11703 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11706 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11707 echo "configure:11708: checking if pthread_create() works" >&5
11708 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11709 echo $ac_n "(cached) $ac_c" 1>&6
11712 if test "$cross_compiling" = yes; then
11713 ol_cv_pthread_create_works=yes
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 /* pthread test headers */
11719 #include <pthread.h>
11721 #define NULL (void*)0
11724 static void *task(p)
11727 return (void *) (p == NULL);
11731 int main(argc, argv)
11736 /* pthread test function */
11741 #ifdef HAVE_PTHREADS_FINAL
11742 /* Final pthreads */
11743 pthread_attr_t attr;
11745 status = pthread_attr_init(&attr);
11746 if( status ) return status;
11748 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11750 #if defined( PTHREAD_CREATE_JOINABLE )
11751 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11753 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11756 #ifdef PTHREAD_CREATE_DETACHED
11758 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11761 if( status ) return status;
11764 status = pthread_create( &t, &attr, task, NULL );
11765 if( status ) return status;
11767 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11769 /* give thread a chance to complete */
11770 /* it should remain joinable and hence detachable */
11773 status = pthread_detach( t );
11774 if( status ) return status;
11779 /* Draft 4 pthreads */
11780 status = pthread_create( &t, pthread_attr_default, task, NULL );
11781 if( status ) return status;
11784 /* give thread a chance to complete */
11785 /* it should remain joinable and hence detachable */
11788 status = pthread_detach( &t );
11789 if( status ) return status;
11793 #ifdef HAVE_LINUX_THREADS
11794 pthread_kill_other_threads_np();
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11804 ol_cv_pthread_create_works=yes
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11809 ol_cv_pthread_create_works=no
11816 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11818 if test $ol_cv_pthread_create_works = no ; then
11819 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11822 if test $ol_with_yielding_select = auto ; then
11823 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11824 echo "configure:11825: checking if select yields when using pthreads" >&5
11825 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11826 echo $ac_n "(cached) $ac_c" 1>&6
11829 if test "$cross_compiling" = yes; then
11830 ol_cv_pthread_select_yields=cross
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11836 #include <sys/types.h>
11837 #include <sys/time.h>
11838 #include <unistd.h>
11839 #include <pthread.h>
11841 #define NULL (void*) 0
11844 static int fildes[2];
11846 static void *task(p)
11858 FD_SET(fildes[0], &rfds);
11860 /* we're not interested in any fds */
11861 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11868 exit(0); /* if we exit here, the select blocked the whole process */
11871 int main(argc, argv)
11877 /* create a pipe to select */
11878 if(pipe(&fildes[0])) {
11883 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11884 (void) pthread_setconcurrency(2);
11886 #ifdef HAVE_THR_SETCONCURRENCY
11887 /* Set Solaris LWP concurrency to 2 */
11888 thr_setconcurrency(2);
11892 #if HAVE_PTHREADS_D4
11893 pthread_create(&t, pthread_attr_default, task, NULL);
11895 pthread_create(&t, NULL, task, NULL);
11898 #if HAVE_SCHED_YIELD
11899 sched_yield(); /* make sure task runs first */
11901 #ifdef HAVE_PTHREAD_YIELD
11902 pthread_yield(); /* make sure task runs first */
11909 if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11911 ol_cv_pthread_select_yields=no
11913 echo "configure: failed program was:" >&5
11914 cat conftest.$ac_ext >&5
11916 ol_cv_pthread_select_yields=yes
11923 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11925 if test $ol_cv_pthread_select_yields = cross ; then
11926 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11929 if test $ol_cv_pthread_select_yields = yes ; then
11930 ol_with_yielding_select=yes
11934 CPPFLAGS="$save_CPPFLAGS"
11937 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11941 if test $ol_with_threads = posix ; then
11942 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11946 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11947 -o $ol_with_threads = mach ; then
11949 for ac_hdr in mach/cthreads.h
11951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11953 echo "configure:11954: checking for $ac_hdr" >&5
11954 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11963 { (eval echo configure:11964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11965 if test -z "$ac_err"; then
11967 eval "ac_cv_header_$ac_safe=yes"
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11973 eval "ac_cv_header_$ac_safe=no"
11977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11978 echo "$ac_t""yes" 1>&6
11979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11980 cat >> confdefs.h <<EOF
11981 #define $ac_tr_hdr 1
11985 echo "$ac_t""no" 1>&6
11989 if test $ac_cv_header_mach_cthreads_h = yes ; then
11990 ol_with_threads=found
11992 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11993 echo "configure:11994: checking for cthread_fork" >&5
11994 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* System header to define __stub macros and hopefully few prototypes,
12001 which can conflict with char cthread_fork(); below. */
12002 #include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12006 char cthread_fork();
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
12022 if { (eval echo configure:12023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12024 eval "ac_cv_func_cthread_fork=yes"
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12029 eval "ac_cv_func_cthread_fork=no"
12034 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
12035 echo "$ac_t""yes" 1>&6
12036 ol_link_threads=yes
12038 echo "$ac_t""no" 1>&6
12042 if test $ol_link_threads = no ; then
12043 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
12044 echo "configure:12045: checking for cthread_fork with -all_load" >&5
12045 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
12046 echo $ac_n "(cached) $ac_c" 1>&6
12050 LIBS="-all_load $LIBS"
12051 cat > conftest.$ac_ext <<EOF
12052 #line 12053 "configure"
12053 #include "confdefs.h"
12054 #include <mach/cthreads.h>
12057 cthread_fork((void *)0, (void *)0);
12061 if { (eval echo configure:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12063 ol_cv_cthread_all_load=yes
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12068 ol_cv_cthread_all_load=no
12075 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
12077 if test $ol_cv_cthread_all_load = yes ; then
12078 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
12079 ol_link_threads=mach
12083 if test $ol_link_threads != no ; then
12084 : check for cthread specific functionality here
12085 cat >> confdefs.h <<\EOF
12086 #define HAVE_MACH_CTHREADS 1
12090 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
12094 if test $ol_with_threads = mach ; then
12095 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
12099 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12100 -o $ol_with_threads = pth ; then
12102 for ac_hdr in pth.h
12104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12106 echo "configure:12107: checking for $ac_hdr" >&5
12107 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12110 cat > conftest.$ac_ext <<EOF
12111 #line 12112 "configure"
12112 #include "confdefs.h"
12115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12116 { (eval echo configure:12117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12118 if test -z "$ac_err"; then
12120 eval "ac_cv_header_$ac_safe=yes"
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12126 eval "ac_cv_header_$ac_safe=no"
12130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12131 echo "$ac_t""yes" 1>&6
12132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12133 cat >> confdefs.h <<EOF
12134 #define $ac_tr_hdr 1
12138 echo "$ac_t""no" 1>&6
12143 if test $ac_cv_header_pth_h = yes ; then
12144 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
12145 echo "configure:12146: checking for pth_version in -lpth" >&5
12146 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
12147 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12150 ac_save_LIBS="$LIBS"
12152 cat > conftest.$ac_ext <<EOF
12153 #line 12154 "configure"
12154 #include "confdefs.h"
12155 /* Override any gcc2 internal prototype to avoid an error. */
12156 /* We use char because int might match the return type of a gcc2
12157 builtin and then its argument prototype would still apply. */
12158 char pth_version();
12164 if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12166 eval "ac_cv_lib_$ac_lib_var=yes"
12168 echo "configure: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12171 eval "ac_cv_lib_$ac_lib_var=no"
12174 LIBS="$ac_save_LIBS"
12177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12181 echo "$ac_t""no" 1>&6
12186 if test $have_pth = yes ; then
12187 cat >> confdefs.h <<\EOF
12188 #define HAVE_GNU_PTH 1
12191 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12192 ol_link_threads=pth
12194 if test $ol_with_yielding_select = auto ; then
12195 ol_with_yielding_select=yes
12201 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12202 -o $ol_with_threads = lwp ; then
12204 for ac_hdr in thread.h synch.h
12206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12208 echo "configure:12209: checking for $ac_hdr" >&5
12209 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12210 echo $ac_n "(cached) $ac_c" 1>&6
12212 cat > conftest.$ac_ext <<EOF
12213 #line 12214 "configure"
12214 #include "confdefs.h"
12217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12218 { (eval echo configure:12219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12220 if test -z "$ac_err"; then
12222 eval "ac_cv_header_$ac_safe=yes"
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12228 eval "ac_cv_header_$ac_safe=no"
12232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12233 echo "$ac_t""yes" 1>&6
12234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12235 cat >> confdefs.h <<EOF
12236 #define $ac_tr_hdr 1
12240 echo "$ac_t""no" 1>&6
12244 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12245 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12246 echo "configure:12247: checking for thr_create in -lthread" >&5
12247 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12248 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12249 echo $ac_n "(cached) $ac_c" 1>&6
12251 ac_save_LIBS="$LIBS"
12252 LIBS="-lthread $LIBS"
12253 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure"
12255 #include "confdefs.h"
12256 /* Override any gcc2 internal prototype to avoid an error. */
12257 /* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12265 if { (eval echo configure:12266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12267 eval "ac_cv_lib_$ac_lib_var=yes"
12269 echo "configure: failed program was:" >&5
12270 cat conftest.$ac_ext >&5
12272 eval "ac_cv_lib_$ac_lib_var=no"
12275 LIBS="$ac_save_LIBS"
12278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12279 echo "$ac_t""yes" 1>&6
12282 echo "$ac_t""no" 1>&6
12287 if test $have_thr = yes ; then
12288 cat >> confdefs.h <<\EOF
12292 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12293 ol_link_threads=thr
12295 if test $ol_with_yielding_select = auto ; then
12296 ol_with_yielding_select=yes
12300 thr_setconcurrency \
12301 thr_getconcurrency \
12304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12305 echo "configure:12306: checking for $ac_func" >&5
12306 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12309 cat > conftest.$ac_ext <<EOF
12310 #line 12311 "configure"
12311 #include "confdefs.h"
12312 /* System header to define __stub macros and hopefully few prototypes,
12313 which can conflict with char $ac_func(); below. */
12314 #include <assert.h>
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 /* We use char because int might match the return type of a gcc2
12317 builtin and then its argument prototype would still apply. */
12323 /* The GNU C library defines this for functions which it implements
12324 to always fail with ENOSYS. Some functions are actually named
12325 something starting with __ and the normal name is an alias. */
12326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 eval "ac_cv_func_$ac_func=yes"
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12341 eval "ac_cv_func_$ac_func=no"
12346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12347 echo "$ac_t""yes" 1>&6
12348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12349 cat >> confdefs.h <<EOF
12350 #define $ac_tr_func 1
12354 echo "$ac_t""no" 1>&6
12361 for ac_hdr in lwp/lwp.h
12363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_hdr" >&5
12366 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12375 { (eval echo configure:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377 if test -z "$ac_err"; then
12379 eval "ac_cv_header_$ac_safe=yes"
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12385 eval "ac_cv_header_$ac_safe=no"
12389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12392 cat >> confdefs.h <<EOF
12393 #define $ac_tr_hdr 1
12397 echo "$ac_t""no" 1>&6
12401 if test $ac_cv_header_lwp_lwp_h = yes ; then
12402 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12403 echo "configure:12404: checking for lwp_create in -llwp" >&5
12404 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12405 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12406 echo $ac_n "(cached) $ac_c" 1>&6
12408 ac_save_LIBS="$LIBS"
12410 cat > conftest.$ac_ext <<EOF
12411 #line 12412 "configure"
12412 #include "confdefs.h"
12413 /* Override any gcc2 internal prototype to avoid an error. */
12414 /* We use char because int might match the return type of a gcc2
12415 builtin and then its argument prototype would still apply. */
12422 if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12424 eval "ac_cv_lib_$ac_lib_var=yes"
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12429 eval "ac_cv_lib_$ac_lib_var=no"
12432 LIBS="$ac_save_LIBS"
12435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12439 echo "$ac_t""no" 1>&6
12444 if test $have_lwp = yes ; then
12445 cat >> confdefs.h <<\EOF
12449 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12450 ol_link_threads=lwp
12452 if test $ol_with_yielding_select = auto ; then
12453 ol_with_yielding_select=no
12459 if test $ol_with_yielding_select = yes ; then
12460 cat >> confdefs.h <<\EOF
12461 #define HAVE_YIELDING_SELECT 1
12466 if test $ol_with_threads = manual ; then
12467 ol_link_threads=yes
12469 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12471 for ac_hdr in pthread.h sched.h
12473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12475 echo "configure:12476: checking for $ac_hdr" >&5
12476 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12477 echo $ac_n "(cached) $ac_c" 1>&6
12479 cat > conftest.$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12485 { (eval echo configure:12486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12487 if test -z "$ac_err"; then
12489 eval "ac_cv_header_$ac_safe=yes"
12492 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12495 eval "ac_cv_header_$ac_safe=no"
12499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12500 echo "$ac_t""yes" 1>&6
12501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12502 cat >> confdefs.h <<EOF
12503 #define $ac_tr_hdr 1
12507 echo "$ac_t""no" 1>&6
12511 for ac_func in sched_yield pthread_yield
12513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12514 echo "configure:12515: checking for $ac_func" >&5
12515 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12516 echo $ac_n "(cached) $ac_c" 1>&6
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char $ac_func(); below. */
12523 #include <assert.h>
12524 /* Override any gcc2 internal prototype to avoid an error. */
12525 /* We use char because int might match the return type of a gcc2
12526 builtin and then its argument prototype would still apply. */
12532 /* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12543 if { (eval echo configure:12544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12545 eval "ac_cv_func_$ac_func=yes"
12547 echo "configure: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12550 eval "ac_cv_func_$ac_func=no"
12555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12556 echo "$ac_t""yes" 1>&6
12557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12558 cat >> confdefs.h <<EOF
12559 #define $ac_tr_func 1
12563 echo "$ac_t""no" 1>&6
12568 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12569 echo "configure:12570: checking for LinuxThreads pthread.h" >&5
12570 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12571 echo $ac_n "(cached) $ac_c" 1>&6
12573 cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 #include <pthread.h>
12578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12579 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12581 ol_cv_header_linux_threads=yes
12584 ol_cv_header_linux_threads=no
12591 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12592 if test $ol_cv_header_linux_threads = yes; then
12593 cat >> confdefs.h <<\EOF
12594 #define HAVE_LINUX_THREADS 1
12600 for ac_hdr in mach/cthreads.h
12602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12604 echo "configure:12605: checking for $ac_hdr" >&5
12605 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12606 echo $ac_n "(cached) $ac_c" 1>&6
12608 cat > conftest.$ac_ext <<EOF
12609 #line 12610 "configure"
12610 #include "confdefs.h"
12613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12614 { (eval echo configure:12615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12616 if test -z "$ac_err"; then
12618 eval "ac_cv_header_$ac_safe=yes"
12621 echo "configure: failed program was:" >&5
12622 cat conftest.$ac_ext >&5
12624 eval "ac_cv_header_$ac_safe=no"
12628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12629 echo "$ac_t""yes" 1>&6
12630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12631 cat >> confdefs.h <<EOF
12632 #define $ac_tr_hdr 1
12636 echo "$ac_t""no" 1>&6
12640 for ac_hdr in lwp/lwp.h
12642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12644 echo "configure:12645: checking for $ac_hdr" >&5
12645 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12648 cat > conftest.$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12654 { (eval echo configure:12655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12656 if test -z "$ac_err"; then
12658 eval "ac_cv_header_$ac_safe=yes"
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12664 eval "ac_cv_header_$ac_safe=no"
12668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12669 echo "$ac_t""yes" 1>&6
12670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12671 cat >> confdefs.h <<EOF
12672 #define $ac_tr_hdr 1
12676 echo "$ac_t""no" 1>&6
12680 for ac_hdr in thread.h synch.h
12682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12684 echo "configure:12685: checking for $ac_hdr" >&5
12685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12688 cat > conftest.$ac_ext <<EOF
12689 #line 12690 "configure"
12690 #include "confdefs.h"
12693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12694 { (eval echo configure:12695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12696 if test -z "$ac_err"; then
12698 eval "ac_cv_header_$ac_safe=yes"
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 eval "ac_cv_header_$ac_safe=no"
12708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12709 echo "$ac_t""yes" 1>&6
12710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12711 cat >> confdefs.h <<EOF
12712 #define $ac_tr_hdr 1
12716 echo "$ac_t""no" 1>&6
12722 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12723 cat >> confdefs.h <<\EOF
12724 #define REENTRANT 1
12727 cat >> confdefs.h <<\EOF
12728 #define _REENTRANT 1
12731 cat >> confdefs.h <<\EOF
12732 #define THREAD_SAFE 1
12735 cat >> confdefs.h <<\EOF
12736 #define _THREAD_SAFE 1
12739 cat >> confdefs.h <<\EOF
12740 #define THREADSAFE 1
12743 cat >> confdefs.h <<\EOF
12744 #define _THREADSAFE 1
12747 cat >> confdefs.h <<\EOF
12748 #define _SGI_MP_SOURCE 1
12752 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12753 echo "configure:12754: checking for thread specific errno" >&5
12754 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
12758 cat > conftest.$ac_ext <<EOF
12759 #line 12760 "configure"
12760 #include "confdefs.h"
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12768 ol_cv_errno_thread_specific=yes
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12773 ol_cv_errno_thread_specific=no
12779 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12781 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12782 echo "configure:12783: checking for thread specific h_errno" >&5
12783 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12787 cat > conftest.$ac_ext <<EOF
12788 #line 12789 "configure"
12789 #include "confdefs.h"
12795 if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12797 ol_cv_h_errno_thread_specific=yes
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12802 ol_cv_h_errno_thread_specific=no
12808 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12810 if test $ol_cv_errno_thread_specific != yes \
12811 -o $ol_cv_h_errno_thread_specific != yes ; then
12812 LIBS="$LTHREAD_LIBS $LIBS"
12818 if test $ol_link_threads = no ; then
12819 if test $ol_with_threads = yes ; then
12820 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12823 if test $ol_with_threads = auto ; then
12824 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12828 cat >> confdefs.h <<\EOF
12829 #define NO_THREADS 1
12835 if test $ol_link_threads != no ; then
12836 cat >> confdefs.h <<\EOF
12837 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12844 if test $ol_with_ldbm_api = auto \
12845 -o $ol_with_ldbm_api = berkeley \
12846 -o $ol_with_ldbm_api = bcompat ; then
12848 if test $ol_with_ldbm_api = bcompat; then \
12849 ol_cv_berkeley_db=no
12850 for ac_hdr in db_185.h db.h
12852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12854 echo "configure:12855: checking for $ac_hdr" >&5
12855 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12856 echo $ac_n "(cached) $ac_c" 1>&6
12858 cat > conftest.$ac_ext <<EOF
12859 #line 12860 "configure"
12860 #include "confdefs.h"
12863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12864 { (eval echo configure:12865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12866 if test -z "$ac_err"; then
12868 eval "ac_cv_header_$ac_safe=yes"
12871 echo "configure: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12874 eval "ac_cv_header_$ac_safe=no"
12878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12879 echo "$ac_t""yes" 1>&6
12880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12881 cat >> confdefs.h <<EOF
12882 #define $ac_tr_hdr 1
12886 echo "$ac_t""no" 1>&6
12890 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12891 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12892 echo "configure:12893: checking if Berkeley DB header compatibility" >&5
12893 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12894 echo $ac_n "(cached) $ac_c" 1>&6
12897 cat > conftest.$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12902 # include <db_185.h>
12907 /* this check could be improved */
12908 #ifndef DB_VERSION_MAJOR
12909 # define DB_VERSION_MAJOR 1
12912 #if DB_VERSION_MAJOR == 1
12917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12918 egrep "__db_version_1" >/dev/null 2>&1; then
12920 ol_cv_header_db1=yes
12923 ol_cv_header_db1=no
12929 echo "$ac_t""$ol_cv_header_db1" 1>&6
12931 if test $ol_cv_header_db1 = yes ; then
12933 if test $ol_cv_lib_db = no ; then
12934 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12935 echo "configure:12936: checking for Berkeley DB link (default)" >&5
12936 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12942 LIBS="$ol_DB_LIB $LIBS"
12944 cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12948 #ifdef HAVE_DB_185_H
12949 # include <db_185.h>
12954 #ifndef DB_VERSION_MAJOR
12955 # define DB_VERSION_MAJOR 1
12959 #define NULL ((void*)0)
12964 #if DB_VERSION_MAJOR > 1
12967 int major, minor, patch;
12969 version = db_version( &major, &minor, &patch );
12971 if( major != DB_VERSION_MAJOR ||
12972 minor < DB_VERSION_MINOR )
12974 printf("Berkeley DB version mismatch\n"
12975 "\texpected: %s\n\tgot: %s\n",
12976 DB_VERSION_STRING, version);
12982 #if DB_VERSION_MAJOR > 2
12983 db_env_create( NULL, 0 );
12984 #elif DB_VERSION_MAJOR > 1
12985 db_appexit( NULL );
12987 (void) dbopen( NULL, 0, 0, 0, NULL);
12992 if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
13007 echo "$ac_t""$ol_cv_db_none" 1>&6
13009 if test $ol_cv_db_none = yes ; then
13014 if test $ol_cv_lib_db = no ; then
13015 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13016 echo "configure:13017: checking for Berkeley DB link (-ldb)" >&5
13017 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13023 LIBS="$ol_DB_LIB $LIBS"
13025 cat > conftest.$ac_ext <<EOF
13026 #line 13027 "configure"
13027 #include "confdefs.h"
13029 #ifdef HAVE_DB_185_H
13030 # include <db_185.h>
13035 #ifndef DB_VERSION_MAJOR
13036 # define DB_VERSION_MAJOR 1
13040 #define NULL ((void*)0)
13045 #if DB_VERSION_MAJOR > 1
13048 int major, minor, patch;
13050 version = db_version( &major, &minor, &patch );
13052 if( major != DB_VERSION_MAJOR ||
13053 minor < DB_VERSION_MINOR )
13055 printf("Berkeley DB version mismatch\n"
13056 "\texpected: %s\n\tgot: %s\n",
13057 DB_VERSION_STRING, version);
13063 #if DB_VERSION_MAJOR > 2
13064 db_env_create( NULL, 0 );
13065 #elif DB_VERSION_MAJOR > 1
13066 db_appexit( NULL );
13068 (void) dbopen( NULL, 0, 0, 0, NULL);
13073 if { (eval echo configure:13074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13077 echo "configure: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13088 echo "$ac_t""$ol_cv_db_db" 1>&6
13090 if test $ol_cv_db_db = yes ; then
13095 if test $ol_cv_lib_db = no ; then
13096 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13097 echo "configure:13098: checking for Berkeley DB link (-ldb3)" >&5
13098 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13099 echo $ac_n "(cached) $ac_c" 1>&6
13104 LIBS="$ol_DB_LIB $LIBS"
13106 cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13110 #ifdef HAVE_DB_185_H
13111 # include <db_185.h>
13116 #ifndef DB_VERSION_MAJOR
13117 # define DB_VERSION_MAJOR 1
13121 #define NULL ((void*)0)
13126 #if DB_VERSION_MAJOR > 1
13129 int major, minor, patch;
13131 version = db_version( &major, &minor, &patch );
13133 if( major != DB_VERSION_MAJOR ||
13134 minor < DB_VERSION_MINOR )
13136 printf("Berkeley DB version mismatch\n"
13137 "\texpected: %s\n\tgot: %s\n",
13138 DB_VERSION_STRING, version);
13144 #if DB_VERSION_MAJOR > 2
13145 db_env_create( NULL, 0 );
13146 #elif DB_VERSION_MAJOR > 1
13147 db_appexit( NULL );
13149 (void) dbopen( NULL, 0, 0, 0, NULL);
13154 if { (eval echo configure:13155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13158 echo "configure: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13169 echo "$ac_t""$ol_cv_db_db3" 1>&6
13171 if test $ol_cv_db_db3 = yes ; then
13176 if test $ol_cv_lib_db = no ; then
13177 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13178 echo "configure:13179: checking for Berkeley DB link (-ldb2)" >&5
13179 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13185 LIBS="$ol_DB_LIB $LIBS"
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13191 #ifdef HAVE_DB_185_H
13192 # include <db_185.h>
13197 #ifndef DB_VERSION_MAJOR
13198 # define DB_VERSION_MAJOR 1
13202 #define NULL ((void*)0)
13207 #if DB_VERSION_MAJOR > 1
13210 int major, minor, patch;
13212 version = db_version( &major, &minor, &patch );
13214 if( major != DB_VERSION_MAJOR ||
13215 minor < DB_VERSION_MINOR )
13217 printf("Berkeley DB version mismatch\n"
13218 "\texpected: %s\n\tgot: %s\n",
13219 DB_VERSION_STRING, version);
13225 #if DB_VERSION_MAJOR > 2
13226 db_env_create( NULL, 0 );
13227 #elif DB_VERSION_MAJOR > 1
13228 db_appexit( NULL );
13230 (void) dbopen( NULL, 0, 0, 0, NULL);
13235 if { (eval echo configure:13236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13239 echo "configure: failed program was:" >&5
13240 cat conftest.$ac_ext >&5
13250 echo "$ac_t""$ol_cv_db_db2" 1>&6
13252 if test $ol_cv_db_db2 = yes ; then
13257 if test $ol_cv_lib_db = no ; then
13258 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13259 echo "configure:13260: checking for Berkeley DB link (-ldb1)" >&5
13260 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13261 echo $ac_n "(cached) $ac_c" 1>&6
13266 LIBS="$ol_DB_LIB $LIBS"
13268 cat > conftest.$ac_ext <<EOF
13269 #line 13270 "configure"
13270 #include "confdefs.h"
13272 #ifdef HAVE_DB_185_H
13273 # include <db_185.h>
13278 #ifndef DB_VERSION_MAJOR
13279 # define DB_VERSION_MAJOR 1
13283 #define NULL ((void*)0)
13288 #if DB_VERSION_MAJOR > 1
13291 int major, minor, patch;
13293 version = db_version( &major, &minor, &patch );
13295 if( major != DB_VERSION_MAJOR ||
13296 minor < DB_VERSION_MINOR )
13298 printf("Berkeley DB version mismatch\n"
13299 "\texpected: %s\n\tgot: %s\n",
13300 DB_VERSION_STRING, version);
13306 #if DB_VERSION_MAJOR > 2
13307 db_env_create( NULL, 0 );
13308 #elif DB_VERSION_MAJOR > 1
13309 db_appexit( NULL );
13311 (void) dbopen( NULL, 0, 0, 0, NULL);
13316 if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13331 echo "$ac_t""$ol_cv_db_db1" 1>&6
13333 if test $ol_cv_db_db1 = yes ; then
13339 if test "$ol_cv_lib_db" != no ; then
13340 ol_cv_berkeley_db=yes
13346 ol_cv_berkeley_db=no
13349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13351 echo "configure:13352: checking for $ac_hdr" >&5
13352 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13353 echo $ac_n "(cached) $ac_c" 1>&6
13355 cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13361 { (eval echo configure:13362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13363 if test -z "$ac_err"; then
13365 eval "ac_cv_header_$ac_safe=yes"
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13371 eval "ac_cv_header_$ac_safe=no"
13375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13378 cat >> confdefs.h <<EOF
13379 #define $ac_tr_hdr 1
13383 echo "$ac_t""no" 1>&6
13387 if test $ac_cv_header_db_h = yes; then
13389 if test $ol_cv_lib_db = no ; then
13390 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13391 echo "configure:13392: checking for Berkeley DB link (default)" >&5
13392 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13393 echo $ac_n "(cached) $ac_c" 1>&6
13398 LIBS="$ol_DB_LIB $LIBS"
13400 cat > conftest.$ac_ext <<EOF
13401 #line 13402 "configure"
13402 #include "confdefs.h"
13404 #ifdef HAVE_DB_185_H
13405 # include <db_185.h>
13410 #ifndef DB_VERSION_MAJOR
13411 # define DB_VERSION_MAJOR 1
13415 #define NULL ((void*)0)
13420 #if DB_VERSION_MAJOR > 1
13423 int major, minor, patch;
13425 version = db_version( &major, &minor, &patch );
13427 if( major != DB_VERSION_MAJOR ||
13428 minor < DB_VERSION_MINOR )
13430 printf("Berkeley DB version mismatch\n"
13431 "\texpected: %s\n\tgot: %s\n",
13432 DB_VERSION_STRING, version);
13438 #if DB_VERSION_MAJOR > 2
13439 db_env_create( NULL, 0 );
13440 #elif DB_VERSION_MAJOR > 1
13441 db_appexit( NULL );
13443 (void) dbopen( NULL, 0, 0, 0, NULL);
13448 if { (eval echo configure:13449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13452 echo "configure: failed program was:" >&5
13453 cat conftest.$ac_ext >&5
13463 echo "$ac_t""$ol_cv_db_none" 1>&6
13465 if test $ol_cv_db_none = yes ; then
13470 if test $ol_cv_lib_db = no ; then
13471 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13472 echo "configure:13473: checking for Berkeley DB link (-ldb)" >&5
13473 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13479 LIBS="$ol_DB_LIB $LIBS"
13481 cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13485 #ifdef HAVE_DB_185_H
13486 # include <db_185.h>
13491 #ifndef DB_VERSION_MAJOR
13492 # define DB_VERSION_MAJOR 1
13496 #define NULL ((void*)0)
13501 #if DB_VERSION_MAJOR > 1
13504 int major, minor, patch;
13506 version = db_version( &major, &minor, &patch );
13508 if( major != DB_VERSION_MAJOR ||
13509 minor < DB_VERSION_MINOR )
13511 printf("Berkeley DB version mismatch\n"
13512 "\texpected: %s\n\tgot: %s\n",
13513 DB_VERSION_STRING, version);
13519 #if DB_VERSION_MAJOR > 2
13520 db_env_create( NULL, 0 );
13521 #elif DB_VERSION_MAJOR > 1
13522 db_appexit( NULL );
13524 (void) dbopen( NULL, 0, 0, 0, NULL);
13529 if { (eval echo configure:13530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13533 echo "configure: failed program was:" >&5
13534 cat conftest.$ac_ext >&5
13544 echo "$ac_t""$ol_cv_db_db" 1>&6
13546 if test $ol_cv_db_db = yes ; then
13551 if test $ol_cv_lib_db = no ; then
13552 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13553 echo "configure:13554: checking for Berkeley DB link (-ldb3)" >&5
13554 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13555 echo $ac_n "(cached) $ac_c" 1>&6
13560 LIBS="$ol_DB_LIB $LIBS"
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13566 #ifdef HAVE_DB_185_H
13567 # include <db_185.h>
13572 #ifndef DB_VERSION_MAJOR
13573 # define DB_VERSION_MAJOR 1
13577 #define NULL ((void*)0)
13582 #if DB_VERSION_MAJOR > 1
13585 int major, minor, patch;
13587 version = db_version( &major, &minor, &patch );
13589 if( major != DB_VERSION_MAJOR ||
13590 minor < DB_VERSION_MINOR )
13592 printf("Berkeley DB version mismatch\n"
13593 "\texpected: %s\n\tgot: %s\n",
13594 DB_VERSION_STRING, version);
13600 #if DB_VERSION_MAJOR > 2
13601 db_env_create( NULL, 0 );
13602 #elif DB_VERSION_MAJOR > 1
13603 db_appexit( NULL );
13605 (void) dbopen( NULL, 0, 0, 0, NULL);
13610 if { (eval echo configure:13611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13614 echo "configure: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13625 echo "$ac_t""$ol_cv_db_db3" 1>&6
13627 if test $ol_cv_db_db3 = yes ; then
13632 if test $ol_cv_lib_db = no ; then
13633 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13634 echo "configure:13635: checking for Berkeley DB link (-ldb2)" >&5
13635 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13636 echo $ac_n "(cached) $ac_c" 1>&6
13641 LIBS="$ol_DB_LIB $LIBS"
13643 cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13647 #ifdef HAVE_DB_185_H
13648 # include <db_185.h>
13653 #ifndef DB_VERSION_MAJOR
13654 # define DB_VERSION_MAJOR 1
13658 #define NULL ((void*)0)
13663 #if DB_VERSION_MAJOR > 1
13666 int major, minor, patch;
13668 version = db_version( &major, &minor, &patch );
13670 if( major != DB_VERSION_MAJOR ||
13671 minor < DB_VERSION_MINOR )
13673 printf("Berkeley DB version mismatch\n"
13674 "\texpected: %s\n\tgot: %s\n",
13675 DB_VERSION_STRING, version);
13681 #if DB_VERSION_MAJOR > 2
13682 db_env_create( NULL, 0 );
13683 #elif DB_VERSION_MAJOR > 1
13684 db_appexit( NULL );
13686 (void) dbopen( NULL, 0, 0, 0, NULL);
13691 if { (eval echo configure:13692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13695 echo "configure: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13706 echo "$ac_t""$ol_cv_db_db2" 1>&6
13708 if test $ol_cv_db_db2 = yes ; then
13713 if test $ol_cv_lib_db = no ; then
13714 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13715 echo "configure:13716: checking for Berkeley DB link (-ldb1)" >&5
13716 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13717 echo $ac_n "(cached) $ac_c" 1>&6
13722 LIBS="$ol_DB_LIB $LIBS"
13724 cat > conftest.$ac_ext <<EOF
13725 #line 13726 "configure"
13726 #include "confdefs.h"
13728 #ifdef HAVE_DB_185_H
13729 # include <db_185.h>
13734 #ifndef DB_VERSION_MAJOR
13735 # define DB_VERSION_MAJOR 1
13739 #define NULL ((void*)0)
13744 #if DB_VERSION_MAJOR > 1
13747 int major, minor, patch;
13749 version = db_version( &major, &minor, &patch );
13751 if( major != DB_VERSION_MAJOR ||
13752 minor < DB_VERSION_MINOR )
13754 printf("Berkeley DB version mismatch\n"
13755 "\texpected: %s\n\tgot: %s\n",
13756 DB_VERSION_STRING, version);
13762 #if DB_VERSION_MAJOR > 2
13763 db_env_create( NULL, 0 );
13764 #elif DB_VERSION_MAJOR > 1
13765 db_appexit( NULL );
13767 (void) dbopen( NULL, 0, 0, 0, NULL);
13772 if { (eval echo configure:13773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13776 echo "configure: failed program was:" >&5
13777 cat conftest.$ac_ext >&5
13787 echo "$ac_t""$ol_cv_db_db1" 1>&6
13789 if test $ol_cv_db_db1 = yes ; then
13795 if test "$ol_cv_lib_db" != no ; then
13796 ol_cv_berkeley_db=yes
13797 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13798 echo "configure:13799: checking for Berkeley DB thread support" >&5
13799 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13800 echo $ac_n "(cached) $ac_c" 1>&6
13804 if test $ol_cv_lib_db != yes ; then
13805 LIBS="$ol_cv_lib_db"
13808 if test "$cross_compiling" = yes; then
13809 ol_cv_berkeley_db_thread=cross
13811 cat > conftest.$ac_ext <<EOF
13812 #line 13813 "configure"
13813 #include "confdefs.h"
13815 #ifdef HAVE_DB_185_H
13821 #define NULL ((void *)0)
13826 u_int32_t flags = DB_CREATE |
13832 #if DB_VERSION_MAJOR > 2
13833 DB_ENV *env = NULL;
13835 rc = db_env_create( &env, 0 );
13837 flags |= DB_INIT_MPOOL;
13838 #ifdef DB_MPOOL_PRIVATE
13839 flags |= DB_MPOOL_PRIVATE;
13843 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13847 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13848 rc = env->open( env, NULL, flags, 0 );
13850 rc = env->open( env, NULL, NULL, flags, 0 );
13854 rc = env->close( env, 0 );
13858 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13864 memset( &env, '\0', sizeof(env) );
13866 rc = db_appinit( NULL, NULL, &env, flags );
13869 db_appexit( &env );
13872 unlink("__db_mpool.share");
13873 unlink("__db_lock.share");
13879 if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13881 ol_cv_berkeley_db_thread=yes
13883 echo "configure: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13886 ol_cv_berkeley_db_thread=no
13894 if test $ol_cv_berkeley_db_thread != no ; then
13895 cat >> confdefs.h <<\EOF
13896 #define HAVE_BERKELEY_DB_THREAD 1
13903 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13909 if test $ol_cv_berkeley_db != no ; then
13910 cat >> confdefs.h <<\EOF
13911 #define HAVE_BERKELEY_DB 1
13915 ol_link_ldbm=berkeley
13916 ol_with_ldbm_api=berkeley
13918 if test $ol_with_ldbm_type = hash ; then
13919 cat >> confdefs.h <<\EOF
13920 #define LDBM_USE_DBHASH 1
13924 cat >> confdefs.h <<\EOF
13925 #define LDBM_USE_DBBTREE 1
13930 if test $ol_cv_lib_db != yes ; then
13931 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13936 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
13937 { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
13938 elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
13942 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13943 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13944 ol_with_ldbm_api=none
13947 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13948 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13949 echo "configure:13950: checking for MDBM library" >&5
13950 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13954 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13955 echo "configure:13956: checking for mdbm_set_chain" >&5
13956 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13957 echo $ac_n "(cached) $ac_c" 1>&6
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 /* System header to define __stub macros and hopefully few prototypes,
13963 which can conflict with char mdbm_set_chain(); below. */
13964 #include <assert.h>
13965 /* Override any gcc2 internal prototype to avoid an error. */
13966 /* We use char because int might match the return type of a gcc2
13967 builtin and then its argument prototype would still apply. */
13968 char mdbm_set_chain();
13973 /* The GNU C library defines this for functions which it implements
13974 to always fail with ENOSYS. Some functions are actually named
13975 something starting with __ and the normal name is an alias. */
13976 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13979 f = mdbm_set_chain;
13984 if { (eval echo configure:13985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13986 eval "ac_cv_func_mdbm_set_chain=yes"
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13991 eval "ac_cv_func_mdbm_set_chain=no"
13996 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13997 echo "$ac_t""yes" 1>&6
14000 echo "$ac_t""no" 1>&6
14002 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
14003 echo "configure:14004: checking for mdbm_set_chain in -lmdbm" >&5
14004 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
14005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14006 echo $ac_n "(cached) $ac_c" 1>&6
14008 ac_save_LIBS="$LIBS"
14009 LIBS="-lmdbm $LIBS"
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* Override any gcc2 internal prototype to avoid an error. */
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016 char mdbm_set_chain();
14022 if { (eval echo configure:14023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14024 eval "ac_cv_lib_$ac_lib_var=yes"
14026 echo "configure: failed program was:" >&5
14027 cat conftest.$ac_ext >&5
14029 eval "ac_cv_lib_$ac_lib_var=no"
14032 LIBS="$ac_save_LIBS"
14035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14036 echo "$ac_t""yes" 1>&6
14037 ol_cv_lib_mdbm=-lmdbm
14039 echo "$ac_t""no" 1>&6
14050 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
14053 for ac_hdr in mdbm.h
14055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14057 echo "configure:14058: checking for $ac_hdr" >&5
14058 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14063 "configure"
14063 #include "confdefs.h"
14066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14067 { (eval echo configure:14068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14069 if test -z "$ac_err"; then
14071 eval "ac_cv_header_$ac_safe=yes"
14074 echo "configure: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14077 eval "ac_cv_header_$ac_safe=no"
14081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14082 echo "$ac_t""yes" 1>&6
14083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14084 cat >> confdefs.h <<EOF
14085 #define $ac_tr_hdr 1
14089 echo "$ac_t""no" 1>&6
14093 echo $ac_n "checking for db""... $ac_c" 1>&6
14094 echo "configure:14095: checking for db" >&5
14095 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14099 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
14107 echo "$ac_t""$ol_cv_mdbm" 1>&6
14108 if test $ol_cv_mdbm = yes ; then
14109 cat >> confdefs.h <<\EOF
14110 #define HAVE_MDBM 1
14116 if test $ol_cv_mdbm = yes ; then
14118 ol_with_ldbm_api=mdbm
14119 if test $ol_cv_lib_mdbm != yes ; then
14120 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
14125 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
14126 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
14127 echo "configure:14128: checking for GDBM library" >&5
14128 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14132 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
14133 echo "configure:14134: checking for gdbm_open" >&5
14134 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
14135 echo $ac_n "(cached) $ac_c" 1>&6
14137 cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14140 /* System header to define __stub macros and hopefully few prototypes,
14141 which can conflict with char gdbm_open(); below. */
14142 #include <assert.h>
14143 /* Override any gcc2 internal prototype to avoid an error. */
14144 /* We use char because int might match the return type of a gcc2
14145 builtin and then its argument prototype would still apply. */
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14164 eval "ac_cv_func_gdbm_open=yes"
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14169 eval "ac_cv_func_gdbm_open=no"
14174 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14178 echo "$ac_t""no" 1>&6
14180 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14181 echo "configure:14182: checking for gdbm_open in -lgdbm" >&5
14182 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14183 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14184 echo $ac_n "(cached) $ac_c" 1>&6
14186 ac_save_LIBS="$LIBS"
14187 LIBS="-lgdbm $LIBS"
14188 cat > conftest.$ac_ext <<EOF
14189 #line 14190 "configure"
14190 #include "confdefs.h"
14191 /* Override any gcc2 internal prototype to avoid an error. */
14192 /* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14200 if { (eval echo configure:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14202 eval "ac_cv_lib_$ac_lib_var=yes"
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14207 eval "ac_cv_lib_$ac_lib_var=no"
14210 LIBS="$ac_save_LIBS"
14213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14214 echo "$ac_t""yes" 1>&6
14215 ol_cv_lib_gdbm=-lgdbm
14217 echo "$ac_t""no" 1>&6
14228 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14231 for ac_hdr in gdbm.h
14233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14235 echo "configure:14236: checking for $ac_hdr" >&5
14236 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14237 echo $ac_n "(cached) $ac_c" 1>&6
14239 cat > conftest.$ac_ext <<EOF
14240 #line 14241 "configure"
14241 #include "confdefs.h"
14244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14245 { (eval echo configure:14246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14247 if test -z "$ac_err"; then
14249 eval "ac_cv_header_$ac_safe=yes"
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14255 eval "ac_cv_header_$ac_safe=no"
14259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14260 echo "$ac_t""yes" 1>&6
14261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14262 cat >> confdefs.h <<EOF
14263 #define $ac_tr_hdr 1
14267 echo "$ac_t""no" 1>&6
14271 echo $ac_n "checking for db""... $ac_c" 1>&6
14272 echo "configure:14273: checking for db" >&5
14273 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14274 echo $ac_n "(cached) $ac_c" 1>&6
14277 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14285 echo "$ac_t""$ol_cv_gdbm" 1>&6
14286 if test $ol_cv_gdbm = yes ; then
14287 cat >> confdefs.h <<\EOF
14288 #define HAVE_GDBM 1
14294 if test $ol_cv_gdbm = yes ; then
14296 ol_with_ldbm_api=gdbm
14298 if test $ol_cv_lib_gdbm != yes ; then
14299 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14304 if test $ol_with_ldbm_api = ndbm ; then
14305 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14306 echo "configure:14307: checking for NDBM library" >&5
14307 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14308 echo $ac_n "(cached) $ac_c" 1>&6
14311 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14312 echo "configure:14313: checking for dbm_open" >&5
14313 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14316 cat > conftest.$ac_ext <<EOF
14317 #line 14318 "configure"
14318 #include "confdefs.h"
14319 /* System header to define __stub macros and hopefully few prototypes,
14320 which can conflict with char dbm_open(); below. */
14321 #include <assert.h>
14322 /* Override any gcc2 internal prototype to avoid an error. */
14323 /* We use char because int might match the return type of a gcc2
14324 builtin and then its argument prototype would still apply. */
14330 /* The GNU C library defines this for functions which it implements
14331 to always fail with ENOSYS. Some functions are actually named
14332 something starting with __ and the normal name is an alias. */
14333 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14341 if { (eval echo configure:14342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14343 eval "ac_cv_func_dbm_open=yes"
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14348 eval "ac_cv_func_dbm_open=no"
14353 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14354 echo "$ac_t""yes" 1>&6
14357 echo "$ac_t""no" 1>&6
14359 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14360 echo "configure:14361: checking for dbm_open in -lndbm" >&5
14361 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14363 echo $ac_n "(cached) $ac_c" 1>&6
14365 ac_save_LIBS="$LIBS"
14366 LIBS="-lndbm $LIBS"
14367 cat > conftest.$ac_ext <<EOF
14368 #line 14369 "configure"
14369 #include "confdefs.h"
14370 /* Override any gcc2 internal prototype to avoid an error. */
14371 /* We use char because int might match the return type of a gcc2
14372 builtin and then its argument prototype would still apply. */
14379 if { (eval echo configure:14380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14381 eval "ac_cv_lib_$ac_lib_var=yes"
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14386 eval "ac_cv_lib_$ac_lib_var=no"
14389 LIBS="$ac_save_LIBS"
14392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ol_cv_lib_ndbm=-lndbm
14396 echo "$ac_t""no" 1>&6
14398 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14399 echo "configure:14400: checking for dbm_open in -ldbm" >&5
14400 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14401 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14402 echo $ac_n "(cached) $ac_c" 1>&6
14404 ac_save_LIBS="$LIBS"
14406 cat > conftest.$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14409 /* Override any gcc2 internal prototype to avoid an error. */
14410 /* We use char because int might match the return type of a gcc2
14411 builtin and then its argument prototype would still apply. */
14418 if { (eval echo configure:14419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14420 eval "ac_cv_lib_$ac_lib_var=yes"
14422 echo "configure: failed program was:" >&5
14423 cat conftest.$ac_ext >&5
14425 eval "ac_cv_lib_$ac_lib_var=no"
14428 LIBS="$ac_save_LIBS"
14431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14432 echo "$ac_t""yes" 1>&6
14433 ol_cv_lib_ndbm=-ldbm
14435 echo "$ac_t""no" 1>&6
14448 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14451 for ac_hdr in ndbm.h
14453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14455 echo "configure:14456: checking for $ac_hdr" >&5
14456 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14459 cat > conftest.$ac_ext <<EOF
14460 #line 14461 "configure"
14461 #include "confdefs.h"
14464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14465 { (eval echo configure:14466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14467 if test -z "$ac_err"; then
14469 eval "ac_cv_header_$ac_safe=yes"
14472 echo "configure: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14475 eval "ac_cv_header_$ac_safe=no"
14479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14480 echo "$ac_t""yes" 1>&6
14481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14482 cat >> confdefs.h <<EOF
14483 #define $ac_tr_hdr 1
14487 echo "$ac_t""no" 1>&6
14491 echo $ac_n "checking for db""... $ac_c" 1>&6
14492 echo "configure:14493: checking for db" >&5
14493 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14494 echo $ac_n "(cached) $ac_c" 1>&6
14497 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14505 echo "$ac_t""$ol_cv_ndbm" 1>&6
14506 if test $ol_cv_ndbm = yes ; then
14507 cat >> confdefs.h <<\EOF
14508 #define HAVE_NDBM 1
14514 if test $ol_cv_ndbm = yes ; then
14516 ol_with_ldbm_api=ndbm
14518 if test $ol_cv_lib_ndbm != yes ; then
14519 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14524 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14525 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14526 if test $ol_enable_ldbm = yes ; then
14527 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14530 echo "configure: warning: disabling LDBM" 1>&2
14534 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14535 LINK_BINS_DYNAMIC="yes"
14537 LINK_BINS_DYNAMIC="no"
14540 if test $ol_enable_wrappers != no ; then
14541 for ac_hdr in tcpd.h
14543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14545 echo "configure:14546: checking for $ac_hdr" >&5
14546 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14547 echo $ac_n "(cached) $ac_c" 1>&6
14549 cat > conftest.$ac_ext <<EOF
14550 #line 14551 "configure"
14551 #include "confdefs.h"
14554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14555 { (eval echo configure:14556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14557 if test -z "$ac_err"; then
14559 eval "ac_cv_header_$ac_safe=yes"
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14565 eval "ac_cv_header_$ac_safe=no"
14569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14570 echo "$ac_t""yes" 1>&6
14571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14572 cat >> confdefs.h <<EOF
14573 #define $ac_tr_hdr 1
14577 echo "$ac_t""no" 1>&6
14582 if test $ac_cv_header_tcpd_h != yes ; then
14585 cat > conftest.$ac_ext <<EOF
14586 #line 14587 "configure"
14587 #include "confdefs.h"
14589 int allow_severity = 0;
14590 int deny_severity = 0;
14596 if { (eval echo configure:14597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14600 echo "configure: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14608 if test $have_wrappers = yes ; then
14609 cat >> confdefs.h <<\EOF
14610 #define HAVE_TCPD 1
14615 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14616 echo "configure:14617: checking for main in -lnsl" >&5
14617 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14618 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14619 echo $ac_n "(cached) $ac_c" 1>&6
14621 ac_save_LIBS="$LIBS"
14623 cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14633 eval "ac_cv_lib_$ac_lib_var=yes"
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14638 eval "ac_cv_lib_$ac_lib_var=no"
14641 LIBS="$ac_save_LIBS"
14644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14645 echo "$ac_t""yes" 1>&6
14646 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14648 cat >> confdefs.h <<EOF
14649 #define $ac_tr_lib 1
14655 echo "$ac_t""no" 1>&6
14659 echo "configure: warning: could not find -lwrap" 1>&2
14660 if test $ol_enable_wrappers = yes ; then
14661 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14664 echo "configure: warning: disabling wrappers support" 1>&2
14665 ol_enable_wrappers=no
14670 if test $ol_enable_syslog != no ; then
14671 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14672 echo "configure:14673: checking for openlog" >&5
14673 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14674 echo $ac_n "(cached) $ac_c" 1>&6
14676 cat > conftest.$ac_ext <<EOF
14677 #line 14678 "configure"
14678 #include "confdefs.h"
14679 /* System header to define __stub macros and hopefully few prototypes,
14680 which can conflict with char openlog(); below. */
14681 #include <assert.h>
14682 /* Override any gcc2 internal prototype to avoid an error. */
14683 /* We use char because int might match the return type of a gcc2
14684 builtin and then its argument prototype would still apply. */
14690 /* The GNU C library defines this for functions which it implements
14691 to always fail with ENOSYS. Some functions are actually named
14692 something starting with __ and the normal name is an alias. */
14693 #if defined (__stub_openlog) || defined (__stub___openlog)
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 eval "ac_cv_func_openlog=yes"
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14708 eval "ac_cv_func_openlog=no"
14713 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14714 echo "$ac_t""yes" 1>&6
14717 echo "$ac_t""no" 1>&6
14720 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14721 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14723 ol_enable_syslog=$ac_cv_func_openlog
14728 if test $ol_enable_sql != no ; then
14729 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14730 echo "configure:14731: checking for SQLDriverConnect in -liodbc" >&5
14731 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14732 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14733 echo $ac_n "(cached) $ac_c" 1>&6
14735 ac_save_LIBS="$LIBS"
14736 LIBS="-liodbc $LIBS"
14737 cat > conftest.$ac_ext <<EOF
14738 #line 14739 "configure"
14739 #include "confdefs.h"
14740 /* Override any gcc2 internal prototype to avoid an error. */
14741 /* We use char because int might match the return type of a gcc2
14742 builtin and then its argument prototype would still apply. */
14743 char SQLDriverConnect();
14749 if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14751 eval "ac_cv_lib_$ac_lib_var=yes"
14753 echo "configure: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14756 eval "ac_cv_lib_$ac_lib_var=no"
14759 LIBS="$ac_save_LIBS"
14762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14763 echo "$ac_t""yes" 1>&6
14766 echo "$ac_t""no" 1>&6
14770 if test $have_iodbc = yes ; then
14771 ol_link_sql="-liodbc"
14773 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14774 echo "configure:14775: checking for SQLDriverConnect in -lodbc" >&5
14775 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14776 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14777 echo $ac_n "(cached) $ac_c" 1>&6
14779 ac_save_LIBS="$LIBS"
14780 LIBS="-lodbc $LIBS"
14781 cat > conftest.$ac_ext <<EOF
14782 #line 14783 "configure"
14783 #include "confdefs.h"
14784 /* Override any gcc2 internal prototype to avoid an error. */
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char SQLDriverConnect();
14793 if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14795 eval "ac_cv_lib_$ac_lib_var=yes"
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14800 eval "ac_cv_lib_$ac_lib_var=no"
14803 LIBS="$ac_save_LIBS"
14806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14807 echo "$ac_t""yes" 1>&6
14810 echo "$ac_t""no" 1>&6
14814 if test $have_odbc = yes ; then
14815 ol_link_sql="-lodbc"
14819 if test $ol_link_sql != no ; then
14820 SLAPD_SQL_LIBS="$ol_link_sql"
14822 elif test $ol_enable_sql != auto ; then
14823 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14827 if test $ol_enable_tcl != no ; then
14828 for ac_hdr in tcl.h
14830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14832 echo "configure:14833: checking for $ac_hdr" >&5
14833 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14834 echo $ac_n "(cached) $ac_c" 1>&6
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14842 { (eval echo configure:14843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14844 if test -z "$ac_err"; then
14846 eval "ac_cv_header_$ac_safe=yes"
14849 echo "configure: failed program was:" >&5
14850 cat conftest.$ac_ext >&5
14852 eval "ac_cv_header_$ac_safe=no"
14856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14857 echo "$ac_t""yes" 1>&6
14858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14859 cat >> confdefs.h <<EOF
14860 #define $ac_tr_hdr 1
14864 echo "$ac_t""no" 1>&6
14869 if test $ac_cv_header_tcl_h != yes ; then
14872 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
14873 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
14874 echo "configure:14875: checking for main in -l$lib" >&5
14875 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
14876 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14877 echo $ac_n "(cached) $ac_c" 1>&6
14879 ac_save_LIBS="$LIBS"
14880 LIBS="-l$lib $LIBS"
14881 cat > conftest.$ac_ext <<EOF
14882 #line 14883 "configure"
14883 #include "confdefs.h"
14889 if { (eval echo configure:14890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14891 eval "ac_cv_lib_$ac_lib_var=yes"
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14896 eval "ac_cv_lib_$ac_lib_var=no"
14899 LIBS="$ac_save_LIBS"
14902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14903 echo "$ac_t""yes" 1>&6
14905 if test x"$ol_with_tcl_module" = "xstatic" ; then
14906 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
14908 MOD_TCL_LIB="-l${lib}"
14911 echo "$ac_t""no" 1>&6
14918 if test $have_tcl != yes ; then
14919 echo "configure: warning: could not find -ltcl" 1>&2
14920 if test $ol_enable_tcl = yes ; then
14921 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
14929 for ac_hdr in termcap.h ncurses.h
14931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14933 echo "configure:14934: checking for $ac_hdr" >&5
14934 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14935 echo $ac_n "(cached) $ac_c" 1>&6
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14943 { (eval echo configure:14944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14945 if test -z "$ac_err"; then
14947 eval "ac_cv_header_$ac_safe=yes"
14950 echo "configure: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14953 eval "ac_cv_header_$ac_safe=no"
14957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14958 echo "$ac_t""yes" 1>&6
14959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14960 cat >> confdefs.h <<EOF
14961 #define $ac_tr_hdr 1
14965 echo "$ac_t""no" 1>&6
14970 if test $ol_link_termcap = no ; then
14971 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14972 echo "configure:14973: checking for tputs in -ltermcap" >&5
14973 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14974 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14975 echo $ac_n "(cached) $ac_c" 1>&6
14977 ac_save_LIBS="$LIBS"
14978 LIBS="-ltermcap $LIBS"
14979 cat > conftest.$ac_ext <<EOF
14980 #line 14981 "configure"
14981 #include "confdefs.h"
14982 /* Override any gcc2 internal prototype to avoid an error. */
14983 /* We use char because int might match the return type of a gcc2
14984 builtin and then its argument prototype would still apply. */
14991 if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14993 eval "ac_cv_lib_$ac_lib_var=yes"
14995 echo "configure: failed program was:" >&5
14996 cat conftest.$ac_ext >&5
14998 eval "ac_cv_lib_$ac_lib_var=no"
15001 LIBS="$ac_save_LIBS"
15004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15005 echo "$ac_t""yes" 1>&6
15008 echo "$ac_t""no" 1>&6
15012 if test $have_termcap = yes ; then
15013 cat >> confdefs.h <<\EOF
15014 #define HAVE_TERMCAP 1
15017 ol_link_termcap=yes
15018 TERMCAP_LIBS=-ltermcap
15022 if test $ol_link_termcap = no ; then
15023 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
15024 echo "configure:15025: checking for initscr in -lncurses" >&5
15025 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
15026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15027 echo $ac_n "(cached) $ac_c" 1>&6
15029 ac_save_LIBS="$LIBS"
15030 LIBS="-lncurses $LIBS"
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 /* Override any gcc2 internal prototype to avoid an error. */
15035 /* We use char because int might match the return type of a gcc2
15036 builtin and then its argument prototype would still apply. */
15043 if { (eval echo configure:15044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15045 eval "ac_cv_lib_$ac_lib_var=yes"
15047 echo "configure: failed program was:" >&5
15048 cat conftest.$ac_ext >&5
15050 eval "ac_cv_lib_$ac_lib_var=no"
15053 LIBS="$ac_save_LIBS"
15056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15057 echo "$ac_t""yes" 1>&6
15060 echo "$ac_t""no" 1>&6
15064 if test $have_ncurses = yes ; then
15065 cat >> confdefs.h <<\EOF
15066 #define HAVE_NCURSES 1
15069 ol_link_termcap=yes
15070 TERMCAP_LIBS=-lncurses
15074 if test $ol_link_termcap = no ; then
15075 cat >> confdefs.h <<\EOF
15076 #define NO_TERMCAP 1
15084 if test $ol_with_cyrus_sasl != no ; then
15085 for ac_hdr in sasl.h
15087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15089 echo "configure:15090: checking for $ac_hdr" >&5
15090 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15091 echo $ac_n "(cached) $ac_c" 1>&6
15093 cat > conftest.$ac_ext <<EOF
15094 #line 15095 "configure"
15095 #include "confdefs.h"
15098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15099 { (eval echo configure:15100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15101 if test -z "$ac_err"; then
15103 eval "ac_cv_header_$ac_safe=yes"
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15109 eval "ac_cv_header_$ac_safe=no"
15113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15114 echo "$ac_t""yes" 1>&6
15115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15116 cat >> confdefs.h <<EOF
15117 #define $ac_tr_hdr 1
15121 echo "$ac_t""no" 1>&6
15126 if test $ac_cv_header_sasl_h = yes ; then
15127 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
15128 echo "configure:15129: checking for sasl_client_init in -lsasl" >&5
15129 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
15130 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15131 echo $ac_n "(cached) $ac_c" 1>&6
15133 ac_save_LIBS="$LIBS"
15134 LIBS="-lsasl $LIBS"
15135 cat > conftest.$ac_ext <<EOF
15136 #line 15137 "configure"
15137 #include "confdefs.h"
15138 /* Override any gcc2 internal prototype to avoid an error. */
15139 /* We use char because int might match the return type of a gcc2
15140 builtin and then its argument prototype would still apply. */
15141 char sasl_client_init();
15147 if { (eval echo configure:15148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15149 eval "ac_cv_lib_$ac_lib_var=yes"
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15154 eval "ac_cv_lib_$ac_lib_var=no"
15157 LIBS="$ac_save_LIBS"
15160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15161 echo "$ac_t""yes" 1>&6
15162 have_cyrus_sasl=yes
15164 echo "$ac_t""no" 1>&6
15169 if test $have_cyrus_sasl != no ; then
15171 cat >> confdefs.h <<\EOF
15172 #define HAVE_CYRUS_SASL 1
15179 if test $ol_link_sasl = no ; then
15180 if test $ol_with_cyrus_sasl != auto ; then
15181 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15183 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15184 echo "configure: warning: SASL authentication not supported!" 1>&2
15185 if test $ol_link_tls = no ; then
15186 echo "configure: warning: Strong authentication not supported!" 1>&2
15190 elif test $ol_enable_spasswd != no ; then
15191 ol_link_spasswd=yes
15195 echo "configure: warning: SASL authentication not supported!" 1>&2
15196 if test $ol_link_tls = no ; then
15197 echo "configure: warning: Strong authentication not supported!" 1>&2
15201 if test $cross_compiling != yes ; then
15203 if test -r /dev/urandom ; then
15204 dev="/dev/urandom";
15205 elif test -r /idev/urandom ; then
15206 dev="/idev/urandom";
15207 elif test -r /dev/srandom ; then
15208 dev="/dev/srandom";
15209 elif test -r /dev/random ; then
15211 elif test -r /idev/random ; then
15212 dev="/idev/random";
15215 if test $dev != no ; then
15216 cat >> confdefs.h <<EOF
15217 #define URANDOM_DEVICE "$dev"
15224 if test $ol_with_fetch != no ; then
15226 LIBS="-lfetch -lcom_err $LIBS"
15227 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15228 echo "configure:15229: checking fetch(3) library" >&5
15229 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15233 cat > conftest.$ac_ext <<EOF
15234 #line 15235 "configure"
15235 #include "confdefs.h"
15237 #include <sys/param.h>
15241 struct url *u = fetchParseURL("file:///");
15244 if { (eval echo configure:15245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15246 ol_cv_lib_fetch=yes
15248 echo "configure: failed program was:" >&5
15249 cat conftest.$ac_ext >&5
15256 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15258 if test $ol_cv_lib_fetch != no ; then
15259 ol_link_fetch="-lfetch -lcom_err"
15260 cat >> confdefs.h <<\EOF
15261 #define HAVE_FETCH 1
15267 if test $ol_cv_lib_fetch != no ; then
15268 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15269 ol_link_fetch=freebsd
15271 elif test $ol_with_fetch != auto ; then
15272 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15276 ol_link_readline=no
15277 if test $ol_with_readline != no ; then
15278 for ac_hdr in readline/readline.h readline/history.h
15280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15282 echo "configure:15283: checking for $ac_hdr" >&5
15283 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15284 echo $ac_n "(cached) $ac_c" 1>&6
15286 cat > conftest.$ac_ext <<EOF
15287 #line 15288 "configure"
15288 #include "confdefs.h"
15291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15292 { (eval echo configure:15293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15294 if test -z "$ac_err"; then
15296 eval "ac_cv_header_$ac_safe=yes"
15299 echo "configure: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15302 eval "ac_cv_header_$ac_safe=no"
15306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15307 echo "$ac_t""yes" 1>&6
15308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15309 cat >> confdefs.h <<EOF
15310 #define $ac_tr_hdr 1
15314 echo "$ac_t""no" 1>&6
15319 if test $ac_cv_header_readline_readline_h = yes ; then
15321 LIBS="$TERMCAP_LIBS $LIBS"
15322 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15323 echo "configure:15324: checking for readline in -lreadline" >&5
15324 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15326 echo $ac_n "(cached) $ac_c" 1>&6
15328 ac_save_LIBS="$LIBS"
15329 LIBS="-lreadline $LIBS"
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15333 /* Override any gcc2 internal prototype to avoid an error. */
15334 /* We use char because int might match the return type of a gcc2
15335 builtin and then its argument prototype would still apply. */
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15344 eval "ac_cv_lib_$ac_lib_var=yes"
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15349 eval "ac_cv_lib_$ac_lib_var=no"
15352 LIBS="$ac_save_LIBS"
15355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15356 echo "$ac_t""yes" 1>&6
15359 echo "$ac_t""no" 1>&6
15365 if test $have_readline = yes ; then
15366 ol_with_readline=found
15367 ol_link_readline=yes
15369 READLINE_LIBS="-lreadline"
15374 if test $ol_link_readline = yes ; then
15375 cat >> confdefs.h <<\EOF
15376 #define HAVE_READLINE 1
15382 if test $ol_enable_crypt != no ; then
15383 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15384 echo "configure:15385: checking for crypt" >&5
15385 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15386 echo $ac_n "(cached) $ac_c" 1>&6
15388 cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char crypt(); below. */
15393 #include <assert.h>
15394 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15402 /* The GNU C library defines this for functions which it implements
15403 to always fail with ENOSYS. Some functions are actually named
15404 something starting with __ and the normal name is an alias. */
15405 #if defined (__stub_crypt) || defined (__stub___crypt)
15413 if { (eval echo configure:15414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15415 eval "ac_cv_func_crypt=yes"
15417 echo "configure: failed program was:" >&5
15418 cat conftest.$ac_ext >&5
15420 eval "ac_cv_func_crypt=no"
15425 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15426 echo "$ac_t""yes" 1>&6
15429 echo "$ac_t""no" 1>&6
15431 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15432 echo "configure:15433: checking for crypt in -lcrypt" >&5
15433 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15434 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15435 echo $ac_n "(cached) $ac_c" 1>&6
15437 ac_save_LIBS="$LIBS"
15438 LIBS="-lcrypt $LIBS"
15439 cat > conftest.$ac_ext <<EOF
15440 #line 15441 "configure"
15441 #include "confdefs.h"
15442 /* Override any gcc2 internal prototype to avoid an error. */
15443 /* We use char because int might match the return type of a gcc2
15444 builtin and then its argument prototype would still apply. */
15451 if { (eval echo configure:15452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15453 eval "ac_cv_lib_$ac_lib_var=yes"
15455 echo "configure: failed program was:" >&5
15456 cat conftest.$ac_ext >&5
15458 eval "ac_cv_lib_$ac_lib_var=no"
15461 LIBS="$ac_save_LIBS"
15464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15465 echo "$ac_t""yes" 1>&6
15466 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15469 echo "$ac_t""no" 1>&6
15476 if test $have_crypt = yes ; then
15477 cat >> confdefs.h <<\EOF
15478 #define HAVE_CRYPT 1
15482 echo "configure: warning: could not find crypt" 1>&2
15483 if test $ol_enable_crypt = yes ; then
15484 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15487 echo "configure: warning: disabling crypt support" 1>&2
15492 if test $ol_enable_proctitle != no ; then
15493 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15494 echo "configure:15495: checking for setproctitle" >&5
15495 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15496 echo $ac_n "(cached) $ac_c" 1>&6
15498 cat > conftest.$ac_ext <<EOF
15499 #line 15500 "configure"
15500 #include "confdefs.h"
15501 /* System header to define __stub macros and hopefully few prototypes,
15502 which can conflict with char setproctitle(); below. */
15503 #include <assert.h>
15504 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507 char setproctitle();
15512 /* The GNU C library defines this for functions which it implements
15513 to always fail with ENOSYS. Some functions are actually named
15514 something starting with __ and the normal name is an alias. */
15515 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15523 if { (eval echo configure:15524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15525 eval "ac_cv_func_setproctitle=yes"
15527 echo "configure: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15530 eval "ac_cv_func_setproctitle=no"
15535 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15536 echo "$ac_t""yes" 1>&6
15537 have_setproctitle=yes
15539 echo "$ac_t""no" 1>&6
15541 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15542 echo "configure:15543: checking for setproctitle in -lutil" >&5
15543 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15544 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15545 echo $ac_n "(cached) $ac_c" 1>&6
15547 ac_save_LIBS="$LIBS"
15548 LIBS="-lutil $LIBS"
15549 cat > conftest.$ac_ext <<EOF
15550 #line 15551 "configure"
15551 #include "confdefs.h"
15552 /* Override any gcc2 internal prototype to avoid an error. */
15553 /* We use char because int might match the return type of a gcc2
15554 builtin and then its argument prototype would still apply. */
15555 char setproctitle();
15561 if { (eval echo configure:15562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15563 eval "ac_cv_lib_$ac_lib_var=yes"
15565 echo "configure: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15568 eval "ac_cv_lib_$ac_lib_var=no"
15571 LIBS="$ac_save_LIBS"
15574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15575 echo "$ac_t""yes" 1>&6
15576 have_setproctitle=yes
15577 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15579 echo "$ac_t""no" 1>&6
15580 have_setproctitle=no
15581 LIBOBJS="$LIBOBJS setproctitle.o"
15582 LIBSRCS="$LIBSRCS setproctitle.c"
15588 if test $have_setproctitle = yes ; then
15589 cat >> confdefs.h <<\EOF
15590 #define HAVE_SETPROCTITLE 1
15596 if test $ol_enable_slp != no ; then
15597 for ac_hdr in slp.h
15599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15601 echo "configure:15602: checking for $ac_hdr" >&5
15602 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15603 echo $ac_n "(cached) $ac_c" 1>&6
15605 cat > conftest.$ac_ext <<EOF
15606 #line 15607 "configure"
15607 #include "confdefs.h"
15610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15611 { (eval echo configure:15612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15613 if test -z "$ac_err"; then
15615 eval "ac_cv_header_$ac_safe=yes"
15618 echo "configure: failed program was:" >&5
15619 cat conftest.$ac_ext >&5
15621 eval "ac_cv_header_$ac_safe=no"
15625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15626 echo "$ac_t""yes" 1>&6
15627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15628 cat >> confdefs.h <<EOF
15629 #define $ac_tr_hdr 1
15633 echo "$ac_t""no" 1>&6
15638 if test $ac_cv_header_slp_h = yes ; then
15639 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15640 echo "configure:15641: checking for SLPOpen in -lslp" >&5
15641 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15642 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
15645 ac_save_LIBS="$LIBS"
15647 cat > conftest.$ac_ext <<EOF
15648 #line 15649 "configure"
15649 #include "confdefs.h"
15650 /* Override any gcc2 internal prototype to avoid an error. */
15651 /* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15659 if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15661 eval "ac_cv_lib_$ac_lib_var=yes"
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15666 eval "ac_cv_lib_$ac_lib_var=no"
15669 LIBS="$ac_save_LIBS"
15672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15676 echo "$ac_t""no" 1>&6
15680 if test $have_slp = yes ; then
15681 cat >> confdefs.h <<\EOF
15685 SLAPD_SLP_LIBS=-lslp
15688 elif test $ol_enable_slp = yes ; then
15689 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15693 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15694 echo "configure:15695: checking for ANSI C header files" >&5
15695 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15696 echo $ac_n "(cached) $ac_c" 1>&6
15698 cat > conftest.$ac_ext <<EOF
15699 #line 15700 "configure"
15700 #include "confdefs.h"
15701 #include <stdlib.h>
15702 #include <stdarg.h>
15703 #include <string.h>
15706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15707 { (eval echo configure:15708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15709 if test -z "$ac_err"; then
15711 ac_cv_header_stdc=yes
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15717 ac_cv_header_stdc=no
15721 if test $ac_cv_header_stdc = yes; then
15722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15723 cat > conftest.$ac_ext <<EOF
15724 #line 15725 "configure"
15725 #include "confdefs.h"
15726 #include <string.h>
15728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15729 egrep "memchr" >/dev/null 2>&1; then
15733 ac_cv_header_stdc=no
15739 if test $ac_cv_header_stdc = yes; then
15740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15741 cat > conftest.$ac_ext <<EOF
15742 #line 15743 "configure"
15743 #include "confdefs.h"
15744 #include <stdlib.h>
15746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15747 egrep "free" >/dev/null 2>&1; then
15751 ac_cv_header_stdc=no
15757 if test $ac_cv_header_stdc = yes; then
15758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15759 if test "$cross_compiling" = yes; then
15762 cat > conftest.$ac_ext <<EOF
15763 #line 15764 "configure"
15764 #include "confdefs.h"
15766 #if ((' ' & 0x0FF) == 0x020)
15767 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15768 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15770 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15771 || ('j' <= (c) && (c) <= 'r') \
15772 || ('s' <= (c) && (c) <= 'z'))
15773 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15776 int main () { int i; for (i = 0; i < 256; i++)
15777 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15781 if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15788 ac_cv_header_stdc=no
15796 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15797 if test $ac_cv_header_stdc = yes; then
15798 cat >> confdefs.h <<\EOF
15799 #define STDC_HEADERS 1
15804 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15805 echo "configure:15806: checking for mode_t" >&5
15806 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15807 echo $ac_n "(cached) $ac_c" 1>&6
15809 cat > conftest.$ac_ext <<EOF
15810 #line 15811 "configure"
15811 #include "confdefs.h"
15812 #include <sys/types.h>
15814 #include <stdlib.h>
15815 #include <stddef.h>
15819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15820 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15822 eval "ac_cv_type_mode_t=yes"
15825 eval "ac_cv_type_mode_t=no"
15830 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15831 echo "$ac_t""yes" 1>&6
15833 echo "$ac_t""no" 1>&6
15834 cat >> confdefs.h <<EOF
15840 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15841 echo "configure:15842: checking for off_t" >&5
15842 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15848 #include <sys/types.h>
15850 #include <stdlib.h>
15851 #include <stddef.h>
15855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15856 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15858 eval "ac_cv_type_off_t=yes"
15861 eval "ac_cv_type_off_t=no"
15866 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15869 echo "$ac_t""no" 1>&6
15870 cat >> confdefs.h <<EOF
15876 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15877 echo "configure:15878: checking for pid_t" >&5
15878 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15879 echo $ac_n "(cached) $ac_c" 1>&6
15881 cat > conftest.$ac_ext <<EOF
15882 #line 15883 "configure"
15883 #include "confdefs.h"
15884 #include <sys/types.h>
15886 #include <stdlib.h>
15887 #include <stddef.h>
15891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15892 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15894 eval "ac_cv_type_pid_t=yes"
15897 eval "ac_cv_type_pid_t=no"
15902 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15903 echo "$ac_t""yes" 1>&6
15905 echo "$ac_t""no" 1>&6
15906 cat >> confdefs.h <<EOF
15912 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15913 echo "configure:15914: checking for ptrdiff_t" >&5
15914 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15920 #include <stddef.h>
15925 if { (eval echo configure:15926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15927 am_cv_type_ptrdiff_t=yes
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15932 am_cv_type_ptrdiff_t=no
15937 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15938 if test $am_cv_type_ptrdiff_t = yes; then
15939 cat >> confdefs.h <<\EOF
15940 #define HAVE_PTRDIFF_T 1
15945 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15946 echo "configure:15947: checking return type of signal handlers" >&5
15947 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15948 echo $ac_n "(cached) $ac_c" 1>&6
15950 cat > conftest.$ac_ext <<EOF
15951 #line 15952 "configure"
15952 #include "confdefs.h"
15953 #include <sys/types.h>
15954 #include <signal.h>
15959 extern "C" void (*signal (int, void (*)(int)))(int);
15961 void (*signal ()) ();
15968 if { (eval echo configure:15969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15970 ac_cv_type_signal=void
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15975 ac_cv_type_signal=int
15980 echo "$ac_t""$ac_cv_type_signal" 1>&6
15981 cat >> confdefs.h <<EOF
15982 #define RETSIGTYPE $ac_cv_type_signal
15986 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15987 echo "configure:15988: checking for size_t" >&5
15988 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15989 echo $ac_n "(cached) $ac_c" 1>&6
15991 cat > conftest.$ac_ext <<EOF
15992 #line 15993 "configure"
15993 #include "confdefs.h"
15994 #include <sys/types.h>
15996 #include <stdlib.h>
15997 #include <stddef.h>
16001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16002 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16004 eval "ac_cv_type_size_t=yes"
16007 eval "ac_cv_type_size_t=no"
16012 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
16013 echo "$ac_t""yes" 1>&6
16015 echo "$ac_t""no" 1>&6
16016 cat >> confdefs.h <<EOF
16017 #define size_t unsigned
16023 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
16024 echo "configure:16025: checking for ssize_t" >&5
16025 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
16026 echo $ac_n "(cached) $ac_c" 1>&6
16028 cat > conftest.$ac_ext <<EOF
16029 #line 16030 "configure"
16030 #include "confdefs.h"
16031 #include <sys/types.h>
16033 #include <stdlib.h>
16034 #include <stddef.h>
16038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16039 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16041 eval "ac_cv_type_ssize_t=yes"
16044 eval "ac_cv_type_ssize_t=no"
16049 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
16050 echo "$ac_t""yes" 1>&6
16052 echo "$ac_t""no" 1>&6
16053 cat >> confdefs.h <<EOF
16054 #define ssize_t signed int
16059 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
16060 echo "configure:16061: checking for caddr_t" >&5
16061 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16064 cat > conftest.$ac_ext <<EOF
16065 #line 16066 "configure"
16066 #include "confdefs.h"
16067 #include <sys/types.h>
16069 #include <stdlib.h>
16070 #include <stddef.h>
16074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16075 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16077 eval "ac_cv_type_caddr_t=yes"
16080 eval "ac_cv_type_caddr_t=no"
16085 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
16086 echo "$ac_t""yes" 1>&6
16088 echo "$ac_t""no" 1>&6
16089 cat >> confdefs.h <<EOF
16090 #define caddr_t char *
16096 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
16097 echo "configure:16098: checking for socklen_t" >&5
16098 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
16099 echo $ac_n "(cached) $ac_c" 1>&6
16101 cat > conftest.$ac_ext <<EOF
16102 #line 16103 "configure"
16103 #include "confdefs.h"
16105 #ifdef HAVE_SYS_TYPES_H
16106 #include <sys/types.h>
16108 #ifdef HAVE_SYS_SOCKET_H
16109 #include <sys/socket.h>
16116 if { (eval echo configure:16117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16118 ol_cv_type_socklen_t=yes
16120 echo "configure: failed program was:" >&5
16121 cat conftest.$ac_ext >&5
16123 ol_cv_type_socklen_t=no
16128 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
16129 if test $ol_cv_type_socklen_t = no; then
16130 cat >> confdefs.h <<\EOF
16131 #define socklen_t int
16136 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
16137 echo "configure:16138: checking for member st_blksize in aggregate type struct stat" >&5
16138 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
16139 echo $ac_n "(cached) $ac_c" 1>&6
16141 cat > conftest.$ac_ext <<EOF
16142 #line 16143 "configure"
16143 #include "confdefs.h"
16144 #include <sys/types.h>
16145 #include <sys/stat.h>
16147 struct stat foo; foo.st_blksize;
16150 if { (eval echo configure:16151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16152 ac_cv_c_struct_member_st_blksize=yes
16154 echo "configure: failed program was:" >&5
16155 cat conftest.$ac_ext >&5
16157 ac_cv_c_struct_member_st_blksize=no
16162 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16163 st_blksize="$ac_cv_c_struct_member_st_blksize"
16164 if test $ac_cv_c_struct_member_st_blksize = yes; then
16165 cat >> confdefs.h <<\EOF
16166 #define HAVE_ST_BLKSIZE 1
16171 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16172 echo "configure:16173: checking whether time.h and sys/time.h may both be included" >&5
16173 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16176 cat > conftest.$ac_ext <<EOF
16177 #line 16178 "configure"
16178 #include "confdefs.h"
16179 #include <sys/types.h>
16180 #include <sys/time.h>
16186 if { (eval echo configure:16187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16188 ac_cv_header_time=yes
16190 echo "configure: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16193 ac_cv_header_time=no
16198 echo "$ac_t""$ac_cv_header_time" 1>&6
16199 if test $ac_cv_header_time = yes; then
16200 cat >> confdefs.h <<\EOF
16201 #define TIME_WITH_SYS_TIME 1
16206 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16207 echo "configure:16208: checking whether struct tm is in sys/time.h or time.h" >&5
16208 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16209 echo $ac_n "(cached) $ac_c" 1>&6
16211 cat > conftest.$ac_ext <<EOF
16212 #line 16213 "configure"
16213 #include "confdefs.h"
16214 #include <sys/types.h>
16217 struct tm *tp; tp->tm_sec;
16220 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16222 ac_cv_struct_tm=time.h
16224 echo "configure: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16227 ac_cv_struct_tm=sys/time.h
16232 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16233 if test $ac_cv_struct_tm = sys/time.h; then
16234 cat >> confdefs.h <<\EOF
16235 #define TM_IN_SYS_TIME 1
16240 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16241 echo "configure:16242: checking for uid_t in sys/types.h" >&5
16242 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16243 echo $ac_n "(cached) $ac_c" 1>&6
16245 cat > conftest.$ac_ext <<EOF
16246 #line 16247 "configure"
16247 #include "confdefs.h"
16248 #include <sys/types.h>
16250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16251 egrep "uid_t" >/dev/null 2>&1; then
16253 ac_cv_type_uid_t=yes
16256 ac_cv_type_uid_t=no
16262 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16263 if test $ac_cv_type_uid_t = no; then
16264 cat >> confdefs.h <<\EOF
16268 cat >> confdefs.h <<\EOF
16274 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16275 echo "configure:16276: checking for sig_atomic_t" >&5
16276 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16277 echo $ac_n "(cached) $ac_c" 1>&6
16279 cat > conftest.$ac_ext <<EOF
16280 #line 16281 "configure"
16281 #include "confdefs.h"
16282 #include <signal.h>
16284 sig_atomic_t atomic;
16287 if { (eval echo configure:16288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16289 ol_cv_type_sig_atomic_t=yes
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 ol_cv_type_sig_atomic_t=no
16299 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16300 if test $ol_cv_type_sig_atomic_t = no; then
16301 cat >> confdefs.h <<\EOF
16302 #define sig_atomic_t int
16309 # test for pw_gecos in struct passwd
16310 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16311 echo "configure:16312: checking struct passwd for pw_gecos" >&5
16312 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16313 echo $ac_n "(cached) $ac_c" 1>&6
16316 cat > conftest.$ac_ext <<EOF
16317 #line 16318 "configure"
16318 #include "confdefs.h"
16323 pwd.pw_gecos = pwd.pw_name;
16327 if { (eval echo configure:16328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16329 ol_cv_struct_passwd_pw_gecos=yes
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16334 ol_cv_struct_passwd_pw_gecos=no
16339 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16340 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16341 cat >> confdefs.h <<\EOF
16342 #define HAVE_PW_GECOS 1
16347 # test for pw_passwd in struct passwd
16348 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16349 echo "configure:16350: checking struct passwd for pw_passwd" >&5
16350 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16351 echo $ac_n "(cached) $ac_c" 1>&6
16354 cat > conftest.$ac_ext <<EOF
16355 #line 16356 "configure"
16356 #include "confdefs.h"
16361 pwd.pw_passwd = pwd.pw_name;
16365 if { (eval echo configure:16366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16367 ol_cv_struct_passwd_pw_passwd=yes
16369 echo "configure: failed program was:" >&5
16370 cat conftest.$ac_ext >&5
16372 ol_cv_struct_passwd_pw_passwd=no
16377 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16378 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16379 cat >> confdefs.h <<\EOF
16380 #define HAVE_PW_PASSWD 1
16386 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16387 echo "configure:16388: checking if toupper() requires islower()" >&5
16388 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16389 echo $ac_n "(cached) $ac_c" 1>&6
16392 if test "$cross_compiling" = yes; then
16393 ol_cv_c_upper_lower=safe
16395 cat > conftest.$ac_ext <<EOF
16396 #line 16397 "configure"
16397 #include "confdefs.h"
16402 if ('C' == toupper('C'))
16408 if { (eval echo configure:16409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16410 ol_cv_c_upper_lower=no
16412 echo "configure: failed program was:" >&5
16413 cat conftest.$ac_ext >&5
16415 ol_cv_c_upper_lower=yes
16422 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16423 if test $ol_cv_c_upper_lower != no ; then
16424 cat >> confdefs.h <<\EOF
16425 #define C_UPPER_LOWER 1
16430 echo $ac_n "checking for working const""... $ac_c" 1>&6
16431 echo "configure:16432: checking for working const" >&5
16432 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16433 echo $ac_n "(cached) $ac_c" 1>&6
16435 cat > conftest.$ac_ext <<EOF
16436 #line 16437 "configure"
16437 #include "confdefs.h"
16441 /* Ultrix mips cc rejects this. */
16442 typedef int charset[2]; const charset x;
16443 /* SunOS 4.1.1 cc rejects this. */
16444 char const *const *ccp;
16446 /* NEC SVR4.0.2 mips cc rejects this. */
16447 struct point {int x, y;};
16448 static struct point const zero = {0,0};
16449 /* AIX XL C 1.02.0.0 rejects this.
16450 It does not let you subtract one const X* pointer from another in an arm
16451 of an if-expression whose if-part is not a constant expression */
16452 const char *g = "string";
16453 ccp = &g + (g ? g-g : 0);
16454 /* HPUX 7.0 cc rejects these. */
16457 ccp = (char const *const *) p;
16458 { /* SCO 3.2v4 cc rejects this. */
16460 char const *s = 0 ? (char *) 0 : (char const *) 0;
16464 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16465 int x[] = {25, 17};
16466 const int *foo = &x[0];
16469 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16470 typedef const int *iptr;
16474 { /* AIX XL C 1.02.0.0 rejects this saying
16475 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16476 struct s { int j; const int *ap[3]; };
16477 struct s *b; b->j = 5;
16479 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16480 const int foo = 10;
16485 if { (eval echo configure:16486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16489 echo "configure: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16497 echo "$ac_t""$ac_cv_c_const" 1>&6
16498 if test $ac_cv_c_const = no; then
16499 cat >> confdefs.h <<\EOF
16505 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16506 echo "configure:16507: checking if compiler understands volatile" >&5
16507 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16508 echo $ac_n "(cached) $ac_c" 1>&6
16510 cat > conftest.$ac_ext <<EOF
16511 #line 16512 "configure"
16512 #include "confdefs.h"
16515 volatile int a; int * volatile b = x ? &y : &z;
16516 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16520 if { (eval echo configure:16521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16522 ol_cv_c_volatile=yes
16524 echo "configure: failed program was:" >&5
16525 cat conftest.$ac_ext >&5
16527 ol_cv_c_volatile=no
16532 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16533 if test $ol_cv_c_volatile = yes; then
16536 cat >> confdefs.h <<\EOF
16543 if test $cross_compiling = yes ; then
16544 cat >> confdefs.h <<\EOF
16545 #define CROSS_COMPILING 1
16549 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16550 echo "configure:16551: checking whether byte ordering is bigendian" >&5
16551 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16552 echo $ac_n "(cached) $ac_c" 1>&6
16554 ac_cv_c_bigendian=unknown
16555 # See if sys/param.h defines the BYTE_ORDER macro.
16556 cat > conftest.$ac_ext <<EOF
16557 #line 16558 "configure"
16558 #include "confdefs.h"
16559 #include <sys/types.h>
16560 #include <sys/param.h>
16563 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16564 bogus endian macros
16568 if { (eval echo configure:16569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16570 # It does; now see whether it defined to BIG_ENDIAN or not.
16571 cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 #include <sys/types.h>
16575 #include <sys/param.h>
16578 #if BYTE_ORDER != BIG_ENDIAN
16583 if { (eval echo configure:16584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16585 ac_cv_c_bigendian=yes
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16590 ac_cv_c_bigendian=no
16594 echo "configure: failed program was:" >&5
16595 cat conftest.$ac_ext >&5
16598 if test $ac_cv_c_bigendian = unknown; then
16599 if test "$cross_compiling" = yes; then
16600 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16606 /* Are we little or big endian? From Harbison&Steele. */
16610 char c[sizeof (long)];
16613 exit (u.c[sizeof (long) - 1] == 1);
16616 if { (eval echo configure:16617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16618 ac_cv_c_bigendian=no
16620 echo "configure: failed program was:" >&5
16621 cat conftest.$ac_ext >&5
16623 ac_cv_c_bigendian=yes
16631 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16632 if test $ac_cv_c_bigendian = yes; then
16633 cat >> confdefs.h <<\EOF
16634 #define WORDS_BIGENDIAN 1
16641 echo $ac_n "checking size of short""... $ac_c" 1>&6
16642 echo "configure:16643: checking size of short" >&5
16643 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16644 echo $ac_n "(cached) $ac_c" 1>&6
16646 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16647 cat > conftest.$ac_ext <<EOF
16648 #line 16649 "configure"
16649 #include "confdefs.h"
16650 #include "confdefs.h"
16651 #include <sys/types.h>
16655 switch (0) case 0: case (sizeof (short) == $ac_size):;
16658 if { (eval echo configure:16659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16660 ac_cv_sizeof_short=$ac_size
16662 echo "configure: failed program was:" >&5
16663 cat conftest.$ac_ext >&5
16666 if test x$ac_cv_sizeof_short != x ; then break; fi
16671 if test x$ac_cv_sizeof_short = x ; then
16672 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16674 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16675 cat >> confdefs.h <<EOF
16676 #define SIZEOF_SHORT $ac_cv_sizeof_short
16680 echo $ac_n "checking size of int""... $ac_c" 1>&6
16681 echo "configure:16682: checking size of int" >&5
16682 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16683 echo $ac_n "(cached) $ac_c" 1>&6
16685 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16686 cat > conftest.$ac_ext <<EOF
16687 #line 16688 "configure"
16688 #include "confdefs.h"
16689 #include "confdefs.h"
16690 #include <sys/types.h>
16694 switch (0) case 0: case (sizeof (int) == $ac_size):;
16697 if { (eval echo configure:16698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16699 ac_cv_sizeof_int=$ac_size
16701 echo "configure: failed program was:" >&5
16702 cat conftest.$ac_ext >&5
16705 if test x$ac_cv_sizeof_int != x ; then break; fi
16710 if test x$ac_cv_sizeof_int = x ; then
16711 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16713 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16714 cat >> confdefs.h <<EOF
16715 #define SIZEOF_INT $ac_cv_sizeof_int
16719 echo $ac_n "checking size of long""... $ac_c" 1>&6
16720 echo "configure:16721: checking size of long" >&5
16721 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16722 echo $ac_n "(cached) $ac_c" 1>&6
16724 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16725 cat > conftest.$ac_ext <<EOF
16726 #line 16727 "configure"
16727 #include "confdefs.h"
16728 #include "confdefs.h"
16729 #include <sys/types.h>
16733 switch (0) case 0: case (sizeof (long) == $ac_size):;
16736 if { (eval echo configure:16737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16738 ac_cv_sizeof_long=$ac_size
16740 echo "configure: failed program was:" >&5
16741 cat conftest.$ac_ext >&5
16744 if test x$ac_cv_sizeof_long != x ; then break; fi
16749 if test x$ac_cv_sizeof_long = x ; then
16750 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16752 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16753 cat >> confdefs.h <<EOF
16754 #define SIZEOF_LONG $ac_cv_sizeof_long
16759 if test "$ac_cv_sizeof_int" -lt 4 ; then
16760 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16762 cat >> confdefs.h <<\EOF
16763 #define LBER_INT_T long
16767 cat >> confdefs.h <<\EOF
16768 #define LBER_INT_T int
16773 cat >> confdefs.h <<\EOF
16774 #define LBER_LEN_T long
16777 cat >> confdefs.h <<\EOF
16778 #define LBER_SOCKET_T int
16781 cat >> confdefs.h <<\EOF
16782 #define LBER_TAG_T long
16786 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16787 echo "configure:16788: checking for 8-bit clean memcmp" >&5
16788 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16789 echo $ac_n "(cached) $ac_c" 1>&6
16791 if test "$cross_compiling" = yes; then
16792 ac_cv_func_memcmp_clean=no
16794 cat > conftest.$ac_ext <<EOF
16795 #line 16796 "configure"
16796 #include "confdefs.h"
16800 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16801 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16805 if { (eval echo configure:16806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16807 ac_cv_func_memcmp_clean=yes
16809 echo "configure: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16812 ac_cv_func_memcmp_clean=no
16819 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16820 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16822 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16823 echo "configure:16824: checking for strftime" >&5
16824 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16825 echo $ac_n "(cached) $ac_c" 1>&6
16827 cat > conftest.$ac_ext <<EOF
16828 #line 16829 "configure"
16829 #include "confdefs.h"
16830 /* System header to define __stub macros and hopefully few prototypes,
16831 which can conflict with char strftime(); below. */
16832 #include <assert.h>
16833 /* Override any gcc2 internal prototype to avoid an error. */
16834 /* We use char because int might match the return type of a gcc2
16835 builtin and then its argument prototype would still apply. */
16841 /* The GNU C library defines this for functions which it implements
16842 to always fail with ENOSYS. Some functions are actually named
16843 something starting with __ and the normal name is an alias. */
16844 #if defined (__stub_strftime) || defined (__stub___strftime)
16852 if { (eval echo configure:16853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16854 eval "ac_cv_func_strftime=yes"
16856 echo "configure: failed program was:" >&5
16857 cat conftest.$ac_ext >&5
16859 eval "ac_cv_func_strftime=no"
16864 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16865 echo "$ac_t""yes" 1>&6
16866 cat >> confdefs.h <<\EOF
16867 #define HAVE_STRFTIME 1
16871 echo "$ac_t""no" 1>&6
16872 # strftime is in -lintl on SCO UNIX.
16873 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16874 echo "configure:16875: checking for strftime in -lintl" >&5
16875 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16876 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16877 echo $ac_n "(cached) $ac_c" 1>&6
16879 ac_save_LIBS="$LIBS"
16880 LIBS="-lintl $LIBS"
16881 cat > conftest.$ac_ext <<EOF
16882 #line 16883 "configure"
16883 #include "confdefs.h"
16884 /* Override any gcc2 internal prototype to avoid an error. */
16885 /* We use char because int might match the return type of a gcc2
16886 builtin and then its argument prototype would still apply. */
16893 if { (eval echo configure:16894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16895 eval "ac_cv_lib_$ac_lib_var=yes"
16897 echo "configure: failed program was:" >&5
16898 cat conftest.$ac_ext >&5
16900 eval "ac_cv_lib_$ac_lib_var=no"
16903 LIBS="$ac_save_LIBS"
16906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16907 echo "$ac_t""yes" 1>&6
16908 cat >> confdefs.h <<\EOF
16909 #define HAVE_STRFTIME 1
16912 LIBS="-lintl $LIBS"
16914 echo "$ac_t""no" 1>&6
16920 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16921 echo "configure:16922: checking for inet_aton()" >&5
16922 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16923 echo $ac_n "(cached) $ac_c" 1>&6
16925 cat > conftest.$ac_ext <<EOF
16926 #line 16927 "configure"
16927 #include "confdefs.h"
16929 #ifdef HAVE_SYS_TYPES_H
16930 # include <sys/types.h>
16932 #ifdef HAVE_SYS_SOCKET_H
16933 # include <sys/socket.h>
16934 # ifdef HAVE_SYS_SELECT_H
16935 # include <sys/select.h>
16937 # include <netinet/in.h>
16938 # ifdef HAVE_ARPA_INET_H
16939 # include <arpa/inet.h>
16945 int rc = inet_aton( "255.255.255.255", &in );
16948 if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16950 ol_cv_func_inet_aton=yes
16952 echo "configure: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16955 ol_cv_func_inet_aton=no
16960 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16961 if test $ol_cv_func_inet_aton != no; then
16962 cat >> confdefs.h <<\EOF
16963 #define HAVE_INET_ATON 1
16969 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16970 echo "configure:16971: checking for _spawnlp" >&5
16971 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
16974 cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16977 /* System header to define __stub macros and hopefully few prototypes,
16978 which can conflict with char _spawnlp(); below. */
16979 #include <assert.h>
16980 /* Override any gcc2 internal prototype to avoid an error. */
16981 /* We use char because int might match the return type of a gcc2
16982 builtin and then its argument prototype would still apply. */
16988 /* The GNU C library defines this for functions which it implements
16989 to always fail with ENOSYS. Some functions are actually named
16990 something starting with __ and the normal name is an alias. */
16991 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16999 if { (eval echo configure:17000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17001 eval "ac_cv_func__spawnlp=yes"
17003 echo "configure: failed program was:" >&5
17004 cat conftest.$ac_ext >&5
17006 eval "ac_cv_func__spawnlp=no"
17011 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
17012 echo "$ac_t""yes" 1>&6
17013 cat >> confdefs.h <<\EOF
17014 #define HAVE_SPAWNLP 1
17018 echo "$ac_t""no" 1>&6
17022 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
17023 echo "configure:17024: checking for _snprintf" >&5
17024 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
17025 echo $ac_n "(cached) $ac_c" 1>&6
17027 cat > conftest.$ac_ext <<EOF
17028 #line 17029 "configure"
17029 #include "confdefs.h"
17030 /* System header to define __stub macros and hopefully few prototypes,
17031 which can conflict with char _snprintf(); below. */
17032 #include <assert.h>
17033 /* Override any gcc2 internal prototype to avoid an error. */
17034 /* We use char because int might match the return type of a gcc2
17035 builtin and then its argument prototype would still apply. */
17041 /* The GNU C library defines this for functions which it implements
17042 to always fail with ENOSYS. Some functions are actually named
17043 something starting with __ and the normal name is an alias. */
17044 #if defined (__stub__snprintf) || defined (__stub____snprintf)
17052 if { (eval echo configure:17053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17054 eval "ac_cv_func__snprintf=yes"
17056 echo "configure: failed program was:" >&5
17057 cat conftest.$ac_ext >&5
17059 eval "ac_cv_func__snprintf=no"
17064 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
17065 echo "$ac_t""yes" 1>&6
17066 ac_cv_func_snprintf=yes
17067 cat >> confdefs.h <<\EOF
17068 #define snprintf _snprintf
17073 echo "$ac_t""no" 1>&6
17077 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
17078 echo "configure:17079: checking for _vsnprintf" >&5
17079 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
17080 echo $ac_n "(cached) $ac_c" 1>&6
17082 cat > conftest.$ac_ext <<EOF
17083 #line 17084 "configure"
17084 #include "confdefs.h"
17085 /* System header to define __stub macros and hopefully few prototypes,
17086 which can conflict with char _vsnprintf(); below. */
17087 #include <assert.h>
17088 /* Override any gcc2 internal prototype to avoid an error. */
17089 /* We use char because int might match the return type of a gcc2
17090 builtin and then its argument prototype would still apply. */
17096 /* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
17107 if { (eval echo configure:17108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17109 eval "ac_cv_func__vsnprintf=yes"
17111 echo "configure: failed program was:" >&5
17112 cat conftest.$ac_ext >&5
17114 eval "ac_cv_func__vsnprintf=no"
17119 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
17120 echo "$ac_t""yes" 1>&6
17121 ac_cv_func_vsnprintf=yes
17122 cat >> confdefs.h <<\EOF
17123 #define vsnprintf _vsnprintf
17128 echo "$ac_t""no" 1>&6
17132 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
17133 echo "configure:17134: checking for vprintf" >&5
17134 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
17135 echo $ac_n "(cached) $ac_c" 1>&6
17137 cat > conftest.$ac_ext <<EOF
17138 #line 17139 "configure"
17139 #include "confdefs.h"
17140 /* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char vprintf(); below. */
17142 #include <assert.h>
17143 /* Override any gcc2 internal prototype to avoid an error. */
17144 /* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17151 /* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
17154 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17162 if { (eval echo configure:17163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17164 eval "ac_cv_func_vprintf=yes"
17166 echo "configure: failed program was:" >&5
17167 cat conftest.$ac_ext >&5
17169 eval "ac_cv_func_vprintf=no"
17174 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17175 echo "$ac_t""yes" 1>&6
17176 cat >> confdefs.h <<\EOF
17177 #define HAVE_VPRINTF 1
17181 echo "$ac_t""no" 1>&6
17184 if test "$ac_cv_func_vprintf" != yes; then
17185 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17186 echo "configure:17187: checking for _doprnt" >&5
17187 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17188 echo $ac_n "(cached) $ac_c" 1>&6
17190 cat > conftest.$ac_ext <<EOF
17191 #line 17192 "configure"
17192 #include "confdefs.h"
17193 /* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char _doprnt(); below. */
17195 #include <assert.h>
17196 /* Override any gcc2 internal prototype to avoid an error. */
17197 /* We use char because int might match the return type of a gcc2
17198 builtin and then its argument prototype would still apply. */
17204 /* The GNU C library defines this for functions which it implements
17205 to always fail with ENOSYS. Some functions are actually named
17206 something starting with __ and the normal name is an alias. */
17207 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17215 if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17217 eval "ac_cv_func__doprnt=yes"
17219 echo "configure: failed program was:" >&5
17220 cat conftest.$ac_ext >&5
17222 eval "ac_cv_func__doprnt=no"
17227 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17228 echo "$ac_t""yes" 1>&6
17229 cat >> confdefs.h <<\EOF
17230 #define HAVE_DOPRNT 1
17234 echo "$ac_t""no" 1>&6
17240 if test $ac_cv_func_vprintf = yes ; then
17241 for ac_func in vsnprintf vsprintf
17243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17244 echo "configure:17245: checking for $ac_func" >&5
17245 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17246 echo $ac_n "(cached) $ac_c" 1>&6
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17251 /* System header to define __stub macros and hopefully few prototypes,
17252 which can conflict with char $ac_func(); below. */
17253 #include <assert.h>
17254 /* Override any gcc2 internal prototype to avoid an error. */
17255 /* We use char because int might match the return type of a gcc2
17256 builtin and then its argument prototype would still apply. */
17262 /* The GNU C library defines this for functions which it implements
17263 to always fail with ENOSYS. Some functions are actually named
17264 something starting with __ and the normal name is an alias. */
17265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17273 if { (eval echo configure:17274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17275 eval "ac_cv_func_$ac_func=yes"
17277 echo "configure: failed program was:" >&5
17278 cat conftest.$ac_ext >&5
17280 eval "ac_cv_func_$ac_func=no"
17285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17286 echo "$ac_t""yes" 1>&6
17287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17288 cat >> confdefs.h <<EOF
17289 #define $ac_tr_func 1
17293 echo "$ac_t""no" 1>&6
17351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17352 echo "configure:17353: checking for $ac_func" >&5
17353 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17354 echo $ac_n "(cached) $ac_c" 1>&6
17356 cat > conftest.$ac_ext <<EOF
17357 #line 17358 "configure"
17358 #include "confdefs.h"
17359 /* System header to define __stub macros and hopefully few prototypes,
17360 which can conflict with char $ac_func(); below. */
17361 #include <assert.h>
17362 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17370 /* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17381 if { (eval echo configure:17382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383 eval "ac_cv_func_$ac_func=yes"
17385 echo "configure: failed program was:" >&5
17386 cat conftest.$ac_ext >&5
17388 eval "ac_cv_func_$ac_func=no"
17393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17394 echo "$ac_t""yes" 1>&6
17395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17396 cat >> confdefs.h <<EOF
17397 #define $ac_tr_func 1
17401 echo "$ac_t""no" 1>&6
17406 for ac_func in getopt
17408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17409 echo "configure:17410: checking for $ac_func" >&5
17410 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17411 echo $ac_n "(cached) $ac_c" 1>&6
17413 cat > conftest.$ac_ext <<EOF
17414 #line 17415 "configure"
17415 #include "confdefs.h"
17416 /* System header to define __stub macros and hopefully few prototypes,
17417 which can conflict with char $ac_func(); below. */
17418 #include <assert.h>
17419 /* Override any gcc2 internal prototype to avoid an error. */
17420 /* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
17427 /* The GNU C library defines this for functions which it implements
17428 to always fail with ENOSYS. Some functions are actually named
17429 something starting with __ and the normal name is an alias. */
17430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17438 if { (eval echo configure:17439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17440 eval "ac_cv_func_$ac_func=yes"
17442 echo "configure: failed program was:" >&5
17443 cat conftest.$ac_ext >&5
17445 eval "ac_cv_func_$ac_func=no"
17450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17451 echo "$ac_t""yes" 1>&6
17452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17453 cat >> confdefs.h <<EOF
17454 #define $ac_tr_func 1
17458 echo "$ac_t""no" 1>&6
17459 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17465 if test "$ac_cv_func_getopt" != yes; then
17466 LIBSRCS="$LIBSRCS getopt.c"
17469 # Check Configuration
17470 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17471 echo "configure:17472: checking declaration of sys_errlist" >&5
17472 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17473 echo $ac_n "(cached) $ac_c" 1>&6
17476 cat > conftest.$ac_ext <<EOF
17477 #line 17478 "configure"
17478 #include "confdefs.h"
17481 #include <sys/types.h>
17484 #include <stdlib.h>
17487 char *c = (char *) *sys_errlist
17490 if { (eval echo configure:17491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17492 ol_cv_dcl_sys_errlist=yes
17493 ol_cv_have_sys_errlist=yes
17495 echo "configure: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17498 ol_cv_dcl_sys_errlist=no
17503 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17505 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17506 if test $ol_cv_dcl_sys_errlist = no ; then
17507 cat >> confdefs.h <<\EOF
17508 #define DECL_SYS_ERRLIST 1
17512 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17513 echo "configure:17514: checking existence of sys_errlist" >&5
17514 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17515 echo $ac_n "(cached) $ac_c" 1>&6
17518 cat > conftest.$ac_ext <<EOF
17519 #line 17520 "configure"
17520 #include "confdefs.h"
17523 char *c = (char *) *sys_errlist
17526 if { (eval echo configure:17527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17528 ol_cv_have_sys_errlist=yes
17530 echo "configure: failed program was:" >&5
17531 cat conftest.$ac_ext >&5
17533 ol_cv_have_sys_errlist=no
17538 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17540 if test $ol_cv_have_sys_errlist = yes ; then
17541 cat >> confdefs.h <<\EOF
17542 #define HAVE_SYS_ERRLIST 1
17549 if test "$ol_enable_debug" != no ; then
17550 cat >> confdefs.h <<\EOF
17551 #define LDAP_DEBUG 1
17555 if test "$ol_enable_syslog" = yes ; then
17556 cat >> confdefs.h <<\EOF
17557 #define LDAP_SYSLOG 1
17561 if test "$ol_enable_cache" = no ; then
17562 cat >> confdefs.h <<\EOF
17563 #define LDAP_NOCACHE 1
17567 if test "$ol_link_kbind" != no ; then
17568 cat >> confdefs.h <<\EOF
17569 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17573 if test "$ol_enable_proctitle" != no ; then
17574 cat >> confdefs.h <<\EOF
17575 #define LDAP_PROCTITLE 1
17579 if test "$ol_enable_referrals" != no ; then
17580 cat >> confdefs.h <<\EOF
17581 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17585 if test "$ol_enable_local" != no; then
17586 cat >> confdefs.h <<\EOF
17587 #define LDAP_PF_LOCAL 1
17591 if test "$ol_link_ipv6" != no; then
17592 cat >> confdefs.h <<\EOF
17593 #define LDAP_PF_INET6 1
17597 if test "$ol_enable_cleartext" != no ; then
17598 cat >> confdefs.h <<\EOF
17599 #define SLAPD_CLEARTEXT 1
17603 if test "$ol_enable_crypt" != no ; then
17604 cat >> confdefs.h <<\EOF
17605 #define SLAPD_CRYPT 1
17609 if test "$ol_link_kpasswd" != no ; then
17610 cat >> confdefs.h <<\EOF
17611 #define SLAPD_KPASSWD 1
17615 if test "$ol_link_spasswd" != no ; then
17616 cat >> confdefs.h <<\EOF
17617 #define SLAPD_SPASSWD 1
17621 if test "$ol_enable_phonetic" != no ; then
17622 cat >> confdefs.h <<\EOF
17623 #define SLAPD_PHONETIC 1
17627 if test "$ol_enable_rlookups" != no ; then
17628 cat >> confdefs.h <<\EOF
17629 #define SLAPD_RLOOKUPS 1
17633 if test "$ol_enable_aci" != no ; then
17634 cat >> confdefs.h <<\EOF
17635 #define SLAPD_ACI_ENABLED 1
17640 if test "$ol_link_modules" != no ; then
17641 cat >> confdefs.h <<\EOF
17642 #define SLAPD_MODULES 1
17646 SLAPD_MODULES_LDFLAGS="-dlopen self"
17649 if test "$ol_enable_bdb" != no ; then
17650 cat >> confdefs.h <<\EOF
17651 #define SLAPD_BDB 1
17656 if test "$ol_with_bdb_module" != static ; then
17657 cat >> confdefs.h <<\EOF
17658 #define SLAPD_BDB_DYNAMIC 1
17662 BUILD_BDB_DYNAMIC=shared
17663 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17667 if test "$ol_link_dnssrv" != no ; then
17668 cat >> confdefs.h <<\EOF
17669 #define SLAPD_DNSSRV 1
17674 if test "$ol_with_dnssrv_module" != static ; then
17675 cat >> confdefs.h <<\EOF
17676 #define SLAPD_DNSSRV_DYNAMIC 1
17680 BUILD_DNSSRV_DYNAMIC=shared
17681 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17685 if test "$ol_enable_ldap" != no ; then
17686 cat >> confdefs.h <<\EOF
17687 #define SLAPD_LDAP 1
17692 if test "$ol_with_ldap_module" != static ; then
17693 cat >> confdefs.h <<\EOF
17694 #define SLAPD_LDAP_DYNAMIC 1
17698 BUILD_LDAP_DYNAMIC=shared
17699 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17703 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17704 cat >> confdefs.h <<\EOF
17705 #define SLAPD_LDBM 1
17711 if test "$ol_with_ldbm_module" != static ; then
17712 cat >> confdefs.h <<\EOF
17713 #define SLAPD_LDBM_DYNAMIC 1
17717 BUILD_LDBM_DYNAMIC=shared
17718 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17722 if test "$ol_enable_meta" != no ; then
17723 if test "$ol_enable_ldap" = no ; then
17724 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
17726 if test "$ol_enable_rewrite" = no ; then
17727 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
17729 cat >> confdefs.h <<\EOF
17730 #define SLAPD_META 1
17735 if test "$ol_with_meta_module" != static ; then
17736 cat >> confdefs.h <<\EOF
17737 #define SLAPD_META_DYNAMIC 1
17741 BUILD_META_DYNAMIC=shared
17742 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
17746 if test "$ol_enable_monitor" != no ; then
17747 cat >> confdefs.h <<\EOF
17748 #define SLAPD_MONITOR 1
17753 if test "$ol_with_monitor_module" != static ; then
17754 cat >> confdefs.h <<\EOF
17755 #define SLAPD_MONITOR_DYNAMIC 1
17759 BUILD_MONITOR_DYNAMIC=shared
17760 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
17764 if test "$ol_enable_passwd" != no ; then
17765 cat >> confdefs.h <<\EOF
17766 #define SLAPD_PASSWD 1
17771 if test "$ol_with_passwd_module" != static ; then
17772 cat >> confdefs.h <<\EOF
17773 #define SLAPD_PASSWD_DYNAMIC 1
17777 BUILD_PASSWD_DYNAMIC=shared
17778 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17782 if test "$ol_link_perl" != no ; then
17783 cat >> confdefs.h <<\EOF
17784 #define SLAPD_PERL 1
17789 if test "$ol_with_perl_module" != static ; then
17790 cat >> confdefs.h <<\EOF
17791 #define SLAPD_PERL_DYNAMIC 1
17795 BUILD_PERL_DYNAMIC=shared
17796 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
17800 if test "$ol_enable_shell" != no ; then
17801 cat >> confdefs.h <<\EOF
17802 #define SLAPD_SHELL 1
17807 if test "$ol_with_shell_module" != static ; then
17808 cat >> confdefs.h <<\EOF
17809 #define SLAPD_SHELL_DYNAMIC 1
17813 BUILD_SHELL_DYNAMIC=shared
17814 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17818 if test "$ol_enable_tcl" != no ; then
17819 cat >> confdefs.h <<\EOF
17820 #define SLAPD_TCL 1
17825 if test "$ol_with_tcl_module" != static; then
17826 cat >> confdefs.h <<\EOF
17827 #define SLAPD_TCL_DYNAMIC 1
17831 BUILD_TCL_DYNAMIC=shared
17832 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
17836 if test "$ol_link_sql" != no ; then
17837 cat >> confdefs.h <<\EOF
17838 #define SLAPD_SQL 1
17843 if test "$ol_with_sql_module" != static; then
17844 cat >> confdefs.h <<\EOF
17845 #define SLAPD_SQL_DYNAMIC 1
17849 BUILD_SQL_DYNAMIC=shared
17850 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17854 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17855 $BUILD_SLAPD = yes ; then
17859 if test "$ol_enable_rewrite" != no ; then
17860 cat >> confdefs.h <<\EOF
17861 #define ENABLE_REWRITE 1
17865 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
17869 if test "$LINK_BINS_DYNAMIC" = yes; then
17871 LT_LIB_LINKAGE=shared
17874 LT_LIB_LINKAGE=static
17877 if test "$ac_cv_mingw32" = yes ; then
17956 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17959 # Let make expand exec_prefix.
17960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17962 # Any assignment to VPATH causes Sun make to only execute
17963 # the first set of double-colon rules, so remove it if not needed.
17964 # If there is a colon in the path, we need to keep it.
17965 if test "x$srcdir" = x.; then
17966 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17969 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17971 DEFS=-DHAVE_CONFIG_H
17973 # Without the "./", some shells look in PATH for config.status.
17974 : ${CONFIG_STATUS=./config.status}
17976 echo creating $CONFIG_STATUS
17977 rm -f $CONFIG_STATUS
17978 cat > $CONFIG_STATUS <<EOF
17980 # Generated automatically by configure.
17981 # Run this file to recreate the current configuration.
17982 # This directory was configured as follows,
17983 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17985 # $0 $ac_configure_args
17987 # Compiler output produced by configure, useful for debugging
17988 # configure, is in ./config.log if it exists.
17990 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17993 case "\$ac_option" in
17994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17995 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17996 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17997 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17998 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
18000 -help | --help | --hel | --he | --h)
18001 echo "\$ac_cs_usage"; exit 0 ;;
18002 *) echo "\$ac_cs_usage"; exit 1 ;;
18006 ac_given_srcdir=$srcdir
18007 ac_given_INSTALL="$INSTALL"
18009 trap 'rm -fr `echo "\
18010 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18011 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18012 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18013 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18014 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18015 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18016 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18017 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18018 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18019 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18020 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18021 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18022 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18023 include/Makefile:build/top.mk:include/Makefile.in \
18024 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18025 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18026 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18027 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18028 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18029 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18030 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18031 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18032 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18033 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18034 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18035 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18036 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18037 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18038 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18039 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18040 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18041 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18042 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18043 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18044 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18045 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18046 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18047 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18048 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18049 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18050 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18051 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18052 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18054 cat >> $CONFIG_STATUS <<EOF
18056 # Protect against being on the right side of a sed subst in config.status.
18057 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18058 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18062 s%@CFLAGS@%$CFLAGS%g
18063 s%@CPPFLAGS@%$CPPFLAGS%g
18064 s%@CXXFLAGS@%$CXXFLAGS%g
18065 s%@FFLAGS@%$FFLAGS%g
18067 s%@LDFLAGS@%$LDFLAGS%g
18069 s%@exec_prefix@%$exec_prefix%g
18070 s%@prefix@%$prefix%g
18071 s%@program_transform_name@%$program_transform_name%g
18072 s%@bindir@%$bindir%g
18073 s%@sbindir@%$sbindir%g
18074 s%@libexecdir@%$libexecdir%g
18075 s%@datadir@%$datadir%g
18076 s%@sysconfdir@%$sysconfdir%g
18077 s%@sharedstatedir@%$sharedstatedir%g
18078 s%@localstatedir@%$localstatedir%g
18079 s%@libdir@%$libdir%g
18080 s%@includedir@%$includedir%g
18081 s%@oldincludedir@%$oldincludedir%g
18082 s%@infodir@%$infodir%g
18083 s%@mandir@%$mandir%g
18085 s%@host_alias@%$host_alias%g
18086 s%@host_cpu@%$host_cpu%g
18087 s%@host_vendor@%$host_vendor%g
18088 s%@host_os@%$host_os%g
18089 s%@target@%$target%g
18090 s%@target_alias@%$target_alias%g
18091 s%@target_cpu@%$target_cpu%g
18092 s%@target_vendor@%$target_vendor%g
18093 s%@target_os@%$target_os%g
18095 s%@build_alias@%$build_alias%g
18096 s%@build_cpu@%$build_cpu%g
18097 s%@build_vendor@%$build_vendor%g
18098 s%@build_os@%$build_os%g
18099 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18100 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18101 s%@INSTALL_DATA@%$INSTALL_DATA%g
18102 s%@PACKAGE@%$PACKAGE%g
18103 s%@VERSION@%$VERSION%g
18104 s%@ACLOCAL@%$ACLOCAL%g
18105 s%@AUTOCONF@%$AUTOCONF%g
18106 s%@AUTOMAKE@%$AUTOMAKE%g
18107 s%@AUTOHEADER@%$AUTOHEADER%g
18108 s%@MAKEINFO@%$MAKEINFO%g
18109 s%@install_sh@%$install_sh%g
18112 s%@AMTARFLAGS@%$AMTARFLAGS%g
18113 s%@SET_MAKE@%$SET_MAKE%g
18114 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
18115 s%@top_builddir@%$top_builddir%g
18116 s%@ldap_subdir@%$ldap_subdir%g
18118 s%@RANLIB@%$RANLIB%g
18120 s%@DLLTOOL@%$DLLTOOL%g
18122 s%@OBJDUMP@%$OBJDUMP%g
18123 s%@LIBTOOL@%$LIBTOOL%g
18125 s%@SENDMAIL@%$SENDMAIL%g
18126 s%@EDITOR@%$EDITOR%g
18127 s%@FINGER@%$FINGER%g
18128 s%@PERLBIN@%$PERLBIN%g
18130 s%@EXEEXT@%$EXEEXT%g
18131 s%@OBJEXT@%$OBJEXT%g
18132 s%@OL_MKDEP@%$OL_MKDEP%g
18133 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
18134 s%@LIBOBJS@%$LIBOBJS%g
18135 s%@LIBSRCS@%$LIBSRCS%g
18137 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
18138 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
18139 s%@DYN_EXT@%$DYN_EXT%g
18140 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
18141 s%@BUILD_BDB@%$BUILD_BDB%g
18142 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
18143 s%@BUILD_LDAP@%$BUILD_LDAP%g
18144 s%@BUILD_LDBM@%$BUILD_LDBM%g
18145 s%@BUILD_META@%$BUILD_META%g
18146 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
18147 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
18148 s%@BUILD_PERL@%$BUILD_PERL%g
18149 s%@BUILD_SHELL@%$BUILD_SHELL%g
18150 s%@BUILD_SQL@%$BUILD_SQL%g
18151 s%@BUILD_TCL@%$BUILD_TCL%g
18152 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18153 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18154 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18155 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18156 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18157 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18158 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18159 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18160 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18161 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18162 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18163 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18164 s%@LDBM_LIB@%$LDBM_LIB%g
18165 s%@LDAP_LIBS@%$LDAP_LIBS%g
18166 s%@LDIF_LIBS@%$LDIF_LIBS%g
18167 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18168 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18169 s%@LDBM_LIBS@%$LDBM_LIBS%g
18170 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18171 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18172 s%@WRAP_LIBS@%$WRAP_LIBS%g
18173 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18174 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
18175 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18176 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18177 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18178 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18179 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18180 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18181 s%@KRB4_LIBS@%$KRB4_LIBS%g
18182 s%@KRB5_LIBS@%$KRB5_LIBS%g
18183 s%@READLINE_LIBS@%$READLINE_LIBS%g
18184 s%@SASL_LIBS@%$SASL_LIBS%g
18185 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18186 s%@TLS_LIBS@%$TLS_LIBS%g
18187 s%@MODULES_LIBS@%$MODULES_LIBS%g
18188 s%@AUTH_LIBS@%$AUTH_LIBS%g
18189 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18190 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18191 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18192 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18197 cat >> $CONFIG_STATUS <<\EOF
18199 # Split the substitutions into bite-sized pieces for seds with
18200 # small command number limits, like on Digital OSF/1 and HP-UX.
18201 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18202 ac_file=1 # Number of current file.
18203 ac_beg=1 # First line for current file.
18204 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18207 while $ac_more_lines; do
18208 if test $ac_beg -gt 1; then
18209 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18211 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18213 if test ! -s conftest.s$ac_file; then
18214 ac_more_lines=false
18215 rm -f conftest.s$ac_file
18217 if test -z "$ac_sed_cmds"; then
18218 ac_sed_cmds="sed -f conftest.s$ac_file"
18220 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18222 ac_file=`expr $ac_file + 1`
18224 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18227 if test -z "$ac_sed_cmds"; then
18232 cat >> $CONFIG_STATUS <<EOF
18234 CONFIG_FILES=\${CONFIG_FILES-"\
18235 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18236 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18237 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18238 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18239 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18240 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18241 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18242 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18243 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18244 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18245 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18246 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18247 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18248 include/Makefile:build/top.mk:include/Makefile.in \
18249 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18250 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18251 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18252 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18253 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18254 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18255 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18256 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18257 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18258 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18259 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18260 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18261 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18262 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18263 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18264 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18265 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18266 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18267 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18268 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18269 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18270 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18271 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18272 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18273 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18274 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18275 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18276 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18279 cat >> $CONFIG_STATUS <<\EOF
18280 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18281 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18283 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18284 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18285 *) ac_file_in="${ac_file}.in" ;;
18288 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18290 # Remove last slash and all that follows it. Not all systems have dirname.
18291 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18293 # The file is in a subdirectory.
18294 test ! -d "$ac_dir" && mkdir "$ac_dir"
18295 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18296 # A "../" for each directory in $ac_dir_suffix.
18297 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18299 ac_dir_suffix= ac_dots=
18302 case "$ac_given_srcdir" in
18304 if test -z "$ac_dots"; then top_srcdir=.
18305 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18306 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18307 *) # Relative path.
18308 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18309 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18312 case "$ac_given_INSTALL" in
18313 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18314 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18317 echo creating "$ac_file"
18319 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18321 *[Mm]akefile*) ac_comsub="1i\\
18322 # $configure_input" ;;
18326 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18328 s%@configure_input@%$configure_input%g
18329 s%@srcdir@%$srcdir%g
18330 s%@top_srcdir@%$top_srcdir%g
18331 s%@INSTALL@%$INSTALL%g
18332 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18336 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18337 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18339 # ac_d sets the value in "#define NAME VALUE" lines.
18340 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18341 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18344 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18345 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18346 ac_uB='\([ ]\)%\1#\2define\3'
18349 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18350 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18351 ac_eB='$%\1#\2define\3'
18355 if test "${CONFIG_HEADERS+set}" != set; then
18357 cat >> $CONFIG_STATUS <<EOF
18358 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18360 cat >> $CONFIG_STATUS <<\EOF
18362 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18363 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18365 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18366 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18367 *) ac_file_in="${ac_file}.in" ;;
18370 echo creating $ac_file
18372 rm -f conftest.frag conftest.in conftest.out
18373 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18374 cat $ac_file_inputs > conftest.in
18378 # Transform confdefs.h into a sed script conftest.vals that substitutes
18379 # the proper values into config.h.in to produce config.h. And first:
18380 # Protect against being on the right side of a sed subst in config.status.
18381 # Protect against being in an unquoted here document in config.status.
18382 rm -f conftest.vals
18383 cat > conftest.hdr <<\EOF
18386 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18390 sed -n -f conftest.hdr confdefs.h > conftest.vals
18393 # This sed command replaces #undef with comments. This is necessary, for
18394 # example, in the case of _POSIX_SOURCE, which is predefined and required
18395 # on some systems where configure will not decide to define it.
18396 cat >> conftest.vals <<\EOF
18397 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18400 # Break up conftest.vals because some shells have a limit on
18401 # the size of here documents, and old seds have small limits too.
18403 rm -f conftest.tail
18406 ac_lines=`grep -c . conftest.vals`
18407 # grep -c gives empty output for an empty file on some AIX systems.
18408 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18409 # Write a limited-size here document to conftest.frag.
18410 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18411 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18413 sed -f conftest.frag conftest.in > conftest.out
18415 mv conftest.out conftest.in
18416 ' >> $CONFIG_STATUS
18417 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18418 rm -f conftest.vals
18419 mv conftest.tail conftest.vals
18421 rm -f conftest.vals
18423 cat >> $CONFIG_STATUS <<\EOF
18424 rm -f conftest.frag conftest.h
18425 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18426 cat conftest.in >> conftest.h
18428 if cmp -s $ac_file conftest.h 2>/dev/null; then
18429 echo "$ac_file is unchanged"
18432 # Remove last slash and all that follows it. Not all systems have dirname.
18433 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18434 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18435 # The file is in a subdirectory.
18436 test ! -d "$ac_dir" && mkdir "$ac_dir"
18439 mv conftest.h $ac_file
18444 cat >> $CONFIG_STATUS <<EOF
18447 cat >> $CONFIG_STATUS <<\EOF
18450 echo Please \"make depend\" to build dependencies
18454 chmod +x $CONFIG_STATUS
18455 rm -fr confdefs* $ac_clean_files
18456 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1