3 # from OpenLDAP: pkg/ldap/configure.in,v 1.366 2001/09/24 16:26:24 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_module = 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; }
2628 ol_with_kerberos=yes
2629 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2630 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2631 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2636 if test $ol_enable_spasswd = yes ; then
2637 if test $ol_with_cyrus_sasl = no ; then
2638 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2640 ol_with_cyrus_sasl=yes
2643 echo "$ac_t""done" 1>&6
2671 BUILD_BDB_DYNAMIC=static
2672 BUILD_DNSSRV_DYNAMIC=static
2673 BUILD_LDAP_DYNAMIC=static
2674 BUILD_LDBM_DYNAMIC=static
2675 BUILD_META_DYNAMIC=static
2676 BUILD_MONITOR_DYNAMIC=static
2677 BUILD_PASSWD_DYNAMIC=static
2678 BUILD_PERL_DYNAMIC=static
2679 BUILD_SHELL_DYNAMIC=static
2680 BUILD_TCL_DYNAMIC=static
2681 BUILD_SQL_DYNAMIC=static
2683 SLAPD_MODULES_LDFLAGS=
2684 SLAPD_MODULES_CPPFLAGS=
2709 cat >> confdefs.h <<\EOF
2710 #define HAVE_MKVERSION 1
2718 *-*-aix*) if test -z "$CC" ; then
2719 case "$ol_with_threads" in
2720 auto | yes | posix) ol_aix_threads=yes ;;
2726 if test $ol_aix_threads = yes ; then
2727 if test -z "${CC}" ; then
2728 for ac_prog in cc_r xlc_r cc
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_word" >&5
2734 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2742 for ac_dir in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir=.
2744 if test -f $ac_dir/$ac_word; then
2745 ac_cv_prog_CC="$ac_prog"
2753 if test -n "$CC"; then
2754 echo "$ac_t""$CC" 1>&6
2756 echo "$ac_t""no" 1>&6
2759 test -n "$CC" && break
2763 if test "$CC" = cc ; then
2764 if test $ol_with_threads != auto ; then
2765 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2767 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2773 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2774 ol_with_threads=posix
2775 ol_cv_pthread_create=yes
2779 if test -z "${CC}"; then
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_word" >&5
2786 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2794 for ac_dir in $ac_dummy; do
2795 test -z "$ac_dir" && ac_dir=.
2796 if test -f $ac_dir/$ac_word; then
2797 ac_cv_prog_CC="$ac_prog"
2805 if test -n "$CC"; then
2806 echo "$ac_t""$CC" 1>&6
2808 echo "$ac_t""no" 1>&6
2811 test -n "$CC" && break
2819 # Check whether --enable-fast-install or --disable-fast-install was given.
2820 if test "${enable_fast_install+set}" = set; then
2821 enableval="$enable_fast_install"
2822 p=${PACKAGE-default}
2823 case "$enableval" in
2824 yes) enable_fast_install=yes ;;
2825 no) enable_fast_install=no ;;
2827 enable_fast_install=no
2828 # Look at the argument we got. We use all the common list separators.
2829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2830 for pkg in $enableval; do
2831 if test "X$pkg" = "X$p"; then
2832 enable_fast_install=yes
2839 enable_fast_install=yes
2842 # Extract the first word of "ranlib", so it can be a program name with args.
2843 set dummy ranlib; ac_word=$2
2844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_word" >&5
2846 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 if test -n "$RANLIB"; then
2850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2854 for ac_dir in $ac_dummy; do
2855 test -z "$ac_dir" && ac_dir=.
2856 if test -f $ac_dir/$ac_word; then
2857 ac_cv_prog_RANLIB="ranlib"
2862 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2865 RANLIB="$ac_cv_prog_RANLIB"
2866 if test -n "$RANLIB"; then
2867 echo "$ac_t""$RANLIB" 1>&6
2869 echo "$ac_t""no" 1>&6
2872 # Extract the first word of "gcc", so it can be a program name with args.
2873 set dummy gcc; ac_word=$2
2874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_word" >&5
2876 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2884 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2895 if test -n "$CC"; then
2896 echo "$ac_t""$CC" 1>&6
2898 echo "$ac_t""no" 1>&6
2901 if test -z "$CC"; then
2902 # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_word" >&5
2906 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2915 for ac_dir in $ac_dummy; do
2916 test -z "$ac_dir" && ac_dir=.
2917 if test -f $ac_dir/$ac_word; then
2918 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2919 ac_prog_rejected=yes
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2931 if test $# -gt 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2936 set dummy "$ac_dir/$ac_word" "$@"
2944 if test -n "$CC"; then
2945 echo "$ac_t""$CC" 1>&6
2947 echo "$ac_t""no" 1>&6
2950 if test -z "$CC"; then
2951 case "`uname -s`" in
2952 *win32* | *WIN32* | *CYGWIN*)
2953 # Extract the first word of "cl", so it can be a program name with args.
2954 set dummy cl; ac_word=$2
2955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_word" >&5
2957 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2965 for ac_dir in $ac_dummy; do
2966 test -z "$ac_dir" && ac_dir=.
2967 if test -f $ac_dir/$ac_word; then
2976 if test -n "$CC"; then
2977 echo "$ac_t""$CC" 1>&6
2979 echo "$ac_t""no" 1>&6
2984 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2988 echo "configure:2989: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2995 cross_compiling=$ac_cv_prog_cc_cross
2997 cat > conftest.$ac_ext << EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3005 ac_cv_prog_cc_works=yes
3006 # If we can't run a trivial program, we are probably using a cross compiler.
3007 if (./conftest; exit) 2>/dev/null; then
3008 ac_cv_prog_cc_cross=no
3010 ac_cv_prog_cc_cross=yes
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 ac_cv_prog_cc_works=no
3019 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3022 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3023 cross_compiling=$ac_cv_prog_cc_cross
3025 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3026 if test $ac_cv_prog_cc_works = no; then
3027 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3029 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3030 echo "configure:3031: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3031 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3032 cross_compiling=$ac_cv_prog_cc_cross
3034 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3035 echo "configure:3036: checking whether we are using GNU C" >&5
3036 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 cat > conftest.c <<EOF
3044 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3051 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3053 if test $ac_cv_prog_gcc = yes; then
3059 ac_test_CFLAGS="${CFLAGS+set}"
3060 ac_save_CFLAGS="$CFLAGS"
3062 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3063 echo "configure:3064: checking whether ${CC-cc} accepts -g" >&5
3064 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 echo 'void f(){}' > conftest.c
3068 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3077 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3078 if test "$ac_test_CFLAGS" = set; then
3079 CFLAGS="$ac_save_CFLAGS"
3080 elif test $ac_cv_prog_cc_g = yes; then
3081 if test "$GCC" = yes; then
3087 if test "$GCC" = yes; then
3094 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3095 if test "${with_gnu_ld+set}" = set; then
3096 withval="$with_gnu_ld"
3097 test "$withval" = no || with_gnu_ld=yes
3103 if test "$ac_cv_prog_gcc" = yes; then
3104 # Check if gcc -print-prog-name=ld gives a path.
3105 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3106 echo "configure:3107: checking for ld used by GCC" >&5
3107 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3109 # Accept absolute paths.
3110 [\\/]* | [A-Za-z]:[\\/]*)
3111 re_direlt='/[^/][^/]*/\.\./'
3112 # Canonicalize the path of ld
3113 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3115 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3117 test -z "$LD" && LD="$ac_prog"
3120 # If it fails, then pretend we aren't using GCC.
3124 # If it is relative, then search for the first ld in PATH.
3128 elif test "$with_gnu_ld" = yes; then
3129 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3130 echo "configure:3131: checking for GNU ld" >&5
3132 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3133 echo "configure:3134: checking for non-GNU ld" >&5
3135 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 if test -z "$LD"; then
3139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3140 for ac_dir in $PATH; do
3141 test -z "$ac_dir" && ac_dir=.
3142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3143 ac_cv_path_LD="$ac_dir/$ac_prog"
3144 # Check to see if the program is GNU ld. I'd rather use --version,
3145 # but apparently some GNU ld's only accept -v.
3146 # Break only if it was the GNU/non-GNU ld that we prefer.
3147 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3148 test "$with_gnu_ld" != no && break
3150 test "$with_gnu_ld" != yes && break
3156 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3161 if test -n "$LD"; then
3162 echo "$ac_t""$LD" 1>&6
3164 echo "$ac_t""no" 1>&6
3166 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3167 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3168 echo "configure:3169: checking if the linker ($LD) is GNU ld" >&5
3169 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3173 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3174 ac_cv_prog_gnu_ld=yes
3176 ac_cv_prog_gnu_ld=no
3180 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3183 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3184 echo "configure:3185: checking for BSD-compatible nm" >&5
3185 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 if test -n "$NM"; then
3189 # Let the user override the test.
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3193 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3194 test -z "$ac_dir" && ac_dir=.
3195 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3196 # Check to see if the nm accepts a BSD-compat flag.
3197 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3198 # nm: unknown option "B" ignored
3199 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3200 ac_cv_path_NM="$ac_dir/nm -B"
3202 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3203 ac_cv_path_NM="$ac_dir/nm -p"
3206 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3207 continue # so that we can try to find one that supports BSD flags
3212 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3217 echo "$ac_t""$NM" 1>&6
3219 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3220 echo "configure:3221: checking whether ln -s works" >&5
3221 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3225 if ln -s X conftestdata 2>/dev/null
3228 ac_cv_prog_LN_S="ln -s"
3233 LN_S="$ac_cv_prog_LN_S"
3234 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3235 echo "$ac_t""yes" 1>&6
3237 echo "$ac_t""no" 1>&6
3240 if test $host != $build; then
3241 ac_tool_prefix=${host_alias}-
3248 NONE) lt_target="$host" ;;
3249 *) lt_target="$target" ;;
3252 # Check for any special flags to pass to ltconfig.
3253 libtool_flags="--cache-file=$cache_file"
3254 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3255 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3256 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3257 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3258 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3259 libtool_flags="$libtool_flags --enable-dlopen"
3260 libtool_flags="$libtool_flags --enable-win32-dll"
3261 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3262 if test "${enable_libtool_lock+set}" = set; then
3263 enableval="$enable_libtool_lock"
3267 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3268 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3270 # Some flags need to be propagated to the compiler or linker for good
3272 case "$lt_target" in
3274 # Find out which ABI we are using.
3275 echo '#line 3276 "configure"' > conftest.$ac_ext
3276 if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277 case "`/usr/bin/file conftest.o`" in
3293 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3294 SAVE_CFLAGS="$CFLAGS"
3295 CFLAGS="$CFLAGS -belf"
3296 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3297 echo "configure:3298: checking whether the C compiler needs -belf" >&5
3298 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311 lt_cv_cc_needs_belf=yes
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 lt_cv_cc_needs_belf=no
3321 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3322 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3323 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3324 CFLAGS="$SAVE_CFLAGS"
3328 *-*-cygwin* | *-*-mingw*)
3329 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3332 echo "configure:3333: checking for $ac_word" >&5
3333 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 if test -n "$DLLTOOL"; then
3337 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3341 for ac_dir in $ac_dummy; do
3342 test -z "$ac_dir" && ac_dir=.
3343 if test -f $ac_dir/$ac_word; then
3344 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3351 DLLTOOL="$ac_cv_prog_DLLTOOL"
3352 if test -n "$DLLTOOL"; then
3353 echo "$ac_t""$DLLTOOL" 1>&6
3355 echo "$ac_t""no" 1>&6
3359 if test -z "$ac_cv_prog_DLLTOOL"; then
3360 if test -n "$ac_tool_prefix"; then
3361 # Extract the first word of "dlltool", so it can be a program name with args.
3362 set dummy dlltool; ac_word=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test -n "$DLLTOOL"; then
3369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 for ac_dir in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir=.
3375 if test -f $ac_dir/$ac_word; then
3376 ac_cv_prog_DLLTOOL="dlltool"
3381 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3384 DLLTOOL="$ac_cv_prog_DLLTOOL"
3385 if test -n "$DLLTOOL"; then
3386 echo "$ac_t""$DLLTOOL" 1>&6
3388 echo "$ac_t""no" 1>&6
3396 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}as; ac_word=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5
3400 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 if test -n "$AS"; then
3404 ac_cv_prog_AS="$AS" # Let the user override the test.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3408 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_prog_AS="${ac_tool_prefix}as"
3419 if test -n "$AS"; then
3420 echo "$ac_t""$AS" 1>&6
3422 echo "$ac_t""no" 1>&6
3426 if test -z "$ac_cv_prog_AS"; then
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "as", so it can be a program name with args.
3429 set dummy as; ac_word=$2
3430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3431 echo "configure:3432: checking for $ac_word" >&5
3432 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 if test -n "$AS"; then
3436 ac_cv_prog_AS="$AS" # Let the user override the test.
3438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3440 for ac_dir in $ac_dummy; do
3441 test -z "$ac_dir" && ac_dir=.
3442 if test -f $ac_dir/$ac_word; then
3448 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3452 if test -n "$AS"; then
3453 echo "$ac_t""$AS" 1>&6
3455 echo "$ac_t""no" 1>&6
3463 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_word" >&5
3467 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 if test -n "$OBJDUMP"; then
3471 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3475 for ac_dir in $ac_dummy; do
3476 test -z "$ac_dir" && ac_dir=.
3477 if test -f $ac_dir/$ac_word; then
3478 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3485 OBJDUMP="$ac_cv_prog_OBJDUMP"
3486 if test -n "$OBJDUMP"; then
3487 echo "$ac_t""$OBJDUMP" 1>&6
3489 echo "$ac_t""no" 1>&6
3493 if test -z "$ac_cv_prog_OBJDUMP"; then
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "objdump", so it can be a program name with args.
3496 set dummy objdump; ac_word=$2
3497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3498 echo "configure:3499: checking for $ac_word" >&5
3499 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 if test -n "$OBJDUMP"; then
3503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3507 for ac_dir in $ac_dummy; do
3508 test -z "$ac_dir" && ac_dir=.
3509 if test -f $ac_dir/$ac_word; then
3510 ac_cv_prog_OBJDUMP="objdump"
3515 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3518 OBJDUMP="$ac_cv_prog_OBJDUMP"
3519 if test -n "$OBJDUMP"; then
3520 echo "$ac_t""$OBJDUMP" 1>&6
3522 echo "$ac_t""no" 1>&6
3535 # Save cache, so that ltconfig can load it
3538 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3539 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3540 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3541 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3542 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3543 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3544 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3545 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3547 # Reload cache, that may have been modified by ltconfig
3550 # This can be used to rebuild libtool when needed
3551 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3553 # Always use our own libtool.
3554 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3556 # Redirect the config.log output again, so that the ltconfig log is not
3557 # clobbered by the next message.
3558 exec 5>>./config.log
3561 for ac_prog in mawk gawk nawk awk
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_word" >&5
3567 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 if test -n "$AWK"; then
3571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f $ac_dir/$ac_word; then
3578 ac_cv_prog_AWK="$ac_prog"
3585 AWK="$ac_cv_prog_AWK"
3586 if test -n "$AWK"; then
3587 echo "$ac_t""$AWK" 1>&6
3589 echo "$ac_t""no" 1>&6
3592 test -n "$AWK" && break
3595 # test for ln hardlink support
3596 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3597 echo "configure:3598: checking whether ln works" >&5
3598 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 rm -f conftest.src conftest.dst
3602 echo "conftest" > conftest.src
3603 if ln conftest.src conftest.dst 2>/dev/null
3605 ol_cv_prog_LN_H="ln"
3607 ol_cv_prog_LN_H="cp"
3609 rm -f conftest.src conftest.dst
3612 LN_H="$ol_cv_prog_LN_H"
3613 if test "$ol_cv_prog_LN_H" = "ln"; then
3614 echo "$ac_t""yes" 1>&6
3616 echo "$ac_t""no" 1>&6
3619 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3620 echo "configure:3621: checking whether ln -s works" >&5
3621 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3625 if ln -s X conftestdata 2>/dev/null
3628 ac_cv_prog_LN_S="ln -s"
3633 LN_S="$ac_cv_prog_LN_S"
3634 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3635 echo "$ac_t""yes" 1>&6
3637 echo "$ac_t""no" 1>&6
3641 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3645 # Extract the first word of "sendmail", so it can be a program name with args.
3646 set dummy sendmail; ac_word=$2
3647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3648 echo "configure:3649: checking for $ac_word" >&5
3649 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3654 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3657 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3661 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3662 for ac_dir in $ac_dummy; do
3663 test -z "$ac_dir" && ac_dir=.
3664 if test -f $ac_dir/$ac_word; then
3665 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3670 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3674 SENDMAIL="$ac_cv_path_SENDMAIL"
3675 if test -n "$SENDMAIL"; then
3676 echo "$ac_t""$SENDMAIL" 1>&6
3678 echo "$ac_t""no" 1>&6
3681 # Extract the first word of "vi", so it can be a program name with args.
3682 set dummy vi; ac_word=$2
3683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_word" >&5
3685 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3690 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3693 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3697 ac_dummy="$PATH:/usr/ucb"
3698 for ac_dir in $ac_dummy; do
3699 test -z "$ac_dir" && ac_dir=.
3700 if test -f $ac_dir/$ac_word; then
3701 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3706 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3710 EDITOR="$ac_cv_path_EDITOR"
3711 if test -n "$EDITOR"; then
3712 echo "$ac_t""$EDITOR" 1>&6
3714 echo "$ac_t""no" 1>&6
3717 # Extract the first word of "finger", so it can be a program name with args.
3718 set dummy finger; ac_word=$2
3719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3720 echo "configure:3721: checking for $ac_word" >&5
3721 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3726 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3729 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3733 ac_dummy="$PATH:/usr/ucb"
3734 for ac_dir in $ac_dummy; do
3735 test -z "$ac_dir" && ac_dir=.
3736 if test -f $ac_dir/$ac_word; then
3737 ac_cv_path_FINGER="$ac_dir/$ac_word"
3742 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3746 FINGER="$ac_cv_path_FINGER"
3747 if test -n "$FINGER"; then
3748 echo "$ac_t""$FINGER" 1>&6
3750 echo "$ac_t""no" 1>&6
3755 if test $ol_enable_perl != no ; then
3756 # Extract the first word of "perl", so it can be a program name with args.
3757 set dummy perl; ac_word=$2
3758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_word" >&5
3760 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3765 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3768 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3773 for ac_dir in $ac_dummy; do
3774 test -z "$ac_dir" && ac_dir=.
3775 if test -f $ac_dir/$ac_word; then
3776 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3781 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3785 PERLBIN="$ac_cv_path_PERLBIN"
3786 if test -n "$PERLBIN"; then
3787 echo "$ac_t""$PERLBIN" 1>&6
3789 echo "$ac_t""no" 1>&6
3793 if test "no$PERLBIN" = "no" ; then
3794 if test $ol_enable_perl = yes ; then
3795 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3799 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3800 if test x"$ol_with_perl_module" = "xstatic" ; then
3801 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3803 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3809 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3810 echo "configure:3811: checking how to run the C preprocessor" >&5
3811 # On Suns, sometimes $CPP names a directory.
3812 if test -n "$CPP" && test -d "$CPP"; then
3815 if test -z "$CPP"; then
3816 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3819 # This must be in double quotes, not single quotes, because CPP may get
3820 # substituted into the Makefile and "${CC-cc}" will confuse make.
3822 # On the NeXT, cc -E runs the code through the compiler's parser,
3823 # not just through cpp.
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3831 { (eval echo configure:3832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3833 if test -z "$ac_err"; then
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 CPP="${CC-cc} -E -traditional-cpp"
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3848 { (eval echo configure:3849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3850 if test -z "$ac_err"; then
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 CPP="${CC-cc} -nologo -E"
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3865 { (eval echo configure:3866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3867 if test -z "$ac_err"; then
3871 echo "configure: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3881 ac_cv_prog_CPP="$CPP"
3883 CPP="$ac_cv_prog_CPP"
3885 ac_cv_prog_CPP="$CPP"
3887 echo "$ac_t""$CPP" 1>&6
3890 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3891 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3893 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3894 echo "configure: warning: programs compiled here do run here..." 1>&2
3895 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3897 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3898 echo "configure: warning: programs compiled here do not run here..." 1>&2
3899 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3902 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3903 echo "configure:3904: checking for AIX" >&5
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913 egrep "yes" >/dev/null 2>&1; then
3915 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3916 #define _ALL_SOURCE 1
3921 echo "$ac_t""no" 1>&6
3926 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3927 echo "configure:3928: checking for POSIXized ISC" >&5
3928 if test -d /etc/conf/kconfig.d &&
3929 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3931 echo "$ac_t""yes" 1>&6
3932 ISC=yes # If later tests want to check for ISC.
3933 cat >> confdefs.h <<\EOF
3934 #define _POSIX_SOURCE 1
3937 if test "$GCC" = yes; then
3943 echo "$ac_t""no" 1>&6
3947 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3948 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3949 echo "configure:3950: checking for minix/config.h" >&5
3950 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3956 #include <minix/config.h>
3958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3959 { (eval echo configure:3960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3961 if test -z "$ac_err"; then
3963 eval "ac_cv_header_$ac_safe=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 eval "ac_cv_header_$ac_safe=no"
3973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3974 echo "$ac_t""yes" 1>&6
3977 echo "$ac_t""no" 1>&6
3981 if test "$MINIX" = yes; then
3982 cat >> confdefs.h <<\EOF
3983 #define _POSIX_SOURCE 1
3986 cat >> confdefs.h <<\EOF
3987 #define _POSIX_1_SOURCE 2
3990 cat >> confdefs.h <<\EOF
3997 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3998 echo "configure:3999: checking for Cygwin environment" >&5
3999 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4009 #define __CYGWIN__ __CYGWIN32__
4014 if { (eval echo configure:4015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4026 echo "$ac_t""$ac_cv_cygwin" 1>&6
4028 test "$ac_cv_cygwin" = yes && CYGWIN=yes
4029 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4030 echo "configure:4031: checking for mingw32 environment" >&5
4031 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4054 echo "$ac_t""$ac_cv_mingw32" 1>&6
4056 test "$ac_cv_mingw32" = yes && MINGW32=yes
4057 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4058 echo "configure:4059: checking for EMX OS/2 environment" >&5
4059 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4070 if { (eval echo configure:4071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4082 echo "$ac_t""$ac_cv_emxos2" 1>&6
4084 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4088 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4089 echo "configure:4090: checking for executable suffix" >&5
4090 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4097 echo 'int main () { return 0; }' > conftest.$ac_ext
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4100 for file in conftest.*; do
4102 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4103 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4107 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4110 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4115 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4116 echo "$ac_t""${ac_cv_exeext}" 1>&6
4119 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4120 echo "configure:4121: checking for object suffix" >&5
4121 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4125 echo 'int i = 1;' > conftest.$ac_ext
4126 if { (eval echo configure:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 for ac_file in conftest.*; do
4130 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4134 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4139 echo "$ac_t""$ac_cv_objext" 1>&6
4140 OBJEXT=$ac_cv_objext
4141 ac_objext=$ac_cv_objext
4144 cat >> confdefs.h <<EOF
4145 #define EXEEXT "${EXEEXT}"
4149 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4150 echo "configure:4151: checking for be_app in -lbe" >&5
4151 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4152 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 ac_save_LIBS="$LIBS"
4156 LIBS="-lbe -lroot -lnet $LIBS"
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4171 eval "ac_cv_lib_$ac_lib_var=yes"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4176 eval "ac_cv_lib_$ac_lib_var=no"
4179 LIBS="$ac_save_LIBS"
4182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4183 echo "$ac_t""yes" 1>&6
4184 LIBS="$LIBS -lbe -lroot -lnet"
4186 echo "$ac_t""no" 1>&6
4194 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4195 echo "configure:4196: checking for ${CC-cc} option to accept ANSI C" >&5
4196 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 am_cv_prog_cc_stdc=no
4201 # Don't try gcc -ansi; that turns off useful extensions and
4202 # breaks some systems' header files.
4203 # AIX -qlanglvl=ansi
4204 # Ultrix and OSF/1 -std1
4205 # HP-UX 10.20 and later -Ae
4206 # HP-UX older versions -Aa -D_HPUX_SOURCE
4207 # SVR4 -Xc -D__EXTENSIONS__
4208 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 CC="$ac_save_CC $ac_arg"
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4216 #include <sys/types.h>
4217 #include <sys/stat.h>
4218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4219 struct buf { int x; };
4220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221 static char *e (p, i)
4227 static char *f (char * (*g) (char **, int), char **p, ...)
4232 s = g (p, va_arg (v,int));
4236 int test (int i, double x);
4237 struct s1 {int (*f) (int a);};
4238 struct s2 {int (*f) (double a);};
4239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 if { (eval echo configure:4250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4251 am_cv_prog_cc_stdc="$ac_arg"; break
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4262 if test -z "$am_cv_prog_cc_stdc"; then
4263 echo "$ac_t""none needed" 1>&6
4265 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4267 case "x$am_cv_prog_cc_stdc" in
4269 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4272 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4273 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4276 # test for make depend flag
4279 if test -z "${MKDEP}"; then
4281 if test -z "${MKDEP_FLAGS}"; then
4282 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4283 echo "configure:4284: checking for ${OL_MKDEP} depend flag" >&5
4284 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4289 for flag in "-M" "-xM"; do
4290 cat > conftest.c <<EOF
4293 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4294 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4296 if test ! -f conftest."${ac_object}" ; then
4298 OL_MKDEP_FLAGS="$flag"
4307 echo "$ac_t""$ol_cv_mkdep" 1>&6
4310 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4315 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4320 if test "${ol_cv_mkdep}" = no ; then
4321 # this will soon become an error
4322 echo "configure: warning: do not know how to generate dependencies" 1>&2
4325 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4326 echo "configure:4327: checking for afopen in -ls" >&5
4327 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 ac_save_LIBS="$LIBS"
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4347 eval "ac_cv_lib_$ac_lib_var=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 eval "ac_cv_lib_$ac_lib_var=no"
4355 LIBS="$ac_save_LIBS"
4358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4362 cat >> confdefs.h <<\EOF
4363 #define HAVE_AIX_SECURITY 1
4368 echo "$ac_t""no" 1>&6
4374 if test $ol_enable_modules != no ; then
4375 for ac_hdr in ltdl.h
4377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4379 echo "configure:4380: checking for $ac_hdr" >&5
4380 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4389 { (eval echo configure:4390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4391 if test -z "$ac_err"; then
4393 eval "ac_cv_header_$ac_safe=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 eval "ac_cv_header_$ac_safe=no"
4403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4406 cat >> confdefs.h <<EOF
4407 #define $ac_tr_hdr 1
4411 echo "$ac_t""no" 1>&6
4416 if test $ac_cv_header_ltdl_h = no ; then
4417 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4420 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4421 echo "configure:4422: checking for lt_dlinit in -lltdl" >&5
4422 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 ac_save_LIBS="$LIBS"
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4442 eval "ac_cv_lib_$ac_lib_var=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4447 eval "ac_cv_lib_$ac_lib_var=no"
4450 LIBS="$ac_save_LIBS"
4453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4457 cat >> confdefs.h <<\EOF
4458 #define HAVE_LIBLTDL 1
4463 echo "$ac_t""no" 1>&6
4467 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4468 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4472 ol_with_bdb_module=static
4473 ol_with_dnssrv_module=static
4474 ol_with_ldap_module=static
4475 ol_with_ldbm_module=static
4476 ol_with_meta_module=static
4477 ol_with_monitor_module=static
4478 ol_with_passwd_module=static
4479 ol_with_perl_module=static
4480 ol_with_shell_module=static
4481 ol_with_tcl_module=static
4482 ol_with_sql_module=static
4486 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4487 echo "configure:4488: checking for EBCDIC" >&5
4488 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4497 #include <__ASCII__/generate_error.h>
4501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4502 { (eval echo configure:4503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4504 if test -z "$ac_err"; then
4506 ol_cv_cpp_ebcdic=yes
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4517 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4518 if test $ol_cv_cpp_ebcdic = yes ; then
4519 cat >> confdefs.h <<\EOF
4520 #define HAVE_EBCDIC 1
4525 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4526 echo "configure:4527: checking for ANSI C header files" >&5
4527 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4539 { (eval echo configure:4540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4541 if test -z "$ac_err"; then
4543 ol_cv_header_stdc=yes
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 ol_cv_header_stdc=no
4553 if test $ol_cv_header_stdc = yes; then
4554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4561 egrep "memchr" >/dev/null 2>&1; then
4565 ol_cv_header_stdc=no
4571 if test $ol_cv_header_stdc = yes; then
4572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4579 egrep "free" >/dev/null 2>&1; then
4583 ol_cv_header_stdc=no
4589 if test $ol_cv_header_stdc = yes; then
4590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4591 if test "$cross_compiling" = yes; then
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4602 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4603 || ('j' <= (c) && (c) <= 'r') \
4604 || ('s' <= (c) && (c) <= 'z'))
4605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4608 int main () { int i; for (i = 0; i < 256; i++)
4609 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 ol_cv_header_stdc=no
4628 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4629 if test $ol_cv_header_stdc = yes; then
4630 cat >> confdefs.h <<\EOF
4631 #define STDC_HEADERS 1
4635 ac_cv_header_stdc=disable
4638 if test $ol_cv_header_stdc != yes; then
4639 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4643 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4646 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4647 echo "configure:4648: checking for $ac_hdr that defines DIR" >&5
4648 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 #include <sys/types.h>
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662 eval "ac_cv_header_dirent_$ac_safe=yes"
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 eval "ac_cv_header_dirent_$ac_safe=no"
4671 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4674 cat >> confdefs.h <<EOF
4675 #define $ac_tr_hdr 1
4677 ac_header_dirent=$ac_hdr; break
4679 echo "$ac_t""no" 1>&6
4682 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4683 if test $ac_header_dirent = dirent.h; then
4684 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4685 echo "configure:4686: checking for opendir in -ldir" >&5
4686 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4687 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 ac_save_LIBS="$LIBS"
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* Override any gcc2 internal prototype to avoid an error. */
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4706 eval "ac_cv_lib_$ac_lib_var=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_lib_$ac_lib_var=no"
4714 LIBS="$ac_save_LIBS"
4717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4721 echo "$ac_t""no" 1>&6
4725 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4726 echo "configure:4727: checking for opendir in -lx" >&5
4727 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 ac_save_LIBS="$LIBS"
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 /* Override any gcc2 internal prototype to avoid an error. */
4737 /* We use char because int might match the return type of a gcc2
4738 builtin and then its argument prototype would still apply. */
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_lib_$ac_lib_var=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_lib_$ac_lib_var=no"
4755 LIBS="$ac_save_LIBS"
4758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4762 echo "$ac_t""no" 1>&6
4767 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4768 echo "configure:4769: checking for sys/wait.h that is POSIX.1 compatible" >&5
4769 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4775 #include <sys/types.h>
4776 #include <sys/wait.h>
4778 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4781 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4786 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4789 if { (eval echo configure:4790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4791 ac_cv_header_sys_wait_h=yes
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 ac_cv_header_sys_wait_h=no
4801 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4802 if test $ac_cv_header_sys_wait_h = yes; then
4803 cat >> confdefs.h <<\EOF
4804 #define HAVE_SYS_WAIT_H 1
4809 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4810 echo "configure:4811: checking POSIX termios" >&5
4811 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 #include <sys/types.h>
4819 #include <termios.h>
4821 /* SunOS 4.0.3 has termios.h but not the library calls. */
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4827 am_cv_sys_posix_termios=yes
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 am_cv_sys_posix_termios=no
4837 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4840 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4841 echo "configure:4842: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4842 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4845 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4847 gwinsz_in_termios_h=no
4848 if test $am_cv_sys_posix_termios = yes; then
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4852 #include <sys/types.h>
4853 # include <termios.h>
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 egrep "yes" >/dev/null 2>&1; then
4862 gwinsz_in_termios_h=yes
4868 if test $gwinsz_in_termios_h = no; then
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 #include <sys/types.h>
4873 # include <sys/ioctl.h>
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 egrep "yes" >/dev/null 2>&1; then
4882 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4890 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4891 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4892 cat >> confdefs.h <<\EOF
4893 #define GWINSZ_IN_SYS_IOCTL 1
4898 if test $am_cv_sys_posix_termios = yes ; then
4899 cat >> confdefs.h <<\EOF
4900 #define HAVE_POSIX_TERMIOS 1
4951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4953 echo "configure:4954: checking for $ac_hdr" >&5
4954 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4963 { (eval echo configure:4964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4965 if test -z "$ac_err"; then
4967 eval "ac_cv_header_$ac_safe=yes"
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4973 eval "ac_cv_header_$ac_safe=no"
4977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4980 cat >> confdefs.h <<EOF
4981 #define $ac_tr_hdr 1
4985 echo "$ac_t""no" 1>&6
4992 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4993 echo "configure:4994: checking for dlopen" >&5
4994 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 /* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char dlopen(); below. */
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5011 /* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5024 eval "ac_cv_func_dlopen=yes"
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5029 eval "ac_cv_func_dlopen=no"
5034 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5038 echo "$ac_t""no" 1>&6
5039 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5040 echo "configure:5041: checking for dlopen in -ldl" >&5
5041 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
5042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 ac_save_LIBS="$LIBS"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 /* Override any gcc2 internal prototype to avoid an error. */
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_lib_$ac_lib_var=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_lib_$ac_lib_var=no"
5069 LIBS="$ac_save_LIBS"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5076 cat >> confdefs.h <<EOF
5077 #define $ac_tr_lib 1
5083 echo "$ac_t""no" 1>&6
5089 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5090 echo "configure:5091: checking for sigset in -lV3" >&5
5091 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5092 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 ac_save_LIBS="$LIBS"
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5109 if { (eval echo configure:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 eval "ac_cv_lib_$ac_lib_var=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 eval "ac_cv_lib_$ac_lib_var=no"
5119 LIBS="$ac_save_LIBS"
5122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5123 echo "$ac_t""yes" 1>&6
5124 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5126 cat >> confdefs.h <<EOF
5127 #define $ac_tr_lib 1
5133 echo "$ac_t""no" 1>&6
5137 if test $ac_cv_header_winsock_h = yes; then
5138 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5139 echo "configure:5140: checking for winsock" >&5
5140 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 #include <winsock.h>
5150 select(0,NULL,NULL,NULL,NULL);
5152 gethostname(NULL,0);
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5168 echo "$ac_t""$ol_cv_winsock" 1>&6
5170 if test $ol_cv_winsock = yes ; then
5171 cat >> confdefs.h <<\EOF
5172 #define HAVE_WINSOCK 1
5175 ac_cv_func_socket=yes
5176 ac_cv_func_select=yes
5177 ac_cv_func_closesocket=yes
5178 ac_cv_func_gethostname=yes
5183 echo $ac_n "checking for socket""... $ac_c" 1>&6
5184 echo "configure:5185: checking for socket" >&5
5185 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char socket(); below. */
5194 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5202 /* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205 #if defined (__stub_socket) || defined (__stub___socket)
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 eval "ac_cv_func_socket=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 eval "ac_cv_func_socket=no"
5225 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5229 echo "$ac_t""no" 1>&6
5231 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5232 echo "configure:5233: checking for main in -lsocket" >&5
5233 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 ac_save_LIBS="$LIBS"
5238 LIBS="-lsocket $LIBS"
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 eval "ac_cv_lib_$ac_lib_var=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 eval "ac_cv_lib_$ac_lib_var=no"
5257 LIBS="$ac_save_LIBS"
5260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5264 cat >> confdefs.h <<EOF
5265 #define $ac_tr_lib 1
5268 LIBS="-lsocket $LIBS"
5271 echo "$ac_t""no" 1>&6
5274 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5275 echo "configure:5276: checking for main in -lnet" >&5
5276 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5277 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 ac_save_LIBS="$LIBS"
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5290 if { (eval echo configure:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5292 eval "ac_cv_lib_$ac_lib_var=yes"
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5297 eval "ac_cv_lib_$ac_lib_var=no"
5300 LIBS="$ac_save_LIBS"
5303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5304 echo "$ac_t""yes" 1>&6
5305 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5307 cat >> confdefs.h <<EOF
5308 #define $ac_tr_lib 1
5314 echo "$ac_t""no" 1>&6
5317 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5318 echo "configure:5319: checking for main in -lnsl_s" >&5
5319 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 ac_save_LIBS="$LIBS"
5324 LIBS="-lnsl_s $LIBS"
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5333 if { (eval echo configure:5334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5335 eval "ac_cv_lib_$ac_lib_var=yes"
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 eval "ac_cv_lib_$ac_lib_var=no"
5343 LIBS="$ac_save_LIBS"
5346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5347 echo "$ac_t""yes" 1>&6
5348 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5350 cat >> confdefs.h <<EOF
5351 #define $ac_tr_lib 1
5354 LIBS="-lnsl_s $LIBS"
5357 echo "$ac_t""no" 1>&6
5360 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5361 echo "configure:5362: checking for main in -lnsl" >&5
5362 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 ac_save_LIBS="$LIBS"
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 eval "ac_cv_lib_$ac_lib_var=yes"
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 eval "ac_cv_lib_$ac_lib_var=no"
5386 LIBS="$ac_save_LIBS"
5389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5393 cat >> confdefs.h <<EOF
5394 #define $ac_tr_lib 1
5400 echo "$ac_t""no" 1>&6
5403 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5404 echo "configure:5405: checking for socket in -linet" >&5
5405 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5406 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 ac_save_LIBS="$LIBS"
5411 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5414 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5423 if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425 eval "ac_cv_lib_$ac_lib_var=yes"
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5430 eval "ac_cv_lib_$ac_lib_var=no"
5433 LIBS="$ac_save_LIBS"
5436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5440 cat >> confdefs.h <<EOF
5441 #define $ac_tr_lib 1
5447 echo "$ac_t""no" 1>&6
5450 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5451 echo "configure:5452: checking for main in -lgen" >&5
5452 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5453 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 ac_save_LIBS="$LIBS"
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5468 eval "ac_cv_lib_$ac_lib_var=yes"
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 eval "ac_cv_lib_$ac_lib_var=no"
5476 LIBS="$ac_save_LIBS"
5479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5483 cat >> confdefs.h <<EOF
5484 #define $ac_tr_lib 1
5490 echo "$ac_t""no" 1>&6
5497 echo $ac_n "checking for select""... $ac_c" 1>&6
5498 echo "configure:5499: checking for select" >&5
5499 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char select(); below. */
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5516 /* The GNU C library defines this for functions which it implements
5517 to always fail with ENOSYS. Some functions are actually named
5518 something starting with __ and the normal name is an alias. */
5519 #if defined (__stub_select) || defined (__stub___select)
5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5529 eval "ac_cv_func_select=yes"
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5534 eval "ac_cv_func_select=no"
5539 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5540 echo "$ac_t""yes" 1>&6
5543 echo "$ac_t""no" 1>&6
5544 { echo "configure: error: select() required." 1>&2; exit 1; }
5548 if test "${ac_cv_header_winsock_h}" != yes; then
5549 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5550 echo "configure:5551: checking types of arguments for select()" >&5
5551 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5561 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5562 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #ifdef HAVE_SYS_TYPES_H
5567 #include <sys/types.h>
5569 #ifdef HAVE_SYS_TIME_H
5570 #include <sys/time.h>
5572 #ifdef HAVE_SYS_SELECT_H
5573 #include <sys/select.h>
5575 #ifdef HAVE_SYS_SOCKET_H
5576 #include <sys/socket.h>
5578 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);
5583 if { (eval echo configure:5584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5585 ac_not_found=no ; break 3
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5602 if test "$ac_not_found" = yes; then
5603 ac_cv_func_select_arg1=int
5604 ac_cv_func_select_arg234='int *'
5605 ac_cv_func_select_arg5='struct timeval *'
5607 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5608 cat >> confdefs.h <<EOF
5609 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5612 cat >> confdefs.h <<EOF
5613 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5616 cat >> confdefs.h <<EOF
5617 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5624 for ac_hdr in regex.h
5626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5628 echo "configure:5629: checking for $ac_hdr" >&5
5629 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5638 { (eval echo configure:5639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5640 if test -z "$ac_err"; then
5642 eval "ac_cv_header_$ac_safe=yes"
5645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5648 eval "ac_cv_header_$ac_safe=no"
5652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5655 cat >> confdefs.h <<EOF
5656 #define $ac_tr_hdr 1
5660 echo "$ac_t""no" 1>&6
5664 if test "$ac_cv_header_regex_h" != yes ; then
5665 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5667 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5668 echo "configure:5669: checking for regfree" >&5
5669 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char regfree(); below. */
5678 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
5686 /* The GNU C library defines this for functions which it implements
5687 to always fail with ENOSYS. Some functions are actually named
5688 something starting with __ and the normal name is an alias. */
5689 #if defined (__stub_regfree) || defined (__stub___regfree)
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5699 eval "ac_cv_func_regfree=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_func_regfree=no"
5709 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5713 echo "$ac_t""no" 1>&6
5714 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5719 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5720 echo "configure:5721: checking for compatible POSIX regex" >&5
5721 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5725 if test "$cross_compiling" = yes; then
5726 ol_cv_c_posix_regex=cross
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5732 #include <sys/types.h>
5734 static char *pattern, *string;
5742 if(regcomp(&re, pattern, 0)) {
5746 string = "ALL MATCH";
5748 rc = regexec(&re, string, 0, (void*)0, 0);
5755 if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5757 ol_cv_c_posix_regex=yes
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5762 ol_cv_c_posix_regex=no
5769 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5771 if test "$ol_cv_c_posix_regex" = no ; then
5772 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5776 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5777 echo "configure:5778: checking for res_query" >&5
5778 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 /* System header to define __stub macros and hopefully few prototypes,
5785 which can conflict with char res_query(); below. */
5787 /* Override any gcc2 internal prototype to avoid an error. */
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_res_query) || defined (__stub___res_query)
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 eval "ac_cv_func_res_query=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 eval "ac_cv_func_res_query=no"
5818 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5822 echo "$ac_t""no" 1>&6
5825 if test $ac_cv_func_res_query = no ; then
5826 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5827 echo "configure:5828: checking for res_query in -lbind" >&5
5828 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5832 ac_save_LIBS="$LIBS"
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 eval "ac_cv_lib_$ac_lib_var=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 eval "ac_cv_lib_$ac_lib_var=no"
5856 LIBS="$ac_save_LIBS"
5859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5863 cat >> confdefs.h <<EOF
5864 #define $ac_tr_lib 1
5870 echo "$ac_t""no" 1>&6
5873 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5876 if test $ac_cv_func_res_query = no ; then
5877 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5878 echo "configure:5879: checking for __res_query in -lbind" >&5
5879 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5880 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 ac_save_LIBS="$LIBS"
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5888 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5897 if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5899 eval "ac_cv_lib_$ac_lib_var=yes"
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5904 eval "ac_cv_lib_$ac_lib_var=no"
5907 LIBS="$ac_save_LIBS"
5910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5911 echo "$ac_t""yes" 1>&6
5912 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5914 cat >> confdefs.h <<EOF
5915 #define $ac_tr_lib 1
5921 echo "$ac_t""no" 1>&6
5924 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5927 if test $ac_cv_func_res_query = no ; then
5928 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5929 echo "configure:5930: checking for res_query in -lresolv" >&5
5930 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 ac_save_LIBS="$LIBS"
5935 LIBS="-lresolv $LIBS"
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 eval "ac_cv_lib_$ac_lib_var=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_lib_$ac_lib_var=no"
5958 LIBS="$ac_save_LIBS"
5961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5965 cat >> confdefs.h <<EOF
5966 #define $ac_tr_lib 1
5969 LIBS="-lresolv $LIBS"
5972 echo "$ac_t""no" 1>&6
5975 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5978 if test "$ac_cv_func_res_query" = yes ; then
5979 cat >> confdefs.h <<\EOF
5980 #define HAVE_RES_QUERY 1
5984 if test $ol_enable_dnssrv != no ; then
5989 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5990 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5993 for ac_func in getaddrinfo inet_ntop
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6027 eval "ac_cv_func_$ac_func=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6032 eval "ac_cv_func_$ac_func=no"
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_func 1
6045 echo "$ac_t""no" 1>&6
6051 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
6052 if test $ol_enable_ipv6 = yes ; then
6053 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
6056 for ac_func in gai_strerror
6058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6059 echo "configure:6060: checking for $ac_func" >&5
6060 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* System header to define __stub macros and hopefully few prototypes,
6067 which can conflict with char $ac_func(); below. */
6069 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */
6077 /* The GNU C library defines this for functions which it implements
6078 to always fail with ENOSYS. Some functions are actually named
6079 something starting with __ and the normal name is an alias. */
6080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6090 eval "ac_cv_func_$ac_func=yes"
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6095 eval "ac_cv_func_$ac_func=no"
6100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6101 echo "$ac_t""yes" 1>&6
6102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6103 cat >> confdefs.h <<EOF
6104 #define $ac_tr_func 1
6108 echo "$ac_t""no" 1>&6
6113 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6114 echo "configure:6115: checking INET6_ADDRSTRLEN" >&5
6115 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6123 # include <netinet/in.h>
6124 # ifdef INET6_ADDRSTRLEN
6125 __has_inet6_addrstrlen__;
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6132 ol_cv_inet6_addrstrlen=yes
6135 ol_cv_inet6_addrstrlen=no
6141 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6143 if test $ol_cv_inet6_addrstrlen = yes ; then
6145 elif test $ol_enable_ipv6 = yes ; then
6146 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6150 if test $ol_enable_local != no ; then
6151 for ac_hdr in sys/un.h
6153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6155 echo "configure:6156: checking for $ac_hdr" >&5
6156 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6165 { (eval echo configure:6166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6167 if test -z "$ac_err"; then
6169 eval "ac_cv_header_$ac_safe=yes"
6172 echo "configure: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6175 eval "ac_cv_header_$ac_safe=no"
6179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6180 echo "$ac_t""yes" 1>&6
6181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6182 cat >> confdefs.h <<EOF
6183 #define $ac_tr_hdr 1
6187 echo "$ac_t""no" 1>&6
6192 if test $ol_enable_local = auto ; then
6193 ol_enable_local=$ac_cv_header_sys_un_h
6194 elif test $ac_cv_header_sys_un_h = no ; then
6195 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6204 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6205 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6206 -o $ol_with_kerberos = k425 ; then
6208 for ac_hdr in krb5.h
6210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_hdr" >&5
6213 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6222 { (eval echo configure:6223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6224 if test -z "$ac_err"; then
6226 eval "ac_cv_header_$ac_safe=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6232 eval "ac_cv_header_$ac_safe=no"
6236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6239 cat >> confdefs.h <<EOF
6240 #define $ac_tr_hdr 1
6244 echo "$ac_t""no" 1>&6
6249 if test $ac_cv_header_krb5_h = yes ; then
6250 for ac_hdr in heim_err.h
6252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6254 echo "configure:6255: checking for $ac_hdr" >&5
6255 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6258 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6264 { (eval echo configure:6265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6266 if test -z "$ac_err"; then
6268 eval "ac_cv_header_$ac_safe=yes"
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6274 eval "ac_cv_header_$ac_safe=no"
6278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6279 echo "$ac_t""yes" 1>&6
6280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6281 cat >> confdefs.h <<EOF
6282 #define $ac_tr_hdr 1
6286 echo "$ac_t""no" 1>&6
6290 if test $ac_cv_header_heim_err_h = yes ; then
6296 if test $krb5_impl = mit; then
6297 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6298 echo "configure:6299: checking for main in -lkrb5" >&5
6299 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6300 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 ac_save_LIBS="$LIBS"
6304 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315 eval "ac_cv_lib_$ac_lib_var=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_lib_$ac_lib_var=no"
6323 LIBS="$ac_save_LIBS"
6326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6327 echo "$ac_t""yes" 1>&6
6329 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6331 echo "$ac_t""no" 1>&6
6336 elif test $krb5_impl = heimdal; then
6337 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6338 echo "configure:6339: checking for main in -lkrb5" >&5
6339 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6341 echo $ac_n "(cached) $ac_c" 1>&6
6343 ac_save_LIBS="$LIBS"
6344 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6345 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6353 if { (eval echo configure:6354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6355 eval "ac_cv_lib_$ac_lib_var=yes"
6357 echo "configure: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6360 eval "ac_cv_lib_$ac_lib_var=no"
6363 LIBS="$ac_save_LIBS"
6366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6369 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6371 echo "$ac_t""no" 1>&6
6376 cat >> confdefs.h <<\EOF
6377 #define HAVE_HEIMDAL_KERBEROS 1
6382 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6385 if test $have_krb5 = yes ; then
6388 cat >> confdefs.h <<\EOF
6393 if test $ol_enable_kpasswd != no ; then
6394 ol_link_kpasswd=yes;
6397 if test $ol_with_kerberos = k5only ; then
6398 ol_with_kerberos=found
6401 elif test $ol_with_kerberos != auto ; then
6402 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6408 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6409 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6411 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_hdr" >&5
6416 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6425 { (eval echo configure:6426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6427 if test -z "$ac_err"; then
6429 eval "ac_cv_header_$ac_safe=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_header_$ac_safe=no"
6439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6442 cat >> confdefs.h <<EOF
6443 #define $ac_tr_hdr 1
6447 echo "$ac_t""no" 1>&6
6452 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6453 if test $krb5_impl = mit; then
6454 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6455 echo "configure:6456: checking for main in -lkrb4" >&5
6456 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6457 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 ac_save_LIBS="$LIBS"
6461 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6470 if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472 eval "ac_cv_lib_$ac_lib_var=yes"
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 eval "ac_cv_lib_$ac_lib_var=no"
6480 LIBS="$ac_save_LIBS"
6483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6486 KRB4_LIBS="-lkrb4 -ldes425"
6488 echo "$ac_t""no" 1>&6
6493 elif test $krb5_impl = heimdal; then
6494 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6495 echo "configure:6496: checking for main in -lkrb4" >&5
6496 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6497 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6500 ac_save_LIBS="$LIBS"
6501 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512 eval "ac_cv_lib_$ac_lib_var=yes"
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 eval "ac_cv_lib_$ac_lib_var=no"
6520 LIBS="$ac_save_LIBS"
6523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6528 echo "$ac_t""no" 1>&6
6535 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6538 if test $have_k425 = yes ; then
6539 ol_with_kerberos=found
6542 cat >> confdefs.h <<\EOF
6543 #define HAVE_KRB425 1
6546 cat >> confdefs.h <<\EOF
6551 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6552 echo "configure:6553: checking for des_debug in Kerberos libraries" >&5
6553 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6558 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6563 #include <kerberosIV/krb.h>
6564 #include <kerberosIV/des.h>
6565 extern int des_debug;
6573 if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 ol_cv_var_des_debug=yes
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 ol_cv_var_des_debug=no
6587 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6589 if test $ol_cv_var_des_debug = yes ; then
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_DES_DEBUG 1
6601 if test $ol_link_krb5 = yes ; then
6602 ol_with_kerberos=found
6605 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6606 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6608 for ac_hdr in krb.h des.h krb-archaeology.h
6610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6612 echo "configure:6613: checking for $ac_hdr" >&5
6613 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6614 echo $ac_n "(cached) $ac_c" 1>&6
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6622 { (eval echo configure:6623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6624 if test -z "$ac_err"; then
6626 eval "ac_cv_header_$ac_safe=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_header_$ac_safe=no"
6636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6639 cat >> confdefs.h <<EOF
6640 #define $ac_tr_hdr 1
6644 echo "$ac_t""no" 1>&6
6649 if test $ac_cv_header_krb_h = yes ; then
6650 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6651 echo "configure:6652: checking for main in -lkrb" >&5
6652 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 ac_save_LIBS="$LIBS"
6657 LIBS="-lkrb -ldes $LIBS"
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_lib_$ac_lib_var=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_lib_$ac_lib_var=no"
6676 LIBS="$ac_save_LIBS"
6679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6683 echo "$ac_t""no" 1>&6
6688 if test $have_k4 = yes ; then
6689 ol_with_kerberos=found
6692 cat >> confdefs.h <<\EOF
6697 KRB4_LIBS="-lkrb -ldes"
6699 if test $ac_cv_header_krb_archaeology_h = yes ; then
6700 cat >> confdefs.h <<\EOF
6701 #define HAVE_KTH_KERBEROS 1
6709 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6713 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6716 elif test $ol_enable_kbind = yes ; then
6717 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6720 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6721 cat >> confdefs.h <<\EOF
6722 #define HAVE_KERBEROS 1
6726 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6727 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6731 if test $ol_with_tls != no ; then
6732 for ac_hdr in openssl/ssl.h ssl.h
6734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6736 echo "configure:6737: checking for $ac_hdr" >&5
6737 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6738 echo $ac_n "(cached) $ac_c" 1>&6
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6746 { (eval echo configure:6747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6748 if test -z "$ac_err"; then
6750 eval "ac_cv_header_$ac_safe=yes"
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 eval "ac_cv_header_$ac_safe=no"
6760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6763 cat >> confdefs.h <<EOF
6764 #define $ac_tr_hdr 1
6768 echo "$ac_t""no" 1>&6
6773 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6774 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6775 echo "configure:6776: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6776 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6780 ac_save_LIBS="$LIBS"
6781 LIBS="-lssl -lcrypto $LIBS"
6782 cat > conftest.$ac_ext <<EOF
6783 #line 6784 "configure"
6784 #include "confdefs.h"
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6788 char SSLeay_add_ssl_algorithms();
6791 SSLeay_add_ssl_algorithms()
6794 if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 eval "ac_cv_lib_$ac_lib_var=yes"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 eval "ac_cv_lib_$ac_lib_var=no"
6804 LIBS="$ac_save_LIBS"
6807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6812 echo "$ac_t""no" 1>&6
6817 if test $have_ssleay = no ; then
6818 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6819 echo "configure:6820: checking for SSL_library_init in -lssl" >&5
6820 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 ac_save_LIBS="$LIBS"
6825 LIBS="-lssl -lcrypto $LIBS"
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6832 char SSL_library_init();
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6840 eval "ac_cv_lib_$ac_lib_var=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_lib_$ac_lib_var=no"
6848 LIBS="$ac_save_LIBS"
6851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6856 echo "$ac_t""no" 1>&6
6862 if test $have_ssleay = no ; then
6863 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6864 echo "configure:6865: checking for ssl3_accept in -lssl" >&5
6865 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6866 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 ac_save_LIBS="$LIBS"
6870 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 eval "ac_cv_lib_$ac_lib_var=yes"
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 eval "ac_cv_lib_$ac_lib_var=no"
6893 LIBS="$ac_save_LIBS"
6896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6897 echo "$ac_t""yes" 1>&6
6901 echo "$ac_t""no" 1>&6
6907 if test $have_ssleay = yes ; then
6911 cat >> confdefs.h <<\EOF
6912 #define HAVE_SSLEAY 1
6916 if test $need_rsaref = yes; then
6917 cat >> confdefs.h <<\EOF
6918 #define HAVE_RSAREF 1
6922 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6924 TLS_LIBS="-lssl -lcrypto"
6930 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6933 if test $ol_link_tls = yes ; then
6934 cat >> confdefs.h <<\EOF
6939 elif test $ol_with_tls = auto ; then
6940 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6941 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6943 elif test $ol_with_tls != no ; then
6944 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6947 if test $ol_enable_lmpasswd != no; then
6948 if test $ol_link_tls != yes ; then
6949 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6952 cat >> confdefs.h <<\EOF
6953 #define SLAPD_LMHASH 1
6960 gethostbyname_r gethostbyaddr_r \
6963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6964 echo "configure:6965: checking for $ac_func" >&5
6965 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* System header to define __stub macros and hopefully few prototypes,
6972 which can conflict with char $ac_func(); below. */
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6982 /* The GNU C library defines this for functions which it implements
6983 to always fail with ENOSYS. Some functions are actually named
6984 something starting with __ and the normal name is an alias. */
6985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6995 eval "ac_cv_func_$ac_func=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 eval "ac_cv_func_$ac_func=no"
7005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7008 cat >> confdefs.h <<EOF
7009 #define $ac_tr_func 1
7013 echo "$ac_t""no" 1>&6
7018 if test "$ac_cv_func_ctime_r" = no ; then
7019 ol_cv_func_ctime_r_nargs=0
7021 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
7022 echo "configure:7023: checking number of arguments of ctime_r" >&5
7023 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7031 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
7034 if { (eval echo configure:7035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036 ol_cv_func_ctime_r_nargs3=yes
7038 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5
7041 ol_cv_func_ctime_r_nargs3=no
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7050 time_t ti; char *buffer; ctime_r(&ti,buffer);
7053 if { (eval echo configure:7054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7055 ol_cv_func_ctime_r_nargs2=yes
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7060 ol_cv_func_ctime_r_nargs2=no
7064 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
7065 $ol_cv_func_ctime_r_nargs2 = no ; then
7067 ol_cv_func_ctime_r_nargs=3
7069 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
7070 $ol_cv_func_ctime_r_nargs2 = yes ; then
7072 ol_cv_func_ctime_r_nargs=2
7075 ol_cv_func_ctime_r_nargs=0
7080 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
7082 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7083 cat >> confdefs.h <<EOF
7084 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7091 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7092 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7093 echo "configure:7094: checking number of arguments of gethostbyname_r" >&5
7094 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7097 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 #include <sys/types.h>
7101 #include <sys/socket.h>
7102 #include <netinet/in.h>
7104 #define BUFSIZE (sizeof(struct hostent)+10)
7106 struct hostent hent; char buffer[BUFSIZE];
7107 int bufsize=BUFSIZE;int h_errno;
7108 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7109 buffer, bufsize, &h_errno);
7112 if { (eval echo configure:7113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7114 ol_cv_func_gethostbyname_r_nargs5=yes
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 ol_cv_func_gethostbyname_r_nargs5=no
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 #include <sys/types.h>
7127 #include <sys/socket.h>
7128 #include <netinet/in.h>
7130 #define BUFSIZE (sizeof(struct hostent)+10)
7132 struct hostent hent;struct hostent *rhent;
7133 char buffer[BUFSIZE];
7134 int bufsize=BUFSIZE;int h_errno;
7135 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7139 if { (eval echo configure:7140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7141 ol_cv_func_gethostbyname_r_nargs6=yes
7143 echo "configure: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 ol_cv_func_gethostbyname_r_nargs6=no
7150 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7151 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7153 ol_cv_func_gethostbyname_r_nargs=5
7155 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7156 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7158 ol_cv_func_gethostbyname_r_nargs=6
7161 ol_cv_func_gethostbyname_r_nargs=0
7166 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7167 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7168 cat >> confdefs.h <<EOF
7169 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7175 ol_cv_func_gethostbyname_r_nargs=0
7178 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7179 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7180 echo "configure:7181: checking number of arguments of gethostbyaddr_r" >&5
7181 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 #include <sys/types.h>
7188 #include <sys/socket.h>
7189 #include <netinet/in.h>
7191 #define BUFSIZE (sizeof(struct hostent)+10)
7193 struct hostent hent; char buffer[BUFSIZE];
7195 size_t alen=sizeof(struct in_addr);
7196 int bufsize=BUFSIZE;int h_errno;
7197 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7198 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7201 if { (eval echo configure:7202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 ol_cv_func_gethostbyaddr_r_nargs7=yes
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 ol_cv_func_gethostbyaddr_r_nargs7=no
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <sys/types.h>
7216 #include <sys/socket.h>
7217 #include <netinet/in.h>
7219 #define BUFSIZE (sizeof(struct hostent)+10)
7221 struct hostent hent;
7222 struct hostent *rhent; char buffer[BUFSIZE];
7224 size_t alen=sizeof(struct in_addr);
7225 int bufsize=BUFSIZE;int h_errno;
7226 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7227 alen, AF_INET, &hent, buffer, bufsize,
7231 if { (eval echo configure:7232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7233 ol_cv_func_gethostbyaddr_r_nargs8=yes
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 ol_cv_func_gethostbyaddr_r_nargs8=no
7242 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7243 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7245 ol_cv_func_gethostbyaddr_r_nargs=7
7247 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7248 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7250 ol_cv_func_gethostbyaddr_r_nargs=8
7253 ol_cv_func_gethostbyaddr_r_nargs=0
7258 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7259 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7260 cat >> confdefs.h <<EOF
7261 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7267 ol_cv_func_gethostbyaddr_r_nargs=0
7270 if test "$ac_cv_func_ctime_r" = yes \
7271 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7272 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7273 -a "$ac_cv_func_gethostbyname_r" = yes \
7274 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7275 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7276 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7277 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7278 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7281 cat >> confdefs.h <<\EOF
7282 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7289 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7290 -o $ol_with_threads = nt ; then
7293 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7294 echo "configure:7295: checking for _beginthread" >&5
7295 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7296 echo $ac_n "(cached) $ac_c" 1>&6
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* System header to define __stub macros and hopefully few prototypes,
7302 which can conflict with char _beginthread(); below. */
7304 /* Override any gcc2 internal prototype to avoid an error. */
7305 /* We use char because int might match the return type of a gcc2
7306 builtin and then its argument prototype would still apply. */
7307 char _beginthread();
7312 /* The GNU C library defines this for functions which it implements
7313 to always fail with ENOSYS. Some functions are actually named
7314 something starting with __ and the normal name is an alias. */
7315 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7325 eval "ac_cv_func__beginthread=yes"
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7330 eval "ac_cv_func__beginthread=no"
7335 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7339 echo "$ac_t""no" 1>&6
7343 if test $ac_cv_func__beginthread = yes ; then
7344 cat >> confdefs.h <<\EOF
7345 #define HAVE_NT_THREADS 1
7351 if test "$ol_cv_nt_threads" = yes ; then
7353 ol_with_threads=found
7354 ol_with_yielding_select=yes
7356 cat >> confdefs.h <<\EOF
7357 #define HAVE_NT_SERVICE_MANAGER 1
7360 cat >> confdefs.h <<\EOF
7361 #define HAVE_NT_EVENT_LOG 1
7366 if test $ol_with_threads = nt ; then
7367 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7371 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7372 -o $ol_with_threads = posix ; then
7374 for ac_hdr in pthread.h
7376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7378 echo "configure:7379: checking for $ac_hdr" >&5
7379 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7380 echo $ac_n "(cached) $ac_c" 1>&6
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7388 { (eval echo configure:7389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7390 if test -z "$ac_err"; then
7392 eval "ac_cv_header_$ac_safe=yes"
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7398 eval "ac_cv_header_$ac_safe=no"
7402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7405 cat >> confdefs.h <<EOF
7406 #define $ac_tr_hdr 1
7410 echo "$ac_t""no" 1>&6
7415 if test $ac_cv_header_pthread_h = yes ; then
7416 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7417 echo "configure:7418: checking POSIX thread version" >&5
7418 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7426 # include <pthread.h>
7427 /* this check could be improved */
7428 # ifdef PTHREAD_ONCE_INIT
7429 pthread_version_final;
7433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7434 egrep "pthread_version_final" >/dev/null 2>&1; then
7436 ol_pthread_final=yes
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7448 # include <pthread.h>
7449 /* this check could be improved */
7450 # ifdef pthread_once_init
7451 pthread_version_draft4;
7455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7456 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7458 ol_pthread_draft4=yes
7461 ol_pthread_draft4=no
7466 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7467 ol_cv_pthread_version=final
7468 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7469 ol_cv_pthread_version=draft4
7471 ol_cv_pthread_version=unknown
7476 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7479 if test $ol_cv_pthread_version = final ; then
7480 cat >> confdefs.h <<\EOF
7481 #define HAVE_PTHREADS_FINAL 1
7484 elif test $ol_cv_pthread_version = draft4 ; then
7485 cat >> confdefs.h <<\EOF
7486 #define HAVE_PTHREADS_D4 1
7490 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7493 # consider threads found
7494 ol_with_threads=found
7497 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7498 echo "configure:7499: checking for LinuxThreads pthread.h" >&5
7499 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 #include <pthread.h>
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7510 ol_cv_header_linux_threads=yes
7513 ol_cv_header_linux_threads=no
7520 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7521 if test $ol_cv_header_linux_threads = yes; then
7522 cat >> confdefs.h <<\EOF
7523 #define HAVE_LINUX_THREADS 1
7529 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7530 echo "configure:7531: checking for GNU Pth pthread.h" >&5
7531 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7534 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537 #include <pthread.h>
7538 #ifdef _POSIX_THREAD_IS_GNU_PTH
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544 egrep "__gnu_pth__" >/dev/null 2>&1; then
7546 ol_cv_header_gnu_pth_pthread_h=yes
7549 ol_cv_header_gnu_pth_pthread_h=no
7556 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7559 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7560 for ac_hdr in sched.h
7562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7564 echo "configure:7565: checking for $ac_hdr" >&5
7565 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7574 { (eval echo configure:7575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7576 if test -z "$ac_err"; then
7578 eval "ac_cv_header_$ac_safe=yes"
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 eval "ac_cv_header_$ac_safe=no"
7588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7589 echo "$ac_t""yes" 1>&6
7590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7591 cat >> confdefs.h <<EOF
7592 #define $ac_tr_hdr 1
7596 echo "$ac_t""no" 1>&6
7603 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7604 echo "configure:7605: checking for pthread_create in default libraries" >&5
7605 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7609 if test "$cross_compiling" = yes; then
7610 cat > conftest.$ac_ext <<EOF
7611 #line 7612 "configure"
7612 #include "confdefs.h"
7613 /* pthread test headers */
7614 #include <pthread.h>
7616 #define NULL (void*)0
7619 static void *task(p)
7622 return (void *) (p == NULL);
7627 /* pthread test function */
7632 #ifdef HAVE_PTHREADS_FINAL
7633 /* Final pthreads */
7634 pthread_attr_t attr;
7636 status = pthread_attr_init(&attr);
7637 if( status ) return status;
7639 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7641 #if defined( PTHREAD_CREATE_JOINABLE )
7642 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7644 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7647 #ifdef PTHREAD_CREATE_DETACHED
7649 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7652 if( status ) return status;
7655 status = pthread_create( &t, &attr, task, NULL );
7656 if( status ) return status;
7658 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7660 /* give thread a chance to complete */
7661 /* it should remain joinable and hence detachable */
7664 status = pthread_detach( t );
7665 if( status ) return status;
7670 /* Draft 4 pthreads */
7671 status = pthread_create( &t, pthread_attr_default, task, NULL );
7672 if( status ) return status;
7675 /* give thread a chance to complete */
7676 /* it should remain joinable and hence detachable */
7679 status = pthread_detach( &t );
7680 if( status ) return status;
7684 #ifdef HAVE_LINUX_THREADS
7685 pthread_kill_other_threads_np();
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694 ol_cv_pthread_create=yes
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7699 ol_cv_pthread_create=no
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 /* pthread test headers */
7707 #include <pthread.h>
7709 #define NULL (void*)0
7712 static void *task(p)
7715 return (void *) (p == NULL);
7719 int main(argc, argv)
7724 /* pthread test function */
7729 #ifdef HAVE_PTHREADS_FINAL
7730 /* Final pthreads */
7731 pthread_attr_t attr;
7733 status = pthread_attr_init(&attr);
7734 if( status ) return status;
7736 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7738 #if defined( PTHREAD_CREATE_JOINABLE )
7739 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7741 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7744 #ifdef PTHREAD_CREATE_DETACHED
7746 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7749 if( status ) return status;
7752 status = pthread_create( &t, &attr, task, NULL );
7753 if( status ) return status;
7755 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7757 /* give thread a chance to complete */
7758 /* it should remain joinable and hence detachable */
7761 status = pthread_detach( t );
7762 if( status ) return status;
7767 /* Draft 4 pthreads */
7768 status = pthread_create( &t, pthread_attr_default, task, NULL );
7769 if( status ) return status;
7772 /* give thread a chance to complete */
7773 /* it should remain joinable and hence detachable */
7776 status = pthread_detach( &t );
7777 if( status ) return status;
7781 #ifdef HAVE_LINUX_THREADS
7782 pthread_kill_other_threads_np();
7790 if { (eval echo configure:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7792 ol_cv_pthread_create=yes
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7797 ol_cv_pthread_create=no
7804 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7806 if test $ol_cv_pthread_create != no ; then
7807 ol_link_threads=posix
7811 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7812 if test "$ol_link_threads" = no ; then
7814 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7815 echo "configure:7816: checking for pthread link with -kthread" >&5
7816 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7822 LIBS="-kthread $LIBS"
7824 if test "$cross_compiling" = yes; then
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* pthread test headers */
7829 #include <pthread.h>
7831 #define NULL (void*)0
7834 static void *task(p)
7837 return (void *) (p == NULL);
7842 /* pthread test function */
7847 #ifdef HAVE_PTHREADS_FINAL
7848 /* Final pthreads */
7849 pthread_attr_t attr;
7851 status = pthread_attr_init(&attr);
7852 if( status ) return status;
7854 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7856 #if defined( PTHREAD_CREATE_JOINABLE )
7857 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7859 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7862 #ifdef PTHREAD_CREATE_DETACHED
7864 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7867 if( status ) return status;
7870 status = pthread_create( &t, &attr, task, NULL );
7871 if( status ) return status;
7873 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7875 /* give thread a chance to complete */
7876 /* it should remain joinable and hence detachable */
7879 status = pthread_detach( t );
7880 if( status ) return status;
7885 /* Draft 4 pthreads */
7886 status = pthread_create( &t, pthread_attr_default, task, NULL );
7887 if( status ) return status;
7890 /* give thread a chance to complete */
7891 /* it should remain joinable and hence detachable */
7894 status = pthread_detach( &t );
7895 if( status ) return status;
7899 #ifdef HAVE_LINUX_THREADS
7900 pthread_kill_other_threads_np();
7907 if { (eval echo configure:7908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909 ol_cv_pthread_kthread=yes
7911 echo "configure: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7914 ol_cv_pthread_kthread=no
7918 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7921 /* pthread test headers */
7922 #include <pthread.h>
7924 #define NULL (void*)0
7927 static void *task(p)
7930 return (void *) (p == NULL);
7934 int main(argc, argv)
7939 /* pthread test function */
7944 #ifdef HAVE_PTHREADS_FINAL
7945 /* Final pthreads */
7946 pthread_attr_t attr;
7948 status = pthread_attr_init(&attr);
7949 if( status ) return status;
7951 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7953 #if defined( PTHREAD_CREATE_JOINABLE )
7954 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7956 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7959 #ifdef PTHREAD_CREATE_DETACHED
7961 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7964 if( status ) return status;
7967 status = pthread_create( &t, &attr, task, NULL );
7968 if( status ) return status;
7970 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7972 /* give thread a chance to complete */
7973 /* it should remain joinable and hence detachable */
7976 status = pthread_detach( t );
7977 if( status ) return status;
7982 /* Draft 4 pthreads */
7983 status = pthread_create( &t, pthread_attr_default, task, NULL );
7984 if( status ) return status;
7987 /* give thread a chance to complete */
7988 /* it should remain joinable and hence detachable */
7991 status = pthread_detach( &t );
7992 if( status ) return status;
7996 #ifdef HAVE_LINUX_THREADS
7997 pthread_kill_other_threads_np();
8005 if { (eval echo configure:8006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8007 ol_cv_pthread_kthread=yes
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8012 ol_cv_pthread_kthread=no
8023 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
8025 if test $ol_cv_pthread_kthread = yes ; then
8026 ol_link_pthreads="-kthread"
8027 ol_link_threads=posix
8031 # Pthread try link: -pthread (ol_cv_pthread_pthread)
8032 if test "$ol_link_threads" = no ; then
8034 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
8035 echo "configure:8036: checking for pthread link with -pthread" >&5
8036 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8042 LIBS="-pthread $LIBS"
8044 if test "$cross_compiling" = yes; then
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8048 /* pthread test headers */
8049 #include <pthread.h>
8051 #define NULL (void*)0
8054 static void *task(p)
8057 return (void *) (p == NULL);
8062 /* pthread test function */
8067 #ifdef HAVE_PTHREADS_FINAL
8068 /* Final pthreads */
8069 pthread_attr_t attr;
8071 status = pthread_attr_init(&attr);
8072 if( status ) return status;
8074 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8076 #if defined( PTHREAD_CREATE_JOINABLE )
8077 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8079 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8082 #ifdef PTHREAD_CREATE_DETACHED
8084 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8087 if( status ) return status;
8090 status = pthread_create( &t, &attr, task, NULL );
8091 if( status ) return status;
8093 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8095 /* give thread a chance to complete */
8096 /* it should remain joinable and hence detachable */
8099 status = pthread_detach( t );
8100 if( status ) return status;
8105 /* Draft 4 pthreads */
8106 status = pthread_create( &t, pthread_attr_default, task, NULL );
8107 if( status ) return status;
8110 /* give thread a chance to complete */
8111 /* it should remain joinable and hence detachable */
8114 status = pthread_detach( &t );
8115 if( status ) return status;
8119 #ifdef HAVE_LINUX_THREADS
8120 pthread_kill_other_threads_np();
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8129 ol_cv_pthread_pthread=yes
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 ol_cv_pthread_pthread=no
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* pthread test headers */
8142 #include <pthread.h>
8144 #define NULL (void*)0
8147 static void *task(p)
8150 return (void *) (p == NULL);
8154 int main(argc, argv)
8159 /* pthread test function */
8164 #ifdef HAVE_PTHREADS_FINAL
8165 /* Final pthreads */
8166 pthread_attr_t attr;
8168 status = pthread_attr_init(&attr);
8169 if( status ) return status;
8171 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8173 #if defined( PTHREAD_CREATE_JOINABLE )
8174 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8176 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8179 #ifdef PTHREAD_CREATE_DETACHED
8181 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8184 if( status ) return status;
8187 status = pthread_create( &t, &attr, task, NULL );
8188 if( status ) return status;
8190 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8192 /* give thread a chance to complete */
8193 /* it should remain joinable and hence detachable */
8196 status = pthread_detach( t );
8197 if( status ) return status;
8202 /* Draft 4 pthreads */
8203 status = pthread_create( &t, pthread_attr_default, task, NULL );
8204 if( status ) return status;
8207 /* give thread a chance to complete */
8208 /* it should remain joinable and hence detachable */
8211 status = pthread_detach( &t );
8212 if( status ) return status;
8216 #ifdef HAVE_LINUX_THREADS
8217 pthread_kill_other_threads_np();
8225 if { (eval echo configure:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8227 ol_cv_pthread_pthread=yes
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8232 ol_cv_pthread_pthread=no
8243 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8245 if test $ol_cv_pthread_pthread = yes ; then
8246 ol_link_pthreads="-pthread"
8247 ol_link_threads=posix
8251 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8252 if test "$ol_link_threads" = no ; then
8254 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8255 echo "configure:8256: checking for pthread link with -pthreads" >&5
8256 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8257 echo $ac_n "(cached) $ac_c" 1>&6
8262 LIBS="-pthreads $LIBS"
8264 if test "$cross_compiling" = yes; then
8265 cat > conftest.$ac_ext <<EOF
8266 #line 8267 "configure"
8267 #include "confdefs.h"
8268 /* pthread test headers */
8269 #include <pthread.h>
8271 #define NULL (void*)0
8274 static void *task(p)
8277 return (void *) (p == NULL);
8282 /* pthread test function */
8287 #ifdef HAVE_PTHREADS_FINAL
8288 /* Final pthreads */
8289 pthread_attr_t attr;
8291 status = pthread_attr_init(&attr);
8292 if( status ) return status;
8294 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8296 #if defined( PTHREAD_CREATE_JOINABLE )
8297 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8299 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8302 #ifdef PTHREAD_CREATE_DETACHED
8304 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8307 if( status ) return status;
8310 status = pthread_create( &t, &attr, task, NULL );
8311 if( status ) return status;
8313 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8315 /* give thread a chance to complete */
8316 /* it should remain joinable and hence detachable */
8319 status = pthread_detach( t );
8320 if( status ) return status;
8325 /* Draft 4 pthreads */
8326 status = pthread_create( &t, pthread_attr_default, task, NULL );
8327 if( status ) return status;
8330 /* give thread a chance to complete */
8331 /* it should remain joinable and hence detachable */
8334 status = pthread_detach( &t );
8335 if( status ) return status;
8339 #ifdef HAVE_LINUX_THREADS
8340 pthread_kill_other_threads_np();
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8349 ol_cv_pthread_pthreads=yes
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 ol_cv_pthread_pthreads=no
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* pthread test headers */
8362 #include <pthread.h>
8364 #define NULL (void*)0
8367 static void *task(p)
8370 return (void *) (p == NULL);
8374 int main(argc, argv)
8379 /* pthread test function */
8384 #ifdef HAVE_PTHREADS_FINAL
8385 /* Final pthreads */
8386 pthread_attr_t attr;
8388 status = pthread_attr_init(&attr);
8389 if( status ) return status;
8391 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8393 #if defined( PTHREAD_CREATE_JOINABLE )
8394 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8396 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8399 #ifdef PTHREAD_CREATE_DETACHED
8401 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8404 if( status ) return status;
8407 status = pthread_create( &t, &attr, task, NULL );
8408 if( status ) return status;
8410 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8412 /* give thread a chance to complete */
8413 /* it should remain joinable and hence detachable */
8416 status = pthread_detach( t );
8417 if( status ) return status;
8422 /* Draft 4 pthreads */
8423 status = pthread_create( &t, pthread_attr_default, task, NULL );
8424 if( status ) return status;
8427 /* give thread a chance to complete */
8428 /* it should remain joinable and hence detachable */
8431 status = pthread_detach( &t );
8432 if( status ) return status;
8436 #ifdef HAVE_LINUX_THREADS
8437 pthread_kill_other_threads_np();
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8447 ol_cv_pthread_pthreads=yes
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 ol_cv_pthread_pthreads=no
8463 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8465 if test $ol_cv_pthread_pthreads = yes ; then
8466 ol_link_pthreads="-pthreads"
8467 ol_link_threads=posix
8471 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8472 if test "$ol_link_threads" = no ; then
8474 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8475 echo "configure:8476: checking for pthread link with -mthreads" >&5
8476 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8482 LIBS="-mthreads $LIBS"
8484 if test "$cross_compiling" = yes; then
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 /* pthread test headers */
8489 #include <pthread.h>
8491 #define NULL (void*)0
8494 static void *task(p)
8497 return (void *) (p == NULL);
8502 /* pthread test function */
8507 #ifdef HAVE_PTHREADS_FINAL
8508 /* Final pthreads */
8509 pthread_attr_t attr;
8511 status = pthread_attr_init(&attr);
8512 if( status ) return status;
8514 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8516 #if defined( PTHREAD_CREATE_JOINABLE )
8517 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8519 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8522 #ifdef PTHREAD_CREATE_DETACHED
8524 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8527 if( status ) return status;
8530 status = pthread_create( &t, &attr, task, NULL );
8531 if( status ) return status;
8533 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8535 /* give thread a chance to complete */
8536 /* it should remain joinable and hence detachable */
8539 status = pthread_detach( t );
8540 if( status ) return status;
8545 /* Draft 4 pthreads */
8546 status = pthread_create( &t, pthread_attr_default, task, NULL );
8547 if( status ) return status;
8550 /* give thread a chance to complete */
8551 /* it should remain joinable and hence detachable */
8554 status = pthread_detach( &t );
8555 if( status ) return status;
8559 #ifdef HAVE_LINUX_THREADS
8560 pthread_kill_other_threads_np();
8567 if { (eval echo configure:8568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 ol_cv_pthread_mthreads=yes
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 ol_cv_pthread_mthreads=no
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8581 /* pthread test headers */
8582 #include <pthread.h>
8584 #define NULL (void*)0
8587 static void *task(p)
8590 return (void *) (p == NULL);
8594 int main(argc, argv)
8599 /* pthread test function */
8604 #ifdef HAVE_PTHREADS_FINAL
8605 /* Final pthreads */
8606 pthread_attr_t attr;
8608 status = pthread_attr_init(&attr);
8609 if( status ) return status;
8611 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8613 #if defined( PTHREAD_CREATE_JOINABLE )
8614 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8616 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8619 #ifdef PTHREAD_CREATE_DETACHED
8621 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8624 if( status ) return status;
8627 status = pthread_create( &t, &attr, task, NULL );
8628 if( status ) return status;
8630 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8632 /* give thread a chance to complete */
8633 /* it should remain joinable and hence detachable */
8636 status = pthread_detach( t );
8637 if( status ) return status;
8642 /* Draft 4 pthreads */
8643 status = pthread_create( &t, pthread_attr_default, task, NULL );
8644 if( status ) return status;
8647 /* give thread a chance to complete */
8648 /* it should remain joinable and hence detachable */
8651 status = pthread_detach( &t );
8652 if( status ) return status;
8656 #ifdef HAVE_LINUX_THREADS
8657 pthread_kill_other_threads_np();
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8667 ol_cv_pthread_mthreads=yes
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 ol_cv_pthread_mthreads=no
8683 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8685 if test $ol_cv_pthread_mthreads = yes ; then
8686 ol_link_pthreads="-mthreads"
8687 ol_link_threads=posix
8691 # Pthread try link: -thread (ol_cv_pthread_thread)
8692 if test "$ol_link_threads" = no ; then
8694 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8695 echo "configure:8696: checking for pthread link with -thread" >&5
8696 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8702 LIBS="-thread $LIBS"
8704 if test "$cross_compiling" = yes; then
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 /* pthread test headers */
8709 #include <pthread.h>
8711 #define NULL (void*)0
8714 static void *task(p)
8717 return (void *) (p == NULL);
8722 /* pthread test function */
8727 #ifdef HAVE_PTHREADS_FINAL
8728 /* Final pthreads */
8729 pthread_attr_t attr;
8731 status = pthread_attr_init(&attr);
8732 if( status ) return status;
8734 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8736 #if defined( PTHREAD_CREATE_JOINABLE )
8737 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8739 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8742 #ifdef PTHREAD_CREATE_DETACHED
8744 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8747 if( status ) return status;
8750 status = pthread_create( &t, &attr, task, NULL );
8751 if( status ) return status;
8753 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8755 /* give thread a chance to complete */
8756 /* it should remain joinable and hence detachable */
8759 status = pthread_detach( t );
8760 if( status ) return status;
8765 /* Draft 4 pthreads */
8766 status = pthread_create( &t, pthread_attr_default, task, NULL );
8767 if( status ) return status;
8770 /* give thread a chance to complete */
8771 /* it should remain joinable and hence detachable */
8774 status = pthread_detach( &t );
8775 if( status ) return status;
8779 #ifdef HAVE_LINUX_THREADS
8780 pthread_kill_other_threads_np();
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8789 ol_cv_pthread_thread=yes
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 ol_cv_pthread_thread=no
8798 cat > conftest.$ac_ext <<EOF
8799 #line 8800 "configure"
8800 #include "confdefs.h"
8801 /* pthread test headers */
8802 #include <pthread.h>
8804 #define NULL (void*)0
8807 static void *task(p)
8810 return (void *) (p == NULL);
8814 int main(argc, argv)
8819 /* pthread test function */
8824 #ifdef HAVE_PTHREADS_FINAL
8825 /* Final pthreads */
8826 pthread_attr_t attr;
8828 status = pthread_attr_init(&attr);
8829 if( status ) return status;
8831 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8833 #if defined( PTHREAD_CREATE_JOINABLE )
8834 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8836 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8839 #ifdef PTHREAD_CREATE_DETACHED
8841 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8844 if( status ) return status;
8847 status = pthread_create( &t, &attr, task, NULL );
8848 if( status ) return status;
8850 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8852 /* give thread a chance to complete */
8853 /* it should remain joinable and hence detachable */
8856 status = pthread_detach( t );
8857 if( status ) return status;
8862 /* Draft 4 pthreads */
8863 status = pthread_create( &t, pthread_attr_default, task, NULL );
8864 if( status ) return status;
8867 /* give thread a chance to complete */
8868 /* it should remain joinable and hence detachable */
8871 status = pthread_detach( &t );
8872 if( status ) return status;
8876 #ifdef HAVE_LINUX_THREADS
8877 pthread_kill_other_threads_np();
8885 if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8887 ol_cv_pthread_thread=yes
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8892 ol_cv_pthread_thread=no
8903 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8905 if test $ol_cv_pthread_thread = yes ; then
8906 ol_link_pthreads="-thread"
8907 ol_link_threads=posix
8912 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8913 if test "$ol_link_threads" = no ; then
8914 # try -lpthread -lmach -lexc -lc_r
8915 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8916 echo "configure:8917: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8917 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8923 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8925 if test "$cross_compiling" = yes; then
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8929 /* pthread test headers */
8930 #include <pthread.h>
8932 #define NULL (void*)0
8935 static void *task(p)
8938 return (void *) (p == NULL);
8943 /* pthread test function */
8948 #ifdef HAVE_PTHREADS_FINAL
8949 /* Final pthreads */
8950 pthread_attr_t attr;
8952 status = pthread_attr_init(&attr);
8953 if( status ) return status;
8955 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8957 #if defined( PTHREAD_CREATE_JOINABLE )
8958 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8960 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8963 #ifdef PTHREAD_CREATE_DETACHED
8965 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8968 if( status ) return status;
8971 status = pthread_create( &t, &attr, task, NULL );
8972 if( status ) return status;
8974 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8976 /* give thread a chance to complete */
8977 /* it should remain joinable and hence detachable */
8980 status = pthread_detach( t );
8981 if( status ) return status;
8986 /* Draft 4 pthreads */
8987 status = pthread_create( &t, pthread_attr_default, task, NULL );
8988 if( status ) return status;
8991 /* give thread a chance to complete */
8992 /* it should remain joinable and hence detachable */
8995 status = pthread_detach( &t );
8996 if( status ) return status;
9000 #ifdef HAVE_LINUX_THREADS
9001 pthread_kill_other_threads_np();
9008 if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9010 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9012 echo "configure: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9015 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9022 /* pthread test headers */
9023 #include <pthread.h>
9025 #define NULL (void*)0
9028 static void *task(p)
9031 return (void *) (p == NULL);
9035 int main(argc, argv)
9040 /* pthread test function */
9045 #ifdef HAVE_PTHREADS_FINAL
9046 /* Final pthreads */
9047 pthread_attr_t attr;
9049 status = pthread_attr_init(&attr);
9050 if( status ) return status;
9052 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9054 #if defined( PTHREAD_CREATE_JOINABLE )
9055 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9057 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9060 #ifdef PTHREAD_CREATE_DETACHED
9062 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9065 if( status ) return status;
9068 status = pthread_create( &t, &attr, task, NULL );
9069 if( status ) return status;
9071 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9073 /* give thread a chance to complete */
9074 /* it should remain joinable and hence detachable */
9077 status = pthread_detach( t );
9078 if( status ) return status;
9083 /* Draft 4 pthreads */
9084 status = pthread_create( &t, pthread_attr_default, task, NULL );
9085 if( status ) return status;
9088 /* give thread a chance to complete */
9089 /* it should remain joinable and hence detachable */
9092 status = pthread_detach( &t );
9093 if( status ) return status;
9097 #ifdef HAVE_LINUX_THREADS
9098 pthread_kill_other_threads_np();
9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9108 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
9124 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
9126 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
9127 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
9128 ol_link_threads=posix
9132 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
9133 if test "$ol_link_threads" = no ; then
9134 # try -lpthread -lmach -lexc
9135 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
9136 echo "configure:9137: checking for pthread link with -lpthread -lmach -lexc" >&5
9137 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9143 LIBS="-lpthread -lmach -lexc $LIBS"
9145 if test "$cross_compiling" = yes; then
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9149 /* pthread test headers */
9150 #include <pthread.h>
9152 #define NULL (void*)0
9155 static void *task(p)
9158 return (void *) (p == NULL);
9163 /* pthread test function */
9168 #ifdef HAVE_PTHREADS_FINAL
9169 /* Final pthreads */
9170 pthread_attr_t attr;
9172 status = pthread_attr_init(&attr);
9173 if( status ) return status;
9175 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9177 #if defined( PTHREAD_CREATE_JOINABLE )
9178 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9180 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9183 #ifdef PTHREAD_CREATE_DETACHED
9185 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9188 if( status ) return status;
9191 status = pthread_create( &t, &attr, task, NULL );
9192 if( status ) return status;
9194 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9196 /* give thread a chance to complete */
9197 /* it should remain joinable and hence detachable */
9200 status = pthread_detach( t );
9201 if( status ) return status;
9206 /* Draft 4 pthreads */
9207 status = pthread_create( &t, pthread_attr_default, task, NULL );
9208 if( status ) return status;
9211 /* give thread a chance to complete */
9212 /* it should remain joinable and hence detachable */
9215 status = pthread_detach( &t );
9216 if( status ) return status;
9220 #ifdef HAVE_LINUX_THREADS
9221 pthread_kill_other_threads_np();
9228 if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230 ol_cv_pthread_lpthread_lmach_lexc=yes
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9235 ol_cv_pthread_lpthread_lmach_lexc=no
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9242 /* pthread test headers */
9243 #include <pthread.h>
9245 #define NULL (void*)0
9248 static void *task(p)
9251 return (void *) (p == NULL);
9255 int main(argc, argv)
9260 /* pthread test function */
9265 #ifdef HAVE_PTHREADS_FINAL
9266 /* Final pthreads */
9267 pthread_attr_t attr;
9269 status = pthread_attr_init(&attr);
9270 if( status ) return status;
9272 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9274 #if defined( PTHREAD_CREATE_JOINABLE )
9275 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9277 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9280 #ifdef PTHREAD_CREATE_DETACHED
9282 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9285 if( status ) return status;
9288 status = pthread_create( &t, &attr, task, NULL );
9289 if( status ) return status;
9291 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9293 /* give thread a chance to complete */
9294 /* it should remain joinable and hence detachable */
9297 status = pthread_detach( t );
9298 if( status ) return status;
9303 /* Draft 4 pthreads */
9304 status = pthread_create( &t, pthread_attr_default, task, NULL );
9305 if( status ) return status;
9308 /* give thread a chance to complete */
9309 /* it should remain joinable and hence detachable */
9312 status = pthread_detach( &t );
9313 if( status ) return status;
9317 #ifdef HAVE_LINUX_THREADS
9318 pthread_kill_other_threads_np();
9326 if { (eval echo configure:9327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9328 ol_cv_pthread_lpthread_lmach_lexc=yes
9330 echo "configure: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9333 ol_cv_pthread_lpthread_lmach_lexc=no
9344 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9346 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9347 ol_link_pthreads="-lpthread -lmach -lexc"
9348 ol_link_threads=posix
9353 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9354 if test "$ol_link_threads" = no ; then
9355 # try -lpthread -Wl,-woff,85
9356 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9357 echo "configure:9358: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9358 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9364 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9366 if test "$cross_compiling" = yes; then
9367 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370 /* pthread test headers */
9371 #include <pthread.h>
9373 #define NULL (void*)0
9376 static void *task(p)
9379 return (void *) (p == NULL);
9384 /* pthread test function */
9389 #ifdef HAVE_PTHREADS_FINAL
9390 /* Final pthreads */
9391 pthread_attr_t attr;
9393 status = pthread_attr_init(&attr);
9394 if( status ) return status;
9396 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9398 #if defined( PTHREAD_CREATE_JOINABLE )
9399 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9401 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9404 #ifdef PTHREAD_CREATE_DETACHED
9406 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9409 if( status ) return status;
9412 status = pthread_create( &t, &attr, task, NULL );
9413 if( status ) return status;
9415 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9417 /* give thread a chance to complete */
9418 /* it should remain joinable and hence detachable */
9421 status = pthread_detach( t );
9422 if( status ) return status;
9427 /* Draft 4 pthreads */
9428 status = pthread_create( &t, pthread_attr_default, task, NULL );
9429 if( status ) return status;
9432 /* give thread a chance to complete */
9433 /* it should remain joinable and hence detachable */
9436 status = pthread_detach( &t );
9437 if( status ) return status;
9441 #ifdef HAVE_LINUX_THREADS
9442 pthread_kill_other_threads_np();
9449 if { (eval echo configure:9450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9451 ol_cv_pthread_lib_lpthread_woff=yes
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9456 ol_cv_pthread_lib_lpthread_woff=no
9460 cat > conftest.$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 /* pthread test headers */
9464 #include <pthread.h>
9466 #define NULL (void*)0
9469 static void *task(p)
9472 return (void *) (p == NULL);
9476 int main(argc, argv)
9481 /* pthread test function */
9486 #ifdef HAVE_PTHREADS_FINAL
9487 /* Final pthreads */
9488 pthread_attr_t attr;
9490 status = pthread_attr_init(&attr);
9491 if( status ) return status;
9493 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9495 #if defined( PTHREAD_CREATE_JOINABLE )
9496 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9498 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9501 #ifdef PTHREAD_CREATE_DETACHED
9503 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9506 if( status ) return status;
9509 status = pthread_create( &t, &attr, task, NULL );
9510 if( status ) return status;
9512 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9514 /* give thread a chance to complete */
9515 /* it should remain joinable and hence detachable */
9518 status = pthread_detach( t );
9519 if( status ) return status;
9524 /* Draft 4 pthreads */
9525 status = pthread_create( &t, pthread_attr_default, task, NULL );
9526 if( status ) return status;
9529 /* give thread a chance to complete */
9530 /* it should remain joinable and hence detachable */
9533 status = pthread_detach( &t );
9534 if( status ) return status;
9538 #ifdef HAVE_LINUX_THREADS
9539 pthread_kill_other_threads_np();
9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9549 ol_cv_pthread_lib_lpthread_woff=yes
9551 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9554 ol_cv_pthread_lib_lpthread_woff=no
9565 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9567 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9568 ol_link_pthreads="-lpthread -Wl,-woff,85"
9569 ol_link_threads=posix
9574 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9575 if test "$ol_link_threads" = no ; then
9577 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9578 echo "configure:9579: checking for pthread link with -lpthread" >&5
9579 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9580 echo $ac_n "(cached) $ac_c" 1>&6
9585 LIBS="-lpthread $LIBS"
9587 if test "$cross_compiling" = yes; then
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9591 /* pthread test headers */
9592 #include <pthread.h>
9594 #define NULL (void*)0
9597 static void *task(p)
9600 return (void *) (p == NULL);
9605 /* pthread test function */
9610 #ifdef HAVE_PTHREADS_FINAL
9611 /* Final pthreads */
9612 pthread_attr_t attr;
9614 status = pthread_attr_init(&attr);
9615 if( status ) return status;
9617 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9619 #if defined( PTHREAD_CREATE_JOINABLE )
9620 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9622 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9625 #ifdef PTHREAD_CREATE_DETACHED
9627 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9630 if( status ) return status;
9633 status = pthread_create( &t, &attr, task, NULL );
9634 if( status ) return status;
9636 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9638 /* give thread a chance to complete */
9639 /* it should remain joinable and hence detachable */
9642 status = pthread_detach( t );
9643 if( status ) return status;
9648 /* Draft 4 pthreads */
9649 status = pthread_create( &t, pthread_attr_default, task, NULL );
9650 if( status ) return status;
9653 /* give thread a chance to complete */
9654 /* it should remain joinable and hence detachable */
9657 status = pthread_detach( &t );
9658 if( status ) return status;
9662 #ifdef HAVE_LINUX_THREADS
9663 pthread_kill_other_threads_np();
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 ol_cv_pthread_lpthread=yes
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9677 ol_cv_pthread_lpthread=no
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684 /* pthread test headers */
9685 #include <pthread.h>
9687 #define NULL (void*)0
9690 static void *task(p)
9693 return (void *) (p == NULL);
9697 int main(argc, argv)
9702 /* pthread test function */
9707 #ifdef HAVE_PTHREADS_FINAL
9708 /* Final pthreads */
9709 pthread_attr_t attr;
9711 status = pthread_attr_init(&attr);
9712 if( status ) return status;
9714 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9716 #if defined( PTHREAD_CREATE_JOINABLE )
9717 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9719 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9722 #ifdef PTHREAD_CREATE_DETACHED
9724 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9727 if( status ) return status;
9730 status = pthread_create( &t, &attr, task, NULL );
9731 if( status ) return status;
9733 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9735 /* give thread a chance to complete */
9736 /* it should remain joinable and hence detachable */
9739 status = pthread_detach( t );
9740 if( status ) return status;
9745 /* Draft 4 pthreads */
9746 status = pthread_create( &t, pthread_attr_default, task, NULL );
9747 if( status ) return status;
9750 /* give thread a chance to complete */
9751 /* it should remain joinable and hence detachable */
9754 status = pthread_detach( &t );
9755 if( status ) return status;
9759 #ifdef HAVE_LINUX_THREADS
9760 pthread_kill_other_threads_np();
9768 if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9770 ol_cv_pthread_lpthread=yes
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9775 ol_cv_pthread_lpthread=no
9786 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9788 if test $ol_cv_pthread_lpthread = yes ; then
9789 ol_link_pthreads="-lpthread"
9790 ol_link_threads=posix
9794 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9795 if test "$ol_link_threads" = no ; then
9797 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9798 echo "configure:9799: checking for pthread link with -lc_r" >&5
9799 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9807 if test "$cross_compiling" = yes; then
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 /* pthread test headers */
9812 #include <pthread.h>
9814 #define NULL (void*)0
9817 static void *task(p)
9820 return (void *) (p == NULL);
9825 /* pthread test function */
9830 #ifdef HAVE_PTHREADS_FINAL
9831 /* Final pthreads */
9832 pthread_attr_t attr;
9834 status = pthread_attr_init(&attr);
9835 if( status ) return status;
9837 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9839 #if defined( PTHREAD_CREATE_JOINABLE )
9840 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9842 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9845 #ifdef PTHREAD_CREATE_DETACHED
9847 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9850 if( status ) return status;
9853 status = pthread_create( &t, &attr, task, NULL );
9854 if( status ) return status;
9856 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9858 /* give thread a chance to complete */
9859 /* it should remain joinable and hence detachable */
9862 status = pthread_detach( t );
9863 if( status ) return status;
9868 /* Draft 4 pthreads */
9869 status = pthread_create( &t, pthread_attr_default, task, NULL );
9870 if( status ) return status;
9873 /* give thread a chance to complete */
9874 /* it should remain joinable and hence detachable */
9877 status = pthread_detach( &t );
9878 if( status ) return status;
9882 #ifdef HAVE_LINUX_THREADS
9883 pthread_kill_other_threads_np();
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9892 ol_cv_pthread_lc_r=yes
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 ol_cv_pthread_lc_r=no
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9904 /* pthread test headers */
9905 #include <pthread.h>
9907 #define NULL (void*)0
9910 static void *task(p)
9913 return (void *) (p == NULL);
9917 int main(argc, argv)
9922 /* pthread test function */
9927 #ifdef HAVE_PTHREADS_FINAL
9928 /* Final pthreads */
9929 pthread_attr_t attr;
9931 status = pthread_attr_init(&attr);
9932 if( status ) return status;
9934 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9936 #if defined( PTHREAD_CREATE_JOINABLE )
9937 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9939 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9942 #ifdef PTHREAD_CREATE_DETACHED
9944 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9947 if( status ) return status;
9950 status = pthread_create( &t, &attr, task, NULL );
9951 if( status ) return status;
9953 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9955 /* give thread a chance to complete */
9956 /* it should remain joinable and hence detachable */
9959 status = pthread_detach( t );
9960 if( status ) return status;
9965 /* Draft 4 pthreads */
9966 status = pthread_create( &t, pthread_attr_default, task, NULL );
9967 if( status ) return status;
9970 /* give thread a chance to complete */
9971 /* it should remain joinable and hence detachable */
9974 status = pthread_detach( &t );
9975 if( status ) return status;
9979 #ifdef HAVE_LINUX_THREADS
9980 pthread_kill_other_threads_np();
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9990 ol_cv_pthread_lc_r=yes
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9995 ol_cv_pthread_lc_r=no
10006 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
10008 if test $ol_cv_pthread_lc_r = yes ; then
10009 ol_link_pthreads="-lc_r"
10010 ol_link_threads=posix
10015 # Pthread try link: -threads (ol_cv_pthread_threads)
10016 if test "$ol_link_threads" = no ; then
10018 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
10019 echo "configure:10020: checking for pthread link with -threads" >&5
10020 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
10021 echo $ac_n "(cached) $ac_c" 1>&6
10026 LIBS="-threads $LIBS"
10028 if test "$cross_compiling" = yes; then
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 /* pthread test headers */
10033 #include <pthread.h>
10035 #define NULL (void*)0
10038 static void *task(p)
10041 return (void *) (p == NULL);
10046 /* pthread test function */
10051 #ifdef HAVE_PTHREADS_FINAL
10052 /* Final pthreads */
10053 pthread_attr_t attr;
10055 status = pthread_attr_init(&attr);
10056 if( status ) return status;
10058 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10060 #if defined( PTHREAD_CREATE_JOINABLE )
10061 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10063 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10066 #ifdef PTHREAD_CREATE_DETACHED
10068 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10071 if( status ) return status;
10074 status = pthread_create( &t, &attr, task, NULL );
10075 if( status ) return status;
10077 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10079 /* give thread a chance to complete */
10080 /* it should remain joinable and hence detachable */
10083 status = pthread_detach( t );
10084 if( status ) return status;
10089 /* Draft 4 pthreads */
10090 status = pthread_create( &t, pthread_attr_default, task, NULL );
10091 if( status ) return status;
10094 /* give thread a chance to complete */
10095 /* it should remain joinable and hence detachable */
10098 status = pthread_detach( &t );
10099 if( status ) return status;
10103 #ifdef HAVE_LINUX_THREADS
10104 pthread_kill_other_threads_np();
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 ol_cv_pthread_threads=yes
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 ol_cv_pthread_threads=no
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 /* pthread test headers */
10126 #include <pthread.h>
10128 #define NULL (void*)0
10131 static void *task(p)
10134 return (void *) (p == NULL);
10138 int main(argc, argv)
10143 /* pthread test function */
10148 #ifdef HAVE_PTHREADS_FINAL
10149 /* Final pthreads */
10150 pthread_attr_t attr;
10152 status = pthread_attr_init(&attr);
10153 if( status ) return status;
10155 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10157 #if defined( PTHREAD_CREATE_JOINABLE )
10158 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10160 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10163 #ifdef PTHREAD_CREATE_DETACHED
10165 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10168 if( status ) return status;
10171 status = pthread_create( &t, &attr, task, NULL );
10172 if( status ) return status;
10174 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10176 /* give thread a chance to complete */
10177 /* it should remain joinable and hence detachable */
10180 status = pthread_detach( t );
10181 if( status ) return status;
10186 /* Draft 4 pthreads */
10187 status = pthread_create( &t, pthread_attr_default, task, NULL );
10188 if( status ) return status;
10191 /* give thread a chance to complete */
10192 /* it should remain joinable and hence detachable */
10195 status = pthread_detach( &t );
10196 if( status ) return status;
10200 #ifdef HAVE_LINUX_THREADS
10201 pthread_kill_other_threads_np();
10209 if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10211 ol_cv_pthread_threads=yes
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10216 ol_cv_pthread_threads=no
10227 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
10229 if test $ol_cv_pthread_threads = yes ; then
10230 ol_link_pthreads="-threads"
10231 ol_link_threads=posix
10236 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
10237 if test "$ol_link_threads" = no ; then
10238 # try -lpthreads -lmach -lexc -lc_r
10239 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
10240 echo "configure:10241: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
10241 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10247 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
10249 if test "$cross_compiling" = yes; then
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 /* pthread test headers */
10254 #include <pthread.h>
10256 #define NULL (void*)0
10259 static void *task(p)
10262 return (void *) (p == NULL);
10267 /* pthread test function */
10272 #ifdef HAVE_PTHREADS_FINAL
10273 /* Final pthreads */
10274 pthread_attr_t attr;
10276 status = pthread_attr_init(&attr);
10277 if( status ) return status;
10279 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10281 #if defined( PTHREAD_CREATE_JOINABLE )
10282 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10284 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10287 #ifdef PTHREAD_CREATE_DETACHED
10289 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10292 if( status ) return status;
10295 status = pthread_create( &t, &attr, task, NULL );
10296 if( status ) return status;
10298 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10300 /* give thread a chance to complete */
10301 /* it should remain joinable and hence detachable */
10304 status = pthread_detach( t );
10305 if( status ) return status;
10310 /* Draft 4 pthreads */
10311 status = pthread_create( &t, pthread_attr_default, task, NULL );
10312 if( status ) return status;
10315 /* give thread a chance to complete */
10316 /* it should remain joinable and hence detachable */
10319 status = pthread_detach( &t );
10320 if( status ) return status;
10324 #ifdef HAVE_LINUX_THREADS
10325 pthread_kill_other_threads_np();
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10336 echo "configure: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10339 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 /* pthread test headers */
10347 #include <pthread.h>
10349 #define NULL (void*)0
10352 static void *task(p)
10355 return (void *) (p == NULL);
10359 int main(argc, argv)
10364 /* pthread test function */
10369 #ifdef HAVE_PTHREADS_FINAL
10370 /* Final pthreads */
10371 pthread_attr_t attr;
10373 status = pthread_attr_init(&attr);
10374 if( status ) return status;
10376 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10378 #if defined( PTHREAD_CREATE_JOINABLE )
10379 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10381 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10384 #ifdef PTHREAD_CREATE_DETACHED
10386 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10389 if( status ) return status;
10392 status = pthread_create( &t, &attr, task, NULL );
10393 if( status ) return status;
10395 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10397 /* give thread a chance to complete */
10398 /* it should remain joinable and hence detachable */
10401 status = pthread_detach( t );
10402 if( status ) return status;
10407 /* Draft 4 pthreads */
10408 status = pthread_create( &t, pthread_attr_default, task, NULL );
10409 if( status ) return status;
10412 /* give thread a chance to complete */
10413 /* it should remain joinable and hence detachable */
10416 status = pthread_detach( &t );
10417 if( status ) return status;
10421 #ifdef HAVE_LINUX_THREADS
10422 pthread_kill_other_threads_np();
10430 if { (eval echo configure:10431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10432 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10437 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10448 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10450 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10451 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10452 ol_link_threads=posix
10456 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10457 if test "$ol_link_threads" = no ; then
10458 # try -lpthreads -lmach -lexc
10459 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10460 echo "configure:10461: checking for pthread link with -lpthreads -lmach -lexc" >&5
10461 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10467 LIBS="-lpthreads -lmach -lexc $LIBS"
10469 if test "$cross_compiling" = yes; then
10470 cat > conftest.$ac_ext <<EOF
10471 #line 10472 "configure"
10472 #include "confdefs.h"
10473 /* pthread test headers */
10474 #include <pthread.h>
10476 #define NULL (void*)0
10479 static void *task(p)
10482 return (void *) (p == NULL);
10487 /* pthread test function */
10492 #ifdef HAVE_PTHREADS_FINAL
10493 /* Final pthreads */
10494 pthread_attr_t attr;
10496 status = pthread_attr_init(&attr);
10497 if( status ) return status;
10499 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10501 #if defined( PTHREAD_CREATE_JOINABLE )
10502 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10504 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10507 #ifdef PTHREAD_CREATE_DETACHED
10509 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10512 if( status ) return status;
10515 status = pthread_create( &t, &attr, task, NULL );
10516 if( status ) return status;
10518 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10520 /* give thread a chance to complete */
10521 /* it should remain joinable and hence detachable */
10524 status = pthread_detach( t );
10525 if( status ) return status;
10530 /* Draft 4 pthreads */
10531 status = pthread_create( &t, pthread_attr_default, task, NULL );
10532 if( status ) return status;
10535 /* give thread a chance to complete */
10536 /* it should remain joinable and hence detachable */
10539 status = pthread_detach( &t );
10540 if( status ) return status;
10544 #ifdef HAVE_LINUX_THREADS
10545 pthread_kill_other_threads_np();
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10554 ol_cv_pthread_lpthreads_lmach_lexc=yes
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10559 ol_cv_pthread_lpthreads_lmach_lexc=no
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10566 /* pthread test headers */
10567 #include <pthread.h>
10569 #define NULL (void*)0
10572 static void *task(p)
10575 return (void *) (p == NULL);
10579 int main(argc, argv)
10584 /* pthread test function */
10589 #ifdef HAVE_PTHREADS_FINAL
10590 /* Final pthreads */
10591 pthread_attr_t attr;
10593 status = pthread_attr_init(&attr);
10594 if( status ) return status;
10596 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10598 #if defined( PTHREAD_CREATE_JOINABLE )
10599 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10601 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10604 #ifdef PTHREAD_CREATE_DETACHED
10606 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10609 if( status ) return status;
10612 status = pthread_create( &t, &attr, task, NULL );
10613 if( status ) return status;
10615 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10617 /* give thread a chance to complete */
10618 /* it should remain joinable and hence detachable */
10621 status = pthread_detach( t );
10622 if( status ) return status;
10627 /* Draft 4 pthreads */
10628 status = pthread_create( &t, pthread_attr_default, task, NULL );
10629 if( status ) return status;
10632 /* give thread a chance to complete */
10633 /* it should remain joinable and hence detachable */
10636 status = pthread_detach( &t );
10637 if( status ) return status;
10641 #ifdef HAVE_LINUX_THREADS
10642 pthread_kill_other_threads_np();
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10652 ol_cv_pthread_lpthreads_lmach_lexc=yes
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 ol_cv_pthread_lpthreads_lmach_lexc=no
10668 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10670 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10671 ol_link_pthreads="-lpthreads -lmach -lexc"
10672 ol_link_threads=posix
10676 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10677 if test "$ol_link_threads" = no ; then
10678 # try -lpthreads -lexc
10679 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10680 echo "configure:10681: checking for pthread link with -lpthreads -lexc" >&5
10681 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10682 echo $ac_n "(cached) $ac_c" 1>&6
10687 LIBS="-lpthreads -lexc $LIBS"
10689 if test "$cross_compiling" = yes; then
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10693 /* pthread test headers */
10694 #include <pthread.h>
10696 #define NULL (void*)0
10699 static void *task(p)
10702 return (void *) (p == NULL);
10707 /* pthread test function */
10712 #ifdef HAVE_PTHREADS_FINAL
10713 /* Final pthreads */
10714 pthread_attr_t attr;
10716 status = pthread_attr_init(&attr);
10717 if( status ) return status;
10719 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10721 #if defined( PTHREAD_CREATE_JOINABLE )
10722 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10724 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10727 #ifdef PTHREAD_CREATE_DETACHED
10729 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10732 if( status ) return status;
10735 status = pthread_create( &t, &attr, task, NULL );
10736 if( status ) return status;
10738 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10740 /* give thread a chance to complete */
10741 /* it should remain joinable and hence detachable */
10744 status = pthread_detach( t );
10745 if( status ) return status;
10750 /* Draft 4 pthreads */
10751 status = pthread_create( &t, pthread_attr_default, task, NULL );
10752 if( status ) return status;
10755 /* give thread a chance to complete */
10756 /* it should remain joinable and hence detachable */
10759 status = pthread_detach( &t );
10760 if( status ) return status;
10764 #ifdef HAVE_LINUX_THREADS
10765 pthread_kill_other_threads_np();
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10774 ol_cv_pthread_lpthreads_lexc=yes
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10779 ol_cv_pthread_lpthreads_lexc=no
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 /* pthread test headers */
10787 #include <pthread.h>
10789 #define NULL (void*)0
10792 static void *task(p)
10795 return (void *) (p == NULL);
10799 int main(argc, argv)
10804 /* pthread test function */
10809 #ifdef HAVE_PTHREADS_FINAL
10810 /* Final pthreads */
10811 pthread_attr_t attr;
10813 status = pthread_attr_init(&attr);
10814 if( status ) return status;
10816 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10818 #if defined( PTHREAD_CREATE_JOINABLE )
10819 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10821 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10824 #ifdef PTHREAD_CREATE_DETACHED
10826 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10829 if( status ) return status;
10832 status = pthread_create( &t, &attr, task, NULL );
10833 if( status ) return status;
10835 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10837 /* give thread a chance to complete */
10838 /* it should remain joinable and hence detachable */
10841 status = pthread_detach( t );
10842 if( status ) return status;
10847 /* Draft 4 pthreads */
10848 status = pthread_create( &t, pthread_attr_default, task, NULL );
10849 if( status ) return status;
10852 /* give thread a chance to complete */
10853 /* it should remain joinable and hence detachable */
10856 status = pthread_detach( &t );
10857 if( status ) return status;
10861 #ifdef HAVE_LINUX_THREADS
10862 pthread_kill_other_threads_np();
10870 if { (eval echo configure:10871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10872 ol_cv_pthread_lpthreads_lexc=yes
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10877 ol_cv_pthread_lpthreads_lexc=no
10888 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10890 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10891 ol_link_pthreads="-lpthreads -lexc"
10892 ol_link_threads=posix
10897 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10898 if test "$ol_link_threads" = no ; then
10900 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10901 echo "configure:10902: checking for pthread link with -lpthreads" >&5
10902 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10908 LIBS="-lpthreads $LIBS"
10910 if test "$cross_compiling" = yes; then
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 /* pthread test headers */
10915 #include <pthread.h>
10917 #define NULL (void*)0
10920 static void *task(p)
10923 return (void *) (p == NULL);
10928 /* pthread test function */
10933 #ifdef HAVE_PTHREADS_FINAL
10934 /* Final pthreads */
10935 pthread_attr_t attr;
10937 status = pthread_attr_init(&attr);
10938 if( status ) return status;
10940 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10942 #if defined( PTHREAD_CREATE_JOINABLE )
10943 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10945 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10948 #ifdef PTHREAD_CREATE_DETACHED
10950 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10953 if( status ) return status;
10956 status = pthread_create( &t, &attr, task, NULL );
10957 if( status ) return status;
10959 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10961 /* give thread a chance to complete */
10962 /* it should remain joinable and hence detachable */
10965 status = pthread_detach( t );
10966 if( status ) return status;
10971 /* Draft 4 pthreads */
10972 status = pthread_create( &t, pthread_attr_default, task, NULL );
10973 if( status ) return status;
10976 /* give thread a chance to complete */
10977 /* it should remain joinable and hence detachable */
10980 status = pthread_detach( &t );
10981 if( status ) return status;
10985 #ifdef HAVE_LINUX_THREADS
10986 pthread_kill_other_threads_np();
10993 if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10995 ol_cv_pthread_lib_lpthreads=yes
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
11000 ol_cv_pthread_lib_lpthreads=no
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 /* pthread test headers */
11008 #include <pthread.h>
11010 #define NULL (void*)0
11013 static void *task(p)
11016 return (void *) (p == NULL);
11020 int main(argc, argv)
11025 /* pthread test function */
11030 #ifdef HAVE_PTHREADS_FINAL
11031 /* Final pthreads */
11032 pthread_attr_t attr;
11034 status = pthread_attr_init(&attr);
11035 if( status ) return status;
11037 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11039 #if defined( PTHREAD_CREATE_JOINABLE )
11040 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11042 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11045 #ifdef PTHREAD_CREATE_DETACHED
11047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11050 if( status ) return status;
11053 status = pthread_create( &t, &attr, task, NULL );
11054 if( status ) return status;
11056 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11058 /* give thread a chance to complete */
11059 /* it should remain joinable and hence detachable */
11062 status = pthread_detach( t );
11063 if( status ) return status;
11068 /* Draft 4 pthreads */
11069 status = pthread_create( &t, pthread_attr_default, task, NULL );
11070 if( status ) return status;
11073 /* give thread a chance to complete */
11074 /* it should remain joinable and hence detachable */
11077 status = pthread_detach( &t );
11078 if( status ) return status;
11082 #ifdef HAVE_LINUX_THREADS
11083 pthread_kill_other_threads_np();
11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11093 ol_cv_pthread_lib_lpthreads=yes
11095 echo "configure: failed program was:" >&5
11096 cat conftest.$ac_ext >&5
11098 ol_cv_pthread_lib_lpthreads=no
11109 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
11111 if test $ol_cv_pthread_lib_lpthreads = yes ; then
11112 ol_link_pthreads="-lpthreads"
11113 ol_link_threads=posix
11118 if test $ol_link_threads != no ; then
11119 cat >> confdefs.h <<\EOF
11120 #define HAVE_PTHREADS 1
11124 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
11126 save_CPPFLAGS="$CPPFLAGS"
11128 LIBS="$LTHREAD_LIBS $LIBS"
11130 for ac_func in sched_yield pthread_yield
11132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11133 echo "configure:11134: checking for $ac_func" >&5
11134 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11140 /* System header to define __stub macros and hopefully few prototypes,
11141 which can conflict with char $ac_func(); below. */
11142 #include <assert.h>
11143 /* Override any gcc2 internal prototype to avoid an error. */
11144 /* We use char because int might match the return type of a gcc2
11145 builtin and then its argument prototype would still apply. */
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11162 if { (eval echo configure:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11164 eval "ac_cv_func_$ac_func=yes"
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11169 eval "ac_cv_func_$ac_func=no"
11174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11175 echo "$ac_t""yes" 1>&6
11176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11177 cat >> confdefs.h <<EOF
11178 #define $ac_tr_func 1
11182 echo "$ac_t""no" 1>&6
11187 if test $ac_cv_func_sched_yield = no -a \
11188 $ac_cv_func_pthread_yield = no ; then
11189 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
11190 echo "configure:11191: checking for sched_yield in -lrt" >&5
11191 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
11192 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11193 echo $ac_n "(cached) $ac_c" 1>&6
11195 ac_save_LIBS="$LIBS"
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200 /* Override any gcc2 internal prototype to avoid an error. */
11201 /* We use char because int might match the return type of a gcc2
11202 builtin and then its argument prototype would still apply. */
11203 char sched_yield();
11209 if { (eval echo configure:11210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11211 eval "ac_cv_lib_$ac_lib_var=yes"
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11216 eval "ac_cv_lib_$ac_lib_var=no"
11219 LIBS="$ac_save_LIBS"
11222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11223 echo "$ac_t""yes" 1>&6
11224 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
11225 cat >> confdefs.h <<\EOF
11226 #define HAVE_SCHED_YIELD 1
11229 ac_cv_func_sched_yield=yes
11231 echo "$ac_t""no" 1>&6
11232 ac_cv_func_sched_yield=no
11236 if test $ac_cv_func_sched_yield = no -a \
11237 $ac_cv_func_pthread_yield = no ; then
11238 for ac_func in thr_yield
11240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11241 echo "configure:11242: checking for $ac_func" >&5
11242 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func(); below. */
11250 #include <assert.h>
11251 /* Override any gcc2 internal prototype to avoid an error. */
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11270 if { (eval echo configure:11271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11272 eval "ac_cv_func_$ac_func=yes"
11274 echo "configure: failed program was:" >&5
11275 cat conftest.$ac_ext >&5
11277 eval "ac_cv_func_$ac_func=no"
11282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11285 cat >> confdefs.h <<EOF
11286 #define $ac_tr_func 1
11290 echo "$ac_t""no" 1>&6
11295 if test $ac_cv_func_sched_yield = no -a \
11296 $ac_cv_func_pthread_yield = no -a \
11297 "$ac_cv_func_thr_yield" = no ; then
11298 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
11301 for ac_func in pthread_kill pthread_rwlock_destroy
11303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11304 echo "configure:11305: checking for $ac_func" >&5
11305 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11306 echo $ac_n "(cached) $ac_c" 1>&6
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11311 /* System header to define __stub macros and hopefully few prototypes,
11312 which can conflict with char $ac_func(); below. */
11313 #include <assert.h>
11314 /* Override any gcc2 internal prototype to avoid an error. */
11315 /* We use char because int might match the return type of a gcc2
11316 builtin and then its argument prototype would still apply. */
11322 /* The GNU C library defines this for functions which it implements
11323 to always fail with ENOSYS. Some functions are actually named
11324 something starting with __ and the normal name is an alias. */
11325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11333 if { (eval echo configure:11334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11335 eval "ac_cv_func_$ac_func=yes"
11337 echo "configure: failed program was:" >&5
11338 cat conftest.$ac_ext >&5
11340 eval "ac_cv_func_$ac_func=no"
11345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11346 echo "$ac_t""yes" 1>&6
11347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11348 cat >> confdefs.h <<EOF
11349 #define $ac_tr_func 1
11353 echo "$ac_t""no" 1>&6
11358 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11359 echo "configure:11360: checking for pthread_detach with <pthread.h>" >&5
11360 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11361 echo $ac_n "(cached) $ac_c" 1>&6
11364 cat > conftest.$ac_ext <<EOF
11365 #line 11366 "configure"
11366 #include "confdefs.h"
11368 #include <pthread.h>
11370 #define NULL (void*)0
11374 pthread_detach(NULL);
11377 if { (eval echo configure:11378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11379 ol_cv_func_pthread_detach=yes
11381 echo "configure: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11384 ol_cv_func_pthread_detach=no
11390 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11392 if test $ol_cv_func_pthread_detach = no ; then
11393 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11396 cat >> confdefs.h <<\EOF
11397 #define HAVE_PTHREAD_DETACH 1
11402 pthread_setconcurrency \
11403 pthread_getconcurrency \
11404 thr_setconcurrency \
11405 thr_getconcurrency \
11408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11409 echo "configure:11410: checking for $ac_func" >&5
11410 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11411 echo $ac_n "(cached) $ac_c" 1>&6
11413 cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func(); below. */
11418 #include <assert.h>
11419 /* Override any gcc2 internal prototype to avoid an error. */
11420 /* We use char because int might match the return type of a gcc2
11421 builtin and then its argument prototype would still apply. */
11427 /* The GNU C library defines this for functions which it implements
11428 to always fail with ENOSYS. Some functions are actually named
11429 something starting with __ and the normal name is an alias. */
11430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11440 eval "ac_cv_func_$ac_func=yes"
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11445 eval "ac_cv_func_$ac_func=no"
11450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11451 echo "$ac_t""yes" 1>&6
11452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11453 cat >> confdefs.h <<EOF
11454 #define $ac_tr_func 1
11458 echo "$ac_t""no" 1>&6
11464 for ac_func in pthread_kill_other_threads_np
11466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11467 echo "configure:11468: checking for $ac_func" >&5
11468 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11469 echo $ac_n "(cached) $ac_c" 1>&6
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func(); below. */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error. */
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11485 /* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11496 if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11498 eval "ac_cv_func_$ac_func=yes"
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 eval "ac_cv_func_$ac_func=no"
11508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11509 echo "$ac_t""yes" 1>&6
11510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11511 cat >> confdefs.h <<EOF
11512 #define $ac_tr_func 1
11516 echo "$ac_t""no" 1>&6
11520 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11521 echo "configure:11522: checking for LinuxThreads implementation" >&5
11522 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11528 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11533 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11534 echo "configure:11535: checking for LinuxThreads consistency" >&5
11535 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11539 if test $ol_cv_header_linux_threads = yes -a \
11540 $ol_cv_sys_linux_threads = yes; then
11541 ol_cv_linux_threads=yes
11542 elif test $ol_cv_header_linux_threads = no -a \
11543 $ol_cv_sys_linux_threads = no; then
11544 ol_cv_linux_threads=no
11546 ol_cv_linux_threads=error
11551 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11554 if test $ol_cv_linux_threads = error; then
11555 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11558 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11559 echo "configure:11560: checking if pthread_create() works" >&5
11560 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11561 echo $ac_n "(cached) $ac_c" 1>&6
11564 if test "$cross_compiling" = yes; then
11565 ol_cv_pthread_create_works=yes
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* pthread test headers */
11571 #include <pthread.h>
11573 #define NULL (void*)0
11576 static void *task(p)
11579 return (void *) (p == NULL);
11583 int main(argc, argv)
11588 /* pthread test function */
11593 #ifdef HAVE_PTHREADS_FINAL
11594 /* Final pthreads */
11595 pthread_attr_t attr;
11597 status = pthread_attr_init(&attr);
11598 if( status ) return status;
11600 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11602 #if defined( PTHREAD_CREATE_JOINABLE )
11603 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11605 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11608 #ifdef PTHREAD_CREATE_DETACHED
11610 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11613 if( status ) return status;
11616 status = pthread_create( &t, &attr, task, NULL );
11617 if( status ) return status;
11619 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11621 /* give thread a chance to complete */
11622 /* it should remain joinable and hence detachable */
11625 status = pthread_detach( t );
11626 if( status ) return status;
11631 /* Draft 4 pthreads */
11632 status = pthread_create( &t, pthread_attr_default, task, NULL );
11633 if( status ) return status;
11636 /* give thread a chance to complete */
11637 /* it should remain joinable and hence detachable */
11640 status = pthread_detach( &t );
11641 if( status ) return status;
11645 #ifdef HAVE_LINUX_THREADS
11646 pthread_kill_other_threads_np();
11654 if { (eval echo configure:11655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11656 ol_cv_pthread_create_works=yes
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11661 ol_cv_pthread_create_works=no
11668 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11670 if test $ol_cv_pthread_create_works = no ; then
11671 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11674 if test $ol_with_yielding_select = auto ; then
11675 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11676 echo "configure:11677: checking if select yields when using pthreads" >&5
11677 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11681 if test "$cross_compiling" = yes; then
11682 ol_cv_pthread_select_yields=cross
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11688 #include <sys/types.h>
11689 #include <sys/time.h>
11690 #include <unistd.h>
11691 #include <pthread.h>
11693 #define NULL (void*) 0
11696 static int fildes[2];
11698 static void *task(p)
11710 FD_SET(fildes[0], &rfds);
11712 /* we're not interested in any fds */
11713 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11720 exit(0); /* if we exit here, the select blocked the whole process */
11723 int main(argc, argv)
11729 /* create a pipe to select */
11730 if(pipe(&fildes[0])) {
11735 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11736 (void) pthread_setconcurrency(2);
11738 #ifdef HAVE_THR_SETCONCURRENCY
11739 /* Set Solaris LWP concurrency to 2 */
11740 thr_setconcurrency(2);
11744 #if HAVE_PTHREADS_D4
11745 pthread_create(&t, pthread_attr_default, task, NULL);
11747 pthread_create(&t, NULL, task, NULL);
11750 #if HAVE_SCHED_YIELD
11751 sched_yield(); /* make sure task runs first */
11753 #ifdef HAVE_PTHREAD_YIELD
11754 pthread_yield(); /* make sure task runs first */
11761 if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11763 ol_cv_pthread_select_yields=no
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11768 ol_cv_pthread_select_yields=yes
11775 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11777 if test $ol_cv_pthread_select_yields = cross ; then
11778 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11781 if test $ol_cv_pthread_select_yields = yes ; then
11782 ol_with_yielding_select=yes
11786 CPPFLAGS="$save_CPPFLAGS"
11789 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11793 if test $ol_with_threads = posix ; then
11794 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11798 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11799 -o $ol_with_threads = mach ; then
11801 for ac_hdr in mach/cthreads.h
11803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11805 echo "configure:11806: checking for $ac_hdr" >&5
11806 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11815 { (eval echo configure:11816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11817 if test -z "$ac_err"; then
11819 eval "ac_cv_header_$ac_safe=yes"
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11825 eval "ac_cv_header_$ac_safe=no"
11829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11830 echo "$ac_t""yes" 1>&6
11831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11832 cat >> confdefs.h <<EOF
11833 #define $ac_tr_hdr 1
11837 echo "$ac_t""no" 1>&6
11841 if test $ac_cv_header_mach_cthreads_h = yes ; then
11842 ol_with_threads=found
11844 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11845 echo "configure:11846: checking for cthread_fork" >&5
11846 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 /* System header to define __stub macros and hopefully few prototypes,
11853 which can conflict with char cthread_fork(); below. */
11854 #include <assert.h>
11855 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11858 char cthread_fork();
11863 /* The GNU C library defines this for functions which it implements
11864 to always fail with ENOSYS. Some functions are actually named
11865 something starting with __ and the normal name is an alias. */
11866 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11874 if { (eval echo configure:11875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11876 eval "ac_cv_func_cthread_fork=yes"
11878 echo "configure: failed program was:" >&5
11879 cat conftest.$ac_ext >&5
11881 eval "ac_cv_func_cthread_fork=no"
11886 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11887 echo "$ac_t""yes" 1>&6
11888 ol_link_threads=yes
11890 echo "$ac_t""no" 1>&6
11894 if test $ol_link_threads = no ; then
11895 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11896 echo "configure:11897: checking for cthread_fork with -all_load" >&5
11897 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11898 echo $ac_n "(cached) $ac_c" 1>&6
11902 LIBS="-all_load $LIBS"
11903 cat > conftest.$ac_ext <<EOF
11904 #line 11905 "configure"
11905 #include "confdefs.h"
11906 #include <mach/cthreads.h>
11909 cthread_fork((void *)0, (void *)0);
11913 if { (eval echo configure:11914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11915 ol_cv_cthread_all_load=yes
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11920 ol_cv_cthread_all_load=no
11927 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11929 if test $ol_cv_cthread_all_load = yes ; then
11930 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11931 ol_link_threads=mach
11935 if test $ol_link_threads != no ; then
11936 : check for cthread specific functionality here
11937 cat >> confdefs.h <<\EOF
11938 #define HAVE_MACH_CTHREADS 1
11942 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11946 if test $ol_with_threads = mach ; then
11947 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11951 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11952 -o $ol_with_threads = pth ; then
11954 for ac_hdr in pth.h
11956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11958 echo "configure:11959: checking for $ac_hdr" >&5
11959 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11960 echo $ac_n "(cached) $ac_c" 1>&6
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11968 { (eval echo configure:11969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11970 if test -z "$ac_err"; then
11972 eval "ac_cv_header_$ac_safe=yes"
11975 echo "configure: failed program was:" >&5
11976 cat conftest.$ac_ext >&5
11978 eval "ac_cv_header_$ac_safe=no"
11982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11983 echo "$ac_t""yes" 1>&6
11984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11985 cat >> confdefs.h <<EOF
11986 #define $ac_tr_hdr 1
11990 echo "$ac_t""no" 1>&6
11995 if test $ac_cv_header_pth_h = yes ; then
11996 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11997 echo "configure:11998: checking for pth_version in -lpth" >&5
11998 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12000 echo $ac_n "(cached) $ac_c" 1>&6
12002 ac_save_LIBS="$LIBS"
12004 cat > conftest.$ac_ext <<EOF
12005 #line 12006 "configure"
12006 #include "confdefs.h"
12007 /* Override any gcc2 internal prototype to avoid an error. */
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010 char pth_version();
12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12018 eval "ac_cv_lib_$ac_lib_var=yes"
12020 echo "configure: failed program was:" >&5
12021 cat conftest.$ac_ext >&5
12023 eval "ac_cv_lib_$ac_lib_var=no"
12026 LIBS="$ac_save_LIBS"
12029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12030 echo "$ac_t""yes" 1>&6
12033 echo "$ac_t""no" 1>&6
12038 if test $have_pth = yes ; then
12039 cat >> confdefs.h <<\EOF
12040 #define HAVE_GNU_PTH 1
12043 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
12044 ol_link_threads=pth
12046 if test $ol_with_yielding_select = auto ; then
12047 ol_with_yielding_select=yes
12053 if test $ol_with_threads = auto -o $ol_with_threads = yes \
12054 -o $ol_with_threads = lwp ; then
12056 for ac_hdr in thread.h synch.h
12058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12060 echo "configure:12061: checking for $ac_hdr" >&5
12061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
12064 cat > conftest.$ac_ext <<EOF
12065 #line 12066 "configure"
12066 #include "confdefs.h"
12069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12070 { (eval echo configure:12071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12072 if test -z "$ac_err"; then
12074 eval "ac_cv_header_$ac_safe=yes"
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12080 eval "ac_cv_header_$ac_safe=no"
12084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12085 echo "$ac_t""yes" 1>&6
12086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12087 cat >> confdefs.h <<EOF
12088 #define $ac_tr_hdr 1
12092 echo "$ac_t""no" 1>&6
12096 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
12097 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
12098 echo "configure:12099: checking for thr_create in -lthread" >&5
12099 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
12100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
12103 ac_save_LIBS="$LIBS"
12104 LIBS="-lthread $LIBS"
12105 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure"
12107 #include "confdefs.h"
12108 /* Override any gcc2 internal prototype to avoid an error. */
12109 /* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12117 if { (eval echo configure:12118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12119 eval "ac_cv_lib_$ac_lib_var=yes"
12121 echo "configure: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12124 eval "ac_cv_lib_$ac_lib_var=no"
12127 LIBS="$ac_save_LIBS"
12130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12131 echo "$ac_t""yes" 1>&6
12134 echo "$ac_t""no" 1>&6
12139 if test $have_thr = yes ; then
12140 cat >> confdefs.h <<\EOF
12144 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
12145 ol_link_threads=thr
12147 if test $ol_with_yielding_select = auto ; then
12148 ol_with_yielding_select=yes
12152 thr_setconcurrency \
12153 thr_getconcurrency \
12156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12157 echo "configure:12158: checking for $ac_func" >&5
12158 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12159 echo $ac_n "(cached) $ac_c" 1>&6
12161 cat > conftest.$ac_ext <<EOF
12162 #line 12163 "configure"
12163 #include "confdefs.h"
12164 /* System header to define __stub macros and hopefully few prototypes,
12165 which can conflict with char $ac_func(); below. */
12166 #include <assert.h>
12167 /* Override any gcc2 internal prototype to avoid an error. */
12168 /* We use char because int might match the return type of a gcc2
12169 builtin and then its argument prototype would still apply. */
12175 /* The GNU C library defines this for functions which it implements
12176 to always fail with ENOSYS. Some functions are actually named
12177 something starting with __ and the normal name is an alias. */
12178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12186 if { (eval echo configure:12187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12188 eval "ac_cv_func_$ac_func=yes"
12190 echo "configure: failed program was:" >&5
12191 cat conftest.$ac_ext >&5
12193 eval "ac_cv_func_$ac_func=no"
12198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12199 echo "$ac_t""yes" 1>&6
12200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12201 cat >> confdefs.h <<EOF
12202 #define $ac_tr_func 1
12206 echo "$ac_t""no" 1>&6
12213 for ac_hdr in lwp/lwp.h
12215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12217 echo "configure:12218: checking for $ac_hdr" >&5
12218 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
12221 cat > conftest.$ac_ext <<EOF
12222 #line 12223 "configure"
12223 #include "confdefs.h"
12226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12227 { (eval echo configure:12228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12229 if test -z "$ac_err"; then
12231 eval "ac_cv_header_$ac_safe=yes"
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12237 eval "ac_cv_header_$ac_safe=no"
12241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12242 echo "$ac_t""yes" 1>&6
12243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12244 cat >> confdefs.h <<EOF
12245 #define $ac_tr_hdr 1
12249 echo "$ac_t""no" 1>&6
12253 if test $ac_cv_header_lwp_lwp_h = yes ; then
12254 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
12255 echo "configure:12256: checking for lwp_create in -llwp" >&5
12256 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
12257 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12258 echo $ac_n "(cached) $ac_c" 1>&6
12260 ac_save_LIBS="$LIBS"
12262 cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12265 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12274 if { (eval echo configure:12275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12276 eval "ac_cv_lib_$ac_lib_var=yes"
12278 echo "configure: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12281 eval "ac_cv_lib_$ac_lib_var=no"
12284 LIBS="$ac_save_LIBS"
12287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12288 echo "$ac_t""yes" 1>&6
12291 echo "$ac_t""no" 1>&6
12296 if test $have_lwp = yes ; then
12297 cat >> confdefs.h <<\EOF
12301 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
12302 ol_link_threads=lwp
12304 if test $ol_with_yielding_select = auto ; then
12305 ol_with_yielding_select=no
12311 if test $ol_with_yielding_select = yes ; then
12312 cat >> confdefs.h <<\EOF
12313 #define HAVE_YIELDING_SELECT 1
12318 if test $ol_with_threads = manual ; then
12319 ol_link_threads=yes
12321 echo "configure: warning: thread defines and link options must be set manually" 1>&2
12323 for ac_hdr in pthread.h sched.h
12325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12327 echo "configure:12328: checking for $ac_hdr" >&5
12328 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12329 echo $ac_n "(cached) $ac_c" 1>&6
12331 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12337 { (eval echo configure:12338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12339 if test -z "$ac_err"; then
12341 eval "ac_cv_header_$ac_safe=yes"
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12347 eval "ac_cv_header_$ac_safe=no"
12351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12354 cat >> confdefs.h <<EOF
12355 #define $ac_tr_hdr 1
12359 echo "$ac_t""no" 1>&6
12363 for ac_func in sched_yield pthread_yield
12365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12366 echo "configure:12367: checking for $ac_func" >&5
12367 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12368 echo $ac_n "(cached) $ac_c" 1>&6
12370 cat > conftest.$ac_ext <<EOF
12371 #line 12372 "configure"
12372 #include "confdefs.h"
12373 /* System header to define __stub macros and hopefully few prototypes,
12374 which can conflict with char $ac_func(); below. */
12375 #include <assert.h>
12376 /* Override any gcc2 internal prototype to avoid an error. */
12377 /* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12384 /* The GNU C library defines this for functions which it implements
12385 to always fail with ENOSYS. Some functions are actually named
12386 something starting with __ and the normal name is an alias. */
12387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12397 eval "ac_cv_func_$ac_func=yes"
12399 echo "configure: failed program was:" >&5
12400 cat conftest.$ac_ext >&5
12402 eval "ac_cv_func_$ac_func=no"
12407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12408 echo "$ac_t""yes" 1>&6
12409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12410 cat >> confdefs.h <<EOF
12411 #define $ac_tr_func 1
12415 echo "$ac_t""no" 1>&6
12420 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12421 echo "configure:12422: checking for LinuxThreads pthread.h" >&5
12422 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 #include <pthread.h>
12430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12431 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12433 ol_cv_header_linux_threads=yes
12436 ol_cv_header_linux_threads=no
12443 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12444 if test $ol_cv_header_linux_threads = yes; then
12445 cat >> confdefs.h <<\EOF
12446 #define HAVE_LINUX_THREADS 1
12452 for ac_hdr in mach/cthreads.h
12454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12456 echo "configure:12457: checking for $ac_hdr" >&5
12457 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12458 echo $ac_n "(cached) $ac_c" 1>&6
12460 cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure"
12462 #include "confdefs.h"
12465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12466 { (eval echo configure:12467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12468 if test -z "$ac_err"; then
12470 eval "ac_cv_header_$ac_safe=yes"
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12476 eval "ac_cv_header_$ac_safe=no"
12480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12481 echo "$ac_t""yes" 1>&6
12482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12483 cat >> confdefs.h <<EOF
12484 #define $ac_tr_hdr 1
12488 echo "$ac_t""no" 1>&6
12492 for ac_hdr in lwp/lwp.h
12494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12496 echo "configure:12497: checking for $ac_hdr" >&5
12497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12498 echo $ac_n "(cached) $ac_c" 1>&6
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12506 { (eval echo configure:12507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12508 if test -z "$ac_err"; then
12510 eval "ac_cv_header_$ac_safe=yes"
12513 echo "configure: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12516 eval "ac_cv_header_$ac_safe=no"
12520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12521 echo "$ac_t""yes" 1>&6
12522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12523 cat >> confdefs.h <<EOF
12524 #define $ac_tr_hdr 1
12528 echo "$ac_t""no" 1>&6
12532 for ac_hdr in thread.h synch.h
12534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12536 echo "configure:12537: checking for $ac_hdr" >&5
12537 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12540 cat > conftest.$ac_ext <<EOF
12541 #line 12542 "configure"
12542 #include "confdefs.h"
12545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12546 { (eval echo configure:12547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12548 if test -z "$ac_err"; then
12550 eval "ac_cv_header_$ac_safe=yes"
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12556 eval "ac_cv_header_$ac_safe=no"
12560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12561 echo "$ac_t""yes" 1>&6
12562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12563 cat >> confdefs.h <<EOF
12564 #define $ac_tr_hdr 1
12568 echo "$ac_t""no" 1>&6
12574 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12575 cat >> confdefs.h <<\EOF
12576 #define REENTRANT 1
12579 cat >> confdefs.h <<\EOF
12580 #define _REENTRANT 1
12583 cat >> confdefs.h <<\EOF
12584 #define THREAD_SAFE 1
12587 cat >> confdefs.h <<\EOF
12588 #define _THREAD_SAFE 1
12591 cat >> confdefs.h <<\EOF
12592 #define THREADSAFE 1
12595 cat >> confdefs.h <<\EOF
12596 #define _THREADSAFE 1
12599 cat >> confdefs.h <<\EOF
12600 #define _SGI_MP_SOURCE 1
12604 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12605 echo "configure:12606: checking for thread specific errno" >&5
12606 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12607 echo $ac_n "(cached) $ac_c" 1>&6
12610 cat > conftest.$ac_ext <<EOF
12611 #line 12612 "configure"
12612 #include "confdefs.h"
12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620 ol_cv_errno_thread_specific=yes
12622 echo "configure: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12625 ol_cv_errno_thread_specific=no
12631 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12633 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12634 echo "configure:12635: checking for thread specific h_errno" >&5
12635 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12636 echo $ac_n "(cached) $ac_c" 1>&6
12639 cat > conftest.$ac_ext <<EOF
12640 #line 12641 "configure"
12641 #include "confdefs.h"
12647 if { (eval echo configure:12648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12649 ol_cv_h_errno_thread_specific=yes
12651 echo "configure: failed program was:" >&5
12652 cat conftest.$ac_ext >&5
12654 ol_cv_h_errno_thread_specific=no
12660 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12662 if test $ol_cv_errno_thread_specific != yes \
12663 -o $ol_cv_h_errno_thread_specific != yes ; then
12664 LIBS="$LTHREAD_LIBS $LIBS"
12670 if test $ol_link_threads = no ; then
12671 if test $ol_with_threads = yes ; then
12672 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12675 if test $ol_with_threads = auto ; then
12676 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12680 cat >> confdefs.h <<\EOF
12681 #define NO_THREADS 1
12687 if test $ol_link_threads != no ; then
12688 cat >> confdefs.h <<\EOF
12689 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12696 if test $ol_with_ldbm_api = auto \
12697 -o $ol_with_ldbm_api = berkeley \
12698 -o $ol_with_ldbm_api = bcompat ; then
12700 if test $ol_with_ldbm_api = bcompat; then \
12701 ol_cv_berkeley_db=no
12702 for ac_hdr in db_185.h db.h
12704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12706 echo "configure:12707: checking for $ac_hdr" >&5
12707 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12710 cat > conftest.$ac_ext <<EOF
12711 #line 12712 "configure"
12712 #include "confdefs.h"
12715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12716 { (eval echo configure:12717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12718 if test -z "$ac_err"; then
12720 eval "ac_cv_header_$ac_safe=yes"
12723 echo "configure: failed program was:" >&5
12724 cat conftest.$ac_ext >&5
12726 eval "ac_cv_header_$ac_safe=no"
12730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12731 echo "$ac_t""yes" 1>&6
12732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12733 cat >> confdefs.h <<EOF
12734 #define $ac_tr_hdr 1
12738 echo "$ac_t""no" 1>&6
12742 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12743 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12744 echo "configure:12745: checking if Berkeley DB header compatibility" >&5
12745 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12749 cat > conftest.$ac_ext <<EOF
12750 #line 12751 "configure"
12751 #include "confdefs.h"
12754 # include <db_185.h>
12759 /* this check could be improved */
12760 #ifndef DB_VERSION_MAJOR
12761 # define DB_VERSION_MAJOR 1
12764 #if DB_VERSION_MAJOR == 1
12769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12770 egrep "__db_version_1" >/dev/null 2>&1; then
12772 ol_cv_header_db1=yes
12775 ol_cv_header_db1=no
12781 echo "$ac_t""$ol_cv_header_db1" 1>&6
12783 if test $ol_cv_header_db1 = yes ; then
12785 if test $ol_cv_lib_db = no ; then
12786 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12787 echo "configure:12788: checking for Berkeley DB link (default)" >&5
12788 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12794 LIBS="$ol_DB_LIB $LIBS"
12796 cat > conftest.$ac_ext <<EOF
12797 #line 12798 "configure"
12798 #include "confdefs.h"
12800 #ifdef HAVE_DB_185_H
12801 # include <db_185.h>
12806 #ifndef DB_VERSION_MAJOR
12807 # define DB_VERSION_MAJOR 1
12811 #define NULL ((void*)0)
12816 #if DB_VERSION_MAJOR > 1
12819 int major, minor, patch;
12821 version = db_version( &major, &minor, &patch );
12823 if( major != DB_VERSION_MAJOR ||
12824 minor < DB_VERSION_MINOR )
12826 printf("Berkeley DB version mismatch\n"
12827 "\texpected: %s\n\tgot: %s\n",
12828 DB_VERSION_STRING, version);
12834 #if DB_VERSION_MAJOR > 2
12835 db_env_create( NULL, 0 );
12836 #elif DB_VERSION_MAJOR > 1
12837 db_appexit( NULL );
12839 (void) dbopen( NULL, 0, 0, 0, NULL);
12844 if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12859 echo "$ac_t""$ol_cv_db_none" 1>&6
12861 if test $ol_cv_db_none = yes ; then
12866 if test $ol_cv_lib_db = no ; then
12867 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12868 echo "configure:12869: checking for Berkeley DB link (-ldb)" >&5
12869 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12870 echo $ac_n "(cached) $ac_c" 1>&6
12875 LIBS="$ol_DB_LIB $LIBS"
12877 cat > conftest.$ac_ext <<EOF
12878 #line 12879 "configure"
12879 #include "confdefs.h"
12881 #ifdef HAVE_DB_185_H
12882 # include <db_185.h>
12887 #ifndef DB_VERSION_MAJOR
12888 # define DB_VERSION_MAJOR 1
12892 #define NULL ((void*)0)
12897 #if DB_VERSION_MAJOR > 1
12900 int major, minor, patch;
12902 version = db_version( &major, &minor, &patch );
12904 if( major != DB_VERSION_MAJOR ||
12905 minor < DB_VERSION_MINOR )
12907 printf("Berkeley DB version mismatch\n"
12908 "\texpected: %s\n\tgot: %s\n",
12909 DB_VERSION_STRING, version);
12915 #if DB_VERSION_MAJOR > 2
12916 db_env_create( NULL, 0 );
12917 #elif DB_VERSION_MAJOR > 1
12918 db_appexit( NULL );
12920 (void) dbopen( NULL, 0, 0, 0, NULL);
12925 if { (eval echo configure:12926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12929 echo "configure: failed program was:" >&5
12930 cat conftest.$ac_ext >&5
12940 echo "$ac_t""$ol_cv_db_db" 1>&6
12942 if test $ol_cv_db_db = yes ; then
12947 if test $ol_cv_lib_db = no ; then
12948 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12949 echo "configure:12950: checking for Berkeley DB link (-ldb3)" >&5
12950 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12951 echo $ac_n "(cached) $ac_c" 1>&6
12956 LIBS="$ol_DB_LIB $LIBS"
12958 cat > conftest.$ac_ext <<EOF
12959 #line 12960 "configure"
12960 #include "confdefs.h"
12962 #ifdef HAVE_DB_185_H
12963 # include <db_185.h>
12968 #ifndef DB_VERSION_MAJOR
12969 # define DB_VERSION_MAJOR 1
12973 #define NULL ((void*)0)
12978 #if DB_VERSION_MAJOR > 1
12981 int major, minor, patch;
12983 version = db_version( &major, &minor, &patch );
12985 if( major != DB_VERSION_MAJOR ||
12986 minor < DB_VERSION_MINOR )
12988 printf("Berkeley DB version mismatch\n"
12989 "\texpected: %s\n\tgot: %s\n",
12990 DB_VERSION_STRING, version);
12996 #if DB_VERSION_MAJOR > 2
12997 db_env_create( NULL, 0 );
12998 #elif DB_VERSION_MAJOR > 1
12999 db_appexit( NULL );
13001 (void) dbopen( NULL, 0, 0, 0, NULL);
13006 if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13010 echo "configure: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13021 echo "$ac_t""$ol_cv_db_db3" 1>&6
13023 if test $ol_cv_db_db3 = yes ; then
13028 if test $ol_cv_lib_db = no ; then
13029 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13030 echo "configure:13031: checking for Berkeley DB link (-ldb2)" >&5
13031 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13032 echo $ac_n "(cached) $ac_c" 1>&6
13037 LIBS="$ol_DB_LIB $LIBS"
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13043 #ifdef HAVE_DB_185_H
13044 # include <db_185.h>
13049 #ifndef DB_VERSION_MAJOR
13050 # define DB_VERSION_MAJOR 1
13054 #define NULL ((void*)0)
13059 #if DB_VERSION_MAJOR > 1
13062 int major, minor, patch;
13064 version = db_version( &major, &minor, &patch );
13066 if( major != DB_VERSION_MAJOR ||
13067 minor < DB_VERSION_MINOR )
13069 printf("Berkeley DB version mismatch\n"
13070 "\texpected: %s\n\tgot: %s\n",
13071 DB_VERSION_STRING, version);
13077 #if DB_VERSION_MAJOR > 2
13078 db_env_create( NULL, 0 );
13079 #elif DB_VERSION_MAJOR > 1
13080 db_appexit( NULL );
13082 (void) dbopen( NULL, 0, 0, 0, NULL);
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13102 echo "$ac_t""$ol_cv_db_db2" 1>&6
13104 if test $ol_cv_db_db2 = yes ; then
13109 if test $ol_cv_lib_db = no ; then
13110 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13111 echo "configure:13112: checking for Berkeley DB link (-ldb1)" >&5
13112 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13113 echo $ac_n "(cached) $ac_c" 1>&6
13118 LIBS="$ol_DB_LIB $LIBS"
13120 cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13124 #ifdef HAVE_DB_185_H
13125 # include <db_185.h>
13130 #ifndef DB_VERSION_MAJOR
13131 # define DB_VERSION_MAJOR 1
13135 #define NULL ((void*)0)
13140 #if DB_VERSION_MAJOR > 1
13143 int major, minor, patch;
13145 version = db_version( &major, &minor, &patch );
13147 if( major != DB_VERSION_MAJOR ||
13148 minor < DB_VERSION_MINOR )
13150 printf("Berkeley DB version mismatch\n"
13151 "\texpected: %s\n\tgot: %s\n",
13152 DB_VERSION_STRING, version);
13158 #if DB_VERSION_MAJOR > 2
13159 db_env_create( NULL, 0 );
13160 #elif DB_VERSION_MAJOR > 1
13161 db_appexit( NULL );
13163 (void) dbopen( NULL, 0, 0, 0, NULL);
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13183 echo "$ac_t""$ol_cv_db_db1" 1>&6
13185 if test $ol_cv_db_db1 = yes ; then
13191 if test "$ol_cv_lib_db" != no ; then
13192 ol_cv_berkeley_db=yes
13198 ol_cv_berkeley_db=no
13201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13203 echo "configure:13204: checking for $ac_hdr" >&5
13204 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
13207 cat > conftest.$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13213 { (eval echo configure:13214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13215 if test -z "$ac_err"; then
13217 eval "ac_cv_header_$ac_safe=yes"
13220 echo "configure: failed program was:" >&5
13221 cat conftest.$ac_ext >&5
13223 eval "ac_cv_header_$ac_safe=no"
13227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13228 echo "$ac_t""yes" 1>&6
13229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13230 cat >> confdefs.h <<EOF
13231 #define $ac_tr_hdr 1
13235 echo "$ac_t""no" 1>&6
13239 if test $ac_cv_header_db_h = yes; then
13241 if test $ol_cv_lib_db = no ; then
13242 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
13243 echo "configure:13244: checking for Berkeley DB link (default)" >&5
13244 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
13245 echo $ac_n "(cached) $ac_c" 1>&6
13250 LIBS="$ol_DB_LIB $LIBS"
13252 cat > conftest.$ac_ext <<EOF
13253 #line 13254 "configure"
13254 #include "confdefs.h"
13256 #ifdef HAVE_DB_185_H
13257 # include <db_185.h>
13262 #ifndef DB_VERSION_MAJOR
13263 # define DB_VERSION_MAJOR 1
13267 #define NULL ((void*)0)
13272 #if DB_VERSION_MAJOR > 1
13275 int major, minor, patch;
13277 version = db_version( &major, &minor, &patch );
13279 if( major != DB_VERSION_MAJOR ||
13280 minor < DB_VERSION_MINOR )
13282 printf("Berkeley DB version mismatch\n"
13283 "\texpected: %s\n\tgot: %s\n",
13284 DB_VERSION_STRING, version);
13290 #if DB_VERSION_MAJOR > 2
13291 db_env_create( NULL, 0 );
13292 #elif DB_VERSION_MAJOR > 1
13293 db_appexit( NULL );
13295 (void) dbopen( NULL, 0, 0, 0, NULL);
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13315 echo "$ac_t""$ol_cv_db_none" 1>&6
13317 if test $ol_cv_db_none = yes ; then
13322 if test $ol_cv_lib_db = no ; then
13323 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
13324 echo "configure:13325: checking for Berkeley DB link (-ldb)" >&5
13325 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
13326 echo $ac_n "(cached) $ac_c" 1>&6
13331 LIBS="$ol_DB_LIB $LIBS"
13333 cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13337 #ifdef HAVE_DB_185_H
13338 # include <db_185.h>
13343 #ifndef DB_VERSION_MAJOR
13344 # define DB_VERSION_MAJOR 1
13348 #define NULL ((void*)0)
13353 #if DB_VERSION_MAJOR > 1
13356 int major, minor, patch;
13358 version = db_version( &major, &minor, &patch );
13360 if( major != DB_VERSION_MAJOR ||
13361 minor < DB_VERSION_MINOR )
13363 printf("Berkeley DB version mismatch\n"
13364 "\texpected: %s\n\tgot: %s\n",
13365 DB_VERSION_STRING, version);
13371 #if DB_VERSION_MAJOR > 2
13372 db_env_create( NULL, 0 );
13373 #elif DB_VERSION_MAJOR > 1
13374 db_appexit( NULL );
13376 (void) dbopen( NULL, 0, 0, 0, NULL);
13381 if { (eval echo configure:13382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13385 echo "configure: failed program was:" >&5
13386 cat conftest.$ac_ext >&5
13396 echo "$ac_t""$ol_cv_db_db" 1>&6
13398 if test $ol_cv_db_db = yes ; then
13403 if test $ol_cv_lib_db = no ; then
13404 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13405 echo "configure:13406: checking for Berkeley DB link (-ldb3)" >&5
13406 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13407 echo $ac_n "(cached) $ac_c" 1>&6
13412 LIBS="$ol_DB_LIB $LIBS"
13414 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure"
13416 #include "confdefs.h"
13418 #ifdef HAVE_DB_185_H
13419 # include <db_185.h>
13424 #ifndef DB_VERSION_MAJOR
13425 # define DB_VERSION_MAJOR 1
13429 #define NULL ((void*)0)
13434 #if DB_VERSION_MAJOR > 1
13437 int major, minor, patch;
13439 version = db_version( &major, &minor, &patch );
13441 if( major != DB_VERSION_MAJOR ||
13442 minor < DB_VERSION_MINOR )
13444 printf("Berkeley DB version mismatch\n"
13445 "\texpected: %s\n\tgot: %s\n",
13446 DB_VERSION_STRING, version);
13452 #if DB_VERSION_MAJOR > 2
13453 db_env_create( NULL, 0 );
13454 #elif DB_VERSION_MAJOR > 1
13455 db_appexit( NULL );
13457 (void) dbopen( NULL, 0, 0, 0, NULL);
13462 if { (eval echo configure:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13477 echo "$ac_t""$ol_cv_db_db3" 1>&6
13479 if test $ol_cv_db_db3 = yes ; then
13484 if test $ol_cv_lib_db = no ; then
13485 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13486 echo "configure:13487: checking for Berkeley DB link (-ldb2)" >&5
13487 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13488 echo $ac_n "(cached) $ac_c" 1>&6
13493 LIBS="$ol_DB_LIB $LIBS"
13495 cat > conftest.$ac_ext <<EOF
13496 #line 13497 "configure"
13497 #include "confdefs.h"
13499 #ifdef HAVE_DB_185_H
13500 # include <db_185.h>
13505 #ifndef DB_VERSION_MAJOR
13506 # define DB_VERSION_MAJOR 1
13510 #define NULL ((void*)0)
13515 #if DB_VERSION_MAJOR > 1
13518 int major, minor, patch;
13520 version = db_version( &major, &minor, &patch );
13522 if( major != DB_VERSION_MAJOR ||
13523 minor < DB_VERSION_MINOR )
13525 printf("Berkeley DB version mismatch\n"
13526 "\texpected: %s\n\tgot: %s\n",
13527 DB_VERSION_STRING, version);
13533 #if DB_VERSION_MAJOR > 2
13534 db_env_create( NULL, 0 );
13535 #elif DB_VERSION_MAJOR > 1
13536 db_appexit( NULL );
13538 (void) dbopen( NULL, 0, 0, 0, NULL);
13543 if { (eval echo configure:13544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13547 echo "configure: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13558 echo "$ac_t""$ol_cv_db_db2" 1>&6
13560 if test $ol_cv_db_db2 = yes ; then
13565 if test $ol_cv_lib_db = no ; then
13566 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13567 echo "configure:13568: checking for Berkeley DB link (-ldb1)" >&5
13568 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13569 echo $ac_n "(cached) $ac_c" 1>&6
13574 LIBS="$ol_DB_LIB $LIBS"
13576 cat > conftest.$ac_ext <<EOF
13577 #line 13578 "configure"
13578 #include "confdefs.h"
13580 #ifdef HAVE_DB_185_H
13581 # include <db_185.h>
13586 #ifndef DB_VERSION_MAJOR
13587 # define DB_VERSION_MAJOR 1
13591 #define NULL ((void*)0)
13596 #if DB_VERSION_MAJOR > 1
13599 int major, minor, patch;
13601 version = db_version( &major, &minor, &patch );
13603 if( major != DB_VERSION_MAJOR ||
13604 minor < DB_VERSION_MINOR )
13606 printf("Berkeley DB version mismatch\n"
13607 "\texpected: %s\n\tgot: %s\n",
13608 DB_VERSION_STRING, version);
13614 #if DB_VERSION_MAJOR > 2
13615 db_env_create( NULL, 0 );
13616 #elif DB_VERSION_MAJOR > 1
13617 db_appexit( NULL );
13619 (void) dbopen( NULL, 0, 0, 0, NULL);
13624 if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13639 echo "$ac_t""$ol_cv_db_db1" 1>&6
13641 if test $ol_cv_db_db1 = yes ; then
13647 if test "$ol_cv_lib_db" != no ; then
13648 ol_cv_berkeley_db=yes
13649 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13650 echo "configure:13651: checking for Berkeley DB thread support" >&5
13651 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13652 echo $ac_n "(cached) $ac_c" 1>&6
13656 if test $ol_cv_lib_db != yes ; then
13657 LIBS="$ol_cv_lib_db"
13660 if test "$cross_compiling" = yes; then
13661 ol_cv_berkeley_db_thread=cross
13663 cat > conftest.$ac_ext <<EOF
13664 #line 13665 "configure"
13665 #include "confdefs.h"
13667 #ifdef HAVE_DB_185_H
13673 #define NULL ((void *)0)
13678 u_int32_t flags = DB_CREATE |
13684 #if DB_VERSION_MAJOR > 2
13685 DB_ENV *env = NULL;
13687 rc = db_env_create( &env, 0 );
13689 flags |= DB_INIT_MPOOL;
13690 #ifdef DB_MPOOL_PRIVATE
13691 flags |= DB_MPOOL_PRIVATE;
13695 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13699 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13700 rc = env->open( env, NULL, flags, 0 );
13702 rc = env->open( env, NULL, NULL, flags, 0 );
13706 rc = env->close( env, 0 );
13710 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13716 memset( &env, '\0', sizeof(env) );
13718 rc = db_appinit( NULL, NULL, &env, flags );
13721 db_appexit( &env );
13724 unlink("__db_mpool.share");
13725 unlink("__db_lock.share");
13731 if { (eval echo configure:13732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13733 ol_cv_berkeley_db_thread=yes
13735 echo "configure: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13738 ol_cv_berkeley_db_thread=no
13746 if test $ol_cv_berkeley_db_thread != no ; then
13747 cat >> confdefs.h <<\EOF
13748 #define HAVE_BERKELEY_DB_THREAD 1
13755 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13761 if test $ol_cv_berkeley_db != no ; then
13762 cat >> confdefs.h <<\EOF
13763 #define HAVE_BERKELEY_DB 1
13767 ol_link_ldbm=berkeley
13768 ol_with_ldbm_api=berkeley
13770 if test $ol_with_ldbm_type = hash ; then
13771 cat >> confdefs.h <<\EOF
13772 #define LDBM_USE_DBHASH 1
13776 cat >> confdefs.h <<\EOF
13777 #define LDBM_USE_DBBTREE 1
13782 if test $ol_cv_lib_db != yes ; then
13783 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13788 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
13789 { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
13790 elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
13794 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13795 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13796 ol_with_ldbm_api=none
13799 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13800 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13801 echo "configure:13802: checking for MDBM library" >&5
13802 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13803 echo $ac_n "(cached) $ac_c" 1>&6
13806 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13807 echo "configure:13808: checking for mdbm_set_chain" >&5
13808 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13811 cat > conftest.$ac_ext <<EOF
13812 #line 13813 "configure"
13813 #include "confdefs.h"
13814 /* System header to define __stub macros and hopefully few prototypes,
13815 which can conflict with char mdbm_set_chain(); below. */
13816 #include <assert.h>
13817 /* Override any gcc2 internal prototype to avoid an error. */
13818 /* We use char because int might match the return type of a gcc2
13819 builtin and then its argument prototype would still apply. */
13820 char mdbm_set_chain();
13825 /* The GNU C library defines this for functions which it implements
13826 to always fail with ENOSYS. Some functions are actually named
13827 something starting with __ and the normal name is an alias. */
13828 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13831 f = mdbm_set_chain;
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13838 eval "ac_cv_func_mdbm_set_chain=yes"
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13843 eval "ac_cv_func_mdbm_set_chain=no"
13848 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13849 echo "$ac_t""yes" 1>&6
13852 echo "$ac_t""no" 1>&6
13854 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13855 echo "configure:13856: checking for mdbm_set_chain in -lmdbm" >&5
13856 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13857 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13858 echo $ac_n "(cached) $ac_c" 1>&6
13860 ac_save_LIBS="$LIBS"
13861 LIBS="-lmdbm $LIBS"
13862 cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 /* Override any gcc2 internal prototype to avoid an error. */
13866 /* We use char because int might match the return type of a gcc2
13867 builtin and then its argument prototype would still apply. */
13868 char mdbm_set_chain();
13874 if { (eval echo configure:13875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13876 eval "ac_cv_lib_$ac_lib_var=yes"
13878 echo "configure: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13881 eval "ac_cv_lib_$ac_lib_var=no"
13884 LIBS="$ac_save_LIBS"
13887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13888 echo "$ac_t""yes" 1>&6
13889 ol_cv_lib_mdbm=-lmdbm
13891 echo "$ac_t""no" 1>&6
13902 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13905 for ac_hdr in mdbm.h
13907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13909 echo "configure:13910: checking for $ac_hdr" >&5
13910 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13911 echo $ac_n "(cached) $ac_c" 1>&6
13913 cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13919 { (eval echo configure:13920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13921 if test -z "$ac_err"; then
13923 eval "ac_cv_header_$ac_safe=yes"
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13929 eval "ac_cv_header_$ac_safe=no"
13933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13934 echo "$ac_t""yes" 1>&6
13935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13936 cat >> confdefs.h <<EOF
13937 #define $ac_tr_hdr 1
13941 echo "$ac_t""no" 1>&6
13945 echo $ac_n "checking for db""... $ac_c" 1>&6
13946 echo "configure:13947: checking for db" >&5
13947 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13948 echo $ac_n "(cached) $ac_c" 1>&6
13951 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13959 echo "$ac_t""$ol_cv_mdbm" 1>&6
13960 if test $ol_cv_mdbm = yes ; then
13961 cat >> confdefs.h <<\EOF
13962 #define HAVE_MDBM 1
13968 if test $ol_cv_mdbm = yes ; then
13970 ol_with_ldbm_api=mdbm
13971 if test $ol_cv_lib_mdbm != yes ; then
13972 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13977 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13978 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13979 echo "configure:13980: checking for GDBM library" >&5
13980 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13981 echo $ac_n "(cached) $ac_c" 1>&6
13984 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13985 echo "configure:13986: checking for gdbm_open" >&5
13986 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
13989 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13992 /* System header to define __stub macros and hopefully few prototypes,
13993 which can conflict with char gdbm_open(); below. */
13994 #include <assert.h>
13995 /* Override any gcc2 internal prototype to avoid an error. */
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
14003 /* The GNU C library defines this for functions which it implements
14004 to always fail with ENOSYS. Some functions are actually named
14005 something starting with __ and the normal name is an alias. */
14006 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
14014 if { (eval echo configure:14015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14016 eval "ac_cv_func_gdbm_open=yes"
14018 echo "configure: failed program was:" >&5
14019 cat conftest.$ac_ext >&5
14021 eval "ac_cv_func_gdbm_open=no"
14026 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
14027 echo "$ac_t""yes" 1>&6
14030 echo "$ac_t""no" 1>&6
14032 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
14033 echo "configure:14034: checking for gdbm_open in -lgdbm" >&5
14034 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
14035 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14036 echo $ac_n "(cached) $ac_c" 1>&6
14038 ac_save_LIBS="$LIBS"
14039 LIBS="-lgdbm $LIBS"
14040 cat > conftest.$ac_ext <<EOF
14041 #line 14042 "configure"
14042 #include "confdefs.h"
14043 /* Override any gcc2 internal prototype to avoid an error. */
14044 /* We use char because int might match the return type of a gcc2
14045 builtin and then its argument prototype would still apply. */
14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14054 eval "ac_cv_lib_$ac_lib_var=yes"
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14059 eval "ac_cv_lib_$ac_lib_var=no"
14062 LIBS="$ac_save_LIBS"
14065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14066 echo "$ac_t""yes" 1>&6
14067 ol_cv_lib_gdbm=-lgdbm
14069 echo "$ac_t""no" 1>&6
14080 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
14083 for ac_hdr in gdbm.h
14085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14087 echo "configure:14088: checking for $ac_hdr" >&5
14088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14089 echo $ac_n "(cached) $ac_c" 1>&6
14091 cat > conftest.$ac_ext <<EOF
14092 #line 14093 "configure"
14093 #include "confdefs.h"
14096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14097 { (eval echo configure:14098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14099 if test -z "$ac_err"; then
14101 eval "ac_cv_header_$ac_safe=yes"
14104 echo "configure: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14107 eval "ac_cv_header_$ac_safe=no"
14111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14112 echo "$ac_t""yes" 1>&6
14113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14114 cat >> confdefs.h <<EOF
14115 #define $ac_tr_hdr 1
14119 echo "$ac_t""no" 1>&6
14123 echo $ac_n "checking for db""... $ac_c" 1>&6
14124 echo "configure:14125: checking for db" >&5
14125 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
14126 echo $ac_n "(cached) $ac_c" 1>&6
14129 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
14137 echo "$ac_t""$ol_cv_gdbm" 1>&6
14138 if test $ol_cv_gdbm = yes ; then
14139 cat >> confdefs.h <<\EOF
14140 #define HAVE_GDBM 1
14146 if test $ol_cv_gdbm = yes ; then
14148 ol_with_ldbm_api=gdbm
14150 if test $ol_cv_lib_gdbm != yes ; then
14151 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
14156 if test $ol_with_ldbm_api = ndbm ; then
14157 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
14158 echo "configure:14159: checking for NDBM library" >&5
14159 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
14160 echo $ac_n "(cached) $ac_c" 1>&6
14163 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14164 echo "configure:14165: checking for dbm_open" >&5
14165 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
14166 echo $ac_n "(cached) $ac_c" 1>&6
14168 cat > conftest.$ac_ext <<EOF
14169 #line 14170 "configure"
14170 #include "confdefs.h"
14171 /* System header to define __stub macros and hopefully few prototypes,
14172 which can conflict with char dbm_open(); below. */
14173 #include <assert.h>
14174 /* Override any gcc2 internal prototype to avoid an error. */
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14182 /* The GNU C library defines this for functions which it implements
14183 to always fail with ENOSYS. Some functions are actually named
14184 something starting with __ and the normal name is an alias. */
14185 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
14193 if { (eval echo configure:14194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14195 eval "ac_cv_func_dbm_open=yes"
14197 echo "configure: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14200 eval "ac_cv_func_dbm_open=no"
14205 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
14206 echo "$ac_t""yes" 1>&6
14209 echo "$ac_t""no" 1>&6
14211 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
14212 echo "configure:14213: checking for dbm_open in -lndbm" >&5
14213 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14217 ac_save_LIBS="$LIBS"
14218 LIBS="-lndbm $LIBS"
14219 cat > conftest.$ac_ext <<EOF
14220 #line 14221 "configure"
14221 #include "confdefs.h"
14222 /* Override any gcc2 internal prototype to avoid an error. */
14223 /* We use char because int might match the return type of a gcc2
14224 builtin and then its argument prototype would still apply. */
14231 if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14233 eval "ac_cv_lib_$ac_lib_var=yes"
14235 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14238 eval "ac_cv_lib_$ac_lib_var=no"
14241 LIBS="$ac_save_LIBS"
14244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14245 echo "$ac_t""yes" 1>&6
14246 ol_cv_lib_ndbm=-lndbm
14248 echo "$ac_t""no" 1>&6
14250 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14251 echo "configure:14252: checking for dbm_open in -ldbm" >&5
14252 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
14253 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14254 echo $ac_n "(cached) $ac_c" 1>&6
14256 ac_save_LIBS="$LIBS"
14258 cat > conftest.$ac_ext <<EOF
14259 #line 14260 "configure"
14260 #include "confdefs.h"
14261 /* Override any gcc2 internal prototype to avoid an error. */
14262 /* We use char because int might match the return type of a gcc2
14263 builtin and then its argument prototype would still apply. */
14270 if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14272 eval "ac_cv_lib_$ac_lib_var=yes"
14274 echo "configure: failed program was:" >&5
14275 cat conftest.$ac_ext >&5
14277 eval "ac_cv_lib_$ac_lib_var=no"
14280 LIBS="$ac_save_LIBS"
14283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14284 echo "$ac_t""yes" 1>&6
14285 ol_cv_lib_ndbm=-ldbm
14287 echo "$ac_t""no" 1>&6
14300 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
14303 for ac_hdr in ndbm.h
14305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14307 echo "configure:14308: checking for $ac_hdr" >&5
14308 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14309 echo $ac_n "(cached) $ac_c" 1>&6
14311 cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14317 { (eval echo configure:14318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14319 if test -z "$ac_err"; then
14321 eval "ac_cv_header_$ac_safe=yes"
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14327 eval "ac_cv_header_$ac_safe=no"
14331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14332 echo "$ac_t""yes" 1>&6
14333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14334 cat >> confdefs.h <<EOF
14335 #define $ac_tr_hdr 1
14339 echo "$ac_t""no" 1>&6
14343 echo $ac_n "checking for db""... $ac_c" 1>&6
14344 echo "configure:14345: checking for db" >&5
14345 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14346 echo $ac_n "(cached) $ac_c" 1>&6
14349 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14357 echo "$ac_t""$ol_cv_ndbm" 1>&6
14358 if test $ol_cv_ndbm = yes ; then
14359 cat >> confdefs.h <<\EOF
14360 #define HAVE_NDBM 1
14366 if test $ol_cv_ndbm = yes ; then
14368 ol_with_ldbm_api=ndbm
14370 if test $ol_cv_lib_ndbm != yes ; then
14371 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14376 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14377 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14378 if test $ol_enable_ldbm = yes ; then
14379 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14382 echo "configure: warning: disabling LDBM" 1>&2
14386 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14387 LINK_BINS_DYNAMIC="yes"
14389 LINK_BINS_DYNAMIC="no"
14392 if test $ol_enable_wrappers != no ; then
14393 for ac_hdr in tcpd.h
14395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14397 echo "configure:14398: checking for $ac_hdr" >&5
14398 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14399 echo $ac_n "(cached) $ac_c" 1>&6
14401 cat > conftest.$ac_ext <<EOF
14402 #line 14403 "configure"
14403 #include "confdefs.h"
14406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14407 { (eval echo configure:14408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14409 if test -z "$ac_err"; then
14411 eval "ac_cv_header_$ac_safe=yes"
14414 echo "configure: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14417 eval "ac_cv_header_$ac_safe=no"
14421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14422 echo "$ac_t""yes" 1>&6
14423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14424 cat >> confdefs.h <<EOF
14425 #define $ac_tr_hdr 1
14429 echo "$ac_t""no" 1>&6
14434 if test $ac_cv_header_tcpd_h != yes ; then
14437 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14441 int allow_severity = 0;
14442 int deny_severity = 0;
14448 if { (eval echo configure:14449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14460 if test $have_wrappers = yes ; then
14461 cat >> confdefs.h <<\EOF
14462 #define HAVE_TCPD 1
14467 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14468 echo "configure:14469: checking for main in -lnsl" >&5
14469 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14470 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14473 ac_save_LIBS="$LIBS"
14475 cat > conftest.$ac_ext <<EOF
14476 #line 14477 "configure"
14477 #include "confdefs.h"
14483 if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485 eval "ac_cv_lib_$ac_lib_var=yes"
14487 echo "configure: failed program was:" >&5
14488 cat conftest.$ac_ext >&5
14490 eval "ac_cv_lib_$ac_lib_var=no"
14493 LIBS="$ac_save_LIBS"
14496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14498 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14500 cat >> confdefs.h <<EOF
14501 #define $ac_tr_lib 1
14507 echo "$ac_t""no" 1>&6
14511 echo "configure: warning: could not find -lwrap" 1>&2
14512 if test $ol_enable_wrappers = yes ; then
14513 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14516 echo "configure: warning: disabling wrappers support" 1>&2
14517 ol_enable_wrappers=no
14522 if test $ol_enable_syslog != no ; then
14523 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14524 echo "configure:14525: checking for openlog" >&5
14525 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14526 echo $ac_n "(cached) $ac_c" 1>&6
14528 cat > conftest.$ac_ext <<EOF
14529 #line 14530 "configure"
14530 #include "confdefs.h"
14531 /* System header to define __stub macros and hopefully few prototypes,
14532 which can conflict with char openlog(); below. */
14533 #include <assert.h>
14534 /* Override any gcc2 internal prototype to avoid an error. */
14535 /* We use char because int might match the return type of a gcc2
14536 builtin and then its argument prototype would still apply. */
14542 /* The GNU C library defines this for functions which it implements
14543 to always fail with ENOSYS. Some functions are actually named
14544 something starting with __ and the normal name is an alias. */
14545 #if defined (__stub_openlog) || defined (__stub___openlog)
14553 if { (eval echo configure:14554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14555 eval "ac_cv_func_openlog=yes"
14557 echo "configure: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14560 eval "ac_cv_func_openlog=no"
14565 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14566 echo "$ac_t""yes" 1>&6
14569 echo "$ac_t""no" 1>&6
14572 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14573 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14575 ol_enable_syslog=$ac_cv_func_openlog
14580 if test $ol_enable_sql != no ; then
14581 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14582 echo "configure:14583: checking for SQLDriverConnect in -liodbc" >&5
14583 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14585 echo $ac_n "(cached) $ac_c" 1>&6
14587 ac_save_LIBS="$LIBS"
14588 LIBS="-liodbc $LIBS"
14589 cat > conftest.$ac_ext <<EOF
14590 #line 14591 "configure"
14591 #include "confdefs.h"
14592 /* Override any gcc2 internal prototype to avoid an error. */
14593 /* We use char because int might match the return type of a gcc2
14594 builtin and then its argument prototype would still apply. */
14595 char SQLDriverConnect();
14601 if { (eval echo configure:14602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14603 eval "ac_cv_lib_$ac_lib_var=yes"
14605 echo "configure: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14608 eval "ac_cv_lib_$ac_lib_var=no"
14611 LIBS="$ac_save_LIBS"
14614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14615 echo "$ac_t""yes" 1>&6
14618 echo "$ac_t""no" 1>&6
14622 if test $have_iodbc = yes ; then
14623 ol_link_sql="-liodbc"
14625 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14626 echo "configure:14627: checking for SQLDriverConnect in -lodbc" >&5
14627 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14629 echo $ac_n "(cached) $ac_c" 1>&6
14631 ac_save_LIBS="$LIBS"
14632 LIBS="-lodbc $LIBS"
14633 cat > conftest.$ac_ext <<EOF
14634 #line 14635 "configure"
14635 #include "confdefs.h"
14636 /* Override any gcc2 internal prototype to avoid an error. */
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14639 char SQLDriverConnect();
14645 if { (eval echo configure:14646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14647 eval "ac_cv_lib_$ac_lib_var=yes"
14649 echo "configure: failed program was:" >&5
14650 cat conftest.$ac_ext >&5
14652 eval "ac_cv_lib_$ac_lib_var=no"
14655 LIBS="$ac_save_LIBS"
14658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14659 echo "$ac_t""yes" 1>&6
14662 echo "$ac_t""no" 1>&6
14666 if test $have_odbc = yes ; then
14667 ol_link_sql="-lodbc"
14671 if test $ol_link_sql != no ; then
14672 SLAPD_SQL_LIBS="$ol_link_sql"
14674 elif test $ol_enable_sql != auto ; then
14675 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14679 if test $ol_enable_tcl != no ; then
14680 for ac_hdr in tcl.h
14682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14684 echo "configure:14685: checking for $ac_hdr" >&5
14685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14686 echo $ac_n "(cached) $ac_c" 1>&6
14688 cat > conftest.$ac_ext <<EOF
14689 #line 14690 "configure"
14690 #include "confdefs.h"
14693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14694 { (eval echo configure:14695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14696 if test -z "$ac_err"; then
14698 eval "ac_cv_header_$ac_safe=yes"
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14704 eval "ac_cv_header_$ac_safe=no"
14708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14709 echo "$ac_t""yes" 1>&6
14710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14711 cat >> confdefs.h <<EOF
14712 #define $ac_tr_hdr 1
14716 echo "$ac_t""no" 1>&6
14721 if test $ac_cv_header_tcl_h != yes ; then
14724 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
14725 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
14726 echo "configure:14727: checking for main in -l$lib" >&5
14727 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
14728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14729 echo $ac_n "(cached) $ac_c" 1>&6
14731 ac_save_LIBS="$LIBS"
14732 LIBS="-l$lib $LIBS"
14733 cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14741 if { (eval echo configure:14742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14743 eval "ac_cv_lib_$ac_lib_var=yes"
14745 echo "configure: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14748 eval "ac_cv_lib_$ac_lib_var=no"
14751 LIBS="$ac_save_LIBS"
14754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14755 echo "$ac_t""yes" 1>&6
14757 if test x"$ol_with_tcl_module" = "xstatic" ; then
14758 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
14760 MOD_TCL_LIB="-l${lib}"
14763 echo "$ac_t""no" 1>&6
14770 if test $have_tcl != yes ; then
14771 echo "configure: warning: could not find -ltcl" 1>&2
14772 if test $ol_enable_tcl = yes ; then
14773 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
14781 for ac_hdr in termcap.h ncurses.h
14783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14785 echo "configure:14786: checking for $ac_hdr" >&5
14786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14787 echo $ac_n "(cached) $ac_c" 1>&6
14789 cat > conftest.$ac_ext <<EOF
14790 #line 14791 "configure"
14791 #include "confdefs.h"
14794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14795 { (eval echo configure:14796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14797 if test -z "$ac_err"; then
14799 eval "ac_cv_header_$ac_safe=yes"
14802 echo "configure: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14805 eval "ac_cv_header_$ac_safe=no"
14809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14810 echo "$ac_t""yes" 1>&6
14811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14812 cat >> confdefs.h <<EOF
14813 #define $ac_tr_hdr 1
14817 echo "$ac_t""no" 1>&6
14822 if test $ol_link_termcap = no ; then
14823 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14824 echo "configure:14825: checking for tputs in -ltermcap" >&5
14825 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14826 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14827 echo $ac_n "(cached) $ac_c" 1>&6
14829 ac_save_LIBS="$LIBS"
14830 LIBS="-ltermcap $LIBS"
14831 cat > conftest.$ac_ext <<EOF
14832 #line 14833 "configure"
14833 #include "confdefs.h"
14834 /* Override any gcc2 internal prototype to avoid an error. */
14835 /* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14843 if { (eval echo configure:14844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14845 eval "ac_cv_lib_$ac_lib_var=yes"
14847 echo "configure: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14850 eval "ac_cv_lib_$ac_lib_var=no"
14853 LIBS="$ac_save_LIBS"
14856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14857 echo "$ac_t""yes" 1>&6
14860 echo "$ac_t""no" 1>&6
14864 if test $have_termcap = yes ; then
14865 cat >> confdefs.h <<\EOF
14866 #define HAVE_TERMCAP 1
14869 ol_link_termcap=yes
14870 TERMCAP_LIBS=-ltermcap
14874 if test $ol_link_termcap = no ; then
14875 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14876 echo "configure:14877: checking for initscr in -lncurses" >&5
14877 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14879 echo $ac_n "(cached) $ac_c" 1>&6
14881 ac_save_LIBS="$LIBS"
14882 LIBS="-lncurses $LIBS"
14883 cat > conftest.$ac_ext <<EOF
14884 #line 14885 "configure"
14885 #include "confdefs.h"
14886 /* Override any gcc2 internal prototype to avoid an error. */
14887 /* We use char because int might match the return type of a gcc2
14888 builtin and then its argument prototype would still apply. */
14895 if { (eval echo configure:14896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14897 eval "ac_cv_lib_$ac_lib_var=yes"
14899 echo "configure: failed program was:" >&5
14900 cat conftest.$ac_ext >&5
14902 eval "ac_cv_lib_$ac_lib_var=no"
14905 LIBS="$ac_save_LIBS"
14908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14909 echo "$ac_t""yes" 1>&6
14912 echo "$ac_t""no" 1>&6
14916 if test $have_ncurses = yes ; then
14917 cat >> confdefs.h <<\EOF
14918 #define HAVE_NCURSES 1
14921 ol_link_termcap=yes
14922 TERMCAP_LIBS=-lncurses
14926 if test $ol_link_termcap = no ; then
14927 cat >> confdefs.h <<\EOF
14928 #define NO_TERMCAP 1
14936 if test $ol_with_cyrus_sasl != no ; then
14937 for ac_hdr in sasl.h
14939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14941 echo "configure:14942: checking for $ac_hdr" >&5
14942 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
14945 cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14951 { (eval echo configure:14952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14953 if test -z "$ac_err"; then
14955 eval "ac_cv_header_$ac_safe=yes"
14958 echo "configure: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14961 eval "ac_cv_header_$ac_safe=no"
14965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14966 echo "$ac_t""yes" 1>&6
14967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14968 cat >> confdefs.h <<EOF
14969 #define $ac_tr_hdr 1
14973 echo "$ac_t""no" 1>&6
14978 if test $ac_cv_header_sasl_h = yes ; then
14979 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14980 echo "configure:14981: checking for sasl_client_init in -lsasl" >&5
14981 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14982 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14983 echo $ac_n "(cached) $ac_c" 1>&6
14985 ac_save_LIBS="$LIBS"
14986 LIBS="-lsasl $LIBS"
14987 cat > conftest.$ac_ext <<EOF
14988 #line 14989 "configure"
14989 #include "confdefs.h"
14990 /* Override any gcc2 internal prototype to avoid an error. */
14991 /* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14993 char sasl_client_init();
14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15001 eval "ac_cv_lib_$ac_lib_var=yes"
15003 echo "configure: failed program was:" >&5
15004 cat conftest.$ac_ext >&5
15006 eval "ac_cv_lib_$ac_lib_var=no"
15009 LIBS="$ac_save_LIBS"
15012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15013 echo "$ac_t""yes" 1>&6
15014 have_cyrus_sasl=yes
15016 echo "$ac_t""no" 1>&6
15021 if test $have_cyrus_sasl != no ; then
15023 cat >> confdefs.h <<\EOF
15024 #define HAVE_CYRUS_SASL 1
15031 if test $ol_link_sasl = no ; then
15032 if test $ol_with_cyrus_sasl != auto ; then
15033 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
15035 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
15036 echo "configure: warning: SASL authentication not supported!" 1>&2
15037 if test $ol_link_tls = no ; then
15038 echo "configure: warning: Strong authentication not supported!" 1>&2
15042 elif test $ol_enable_spasswd != no ; then
15043 ol_link_spasswd=yes
15047 echo "configure: warning: SASL authentication not supported!" 1>&2
15048 if test $ol_link_tls = no ; then
15049 echo "configure: warning: Strong authentication not supported!" 1>&2
15053 if test $cross_compiling != yes ; then
15055 if test -r /dev/urandom ; then
15056 dev="/dev/urandom";
15057 elif test -r /idev/urandom ; then
15058 dev="/idev/urandom";
15059 elif test -r /dev/srandom ; then
15060 dev="/dev/srandom";
15061 elif test -r /dev/random ; then
15063 elif test -r /idev/random ; then
15064 dev="/idev/random";
15067 if test $dev != no ; then
15068 cat >> confdefs.h <<EOF
15069 #define URANDOM_DEVICE "$dev"
15076 if test $ol_with_fetch != no ; then
15078 LIBS="-lfetch -lcom_err $LIBS"
15079 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
15080 echo "configure:15081: checking fetch(3) library" >&5
15081 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15085 cat > conftest.$ac_ext <<EOF
15086 #line 15087 "configure"
15087 #include "confdefs.h"
15089 #include <sys/param.h>
15093 struct url *u = fetchParseURL("file:///");
15096 if { (eval echo configure:15097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15098 ol_cv_lib_fetch=yes
15100 echo "configure: failed program was:" >&5
15101 cat conftest.$ac_ext >&5
15108 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
15110 if test $ol_cv_lib_fetch != no ; then
15111 ol_link_fetch="-lfetch -lcom_err"
15112 cat >> confdefs.h <<\EOF
15113 #define HAVE_FETCH 1
15119 if test $ol_cv_lib_fetch != no ; then
15120 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
15121 ol_link_fetch=freebsd
15123 elif test $ol_with_fetch != auto ; then
15124 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
15128 ol_link_readline=no
15129 if test $ol_with_readline != no ; then
15130 for ac_hdr in readline/readline.h readline/history.h
15132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15134 echo "configure:15135: checking for $ac_hdr" >&5
15135 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15136 echo $ac_n "(cached) $ac_c" 1>&6
15138 cat > conftest.$ac_ext <<EOF
15139 #line 15140 "configure"
15140 #include "confdefs.h"
15143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15144 { (eval echo configure:15145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15146 if test -z "$ac_err"; then
15148 eval "ac_cv_header_$ac_safe=yes"
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15154 eval "ac_cv_header_$ac_safe=no"
15158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15161 cat >> confdefs.h <<EOF
15162 #define $ac_tr_hdr 1
15166 echo "$ac_t""no" 1>&6
15171 if test $ac_cv_header_readline_readline_h = yes ; then
15173 LIBS="$TERMCAP_LIBS $LIBS"
15174 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
15175 echo "configure:15176: checking for readline in -lreadline" >&5
15176 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
15177 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15178 echo $ac_n "(cached) $ac_c" 1>&6
15180 ac_save_LIBS="$LIBS"
15181 LIBS="-lreadline $LIBS"
15182 cat > conftest.$ac_ext <<EOF
15183 #line 15184 "configure"
15184 #include "confdefs.h"
15185 /* Override any gcc2 internal prototype to avoid an error. */
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15194 if { (eval echo configure:15195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15196 eval "ac_cv_lib_$ac_lib_var=yes"
15198 echo "configure: failed program was:" >&5
15199 cat conftest.$ac_ext >&5
15201 eval "ac_cv_lib_$ac_lib_var=no"
15204 LIBS="$ac_save_LIBS"
15207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15208 echo "$ac_t""yes" 1>&6
15211 echo "$ac_t""no" 1>&6
15217 if test $have_readline = yes ; then
15218 ol_with_readline=found
15219 ol_link_readline=yes
15221 READLINE_LIBS="-lreadline"
15226 if test $ol_link_readline = yes ; then
15227 cat >> confdefs.h <<\EOF
15228 #define HAVE_READLINE 1
15234 if test $ol_enable_crypt != no ; then
15235 echo $ac_n "checking for crypt""... $ac_c" 1>&6
15236 echo "configure:15237: checking for crypt" >&5
15237 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15240 cat > conftest.$ac_ext <<EOF
15241 #line 15242 "configure"
15242 #include "confdefs.h"
15243 /* System header to define __stub macros and hopefully few prototypes,
15244 which can conflict with char crypt(); below. */
15245 #include <assert.h>
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15254 /* The GNU C library defines this for functions which it implements
15255 to always fail with ENOSYS. Some functions are actually named
15256 something starting with __ and the normal name is an alias. */
15257 #if defined (__stub_crypt) || defined (__stub___crypt)
15265 if { (eval echo configure:15266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15267 eval "ac_cv_func_crypt=yes"
15269 echo "configure: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15272 eval "ac_cv_func_crypt=no"
15277 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
15278 echo "$ac_t""yes" 1>&6
15281 echo "$ac_t""no" 1>&6
15283 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
15284 echo "configure:15285: checking for crypt in -lcrypt" >&5
15285 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
15286 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15287 echo $ac_n "(cached) $ac_c" 1>&6
15289 ac_save_LIBS="$LIBS"
15290 LIBS="-lcrypt $LIBS"
15291 cat > conftest.$ac_ext <<EOF
15292 #line 15293 "configure"
15293 #include "confdefs.h"
15294 /* Override any gcc2 internal prototype to avoid an error. */
15295 /* We use char because int might match the return type of a gcc2
15296 builtin and then its argument prototype would still apply. */
15303 if { (eval echo configure:15304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15305 eval "ac_cv_lib_$ac_lib_var=yes"
15307 echo "configure: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
15310 eval "ac_cv_lib_$ac_lib_var=no"
15313 LIBS="$ac_save_LIBS"
15316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15317 echo "$ac_t""yes" 1>&6
15318 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
15321 echo "$ac_t""no" 1>&6
15328 if test $have_crypt = yes ; then
15329 cat >> confdefs.h <<\EOF
15330 #define HAVE_CRYPT 1
15334 echo "configure: warning: could not find crypt" 1>&2
15335 if test $ol_enable_crypt = yes ; then
15336 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
15339 echo "configure: warning: disabling crypt support" 1>&2
15344 if test $ol_enable_proctitle != no ; then
15345 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
15346 echo "configure:15347: checking for setproctitle" >&5
15347 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
15348 echo $ac_n "(cached) $ac_c" 1>&6
15350 cat > conftest.$ac_ext <<EOF
15351 #line 15352 "configure"
15352 #include "confdefs.h"
15353 /* System header to define __stub macros and hopefully few prototypes,
15354 which can conflict with char setproctitle(); below. */
15355 #include <assert.h>
15356 /* Override any gcc2 internal prototype to avoid an error. */
15357 /* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15359 char setproctitle();
15364 /* The GNU C library defines this for functions which it implements
15365 to always fail with ENOSYS. Some functions are actually named
15366 something starting with __ and the normal name is an alias. */
15367 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
15375 if { (eval echo configure:15376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15377 eval "ac_cv_func_setproctitle=yes"
15379 echo "configure: failed program was:" >&5
15380 cat conftest.$ac_ext >&5
15382 eval "ac_cv_func_setproctitle=no"
15387 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
15388 echo "$ac_t""yes" 1>&6
15389 have_setproctitle=yes
15391 echo "$ac_t""no" 1>&6
15393 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
15394 echo "configure:15395: checking for setproctitle in -lutil" >&5
15395 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
15396 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15397 echo $ac_n "(cached) $ac_c" 1>&6
15399 ac_save_LIBS="$LIBS"
15400 LIBS="-lutil $LIBS"
15401 cat > conftest.$ac_ext <<EOF
15402 #line 15403 "configure"
15403 #include "confdefs.h"
15404 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15407 char setproctitle();
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_lib_$ac_lib_var=yes"
15417 echo "configure: failed program was:" >&5
15418 cat conftest.$ac_ext >&5
15420 eval "ac_cv_lib_$ac_lib_var=no"
15423 LIBS="$ac_save_LIBS"
15426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15427 echo "$ac_t""yes" 1>&6
15428 have_setproctitle=yes
15429 LUTIL_LIBS="$LUTIL_LIBS -lutil"
15431 echo "$ac_t""no" 1>&6
15432 have_setproctitle=no
15433 LIBOBJS="$LIBOBJS setproctitle.o"
15434 LIBSRCS="$LIBSRCS setproctitle.c"
15440 if test $have_setproctitle = yes ; then
15441 cat >> confdefs.h <<\EOF
15442 #define HAVE_SETPROCTITLE 1
15448 if test $ol_enable_slp != no ; then
15449 for ac_hdr in slp.h
15451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15453 echo "configure:15454: checking for $ac_hdr" >&5
15454 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15455 echo $ac_n "(cached) $ac_c" 1>&6
15457 cat > conftest.$ac_ext <<EOF
15458 #line 15459 "configure"
15459 #include "confdefs.h"
15462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15463 { (eval echo configure:15464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15465 if test -z "$ac_err"; then
15467 eval "ac_cv_header_$ac_safe=yes"
15470 echo "configure: failed program was:" >&5
15471 cat conftest.$ac_ext >&5
15473 eval "ac_cv_header_$ac_safe=no"
15477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15478 echo "$ac_t""yes" 1>&6
15479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15480 cat >> confdefs.h <<EOF
15481 #define $ac_tr_hdr 1
15485 echo "$ac_t""no" 1>&6
15490 if test $ac_cv_header_slp_h = yes ; then
15491 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
15492 echo "configure:15493: checking for SLPOpen in -lslp" >&5
15493 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
15494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15495 echo $ac_n "(cached) $ac_c" 1>&6
15497 ac_save_LIBS="$LIBS"
15499 cat > conftest.$ac_ext <<EOF
15500 #line 15501 "configure"
15501 #include "confdefs.h"
15502 /* Override any gcc2 internal prototype to avoid an error. */
15503 /* We use char because int might match the return type of a gcc2
15504 builtin and then its argument prototype would still apply. */
15511 if { (eval echo configure:15512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15513 eval "ac_cv_lib_$ac_lib_var=yes"
15515 echo "configure: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15518 eval "ac_cv_lib_$ac_lib_var=no"
15521 LIBS="$ac_save_LIBS"
15524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15525 echo "$ac_t""yes" 1>&6
15528 echo "$ac_t""no" 1>&6
15532 if test $have_slp = yes ; then
15533 cat >> confdefs.h <<\EOF
15537 SLAPD_SLP_LIBS=-lslp
15540 elif test $ol_enable_slp = yes ; then
15541 { echo "configure: error: SLP not found" 1>&2; exit 1; }
15545 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15546 echo "configure:15547: checking for ANSI C header files" >&5
15547 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
15550 cat > conftest.$ac_ext <<EOF
15551 #line 15552 "configure"
15552 #include "confdefs.h"
15553 #include <stdlib.h>
15554 #include <stdarg.h>
15555 #include <string.h>
15558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15559 { (eval echo configure:15560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15561 if test -z "$ac_err"; then
15563 ac_cv_header_stdc=yes
15566 echo "configure: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15569 ac_cv_header_stdc=no
15573 if test $ac_cv_header_stdc = yes; then
15574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15575 cat > conftest.$ac_ext <<EOF
15576 #line 15577 "configure"
15577 #include "confdefs.h"
15578 #include <string.h>
15580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15581 egrep "memchr" >/dev/null 2>&1; then
15585 ac_cv_header_stdc=no
15591 if test $ac_cv_header_stdc = yes; then
15592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15593 cat > conftest.$ac_ext <<EOF
15594 #line 15595 "configure"
15595 #include "confdefs.h"
15596 #include <stdlib.h>
15598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 egrep "free" >/dev/null 2>&1; then
15603 ac_cv_header_stdc=no
15609 if test $ac_cv_header_stdc = yes; then
15610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15611 if test "$cross_compiling" = yes; then
15614 cat > conftest.$ac_ext <<EOF
15615 #line 15616 "configure"
15616 #include "confdefs.h"
15618 #if ((' ' & 0x0FF) == 0x020)
15619 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15620 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15622 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15623 || ('j' <= (c) && (c) <= 'r') \
15624 || ('s' <= (c) && (c) <= 'z'))
15625 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15628 int main () { int i; for (i = 0; i < 256; i++)
15629 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15633 if { (eval echo configure:15634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15637 echo "configure: failed program was:" >&5
15638 cat conftest.$ac_ext >&5
15640 ac_cv_header_stdc=no
15648 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15649 if test $ac_cv_header_stdc = yes; then
15650 cat >> confdefs.h <<\EOF
15651 #define STDC_HEADERS 1
15656 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15657 echo "configure:15658: checking for mode_t" >&5
15658 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15659 echo $ac_n "(cached) $ac_c" 1>&6
15661 cat > conftest.$ac_ext <<EOF
15662 #line 15663 "configure"
15663 #include "confdefs.h"
15664 #include <sys/types.h>
15666 #include <stdlib.h>
15667 #include <stddef.h>
15671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15672 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15674 eval "ac_cv_type_mode_t=yes"
15677 eval "ac_cv_type_mode_t=no"
15682 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15683 echo "$ac_t""yes" 1>&6
15685 echo "$ac_t""no" 1>&6
15686 cat >> confdefs.h <<EOF
15692 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15693 echo "configure:15694: checking for off_t" >&5
15694 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
15695 echo $ac_n "(cached) $ac_c" 1>&6
15697 cat > conftest.$ac_ext <<EOF
15698 #line 15699 "configure"
15699 #include "confdefs.h"
15700 #include <sys/types.h>
15702 #include <stdlib.h>
15703 #include <stddef.h>
15707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15708 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15710 eval "ac_cv_type_off_t=yes"
15713 eval "ac_cv_type_off_t=no"
15718 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15719 echo "$ac_t""yes" 1>&6
15721 echo "$ac_t""no" 1>&6
15722 cat >> confdefs.h <<EOF
15728 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15729 echo "configure:15730: checking for pid_t" >&5
15730 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15733 cat > conftest.$ac_ext <<EOF
15734 #line 15735 "configure"
15735 #include "confdefs.h"
15736 #include <sys/types.h>
15738 #include <stdlib.h>
15739 #include <stddef.h>
15743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15744 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15746 eval "ac_cv_type_pid_t=yes"
15749 eval "ac_cv_type_pid_t=no"
15754 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15755 echo "$ac_t""yes" 1>&6
15757 echo "$ac_t""no" 1>&6
15758 cat >> confdefs.h <<EOF
15764 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15765 echo "configure:15766: checking for ptrdiff_t" >&5
15766 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15767 echo $ac_n "(cached) $ac_c" 1>&6
15769 cat > conftest.$ac_ext <<EOF
15770 #line 15771 "configure"
15771 #include "confdefs.h"
15772 #include <stddef.h>
15777 if { (eval echo configure:15778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15779 am_cv_type_ptrdiff_t=yes
15781 echo "configure: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15784 am_cv_type_ptrdiff_t=no
15789 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15790 if test $am_cv_type_ptrdiff_t = yes; then
15791 cat >> confdefs.h <<\EOF
15792 #define HAVE_PTRDIFF_T 1
15797 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15798 echo "configure:15799: checking return type of signal handlers" >&5
15799 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15800 echo $ac_n "(cached) $ac_c" 1>&6
15802 cat > conftest.$ac_ext <<EOF
15803 #line 15804 "configure"
15804 #include "confdefs.h"
15805 #include <sys/types.h>
15806 #include <signal.h>
15811 extern "C" void (*signal (int, void (*)(int)))(int);
15813 void (*signal ()) ();
15820 if { (eval echo configure:15821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15822 ac_cv_type_signal=void
15824 echo "configure: failed program was:" >&5
15825 cat conftest.$ac_ext >&5
15827 ac_cv_type_signal=int
15832 echo "$ac_t""$ac_cv_type_signal" 1>&6
15833 cat >> confdefs.h <<EOF
15834 #define RETSIGTYPE $ac_cv_type_signal
15838 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15839 echo "configure:15840: checking for size_t" >&5
15840 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15841 echo $ac_n "(cached) $ac_c" 1>&6
15843 cat > conftest.$ac_ext <<EOF
15844 #line 15845 "configure"
15845 #include "confdefs.h"
15846 #include <sys/types.h>
15848 #include <stdlib.h>
15849 #include <stddef.h>
15853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15854 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15856 eval "ac_cv_type_size_t=yes"
15859 eval "ac_cv_type_size_t=no"
15864 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15865 echo "$ac_t""yes" 1>&6
15867 echo "$ac_t""no" 1>&6
15868 cat >> confdefs.h <<EOF
15869 #define size_t unsigned
15875 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15876 echo "configure:15877: checking for ssize_t" >&5
15877 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15878 echo $ac_n "(cached) $ac_c" 1>&6
15880 cat > conftest.$ac_ext <<EOF
15881 #line 15882 "configure"
15882 #include "confdefs.h"
15883 #include <sys/types.h>
15885 #include <stdlib.h>
15886 #include <stddef.h>
15890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15891 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15893 eval "ac_cv_type_ssize_t=yes"
15896 eval "ac_cv_type_ssize_t=no"
15901 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15902 echo "$ac_t""yes" 1>&6
15904 echo "$ac_t""no" 1>&6
15905 cat >> confdefs.h <<EOF
15906 #define ssize_t signed int
15911 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15912 echo "configure:15913: checking for caddr_t" >&5
15913 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15914 echo $ac_n "(cached) $ac_c" 1>&6
15916 cat > conftest.$ac_ext <<EOF
15917 #line 15918 "configure"
15918 #include "confdefs.h"
15919 #include <sys/types.h>
15921 #include <stdlib.h>
15922 #include <stddef.h>
15926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15927 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15929 eval "ac_cv_type_caddr_t=yes"
15932 eval "ac_cv_type_caddr_t=no"
15937 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15938 echo "$ac_t""yes" 1>&6
15940 echo "$ac_t""no" 1>&6
15941 cat >> confdefs.h <<EOF
15942 #define caddr_t char *
15948 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15949 echo "configure:15950: checking for socklen_t" >&5
15950 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15951 echo $ac_n "(cached) $ac_c" 1>&6
15953 cat > conftest.$ac_ext <<EOF
15954 #line 15955 "configure"
15955 #include "confdefs.h"
15957 #ifdef HAVE_SYS_TYPES_H
15958 #include <sys/types.h>
15960 #ifdef HAVE_SYS_SOCKET_H
15961 #include <sys/socket.h>
15968 if { (eval echo configure:15969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15970 ol_cv_type_socklen_t=yes
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15975 ol_cv_type_socklen_t=no
15980 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15981 if test $ol_cv_type_socklen_t = no; then
15982 cat >> confdefs.h <<\EOF
15983 #define socklen_t int
15988 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15989 echo "configure:15990: checking for member st_blksize in aggregate type struct stat" >&5
15990 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15991 echo $ac_n "(cached) $ac_c" 1>&6
15993 cat > conftest.$ac_ext <<EOF
15994 #line 15995 "configure"
15995 #include "confdefs.h"
15996 #include <sys/types.h>
15997 #include <sys/stat.h>
15999 struct stat foo; foo.st_blksize;
16002 if { (eval echo configure:16003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16004 ac_cv_c_struct_member_st_blksize=yes
16006 echo "configure: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16009 ac_cv_c_struct_member_st_blksize=no
16014 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
16015 st_blksize="$ac_cv_c_struct_member_st_blksize"
16016 if test $ac_cv_c_struct_member_st_blksize = yes; then
16017 cat >> confdefs.h <<\EOF
16018 #define HAVE_ST_BLKSIZE 1
16023 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16024 echo "configure:16025: checking whether time.h and sys/time.h may both be included" >&5
16025 if eval "test \"\${ac_cv_header_time+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>
16032 #include <sys/time.h>
16038 if { (eval echo configure:16039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16040 ac_cv_header_time=yes
16042 echo "configure: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16045 ac_cv_header_time=no
16050 echo "$ac_t""$ac_cv_header_time" 1>&6
16051 if test $ac_cv_header_time = yes; then
16052 cat >> confdefs.h <<\EOF
16053 #define TIME_WITH_SYS_TIME 1
16058 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16059 echo "configure:16060: checking whether struct tm is in sys/time.h or time.h" >&5
16060 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
16061 echo $ac_n "(cached) $ac_c" 1>&6
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 #include <sys/types.h>
16069 struct tm *tp; tp->tm_sec;
16072 if { (eval echo configure:16073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16074 ac_cv_struct_tm=time.h
16076 echo "configure: failed program was:" >&5
16077 cat conftest.$ac_ext >&5
16079 ac_cv_struct_tm=sys/time.h
16084 echo "$ac_t""$ac_cv_struct_tm" 1>&6
16085 if test $ac_cv_struct_tm = sys/time.h; then
16086 cat >> confdefs.h <<\EOF
16087 #define TM_IN_SYS_TIME 1
16092 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16093 echo "configure:16094: checking for uid_t in sys/types.h" >&5
16094 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
16095 echo $ac_n "(cached) $ac_c" 1>&6
16097 cat > conftest.$ac_ext <<EOF
16098 #line 16099 "configure"
16099 #include "confdefs.h"
16100 #include <sys/types.h>
16102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16103 egrep "uid_t" >/dev/null 2>&1; then
16105 ac_cv_type_uid_t=yes
16108 ac_cv_type_uid_t=no
16114 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16115 if test $ac_cv_type_uid_t = no; then
16116 cat >> confdefs.h <<\EOF
16120 cat >> confdefs.h <<\EOF
16126 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
16127 echo "configure:16128: checking for sig_atomic_t" >&5
16128 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
16129 echo $ac_n "(cached) $ac_c" 1>&6
16131 cat > conftest.$ac_ext <<EOF
16132 #line 16133 "configure"
16133 #include "confdefs.h"
16134 #include <signal.h>
16136 sig_atomic_t atomic;
16139 if { (eval echo configure:16140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16141 ol_cv_type_sig_atomic_t=yes
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16146 ol_cv_type_sig_atomic_t=no
16151 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
16152 if test $ol_cv_type_sig_atomic_t = no; then
16153 cat >> confdefs.h <<\EOF
16154 #define sig_atomic_t int
16161 # test for pw_gecos in struct passwd
16162 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
16163 echo "configure:16164: checking struct passwd for pw_gecos" >&5
16164 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16168 cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16175 pwd.pw_gecos = pwd.pw_name;
16179 if { (eval echo configure:16180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16181 ol_cv_struct_passwd_pw_gecos=yes
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16186 ol_cv_struct_passwd_pw_gecos=no
16191 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
16192 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
16193 cat >> confdefs.h <<\EOF
16194 #define HAVE_PW_GECOS 1
16199 # test for pw_passwd in struct passwd
16200 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
16201 echo "configure:16202: checking struct passwd for pw_passwd" >&5
16202 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
16203 echo $ac_n "(cached) $ac_c" 1>&6
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16213 pwd.pw_passwd = pwd.pw_name;
16217 if { (eval echo configure:16218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16219 ol_cv_struct_passwd_pw_passwd=yes
16221 echo "configure: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16224 ol_cv_struct_passwd_pw_passwd=no
16229 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
16230 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
16231 cat >> confdefs.h <<\EOF
16232 #define HAVE_PW_PASSWD 1
16238 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
16239 echo "configure:16240: checking if toupper() requires islower()" >&5
16240 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
16241 echo $ac_n "(cached) $ac_c" 1>&6
16244 if test "$cross_compiling" = yes; then
16245 ol_cv_c_upper_lower=safe
16247 cat > conftest.$ac_ext <<EOF
16248 #line 16249 "configure"
16249 #include "confdefs.h"
16254 if ('C' == toupper('C'))
16260 if { (eval echo configure:16261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16262 ol_cv_c_upper_lower=no
16264 echo "configure: failed program was:" >&5
16265 cat conftest.$ac_ext >&5
16267 ol_cv_c_upper_lower=yes
16274 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
16275 if test $ol_cv_c_upper_lower != no ; then
16276 cat >> confdefs.h <<\EOF
16277 #define C_UPPER_LOWER 1
16282 echo $ac_n "checking for working const""... $ac_c" 1>&6
16283 echo "configure:16284: checking for working const" >&5
16284 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
16285 echo $ac_n "(cached) $ac_c" 1>&6
16287 cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16293 /* Ultrix mips cc rejects this. */
16294 typedef int charset[2]; const charset x;
16295 /* SunOS 4.1.1 cc rejects this. */
16296 char const *const *ccp;
16298 /* NEC SVR4.0.2 mips cc rejects this. */
16299 struct point {int x, y;};
16300 static struct point const zero = {0,0};
16301 /* AIX XL C 1.02.0.0 rejects this.
16302 It does not let you subtract one const X* pointer from another in an arm
16303 of an if-expression whose if-part is not a constant expression */
16304 const char *g = "string";
16305 ccp = &g + (g ? g-g : 0);
16306 /* HPUX 7.0 cc rejects these. */
16309 ccp = (char const *const *) p;
16310 { /* SCO 3.2v4 cc rejects this. */
16312 char const *s = 0 ? (char *) 0 : (char const *) 0;
16316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16317 int x[] = {25, 17};
16318 const int *foo = &x[0];
16321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16322 typedef const int *iptr;
16326 { /* AIX XL C 1.02.0.0 rejects this saying
16327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16328 struct s { int j; const int *ap[3]; };
16329 struct s *b; b->j = 5;
16331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16332 const int foo = 10;
16337 if { (eval echo configure:16338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16349 echo "$ac_t""$ac_cv_c_const" 1>&6
16350 if test $ac_cv_c_const = no; then
16351 cat >> confdefs.h <<\EOF
16357 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
16358 echo "configure:16359: checking if compiler understands volatile" >&5
16359 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16362 cat > conftest.$ac_ext <<EOF
16363 #line 16364 "configure"
16364 #include "confdefs.h"
16367 volatile int a; int * volatile b = x ? &y : &z;
16368 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
16372 if { (eval echo configure:16373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16374 ol_cv_c_volatile=yes
16376 echo "configure: failed program was:" >&5
16377 cat conftest.$ac_ext >&5
16379 ol_cv_c_volatile=no
16384 echo "$ac_t""$ol_cv_c_volatile" 1>&6
16385 if test $ol_cv_c_volatile = yes; then
16388 cat >> confdefs.h <<\EOF
16395 if test $cross_compiling = yes ; then
16396 cat >> confdefs.h <<\EOF
16397 #define CROSS_COMPILING 1
16401 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
16402 echo "configure:16403: checking whether byte ordering is bigendian" >&5
16403 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
16404 echo $ac_n "(cached) $ac_c" 1>&6
16406 ac_cv_c_bigendian=unknown
16407 # See if sys/param.h defines the BYTE_ORDER macro.
16408 cat > conftest.$ac_ext <<EOF
16409 #line 16410 "configure"
16410 #include "confdefs.h"
16411 #include <sys/types.h>
16412 #include <sys/param.h>
16415 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16416 bogus endian macros
16420 if { (eval echo configure:16421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16422 # It does; now see whether it defined to BIG_ENDIAN or not.
16423 cat > conftest.$ac_ext <<EOF
16424 #line 16425 "configure"
16425 #include "confdefs.h"
16426 #include <sys/types.h>
16427 #include <sys/param.h>
16430 #if BYTE_ORDER != BIG_ENDIAN
16435 if { (eval echo configure:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16437 ac_cv_c_bigendian=yes
16439 echo "configure: failed program was:" >&5
16440 cat conftest.$ac_ext >&5
16442 ac_cv_c_bigendian=no
16446 echo "configure: failed program was:" >&5
16447 cat conftest.$ac_ext >&5
16450 if test $ac_cv_c_bigendian = unknown; then
16451 if test "$cross_compiling" = yes; then
16452 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
16454 cat > conftest.$ac_ext <<EOF
16455 #line 16456 "configure"
16456 #include "confdefs.h"
16458 /* Are we little or big endian? From Harbison&Steele. */
16462 char c[sizeof (long)];
16465 exit (u.c[sizeof (long) - 1] == 1);
16468 if { (eval echo configure:16469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16470 ac_cv_c_bigendian=no
16472 echo "configure: failed program was:" >&5
16473 cat conftest.$ac_ext >&5
16475 ac_cv_c_bigendian=yes
16483 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
16484 if test $ac_cv_c_bigendian = yes; then
16485 cat >> confdefs.h <<\EOF
16486 #define WORDS_BIGENDIAN 1
16493 echo $ac_n "checking size of short""... $ac_c" 1>&6
16494 echo "configure:16495: checking size of short" >&5
16495 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
16496 echo $ac_n "(cached) $ac_c" 1>&6
16498 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16499 cat > conftest.$ac_ext <<EOF
16500 #line 16501 "configure"
16501 #include "confdefs.h"
16502 #include "confdefs.h"
16503 #include <sys/types.h>
16507 switch (0) case 0: case (sizeof (short) == $ac_size):;
16510 if { (eval echo configure:16511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16512 ac_cv_sizeof_short=$ac_size
16514 echo "configure: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16518 if test x$ac_cv_sizeof_short != x ; then break; fi
16523 if test x$ac_cv_sizeof_short = x ; then
16524 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
16526 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
16527 cat >> confdefs.h <<EOF
16528 #define SIZEOF_SHORT $ac_cv_sizeof_short
16532 echo $ac_n "checking size of int""... $ac_c" 1>&6
16533 echo "configure:16534: checking size of int" >&5
16534 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
16537 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16538 cat > conftest.$ac_ext <<EOF
16539 #line 16540 "configure"
16540 #include "confdefs.h"
16541 #include "confdefs.h"
16542 #include <sys/types.h>
16546 switch (0) case 0: case (sizeof (int) == $ac_size):;
16549 if { (eval echo configure:16550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16551 ac_cv_sizeof_int=$ac_size
16553 echo "configure: failed program was:" >&5
16554 cat conftest.$ac_ext >&5
16557 if test x$ac_cv_sizeof_int != x ; then break; fi
16562 if test x$ac_cv_sizeof_int = x ; then
16563 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16565 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16566 cat >> confdefs.h <<EOF
16567 #define SIZEOF_INT $ac_cv_sizeof_int
16571 echo $ac_n "checking size of long""... $ac_c" 1>&6
16572 echo "configure:16573: checking size of long" >&5
16573 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16574 echo $ac_n "(cached) $ac_c" 1>&6
16576 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16577 cat > conftest.$ac_ext <<EOF
16578 #line 16579 "configure"
16579 #include "confdefs.h"
16580 #include "confdefs.h"
16581 #include <sys/types.h>
16585 switch (0) case 0: case (sizeof (long) == $ac_size):;
16588 if { (eval echo configure:16589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16590 ac_cv_sizeof_long=$ac_size
16592 echo "configure: failed program was:" >&5
16593 cat conftest.$ac_ext >&5
16596 if test x$ac_cv_sizeof_long != x ; then break; fi
16601 if test x$ac_cv_sizeof_long = x ; then
16602 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16604 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16605 cat >> confdefs.h <<EOF
16606 #define SIZEOF_LONG $ac_cv_sizeof_long
16611 if test "$ac_cv_sizeof_int" -lt 4 ; then
16612 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16614 cat >> confdefs.h <<\EOF
16615 #define LBER_INT_T long
16619 cat >> confdefs.h <<\EOF
16620 #define LBER_INT_T int
16625 cat >> confdefs.h <<\EOF
16626 #define LBER_LEN_T long
16629 cat >> confdefs.h <<\EOF
16630 #define LBER_SOCKET_T int
16633 cat >> confdefs.h <<\EOF
16634 #define LBER_TAG_T long
16638 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16639 echo "configure:16640: checking for 8-bit clean memcmp" >&5
16640 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16641 echo $ac_n "(cached) $ac_c" 1>&6
16643 if test "$cross_compiling" = yes; then
16644 ac_cv_func_memcmp_clean=no
16646 cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16652 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16653 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16657 if { (eval echo configure:16658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16659 ac_cv_func_memcmp_clean=yes
16661 echo "configure: failed program was:" >&5
16662 cat conftest.$ac_ext >&5
16664 ac_cv_func_memcmp_clean=no
16671 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16672 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16674 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16675 echo "configure:16676: checking for strftime" >&5
16676 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16677 echo $ac_n "(cached) $ac_c" 1>&6
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682 /* System header to define __stub macros and hopefully few prototypes,
16683 which can conflict with char strftime(); below. */
16684 #include <assert.h>
16685 /* Override any gcc2 internal prototype to avoid an error. */
16686 /* We use char because int might match the return type of a gcc2
16687 builtin and then its argument prototype would still apply. */
16693 /* The GNU C library defines this for functions which it implements
16694 to always fail with ENOSYS. Some functions are actually named
16695 something starting with __ and the normal name is an alias. */
16696 #if defined (__stub_strftime) || defined (__stub___strftime)
16704 if { (eval echo configure:16705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16706 eval "ac_cv_func_strftime=yes"
16708 echo "configure: failed program was:" >&5
16709 cat conftest.$ac_ext >&5
16711 eval "ac_cv_func_strftime=no"
16716 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16717 echo "$ac_t""yes" 1>&6
16718 cat >> confdefs.h <<\EOF
16719 #define HAVE_STRFTIME 1
16723 echo "$ac_t""no" 1>&6
16724 # strftime is in -lintl on SCO UNIX.
16725 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16726 echo "configure:16727: checking for strftime in -lintl" >&5
16727 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16729 echo $ac_n "(cached) $ac_c" 1>&6
16731 ac_save_LIBS="$LIBS"
16732 LIBS="-lintl $LIBS"
16733 cat > conftest.$ac_ext <<EOF
16734 #line 16735 "configure"
16735 #include "confdefs.h"
16736 /* Override any gcc2 internal prototype to avoid an error. */
16737 /* We use char because int might match the return type of a gcc2
16738 builtin and then its argument prototype would still apply. */
16745 if { (eval echo configure:16746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16747 eval "ac_cv_lib_$ac_lib_var=yes"
16749 echo "configure: failed program was:" >&5
16750 cat conftest.$ac_ext >&5
16752 eval "ac_cv_lib_$ac_lib_var=no"
16755 LIBS="$ac_save_LIBS"
16758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16759 echo "$ac_t""yes" 1>&6
16760 cat >> confdefs.h <<\EOF
16761 #define HAVE_STRFTIME 1
16764 LIBS="-lintl $LIBS"
16766 echo "$ac_t""no" 1>&6
16772 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16773 echo "configure:16774: checking for inet_aton()" >&5
16774 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
16777 cat > conftest.$ac_ext <<EOF
16778 #line 16779 "configure"
16779 #include "confdefs.h"
16781 #ifdef HAVE_SYS_TYPES_H
16782 # include <sys/types.h>
16784 #ifdef HAVE_SYS_SOCKET_H
16785 # include <sys/socket.h>
16786 # ifdef HAVE_SYS_SELECT_H
16787 # include <sys/select.h>
16789 # include <netinet/in.h>
16790 # ifdef HAVE_ARPA_INET_H
16791 # include <arpa/inet.h>
16797 int rc = inet_aton( "255.255.255.255", &in );
16800 if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16802 ol_cv_func_inet_aton=yes
16804 echo "configure: failed program was:" >&5
16805 cat conftest.$ac_ext >&5
16807 ol_cv_func_inet_aton=no
16812 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16813 if test $ol_cv_func_inet_aton != no; then
16814 cat >> confdefs.h <<\EOF
16815 #define HAVE_INET_ATON 1
16821 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16822 echo "configure:16823: checking for _spawnlp" >&5
16823 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16829 /* System header to define __stub macros and hopefully few prototypes,
16830 which can conflict with char _spawnlp(); below. */
16831 #include <assert.h>
16832 /* Override any gcc2 internal prototype to avoid an error. */
16833 /* We use char because int might match the return type of a gcc2
16834 builtin and then its argument prototype would still apply. */
16840 /* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16851 if { (eval echo configure:16852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16853 eval "ac_cv_func__spawnlp=yes"
16855 echo "configure: failed program was:" >&5
16856 cat conftest.$ac_ext >&5
16858 eval "ac_cv_func__spawnlp=no"
16863 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16864 echo "$ac_t""yes" 1>&6
16865 cat >> confdefs.h <<\EOF
16866 #define HAVE_SPAWNLP 1
16870 echo "$ac_t""no" 1>&6
16874 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16875 echo "configure:16876: checking for _snprintf" >&5
16876 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16877 echo $ac_n "(cached) $ac_c" 1>&6
16879 cat > conftest.$ac_ext <<EOF
16880 #line 16881 "configure"
16881 #include "confdefs.h"
16882 /* System header to define __stub macros and hopefully few prototypes,
16883 which can conflict with char _snprintf(); below. */
16884 #include <assert.h>
16885 /* Override any gcc2 internal prototype to avoid an error. */
16886 /* We use char because int might match the return type of a gcc2
16887 builtin and then its argument prototype would still apply. */
16893 /* The GNU C library defines this for functions which it implements
16894 to always fail with ENOSYS. Some functions are actually named
16895 something starting with __ and the normal name is an alias. */
16896 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16904 if { (eval echo configure:16905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16906 eval "ac_cv_func__snprintf=yes"
16908 echo "configure: failed program was:" >&5
16909 cat conftest.$ac_ext >&5
16911 eval "ac_cv_func__snprintf=no"
16916 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16917 echo "$ac_t""yes" 1>&6
16918 ac_cv_func_snprintf=yes
16919 cat >> confdefs.h <<\EOF
16920 #define snprintf _snprintf
16925 echo "$ac_t""no" 1>&6
16929 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16930 echo "configure:16931: checking for _vsnprintf" >&5
16931 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16932 echo $ac_n "(cached) $ac_c" 1>&6
16934 cat > conftest.$ac_ext <<EOF
16935 #line 16936 "configure"
16936 #include "confdefs.h"
16937 /* System header to define __stub macros and hopefully few prototypes,
16938 which can conflict with char _vsnprintf(); below. */
16939 #include <assert.h>
16940 /* Override any gcc2 internal prototype to avoid an error. */
16941 /* We use char because int might match the return type of a gcc2
16942 builtin and then its argument prototype would still apply. */
16948 /* The GNU C library defines this for functions which it implements
16949 to always fail with ENOSYS. Some functions are actually named
16950 something starting with __ and the normal name is an alias. */
16951 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16959 if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16961 eval "ac_cv_func__vsnprintf=yes"
16963 echo "configure: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16966 eval "ac_cv_func__vsnprintf=no"
16971 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16972 echo "$ac_t""yes" 1>&6
16973 ac_cv_func_vsnprintf=yes
16974 cat >> confdefs.h <<\EOF
16975 #define vsnprintf _vsnprintf
16980 echo "$ac_t""no" 1>&6
16984 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16985 echo "configure:16986: checking for vprintf" >&5
16986 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16987 echo $ac_n "(cached) $ac_c" 1>&6
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16992 /* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char vprintf(); below. */
16994 #include <assert.h>
16995 /* Override any gcc2 internal prototype to avoid an error. */
16996 /* We use char because int might match the return type of a gcc2
16997 builtin and then its argument prototype would still apply. */
17003 /* The GNU C library defines this for functions which it implements
17004 to always fail with ENOSYS. Some functions are actually named
17005 something starting with __ and the normal name is an alias. */
17006 #if defined (__stub_vprintf) || defined (__stub___vprintf)
17014 if { (eval echo configure:17015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17016 eval "ac_cv_func_vprintf=yes"
17018 echo "configure: failed program was:" >&5
17019 cat conftest.$ac_ext >&5
17021 eval "ac_cv_func_vprintf=no"
17026 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
17027 echo "$ac_t""yes" 1>&6
17028 cat >> confdefs.h <<\EOF
17029 #define HAVE_VPRINTF 1
17033 echo "$ac_t""no" 1>&6
17036 if test "$ac_cv_func_vprintf" != yes; then
17037 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
17038 echo "configure:17039: checking for _doprnt" >&5
17039 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
17040 echo $ac_n "(cached) $ac_c" 1>&6
17042 cat > conftest.$ac_ext <<EOF
17043 #line 17044 "configure"
17044 #include "confdefs.h"
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char _doprnt(); below. */
17047 #include <assert.h>
17048 /* Override any gcc2 internal prototype to avoid an error. */
17049 /* We use char because int might match the return type of a gcc2
17050 builtin and then its argument prototype would still apply. */
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17067 if { (eval echo configure:17068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17069 eval "ac_cv_func__doprnt=yes"
17071 echo "configure: failed program was:" >&5
17072 cat conftest.$ac_ext >&5
17074 eval "ac_cv_func__doprnt=no"
17079 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
17080 echo "$ac_t""yes" 1>&6
17081 cat >> confdefs.h <<\EOF
17082 #define HAVE_DOPRNT 1
17086 echo "$ac_t""no" 1>&6
17092 if test $ac_cv_func_vprintf = yes ; then
17093 for ac_func in vsnprintf vsprintf
17095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17096 echo "configure:17097: checking for $ac_func" >&5
17097 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17098 echo $ac_n "(cached) $ac_c" 1>&6
17100 cat > conftest.$ac_ext <<EOF
17101 #line 17102 "configure"
17102 #include "confdefs.h"
17103 /* System header to define __stub macros and hopefully few prototypes,
17104 which can conflict with char $ac_func(); below. */
17105 #include <assert.h>
17106 /* Override any gcc2 internal prototype to avoid an error. */
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17114 /* The GNU C library defines this for functions which it implements
17115 to always fail with ENOSYS. Some functions are actually named
17116 something starting with __ and the normal name is an alias. */
17117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17125 if { (eval echo configure:17126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17127 eval "ac_cv_func_$ac_func=yes"
17129 echo "configure: failed program was:" >&5
17130 cat conftest.$ac_ext >&5
17132 eval "ac_cv_func_$ac_func=no"
17137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17138 echo "$ac_t""yes" 1>&6
17139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17140 cat >> confdefs.h <<EOF
17141 #define $ac_tr_func 1
17145 echo "$ac_t""no" 1>&6
17202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17203 echo "configure:17204: checking for $ac_func" >&5
17204 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17205 echo $ac_n "(cached) $ac_c" 1>&6
17207 cat > conftest.$ac_ext <<EOF
17208 #line 17209 "configure"
17209 #include "confdefs.h"
17210 /* System header to define __stub macros and hopefully few prototypes,
17211 which can conflict with char $ac_func(); below. */
17212 #include <assert.h>
17213 /* Override any gcc2 internal prototype to avoid an error. */
17214 /* We use char because int might match the return type of a gcc2
17215 builtin and then its argument prototype would still apply. */
17221 /* The GNU C library defines this for functions which it implements
17222 to always fail with ENOSYS. Some functions are actually named
17223 something starting with __ and the normal name is an alias. */
17224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17232 if { (eval echo configure:17233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17234 eval "ac_cv_func_$ac_func=yes"
17236 echo "configure: failed program was:" >&5
17237 cat conftest.$ac_ext >&5
17239 eval "ac_cv_func_$ac_func=no"
17244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17245 echo "$ac_t""yes" 1>&6
17246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17247 cat >> confdefs.h <<EOF
17248 #define $ac_tr_func 1
17252 echo "$ac_t""no" 1>&6
17257 for ac_func in getopt
17259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17260 echo "configure:17261: checking for $ac_func" >&5
17261 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
17262 echo $ac_n "(cached) $ac_c" 1>&6
17264 cat > conftest.$ac_ext <<EOF
17265 #line 17266 "configure"
17266 #include "confdefs.h"
17267 /* System header to define __stub macros and hopefully few prototypes,
17268 which can conflict with char $ac_func(); below. */
17269 #include <assert.h>
17270 /* Override any gcc2 internal prototype to avoid an error. */
17271 /* We use char because int might match the return type of a gcc2
17272 builtin and then its argument prototype would still apply. */
17278 /* The GNU C library defines this for functions which it implements
17279 to always fail with ENOSYS. Some functions are actually named
17280 something starting with __ and the normal name is an alias. */
17281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17289 if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17291 eval "ac_cv_func_$ac_func=yes"
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17296 eval "ac_cv_func_$ac_func=no"
17301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17302 echo "$ac_t""yes" 1>&6
17303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17304 cat >> confdefs.h <<EOF
17305 #define $ac_tr_func 1
17309 echo "$ac_t""no" 1>&6
17310 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
17316 if test "$ac_cv_func_getopt" != yes; then
17317 LIBSRCS="$LIBSRCS getopt.c"
17320 # Check Configuration
17321 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
17322 echo "configure:17323: checking declaration of sys_errlist" >&5
17323 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
17324 echo $ac_n "(cached) $ac_c" 1>&6
17327 cat > conftest.$ac_ext <<EOF
17328 #line 17329 "configure"
17329 #include "confdefs.h"
17332 #include <sys/types.h>
17335 #include <stdlib.h>
17338 char *c = (char *) *sys_errlist
17341 if { (eval echo configure:17342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17343 ol_cv_dcl_sys_errlist=yes
17344 ol_cv_have_sys_errlist=yes
17346 echo "configure: failed program was:" >&5
17347 cat conftest.$ac_ext >&5
17349 ol_cv_dcl_sys_errlist=no
17354 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
17356 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17357 if test $ol_cv_dcl_sys_errlist = no ; then
17358 cat >> confdefs.h <<\EOF
17359 #define DECL_SYS_ERRLIST 1
17363 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
17364 echo "configure:17365: checking existence of sys_errlist" >&5
17365 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
17366 echo $ac_n "(cached) $ac_c" 1>&6
17369 cat > conftest.$ac_ext <<EOF
17370 #line 17371 "configure"
17371 #include "confdefs.h"
17374 char *c = (char *) *sys_errlist
17377 if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17379 ol_cv_have_sys_errlist=yes
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17384 ol_cv_have_sys_errlist=no
17389 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
17391 if test $ol_cv_have_sys_errlist = yes ; then
17392 cat >> confdefs.h <<\EOF
17393 #define HAVE_SYS_ERRLIST 1
17400 if test "$ol_enable_debug" != no ; then
17401 cat >> confdefs.h <<\EOF
17402 #define LDAP_DEBUG 1
17406 if test "$ol_enable_syslog" = yes ; then
17407 cat >> confdefs.h <<\EOF
17408 #define LDAP_SYSLOG 1
17412 if test "$ol_enable_cache" = no ; then
17413 cat >> confdefs.h <<\EOF
17414 #define LDAP_NOCACHE 1
17418 if test "$ol_link_kbind" != no ; then
17419 cat >> confdefs.h <<\EOF
17420 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
17424 if test "$ol_enable_proctitle" != no ; then
17425 cat >> confdefs.h <<\EOF
17426 #define LDAP_PROCTITLE 1
17430 if test "$ol_enable_referrals" != no ; then
17431 cat >> confdefs.h <<\EOF
17432 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
17436 if test "$ol_enable_local" != no; then
17437 cat >> confdefs.h <<\EOF
17438 #define LDAP_PF_LOCAL 1
17442 if test "$ol_link_ipv6" != no; then
17443 cat >> confdefs.h <<\EOF
17444 #define LDAP_PF_INET6 1
17448 if test "$ol_enable_cleartext" != no ; then
17449 cat >> confdefs.h <<\EOF
17450 #define SLAPD_CLEARTEXT 1
17454 if test "$ol_enable_crypt" != no ; then
17455 cat >> confdefs.h <<\EOF
17456 #define SLAPD_CRYPT 1
17460 if test "$ol_link_kpasswd" != no ; then
17461 cat >> confdefs.h <<\EOF
17462 #define SLAPD_KPASSWD 1
17466 if test "$ol_link_spasswd" != no ; then
17467 cat >> confdefs.h <<\EOF
17468 #define SLAPD_SPASSWD 1
17472 if test "$ol_enable_phonetic" != no ; then
17473 cat >> confdefs.h <<\EOF
17474 #define SLAPD_PHONETIC 1
17478 if test "$ol_enable_rlookups" != no ; then
17479 cat >> confdefs.h <<\EOF
17480 #define SLAPD_RLOOKUPS 1
17484 if test "$ol_enable_aci" != no ; then
17485 cat >> confdefs.h <<\EOF
17486 #define SLAPD_ACI_ENABLED 1
17491 if test "$ol_link_modules" != no ; then
17492 cat >> confdefs.h <<\EOF
17493 #define SLAPD_MODULES 1
17497 SLAPD_MODULES_LDFLAGS="-dlopen self"
17500 if test "$ol_enable_bdb" != no ; then
17501 cat >> confdefs.h <<\EOF
17502 #define SLAPD_BDB 1
17507 if test "$ol_with_bdb_module" != static ; then
17508 cat >> confdefs.h <<\EOF
17509 #define SLAPD_BDB_DYNAMIC 1
17513 BUILD_BDB_DYNAMIC=shared
17514 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
17518 if test "$ol_link_dnssrv" != no ; then
17519 cat >> confdefs.h <<\EOF
17520 #define SLAPD_DNSSRV 1
17525 if test "$ol_with_dnssrv_module" != static ; then
17526 cat >> confdefs.h <<\EOF
17527 #define SLAPD_DNSSRV_DYNAMIC 1
17531 BUILD_DNSSRV_DYNAMIC=shared
17532 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
17536 if test "$ol_enable_ldap" != no ; then
17537 cat >> confdefs.h <<\EOF
17538 #define SLAPD_LDAP 1
17543 if test "$ol_with_ldap_module" != static ; then
17544 cat >> confdefs.h <<\EOF
17545 #define SLAPD_LDAP_DYNAMIC 1
17549 BUILD_LDAP_DYNAMIC=shared
17550 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17554 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
17555 cat >> confdefs.h <<\EOF
17556 #define SLAPD_LDBM 1
17561 if test "$ol_with_ldbm_module" != static ; then
17562 cat >> confdefs.h <<\EOF
17563 #define SLAPD_LDBM_DYNAMIC 1
17567 BUILD_LDBM_DYNAMIC=shared
17568 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17572 if test "$ol_enable_meta" != no ; then
17573 if test "$ol_enable_ldap" = no ; then
17574 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
17576 if test "$ol_enable_rewrite" = no ; then
17577 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
17579 cat >> confdefs.h <<\EOF
17580 #define SLAPD_META 1
17585 if test "$ol_with_meta_module" != static ; then
17586 cat >> confdefs.h <<\EOF
17587 #define SLAPD_META_DYNAMIC 1
17591 BUILD_META_DYNAMIC=shared
17592 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
17596 if test "$ol_enable_monitor" != no ; then
17597 cat >> confdefs.h <<\EOF
17598 #define SLAPD_MONITOR 1
17603 if test "$ol_with_monitor_module" != static ; then
17604 cat >> confdefs.h <<\EOF
17605 #define SLAPD_MONITOR_DYNAMIC 1
17609 BUILD_MONITOR_DYNAMIC=shared
17610 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
17614 if test "$ol_enable_passwd" != no ; then
17615 cat >> confdefs.h <<\EOF
17616 #define SLAPD_PASSWD 1
17621 if test "$ol_with_passwd_module" != static ; then
17622 cat >> confdefs.h <<\EOF
17623 #define SLAPD_PASSWD_DYNAMIC 1
17627 BUILD_PASSWD_DYNAMIC=shared
17628 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17632 if test "$ol_link_perl" != no ; then
17633 cat >> confdefs.h <<\EOF
17634 #define SLAPD_PERL 1
17639 if test "$ol_with_perl_module" != static ; then
17640 cat >> confdefs.h <<\EOF
17641 #define SLAPD_PERL_DYNAMIC 1
17645 BUILD_PERL_DYNAMIC=shared
17646 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
17650 if test "$ol_enable_shell" != no ; then
17651 cat >> confdefs.h <<\EOF
17652 #define SLAPD_SHELL 1
17657 if test "$ol_with_shell_module" != static ; then
17658 cat >> confdefs.h <<\EOF
17659 #define SLAPD_SHELL_DYNAMIC 1
17663 BUILD_SHELL_DYNAMIC=shared
17664 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17668 if test "$ol_enable_tcl" != no ; then
17669 cat >> confdefs.h <<\EOF
17670 #define SLAPD_TCL 1
17675 if test "$ol_with_tcl_module" != static; then
17676 cat >> confdefs.h <<\EOF
17677 #define SLAPD_TCL_DYNAMIC 1
17681 BUILD_TCL_DYNAMIC=shared
17682 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
17686 if test "$ol_link_sql" != no ; then
17687 cat >> confdefs.h <<\EOF
17688 #define SLAPD_SQL 1
17693 if test "$ol_with_sql_module" != static; then
17694 cat >> confdefs.h <<\EOF
17695 #define SLAPD_SQL_DYNAMIC 1
17699 BUILD_SQL_DYNAMIC=shared
17700 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17704 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17705 $BUILD_SLAPD = yes ; then
17709 if test "$ol_enable_rewrite" != no ; then
17710 cat >> confdefs.h <<\EOF
17711 #define ENABLE_REWRITE 1
17715 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
17719 if test "$LINK_BINS_DYNAMIC" = yes; then
17721 LT_LIB_LINKAGE=shared
17724 LT_LIB_LINKAGE=static
17727 if test "$ac_cv_mingw32" = yes ; then
17804 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17806 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17807 # Let make expand exec_prefix.
17808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17810 # Any assignment to VPATH causes Sun make to only execute
17811 # the first set of double-colon rules, so remove it if not needed.
17812 # If there is a colon in the path, we need to keep it.
17813 if test "x$srcdir" = x.; then
17814 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17817 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17819 DEFS=-DHAVE_CONFIG_H
17821 # Without the "./", some shells look in PATH for config.status.
17822 : ${CONFIG_STATUS=./config.status}
17824 echo creating $CONFIG_STATUS
17825 rm -f $CONFIG_STATUS
17826 cat > $CONFIG_STATUS <<EOF
17828 # Generated automatically by configure.
17829 # Run this file to recreate the current configuration.
17830 # This directory was configured as follows,
17831 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17833 # $0 $ac_configure_args
17835 # Compiler output produced by configure, useful for debugging
17836 # configure, is in ./config.log if it exists.
17838 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17841 case "\$ac_option" in
17842 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17843 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17844 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17845 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17846 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17848 -help | --help | --hel | --he | --h)
17849 echo "\$ac_cs_usage"; exit 0 ;;
17850 *) echo "\$ac_cs_usage"; exit 1 ;;
17854 ac_given_srcdir=$srcdir
17855 ac_given_INSTALL="$INSTALL"
17857 trap 'rm -fr `echo "\
17858 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17859 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17860 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17861 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17862 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17863 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17864 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17865 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17866 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17867 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17868 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17869 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17870 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17871 include/Makefile:build/top.mk:include/Makefile.in \
17872 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17873 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17874 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17875 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17876 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17877 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17878 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17879 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
17880 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17881 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
17882 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17883 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17884 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
17885 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17886 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17887 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17888 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
17889 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
17890 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17891 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17892 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17893 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17894 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17895 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17896 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17897 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17898 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17899 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17900 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17901 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17902 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17904 cat >> $CONFIG_STATUS <<EOF
17906 # Protect against being on the right side of a sed subst in config.status.
17907 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17908 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17912 s%@CFLAGS@%$CFLAGS%g
17913 s%@CPPFLAGS@%$CPPFLAGS%g
17914 s%@CXXFLAGS@%$CXXFLAGS%g
17915 s%@FFLAGS@%$FFLAGS%g
17917 s%@LDFLAGS@%$LDFLAGS%g
17919 s%@exec_prefix@%$exec_prefix%g
17920 s%@prefix@%$prefix%g
17921 s%@program_transform_name@%$program_transform_name%g
17922 s%@bindir@%$bindir%g
17923 s%@sbindir@%$sbindir%g
17924 s%@libexecdir@%$libexecdir%g
17925 s%@datadir@%$datadir%g
17926 s%@sysconfdir@%$sysconfdir%g
17927 s%@sharedstatedir@%$sharedstatedir%g
17928 s%@localstatedir@%$localstatedir%g
17929 s%@libdir@%$libdir%g
17930 s%@includedir@%$includedir%g
17931 s%@oldincludedir@%$oldincludedir%g
17932 s%@infodir@%$infodir%g
17933 s%@mandir@%$mandir%g
17935 s%@host_alias@%$host_alias%g
17936 s%@host_cpu@%$host_cpu%g
17937 s%@host_vendor@%$host_vendor%g
17938 s%@host_os@%$host_os%g
17939 s%@target@%$target%g
17940 s%@target_alias@%$target_alias%g
17941 s%@target_cpu@%$target_cpu%g
17942 s%@target_vendor@%$target_vendor%g
17943 s%@target_os@%$target_os%g
17945 s%@build_alias@%$build_alias%g
17946 s%@build_cpu@%$build_cpu%g
17947 s%@build_vendor@%$build_vendor%g
17948 s%@build_os@%$build_os%g
17949 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17950 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17951 s%@INSTALL_DATA@%$INSTALL_DATA%g
17952 s%@PACKAGE@%$PACKAGE%g
17953 s%@VERSION@%$VERSION%g
17954 s%@ACLOCAL@%$ACLOCAL%g
17955 s%@AUTOCONF@%$AUTOCONF%g
17956 s%@AUTOMAKE@%$AUTOMAKE%g
17957 s%@AUTOHEADER@%$AUTOHEADER%g
17958 s%@MAKEINFO@%$MAKEINFO%g
17959 s%@install_sh@%$install_sh%g
17962 s%@AMTARFLAGS@%$AMTARFLAGS%g
17963 s%@SET_MAKE@%$SET_MAKE%g
17964 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
17965 s%@top_builddir@%$top_builddir%g
17966 s%@ldap_subdir@%$ldap_subdir%g
17968 s%@RANLIB@%$RANLIB%g
17970 s%@DLLTOOL@%$DLLTOOL%g
17972 s%@OBJDUMP@%$OBJDUMP%g
17973 s%@LIBTOOL@%$LIBTOOL%g
17975 s%@SENDMAIL@%$SENDMAIL%g
17976 s%@EDITOR@%$EDITOR%g
17977 s%@FINGER@%$FINGER%g
17978 s%@PERLBIN@%$PERLBIN%g
17980 s%@EXEEXT@%$EXEEXT%g
17981 s%@OBJEXT@%$OBJEXT%g
17982 s%@OL_MKDEP@%$OL_MKDEP%g
17983 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17984 s%@LIBOBJS@%$LIBOBJS%g
17985 s%@LIBSRCS@%$LIBSRCS%g
17987 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17988 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17989 s%@DYN_EXT@%$DYN_EXT%g
17990 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17991 s%@BUILD_BDB@%$BUILD_BDB%g
17992 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17993 s%@BUILD_LDAP@%$BUILD_LDAP%g
17994 s%@BUILD_LDBM@%$BUILD_LDBM%g
17995 s%@BUILD_META@%$BUILD_META%g
17996 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
17997 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17998 s%@BUILD_PERL@%$BUILD_PERL%g
17999 s%@BUILD_SHELL@%$BUILD_SHELL%g
18000 s%@BUILD_SQL@%$BUILD_SQL%g
18001 s%@BUILD_TCL@%$BUILD_TCL%g
18002 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
18003 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
18004 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
18005 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
18006 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
18007 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
18008 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
18009 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
18010 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
18011 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
18012 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
18013 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
18014 s%@LDAP_LIBS@%$LDAP_LIBS%g
18015 s%@LDIF_LIBS@%$LDIF_LIBS%g
18016 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
18017 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
18018 s%@LDBM_LIBS@%$LDBM_LIBS%g
18019 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
18020 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
18021 s%@WRAP_LIBS@%$WRAP_LIBS%g
18022 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
18023 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
18024 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
18025 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
18026 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
18027 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
18028 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
18029 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
18030 s%@KRB4_LIBS@%$KRB4_LIBS%g
18031 s%@KRB5_LIBS@%$KRB5_LIBS%g
18032 s%@READLINE_LIBS@%$READLINE_LIBS%g
18033 s%@SASL_LIBS@%$SASL_LIBS%g
18034 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
18035 s%@TLS_LIBS@%$TLS_LIBS%g
18036 s%@MODULES_LIBS@%$MODULES_LIBS%g
18037 s%@AUTH_LIBS@%$AUTH_LIBS%g
18038 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
18039 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
18040 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
18041 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
18046 cat >> $CONFIG_STATUS <<\EOF
18048 # Split the substitutions into bite-sized pieces for seds with
18049 # small command number limits, like on Digital OSF/1 and HP-UX.
18050 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18051 ac_file=1 # Number of current file.
18052 ac_beg=1 # First line for current file.
18053 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18056 while $ac_more_lines; do
18057 if test $ac_beg -gt 1; then
18058 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18060 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18062 if test ! -s conftest.s$ac_file; then
18063 ac_more_lines=false
18064 rm -f conftest.s$ac_file
18066 if test -z "$ac_sed_cmds"; then
18067 ac_sed_cmds="sed -f conftest.s$ac_file"
18069 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18071 ac_file=`expr $ac_file + 1`
18073 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18076 if test -z "$ac_sed_cmds"; then
18081 cat >> $CONFIG_STATUS <<EOF
18083 CONFIG_FILES=\${CONFIG_FILES-"\
18084 Makefile:build/top.mk:Makefile.in:build/dir.mk \
18085 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
18086 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
18087 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
18088 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
18089 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
18090 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
18091 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
18092 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
18093 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
18094 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
18095 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
18096 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
18097 include/Makefile:build/top.mk:include/Makefile.in \
18098 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
18099 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
18100 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
18101 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
18102 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
18103 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
18104 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
18105 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
18106 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
18107 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
18108 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
18109 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
18110 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
18111 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
18112 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
18113 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
18114 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
18115 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
18116 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
18117 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
18118 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
18119 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
18120 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
18121 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
18122 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
18123 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
18124 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
18125 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
18126 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
18127 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
18130 cat >> $CONFIG_STATUS <<\EOF
18131 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18134 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18135 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18136 *) ac_file_in="${ac_file}.in" ;;
18139 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18141 # Remove last slash and all that follows it. Not all systems have dirname.
18142 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18143 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18144 # The file is in a subdirectory.
18145 test ! -d "$ac_dir" && mkdir "$ac_dir"
18146 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18147 # A "../" for each directory in $ac_dir_suffix.
18148 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18150 ac_dir_suffix= ac_dots=
18153 case "$ac_given_srcdir" in
18155 if test -z "$ac_dots"; then top_srcdir=.
18156 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18157 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18158 *) # Relative path.
18159 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18160 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18163 case "$ac_given_INSTALL" in
18164 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18165 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18168 echo creating "$ac_file"
18170 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18172 *[Mm]akefile*) ac_comsub="1i\\
18173 # $configure_input" ;;
18177 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18179 s%@configure_input@%$configure_input%g
18180 s%@srcdir@%$srcdir%g
18181 s%@top_srcdir@%$top_srcdir%g
18182 s%@INSTALL@%$INSTALL%g
18183 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18190 # ac_d sets the value in "#define NAME VALUE" lines.
18191 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18192 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18195 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18196 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18197 ac_uB='\([ ]\)%\1#\2define\3'
18200 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18201 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18202 ac_eB='$%\1#\2define\3'
18206 if test "${CONFIG_HEADERS+set}" != set; then
18208 cat >> $CONFIG_STATUS <<EOF
18209 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
18211 cat >> $CONFIG_STATUS <<\EOF
18213 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18216 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18217 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18218 *) ac_file_in="${ac_file}.in" ;;
18221 echo creating $ac_file
18223 rm -f conftest.frag conftest.in conftest.out
18224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18225 cat $ac_file_inputs > conftest.in
18229 # Transform confdefs.h into a sed script conftest.vals that substitutes
18230 # the proper values into config.h.in to produce config.h. And first:
18231 # Protect against being on the right side of a sed subst in config.status.
18232 # Protect against being in an unquoted here document in config.status.
18233 rm -f conftest.vals
18234 cat > conftest.hdr <<\EOF
18237 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18241 sed -n -f conftest.hdr confdefs.h > conftest.vals
18244 # This sed command replaces #undef with comments. This is necessary, for
18245 # example, in the case of _POSIX_SOURCE, which is predefined and required
18246 # on some systems where configure will not decide to define it.
18247 cat >> conftest.vals <<\EOF
18248 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18251 # Break up conftest.vals because some shells have a limit on
18252 # the size of here documents, and old seds have small limits too.
18254 rm -f conftest.tail
18257 ac_lines=`grep -c . conftest.vals`
18258 # grep -c gives empty output for an empty file on some AIX systems.
18259 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18260 # Write a limited-size here document to conftest.frag.
18261 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18262 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18264 sed -f conftest.frag conftest.in > conftest.out
18266 mv conftest.out conftest.in
18267 ' >> $CONFIG_STATUS
18268 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18269 rm -f conftest.vals
18270 mv conftest.tail conftest.vals
18272 rm -f conftest.vals
18274 cat >> $CONFIG_STATUS <<\EOF
18275 rm -f conftest.frag conftest.h
18276 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18277 cat conftest.in >> conftest.h
18279 if cmp -s $ac_file conftest.h 2>/dev/null; then
18280 echo "$ac_file is unchanged"
18283 # Remove last slash and all that follows it. Not all systems have dirname.
18284 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18285 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18286 # The file is in a subdirectory.
18287 test ! -d "$ac_dir" && mkdir "$ac_dir"
18290 mv conftest.h $ac_file
18295 cat >> $CONFIG_STATUS <<EOF
18298 cat >> $CONFIG_STATUS <<\EOF
18301 echo Please \"make depend\" to build dependencies
18305 chmod +x $CONFIG_STATUS
18306 rm -fr confdefs* $ac_clean_files
18307 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1