3 # from OpenLDAP: pkg/ldap/configure.in,v 1.351 2001/01/22 06:51:26 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging [yes]"
32 --enable-syslog enable syslog support [auto]"
34 --enable-proctitle enable proctitle support [yes]"
36 --enable-cache enable caching (experimental) [no]"
38 --enable-referrals enable V2 Referrals (experimental) [no]"
40 --enable-kbind enable V2 Kerberos IV bind (deprecated) [no]"
42 --enable-ipv6 enable IPv6 support [auto]"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
46 --enable-x-compile enable cross compiling [no]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch URL support [auto]"
52 --with-kerberos with support [auto]"
54 --with-readline with readline support [auto]"
56 --with-threads with threads [auto]"
58 --with-tls with TLS/SSL support [auto]"
60 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rlookups enable reverse lookups [no]"
86 --enable-slp enable SLPv2 support [no]"
88 --enable-wrappers enable tcp wrapper support [no]"
90 --enable-bdb enable Berkeley DB backend [no]"
92 --with-bdb-module module type [static]"
94 --enable-dnssrv enable dnssrv backend [no]"
96 --with-dnssrv-module module type [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type [static]"
102 --enable-ldbm enable ldbm backend [yes]"
104 --with-ldbm-api with LDBM API [auto]"
106 --with-ldbm-module module type [static]"
108 --with-ldbm-type use LDBM type [auto]"
110 --enable-passwd enable passwd backend [no]"
112 --with-passwd-module module type [static]"
114 --enable-perl enable perl backend [no]"
116 --with-perl-module module type [static]"
118 --enable-shell enable shell backend [no]"
120 --with-shell-module module type [static]"
122 --enable-sql enable sql backend [no]"
124 --with-sql-module module type [static]"
126 --enable-tcl enable tcl backend [no]"
128 --with-tcl-module module type [static]"
130 SLURPD (Replication Daemon) Options:"
132 --enable-slurpd enable building slurpd [auto]"
134 Library Generation & Linking Options"
136 --enable-static[=PKGS] build static libraries [default=yes]"
138 --enable-shared[=PKGS] build shared libraries [default=yes]"
140 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
142 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
144 --disable-libtool-lock avoid locking (might break parallel builds)"
146 # Initialize some variables set by options.
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
150 cache_file=./config.cache
159 program_transform_name=s,x,x,
167 bindir='${exec_prefix}/bin'
168 sbindir='${exec_prefix}/sbin'
169 libexecdir='${exec_prefix}/libexec'
170 datadir='${prefix}/share'
171 sysconfdir='${prefix}/etc'
172 sharedstatedir='${prefix}/com'
173 localstatedir='${prefix}/var'
174 libdir='${exec_prefix}/lib'
175 includedir='${prefix}/include'
176 oldincludedir='/usr/include'
177 infodir='${prefix}/info'
178 mandir='${prefix}/man'
180 # Initialize some other variables.
183 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Maximum number of lines to put in a shell here document.
191 # If the previous option needs an argument, assign it.
192 if test -n "$ac_prev"; then
193 eval "$ac_prev=\$ac_option"
199 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir="$ac_optarg" ;;
212 -build | --build | --buil | --bui | --bu)
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build="$ac_optarg" ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file="$ac_optarg" ;;
224 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228 datadir="$ac_optarg" ;;
230 -disable-* | --disable-*)
231 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
232 # Reject names that are not valid shell variable names.
233 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
234 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
236 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
237 eval "enable_${ac_feature}=no" ;;
239 -enable-* | --enable-*)
240 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
243 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
250 eval "enable_${ac_feature}='$ac_optarg'" ;;
252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
254 | --exec | --exe | --ex)
255 ac_prev=exec_prefix ;;
256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
258 | --exec=* | --exe=* | --ex=*)
259 exec_prefix="$ac_optarg" ;;
261 -gas | --gas | --ga | --g)
262 # Obsolete; use --with-gas.
265 -help | --help | --hel | --he)
266 # Omit some internal or obsolete options to make the list less imposing.
267 # This message is too long to be a string in the A/UX 3.1 sh.
269 Usage: configure [options] [host]
270 Options: [defaults in brackets after descriptions]
272 --cache-file=FILE cache test results in FILE
273 --help print this message
274 --no-create do not create output files
275 --quiet, --silent do not print \`checking...' messages
276 --version print the version of autoconf that created configure
277 Directory and file names:
278 --prefix=PREFIX install architecture-independent files in PREFIX
280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
282 --bindir=DIR user executables in DIR [EPREFIX/bin]
283 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
284 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
285 --datadir=DIR read-only architecture-independent data in DIR
287 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
288 --sharedstatedir=DIR modifiable architecture-independent data in DIR
290 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
291 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
292 --includedir=DIR C header files in DIR [PREFIX/include]
293 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
294 --infodir=DIR info documentation in DIR [PREFIX/info]
295 --mandir=DIR man documentation in DIR [PREFIX/man]
296 --srcdir=DIR find the sources in DIR [configure dir or ..]
297 --program-prefix=PREFIX prepend PREFIX to installed program names
298 --program-suffix=SUFFIX append SUFFIX to installed program names
299 --program-transform-name=PROGRAM
300 run sed PROGRAM on installed program names
304 --build=BUILD configure for building on BUILD [BUILD=HOST]
305 --host=HOST configure for HOST [guessed]
306 --target=TARGET configure for TARGET [TARGET=HOST]
307 Features and packages:
308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
312 --x-includes=DIR X include files are in DIR
313 --x-libraries=DIR X library files are in DIR
315 if test -n "$ac_help"; then
316 echo "--enable and --with options recognized:$ac_help"
320 -host | --host | --hos | --ho)
322 -host=* | --host=* | --hos=* | --ho=*)
325 -includedir | --includedir | --includedi | --included | --include \
326 | --includ | --inclu | --incl | --inc)
327 ac_prev=includedir ;;
328 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
329 | --includ=* | --inclu=* | --incl=* | --inc=*)
330 includedir="$ac_optarg" ;;
332 -infodir | --infodir | --infodi | --infod | --info | --inf)
334 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
335 infodir="$ac_optarg" ;;
337 -libdir | --libdir | --libdi | --libd)
339 -libdir=* | --libdir=* | --libdi=* | --libd=*)
340 libdir="$ac_optarg" ;;
342 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
343 | --libexe | --libex | --libe)
344 ac_prev=libexecdir ;;
345 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
346 | --libexe=* | --libex=* | --libe=*)
347 libexecdir="$ac_optarg" ;;
349 -localstatedir | --localstatedir | --localstatedi | --localstated \
350 | --localstate | --localstat | --localsta | --localst \
351 | --locals | --local | --loca | --loc | --lo)
352 ac_prev=localstatedir ;;
353 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
354 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
355 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
356 localstatedir="$ac_optarg" ;;
358 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
360 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
361 mandir="$ac_optarg" ;;
364 # Obsolete; use --without-fp.
367 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
371 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
372 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
375 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
376 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
377 | --oldin | --oldi | --old | --ol | --o)
378 ac_prev=oldincludedir ;;
379 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
380 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
381 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
382 oldincludedir="$ac_optarg" ;;
384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
387 prefix="$ac_optarg" ;;
389 -program-prefix | --program-prefix | --program-prefi | --program-pref \
390 | --program-pre | --program-pr | --program-p)
391 ac_prev=program_prefix ;;
392 -program-prefix=* | --program-prefix=* | --program-prefi=* \
393 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
394 program_prefix="$ac_optarg" ;;
396 -program-suffix | --program-suffix | --program-suffi | --program-suff \
397 | --program-suf | --program-su | --program-s)
398 ac_prev=program_suffix ;;
399 -program-suffix=* | --program-suffix=* | --program-suffi=* \
400 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
401 program_suffix="$ac_optarg" ;;
403 -program-transform-name | --program-transform-name \
404 | --program-transform-nam | --program-transform-na \
405 | --program-transform-n | --program-transform- \
406 | --program-transform | --program-transfor \
407 | --program-transfo | --program-transf \
408 | --program-trans | --program-tran \
409 | --progr-tra | --program-tr | --program-t)
410 ac_prev=program_transform_name ;;
411 -program-transform-name=* | --program-transform-name=* \
412 | --program-transform-nam=* | --program-transform-na=* \
413 | --program-transform-n=* | --program-transform-=* \
414 | --program-transform=* | --program-transfor=* \
415 | --program-transfo=* | --program-transf=* \
416 | --program-trans=* | --program-tran=* \
417 | --progr-tra=* | --program-tr=* | --program-t=*)
418 program_transform_name="$ac_optarg" ;;
420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
421 | -silent | --silent | --silen | --sile | --sil)
424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
428 sbindir="$ac_optarg" ;;
430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
432 | --sharedst | --shareds | --shared | --share | --shar \
434 ac_prev=sharedstatedir ;;
435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
439 sharedstatedir="$ac_optarg" ;;
441 -site | --site | --sit)
443 -site=* | --site=* | --sit=*)
446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
449 srcdir="$ac_optarg" ;;
451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
452 | --syscon | --sysco | --sysc | --sys | --sy)
453 ac_prev=sysconfdir ;;
454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
456 sysconfdir="$ac_optarg" ;;
458 -target | --target | --targe | --targ | --tar | --ta | --t)
460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
461 target="$ac_optarg" ;;
463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
466 -version | --version | --versio | --versi | --vers)
467 echo "configure generated by autoconf version 2.13.1"
471 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
476 ac_package=`echo $ac_package| sed 's/-/_/g'`
481 eval "with_${ac_package}='$ac_optarg'" ;;
483 -without-* | --without-*)
484 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
485 # Reject names that are not valid shell variable names.
486 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
487 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
489 ac_package=`echo $ac_package| sed 's/-/_/g'`
490 eval "with_${ac_package}=no" ;;
493 # Obsolete; use --with-x.
496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
497 | --x-incl | --x-inc | --x-in | --x-i)
498 ac_prev=x_includes ;;
499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
501 x_includes="$ac_optarg" ;;
503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
505 ac_prev=x_libraries ;;
506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
508 x_libraries="$ac_optarg" ;;
510 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
514 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
515 echo "configure: warning: $ac_option: invalid host type" 1>&2
517 if test "x$nonopt" != xNONE; then
518 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
526 if test -n "$ac_prev"; then
527 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
532 # File descriptor usage:
535 # 2 errors and warnings
536 # 3 some systems may open it to /dev/tty
537 # 4 used on the Kubota Titan
538 # 6 checking for... messages and results
539 # 5 compiler messages saved in config.log
540 if test "$silent" = yes; then
548 This file contains any messages produced by compilers while
549 running configure, to aid debugging if configure makes a mistake.
552 # Strip out --no-create and --no-recursion so they do not pile up.
553 # Also quote any args containing shell metacharacters.
558 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
559 | --no-cr | --no-c) ;;
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
562 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
563 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
564 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
569 # Only set these to C if already set. These must not be set unconditionally
570 # because not all systems understand e.g. LANG=C (notably SCO).
571 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
572 # Non-C LC_CTYPE values break the ctype check.
573 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
574 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
575 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
576 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
579 rm -rf conftest* confdefs.h
580 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
583 # A filename unique to this package, relative to the directory that
584 # configure is in, which we can look for to find out if srcdir is correct.
585 ac_unique_file=build/version.sh
587 # Find the source files, if location was not specified.
588 if test -z "$srcdir"; then
589 ac_srcdir_defaulted=yes
590 # Try the directory containing this script, then its parent.
592 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
593 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
595 if test ! -r $srcdir/$ac_unique_file; then
599 ac_srcdir_defaulted=no
601 if test ! -r $srcdir/$ac_unique_file; then
602 if test "$ac_srcdir_defaulted" = yes; then
603 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
605 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
608 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
610 # Prefer explicitly selected file to automatically selected ones.
611 if test -z "$CONFIG_SITE"; then
612 if test "x$prefix" != xNONE; then
613 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
615 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
618 for ac_site_file in $CONFIG_SITE; do
619 if test -r "$ac_site_file"; then
620 echo "loading site script $ac_site_file"
627 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
628 ac_cpp='$CPP $CPPFLAGS'
629 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
630 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
631 cross_compiling=$ac_cv_prog_cc_cross
635 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
636 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
637 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
644 ac_n= ac_c='\c' ac_t=
648 # set unset (borrowed from autoconf 2.49c)
649 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
655 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
658 for ac_dir in build $srcdir/build; do
659 if test -f $ac_dir/install-sh; then
661 ac_install_sh="$ac_aux_dir/install-sh -c"
663 elif test -f $ac_dir/install.sh; then
665 ac_install_sh="$ac_aux_dir/install.sh -c"
667 elif test -f $ac_dir/shtool; then
669 ac_install_sh="$ac_aux_dir/shtool install -c"
673 if test -z "$ac_aux_dir"; then
674 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
676 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
677 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
678 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
680 eval `$ac_aux_dir/version.sh`
681 if test -z "$OL_STRING"; then
682 { echo "configure: error: could not determine version" 1>&2; exit 1; }
685 echo "Configuring $OL_STRING ..."
688 echo $ac_n "checking host system type""... $ac_c" 1>&6
689 echo "configure:690: checking host system type" >&5
690 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
692 # Make sure we can run config.sub.
693 if $ac_config_sub sun4 >/dev/null 2>&1; then :
694 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
697 ac_cv_host_alias=$host
698 case "$ac_cv_host_alias" in
702 if ac_cv_host_alias=`$ac_config_guess`; then :
703 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
705 *) ac_cv_host_alias=$nonopt ;;
709 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
710 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
714 echo $ac_n "(cached) $ac_c" 1>&6
717 echo "$ac_t""$ac_cv_host" 1>&6
720 host_alias=$ac_cv_host_alias
721 host_cpu=$ac_cv_host_cpu
722 host_vendor=$ac_cv_host_vendor
723 host_os=$ac_cv_host_os
729 echo $ac_n "checking target system type""... $ac_c" 1>&6
730 echo "configure:731: checking target system type" >&5
731 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4 >/dev/null 2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 ac_cv_target_alias=$target
739 case "$ac_cv_target_alias" in
743 ac_cv_target_alias=$host_alias ;;
745 *) ac_cv_target_alias=$nonopt ;;
749 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
750 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
754 echo $ac_n "(cached) $ac_c" 1>&6
757 echo "$ac_t""$ac_cv_target" 1>&6
760 target_alias=$ac_cv_target_alias
761 target_cpu=$ac_cv_target_cpu
762 target_vendor=$ac_cv_target_vendor
763 target_os=$ac_cv_target_os
769 echo $ac_n "checking build system type""... $ac_c" 1>&6
770 echo "configure:771: checking build system type" >&5
771 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
773 # Make sure we can run config.sub.
774 if $ac_config_sub sun4 >/dev/null 2>&1; then :
775 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
778 ac_cv_build_alias=$build
779 case "$ac_cv_build_alias" in
783 ac_cv_build_alias=$host_alias ;;
785 *) ac_cv_build_alias=$nonopt ;;
789 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
790 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
791 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
792 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
794 echo $ac_n "(cached) $ac_c" 1>&6
797 echo "$ac_t""$ac_cv_build" 1>&6
800 build_alias=$ac_cv_build_alias
801 build_cpu=$ac_cv_build_cpu
802 build_vendor=$ac_cv_build_vendor
803 build_os=$ac_cv_build_os
809 # Do some error checking and defaulting for the host and target type.
811 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
814 # 1. You are not allowed to specify --host, --target, and nonopt at the
816 # 2. Host defaults to nonopt.
817 # 3. If nonopt is not specified, then host defaults to the current host,
818 # as determined by config.guess.
819 # 4. Target and build default to nonopt.
820 # 5. If nonopt is not specified, then target and build default to host.
822 # The aliases save the names the user supplied, while $host etc.
823 # will get canonicalized.
824 case $host---$target---$nonopt in
825 NONE---*---* | *---NONE---* | *---*---NONE) ;;
826 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
829 test "$host_alias" != "$target_alias" &&
830 test "$program_prefix$program_suffix$program_transform_name" = \
832 program_prefix=${target_alias}-
835 # Find a good install program. We prefer a C program (faster),
836 # so one script is as good as another. But avoid the broken or
837 # incompatible versions:
838 # SysV /etc/install, /usr/sbin/install
839 # SunOS /usr/etc/install
842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
845 # ./install, which can be erroneously created by make from ./install.sh.
846 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
847 echo "configure:848: checking for a BSD compatible install" >&5
848 if test -z "$INSTALL"; then
849 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
853 for ac_dir in $PATH; do
854 # Account for people who put trailing slashes in PATH elements.
856 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858 # OSF1 and SCO ODT 3.0 have their own names for install.
859 # Don't use installbsd from OSF since it installs stuff as root
861 for ac_prog in ginstall scoinst install; do
862 if test -f $ac_dir/$ac_prog; then
863 if test $ac_prog = install &&
864 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # AIX install. It has an incompatible calling convention.
867 elif test $ac_prog = install &&
868 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
869 # program-specific install script used by HP pwplus--don't use.
872 ac_cv_path_install="$ac_dir/$ac_prog -c"
883 if test "${ac_cv_path_install+set}" = set; then
884 INSTALL="$ac_cv_path_install"
886 # As a last resort, use the slow shell script. We don't cache a
887 # path for INSTALL within a source directory, because that will
888 # break other packages using the cache if that directory is
889 # removed, or if the path is relative.
890 INSTALL="$ac_install_sh"
893 echo "$ac_t""$INSTALL" 1>&6
895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
896 # It thinks the first close brace ends the variable substitution.
897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
903 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
904 echo "configure:905: checking whether build environment is sane" >&5
907 echo timestamp > conftestfile
908 # Do `set' in a subshell so we don't clobber the current shell's
909 # arguments. Must try -L first in case configure is actually a
910 # symlink; some systems play weird games with the mod time of symlinks
911 # (eg FreeBSD returns the mod time of the symlink's containing
914 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
915 if test "$*" = "X"; then
917 set X `ls -t $srcdir/configure conftestfile`
919 if test "$*" != "X $srcdir/configure conftestfile" \
920 && test "$*" != "X conftestfile $srcdir/configure"; then
922 # If neither matched, then we have a broken ls. This can happen
923 # if, for instance, CONFIG_SHELL is bash and it inherits a
924 # broken ls alias from the environment. This has actually
925 # happened. Such a system could not be considered "sane".
926 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
927 alias in your environment" 1>&2; exit 1; }
930 test "$2" = conftestfile
936 { echo "configure: error: newly created file is older than distributed files!
937 Check your system clock" 1>&2; exit 1; }
940 echo "$ac_t""yes" 1>&6
941 if test "$program_transform_name" = s,x,x,; then
942 program_transform_name=
944 # Double any \ or $. echo might interpret backslashes.
945 cat <<\EOF_SED > conftestsed
946 s,\\,\\\\,g; s,\$,$$,g
948 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
951 test "$program_prefix" != NONE &&
952 program_transform_name="s,^,${program_prefix},;$program_transform_name"
953 # Use a double $ so make ignores it.
954 test "$program_suffix" != NONE &&
955 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
957 # sed with no file args requires a program.
958 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
960 for ac_prog in mawk gawk nawk awk
962 # Extract the first word of "$ac_prog", so it can be a program name with args.
963 set dummy $ac_prog; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$AWK"; then
970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_AWK="$ac_prog"
984 AWK="$ac_cv_prog_AWK"
985 if test -n "$AWK"; then
986 echo "$ac_t""$AWK" 1>&6
988 echo "$ac_t""no" 1>&6
991 test -n "$AWK" && break
994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${MAKE-make} sets \${MAKE}" >&5
996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
997 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftestmake <<\EOF
1002 @echo 'ac_maketemp="${MAKE}"'
1004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1005 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1006 if test -n "$ac_maketemp"; then
1007 eval ac_cv_prog_make_${ac_make}_set=yes
1009 eval ac_cv_prog_make_${ac_make}_set=no
1013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1014 echo "$ac_t""yes" 1>&6
1017 echo "$ac_t""no" 1>&6
1018 SET_MAKE="MAKE=${MAKE-make}"
1027 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1028 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1033 missing_dir=`cd $ac_aux_dir && pwd`
1034 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working aclocal" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1041 echo "$ac_t""found" 1>&6
1043 ACLOCAL="$missing_dir/missing aclocal"
1044 echo "$ac_t""missing" 1>&6
1047 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1048 echo "configure:1049: checking for working autoconf" >&5
1049 # Run test in a subshell; some versions of sh will print an error if
1050 # an executable is not found, even if stderr is redirected.
1051 # Redirect stdin to placate older versions of autoconf. Sigh.
1052 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1054 echo "$ac_t""found" 1>&6
1056 AUTOCONF="$missing_dir/missing autoconf"
1057 echo "$ac_t""missing" 1>&6
1060 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1061 echo "configure:1062: checking for working automake" >&5
1062 # Run test in a subshell; some versions of sh will print an error if
1063 # an executable is not found, even if stderr is redirected.
1064 # Redirect stdin to placate older versions of autoconf. Sigh.
1065 if (automake --version) < /dev/null > /dev/null 2>&1; then
1067 echo "$ac_t""found" 1>&6
1069 AUTOMAKE="$missing_dir/missing automake"
1070 echo "$ac_t""missing" 1>&6
1073 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1074 echo "configure:1075: checking for working autoheader" >&5
1075 # Run test in a subshell; some versions of sh will print an error if
1076 # an executable is not found, even if stderr is redirected.
1077 # Redirect stdin to placate older versions of autoconf. Sigh.
1078 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1079 AUTOHEADER=autoheader
1080 echo "$ac_t""found" 1>&6
1082 AUTOHEADER="$missing_dir/missing autoheader"
1083 echo "$ac_t""missing" 1>&6
1086 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1087 echo "configure:1088: checking for working makeinfo" >&5
1088 # Run test in a subshell; some versions of sh will print an error if
1089 # an executable is not found, even if stderr is redirected.
1090 # Redirect stdin to placate older versions of autoconf. Sigh.
1091 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1093 echo "$ac_t""found" 1>&6
1095 MAKEINFO="$missing_dir/missing makeinfo"
1096 echo "$ac_t""missing" 1>&6
1099 install_sh="$missing_dir/install-sh"
1100 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1102 for ac_prog in gnutar gtar tar
1104 # Extract the first word of "$ac_prog", so it can be a program name with args.
1105 set dummy $ac_prog; ac_word=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$AMTAR"; then
1112 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116 for ac_dir in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir=.
1118 if test -f $ac_dir/$ac_word; then
1119 ac_cv_prog_AMTAR="$ac_prog"
1126 AMTAR="$ac_cv_prog_AMTAR"
1127 if test -n "$AMTAR"; then
1128 echo "$ac_t""$AMTAR" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 test -n "$AMTAR" && break
1138 if test -n "$AMTAR"; then
1139 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION $OL_API_INC
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1165 cat >> confdefs.h <<EOF
1166 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1170 OPENLDAP_LIBVERSION=$OL_API_LIB
1174 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1175 echo "configure:1176: checking configure arguments" >&5
1180 ldap_subdir="/openldap"
1182 # Check whether --with-subdir or --without-subdir was given.
1183 if test "${with_subdir+set}" = set; then
1184 withval="$with_subdir"
1191 ldap_subdir="$withval"
1194 ldap_subdir="/$withval"
1201 # OpenLDAP --enable-debug
1202 # Check whether --enable-debug or --disable-debug was given.
1203 if test "${enable_debug+set}" = set; then
1204 enableval="$enable_debug"
1207 for ol_val in auto yes no ; do
1208 if test "$enableval" = "$ol_val" ; then
1212 if test "$ol_arg" = "invalid" ; then
1213 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1215 ol_enable_debug="$ol_arg"
1218 ol_enable_debug="yes"
1220 # end --enable-debug
1221 # OpenLDAP --enable-syslog
1222 # Check whether --enable-syslog or --disable-syslog was given.
1223 if test "${enable_syslog+set}" = set; then
1224 enableval="$enable_syslog"
1227 for ol_val in auto yes no ; do
1228 if test "$enableval" = "$ol_val" ; then
1232 if test "$ol_arg" = "invalid" ; then
1233 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1235 ol_enable_syslog="$ol_arg"
1238 ol_enable_syslog="auto"
1240 # end --enable-syslog
1241 # OpenLDAP --enable-proctitle
1242 # Check whether --enable-proctitle or --disable-proctitle was given.
1243 if test "${enable_proctitle+set}" = set; then
1244 enableval="$enable_proctitle"
1247 for ol_val in auto yes no ; do
1248 if test "$enableval" = "$ol_val" ; then
1252 if test "$ol_arg" = "invalid" ; then
1253 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1255 ol_enable_proctitle="$ol_arg"
1258 ol_enable_proctitle="yes"
1260 # end --enable-proctitle
1261 # OpenLDAP --enable-cache
1262 # Check whether --enable-cache or --disable-cache was given.
1263 if test "${enable_cache+set}" = set; then
1264 enableval="$enable_cache"
1267 for ol_val in auto yes no ; do
1268 if test "$enableval" = "$ol_val" ; then
1272 if test "$ol_arg" = "invalid" ; then
1273 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1275 ol_enable_cache="$ol_arg"
1278 ol_enable_cache="no"
1280 # end --enable-cache
1281 # OpenLDAP --enable-referrals
1282 # Check whether --enable-referrals or --disable-referrals was given.
1283 if test "${enable_referrals+set}" = set; then
1284 enableval="$enable_referrals"
1287 for ol_val in auto yes no ; do
1288 if test "$enableval" = "$ol_val" ; then
1292 if test "$ol_arg" = "invalid" ; then
1293 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1295 ol_enable_referrals="$ol_arg"
1298 ol_enable_referrals="no"
1300 # end --enable-referrals
1301 # OpenLDAP --enable-kbind
1302 # Check whether --enable-kbind or --disable-kbind was given.
1303 if test "${enable_kbind+set}" = set; then
1304 enableval="$enable_kbind"
1307 for ol_val in auto yes no ; do
1308 if test "$enableval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1315 ol_enable_kbind="$ol_arg"
1318 ol_enable_kbind="no"
1320 # end --enable-kbind
1321 # OpenLDAP --enable-ipv6
1322 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1323 if test "${enable_ipv6+set}" = set; then
1324 enableval="$enable_ipv6"
1327 for ol_val in auto yes no ; do
1328 if test "$enableval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1335 ol_enable_ipv6="$ol_arg"
1338 ol_enable_ipv6="auto"
1341 # OpenLDAP --enable-local
1342 # Check whether --enable-local or --disable-local was given.
1343 if test "${enable_local+set}" = set; then
1344 enableval="$enable_local"
1347 for ol_val in auto yes no ; do
1348 if test "$enableval" = "$ol_val" ; then
1352 if test "$ol_arg" = "invalid" ; then
1353 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1355 ol_enable_local="$ol_arg"
1358 ol_enable_local="auto"
1360 # end --enable-local
1361 # OpenLDAP --enable-x_compile
1362 # Check whether --enable-x_compile or --disable-x_compile was given.
1363 if test "${enable_x_compile+set}" = set; then
1364 enableval="$enable_x_compile"
1367 for ol_val in yes no ; do
1368 if test "$enableval" = "$ol_val" ; then
1372 if test "$ol_arg" = "invalid" ; then
1373 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1375 ol_enable_x_compile="$ol_arg"
1378 ol_enable_x_compile="no"
1380 # end --enable-x_compile
1383 # OpenLDAP --with-cyrus_sasl
1384 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1385 if test "${with_cyrus_sasl+set}" = set; then
1386 withval="$with_cyrus_sasl"
1389 for ol_val in auto yes no ; do
1390 if test "$withval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1397 ol_with_cyrus_sasl="$ol_arg"
1400 ol_with_cyrus_sasl="auto"
1402 # end --with-cyrus_sasl
1404 # OpenLDAP --with-fetch
1405 # Check whether --with-fetch or --without-fetch was given.
1406 if test "${with_fetch+set}" = set; then
1407 withval="$with_fetch"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1418 ol_with_fetch="$ol_arg"
1421 ol_with_fetch="auto"
1425 # OpenLDAP --with-kerberos
1426 # Check whether --with-kerberos or --without-kerberos was given.
1427 if test "${with_kerberos+set}" = set; then
1428 withval="$with_kerberos"
1431 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1439 ol_with_kerberos="$ol_arg"
1442 ol_with_kerberos="auto"
1444 # end --with-kerberos
1446 # OpenLDAP --with-readline
1447 # Check whether --with-readline or --without-readline was given.
1448 if test "${with_readline+set}" = set; then
1449 withval="$with_readline"
1452 for ol_val in auto yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1460 ol_with_readline="$ol_arg"
1463 ol_with_readline="auto"
1465 # end --with-readline
1467 # OpenLDAP --with-threads
1468 # Check whether --with-threads or --without-threads was given.
1469 if test "${with_threads+set}" = set; then
1470 withval="$with_threads"
1473 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1481 ol_with_threads="$ol_arg"
1484 ol_with_threads="auto"
1486 # end --with-threads
1488 # OpenLDAP --with-tls
1489 # Check whether --with-tls or --without-tls was given.
1490 if test "${with_tls+set}" = set; then
1494 for ol_val in auto ssleay openssl yes no ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1502 ol_with_tls="$ol_arg"
1509 # OpenLDAP --with-yielding_select
1510 # Check whether --with-yielding_select or --without-yielding_select was given.
1511 if test "${with_yielding_select+set}" = set; then
1512 withval="$with_yielding_select"
1515 for ol_val in auto yes no manual ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1523 ol_with_yielding_select="$ol_arg"
1526 ol_with_yielding_select="auto"
1528 # end --with-yielding_select
1532 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1533 if test "${with_xxslapdoptions+set}" = set; then
1534 withval="$with_xxslapdoptions"
1538 # OpenLDAP --enable-slapd
1539 # Check whether --enable-slapd or --disable-slapd was given.
1540 if test "${enable_slapd+set}" = set; then
1541 enableval="$enable_slapd"
1544 for ol_val in auto yes no ; do
1545 if test "$enableval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1552 ol_enable_slapd="$ol_arg"
1555 ol_enable_slapd="yes"
1557 # end --enable-slapd
1558 # OpenLDAP --enable-aci
1559 # Check whether --enable-aci or --disable-aci was given.
1560 if test "${enable_aci+set}" = set; then
1561 enableval="$enable_aci"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1572 ol_enable_aci="$ol_arg"
1578 # OpenLDAP --enable-cleartext
1579 # Check whether --enable-cleartext or --disable-cleartext was given.
1580 if test "${enable_cleartext+set}" = set; then
1581 enableval="$enable_cleartext"
1584 for ol_val in auto yes no ; do
1585 if test "$enableval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1592 ol_enable_cleartext="$ol_arg"
1595 ol_enable_cleartext="yes"
1597 # end --enable-cleartext
1598 # OpenLDAP --enable-crypt
1599 # Check whether --enable-crypt or --disable-crypt was given.
1600 if test "${enable_crypt+set}" = set; then
1601 enableval="$enable_crypt"
1604 for ol_val in auto yes no ; do
1605 if test "$enableval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1612 ol_enable_crypt="$ol_arg"
1615 ol_enable_crypt="no"
1617 # end --enable-crypt
1618 # OpenLDAP --enable-dynamic
1619 # Check whether --enable-dynamic or --disable-dynamic was given.
1620 if test "${enable_dynamic+set}" = set; then
1621 enableval="$enable_dynamic"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1632 ol_enable_dynamic="$ol_arg"
1635 ol_enable_dynamic="no"
1637 # end --enable-dynamic
1638 # OpenLDAP --enable-kpasswd
1639 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1640 if test "${enable_kpasswd+set}" = set; then
1641 enableval="$enable_kpasswd"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1652 ol_enable_kpasswd="$ol_arg"
1655 ol_enable_kpasswd="no"
1657 # end --enable-kpasswd
1658 # OpenLDAP --enable-lmpasswd
1659 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1660 if test "${enable_lmpasswd+set}" = set; then
1661 enableval="$enable_lmpasswd"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1672 ol_enable_lmpasswd="$ol_arg"
1675 ol_enable_lmpasswd="no"
1677 # end --enable-lmpasswd
1678 # OpenLDAP --enable-spasswd
1679 # Check whether --enable-spasswd or --disable-spasswd was given.
1680 if test "${enable_spasswd+set}" = set; then
1681 enableval="$enable_spasswd"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1692 ol_enable_spasswd="$ol_arg"
1695 ol_enable_spasswd="no"
1697 # end --enable-spasswd
1698 # OpenLDAP --enable-modules
1699 # Check whether --enable-modules or --disable-modules was given.
1700 if test "${enable_modules+set}" = set; then
1701 enableval="$enable_modules"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1712 ol_enable_modules="$ol_arg"
1715 ol_enable_modules="no"
1717 # end --enable-modules
1718 # OpenLDAP --enable-phonetic
1719 # Check whether --enable-phonetic or --disable-phonetic was given.
1720 if test "${enable_phonetic+set}" = set; then
1721 enableval="$enable_phonetic"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1732 ol_enable_phonetic="$ol_arg"
1735 ol_enable_phonetic="no"
1737 # end --enable-phonetic
1738 # OpenLDAP --enable-rlookups
1739 # Check whether --enable-rlookups or --disable-rlookups was given.
1740 if test "${enable_rlookups+set}" = set; then
1741 enableval="$enable_rlookups"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1752 ol_enable_rlookups="$ol_arg"
1755 ol_enable_rlookups="no"
1757 # end --enable-rlookups
1758 # OpenLDAP --enable-slp
1759 # Check whether --enable-slp or --disable-slp was given.
1760 if test "${enable_slp+set}" = set; then
1761 enableval="$enable_slp"
1764 for ol_val in auto yes no ; do
1765 if test "$enableval" = "$ol_val" ; then
1769 if test "$ol_arg" = "invalid" ; then
1770 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1772 ol_enable_slp="$ol_arg"
1778 # OpenLDAP --enable-wrappers
1779 # Check whether --enable-wrappers or --disable-wrappers was given.
1780 if test "${enable_wrappers+set}" = set; then
1781 enableval="$enable_wrappers"
1784 for ol_val in auto yes no ; do
1785 if test "$enableval" = "$ol_val" ; then
1789 if test "$ol_arg" = "invalid" ; then
1790 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1792 ol_enable_wrappers="$ol_arg"
1795 ol_enable_wrappers="no"
1797 # end --enable-wrappers
1799 # OpenLDAP --enable-bdb
1800 # Check whether --enable-bdb or --disable-bdb was given.
1801 if test "${enable_bdb+set}" = set; then
1802 enableval="$enable_bdb"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1813 ol_enable_bdb="$ol_arg"
1819 # OpenLDAP --with-bdb_module
1820 # Check whether --with-bdb_module or --without-bdb_module was given.
1821 if test "${with_bdb_module+set}" = set; then
1822 withval="$with_bdb_module"
1825 for ol_val in static dynamic ; do
1826 if test "$withval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1833 ol_with_bdb_module="$ol_arg"
1836 ol_with_bdb_module="static"
1838 # end --with-bdb_module
1840 # OpenLDAP --enable-dnssrv
1841 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1842 if test "${enable_dnssrv+set}" = set; then
1843 enableval="$enable_dnssrv"
1846 for ol_val in auto yes no ; do
1847 if test "$enableval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1854 ol_enable_dnssrv="$ol_arg"
1857 ol_enable_dnssrv="no"
1859 # end --enable-dnssrv
1860 # OpenLDAP --with-dnssrv_module
1861 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1862 if test "${with_dnssrv_module+set}" = set; then
1863 withval="$with_dnssrv_module"
1866 for ol_val in static dynamic ; do
1867 if test "$withval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1874 ol_with_dnssrv_module="$ol_arg"
1877 ol_with_dnssrv_module="static"
1879 # end --with-dnssrv_module
1881 # OpenLDAP --enable-ldap
1882 # Check whether --enable-ldap or --disable-ldap was given.
1883 if test "${enable_ldap+set}" = set; then
1884 enableval="$enable_ldap"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1895 ol_enable_ldap="$ol_arg"
1901 # OpenLDAP --with-ldap_module
1902 # Check whether --with-ldap_module or --without-ldap_module was given.
1903 if test "${with_ldap_module+set}" = set; then
1904 withval="$with_ldap_module"
1907 for ol_val in static dynamic ; do
1908 if test "$withval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1915 ol_with_ldap_module="$ol_arg"
1918 ol_with_ldap_module="static"
1920 # end --with-ldap_module
1922 # OpenLDAP --enable-ldbm
1923 # Check whether --enable-ldbm or --disable-ldbm was given.
1924 if test "${enable_ldbm+set}" = set; then
1925 enableval="$enable_ldbm"
1928 for ol_val in auto yes no ; do
1929 if test "$enableval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1936 ol_enable_ldbm="$ol_arg"
1939 ol_enable_ldbm="yes"
1942 # OpenLDAP --with-ldbm_api
1943 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1944 if test "${with_ldbm_api+set}" = set; then
1945 withval="$with_ldbm_api"
1948 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1949 if test "$withval" = "$ol_val" ; then
1953 if test "$ol_arg" = "invalid" ; then
1954 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1956 ol_with_ldbm_api="$ol_arg"
1959 ol_with_ldbm_api="auto"
1961 # end --with-ldbm_api
1963 # OpenLDAP --with-ldbm_module
1964 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1965 if test "${with_ldbm_module+set}" = set; then
1966 withval="$with_ldbm_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1977 ol_with_ldbm_module="$ol_arg"
1980 ol_with_ldbm_module="static"
1982 # end --with-ldbm_module
1984 # OpenLDAP --with-ldbm_type
1985 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1986 if test "${with_ldbm_type+set}" = set; then
1987 withval="$with_ldbm_type"
1990 for ol_val in auto btree hash ; do
1991 if test "$withval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1998 ol_with_ldbm_type="$ol_arg"
2001 ol_with_ldbm_type="auto"
2003 # end --with-ldbm_type
2005 # OpenLDAP --enable-passwd
2006 # Check whether --enable-passwd or --disable-passwd was given.
2007 if test "${enable_passwd+set}" = set; then
2008 enableval="$enable_passwd"
2011 for ol_val in auto yes no ; do
2012 if test "$enableval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2019 ol_enable_passwd="$ol_arg"
2022 ol_enable_passwd="no"
2024 # end --enable-passwd
2025 # OpenLDAP --with-passwd_module
2026 # Check whether --with-passwd_module or --without-passwd_module was given.
2027 if test "${with_passwd_module+set}" = set; then
2028 withval="$with_passwd_module"
2031 for ol_val in static dynamic ; do
2032 if test "$withval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2039 ol_with_passwd_module="$ol_arg"
2042 ol_with_passwd_module="static"
2044 # end --with-passwd_module
2046 # OpenLDAP --enable-perl
2047 # Check whether --enable-perl or --disable-perl was given.
2048 if test "${enable_perl+set}" = set; then
2049 enableval="$enable_perl"
2052 for ol_val in auto yes no ; do
2053 if test "$enableval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2060 ol_enable_perl="$ol_arg"
2066 # OpenLDAP --with-perl_module
2067 # Check whether --with-perl_module or --without-perl_module was given.
2068 if test "${with_perl_module+set}" = set; then
2069 withval="$with_perl_module"
2072 for ol_val in static dynamic ; do
2073 if test "$withval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2080 ol_with_perl_module="$ol_arg"
2083 ol_with_perl_module="static"
2085 # end --with-perl_module
2087 # OpenLDAP --enable-shell
2088 # Check whether --enable-shell or --disable-shell was given.
2089 if test "${enable_shell+set}" = set; then
2090 enableval="$enable_shell"
2093 for ol_val in auto yes no ; do
2094 if test "$enableval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2101 ol_enable_shell="$ol_arg"
2104 ol_enable_shell="no"
2106 # end --enable-shell
2107 # OpenLDAP --with-shell_module
2108 # Check whether --with-shell_module or --without-shell_module was given.
2109 if test "${with_shell_module+set}" = set; then
2110 withval="$with_shell_module"
2113 for ol_val in static dynamic ; do
2114 if test "$withval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2121 ol_with_shell_module="$ol_arg"
2124 ol_with_shell_module="static"
2126 # end --with-shell_module
2128 # OpenLDAP --enable-sql
2129 # Check whether --enable-sql or --disable-sql was given.
2130 if test "${enable_sql+set}" = set; then
2131 enableval="$enable_sql"
2134 for ol_val in auto yes no ; do
2135 if test "$enableval" = "$ol_val" ; then
2139 if test "$ol_arg" = "invalid" ; then
2140 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2142 ol_enable_sql="$ol_arg"
2148 # OpenLDAP --with-sql_module
2149 # Check whether --with-sql_module or --without-sql_module was given.
2150 if test "${with_sql_module+set}" = set; then
2151 withval="$with_sql_module"
2154 for ol_val in static dynamic ; do
2155 if test "$withval" = "$ol_val" ; then
2159 if test "$ol_arg" = "invalid" ; then
2160 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2162 ol_with_sql_module="$ol_arg"
2165 ol_with_sql_module="static"
2167 # end --with-sql_module
2169 # OpenLDAP --enable-tcl
2170 # Check whether --enable-tcl or --disable-tcl was given.
2171 if test "${enable_tcl+set}" = set; then
2172 enableval="$enable_tcl"
2175 for ol_val in auto yes no ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2183 ol_enable_tcl="$ol_arg"
2189 # OpenLDAP --with-tcl_module
2190 # Check whether --with-tcl_module or --without-tcl_module was given.
2191 if test "${with_tcl_module+set}" = set; then
2192 withval="$with_tcl_module"
2195 for ol_val in static dynamic ; do
2196 if test "$withval" = "$ol_val" ; then
2200 if test "$ol_arg" = "invalid" ; then
2201 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2203 ol_with_tcl_module="$ol_arg"
2206 ol_with_tcl_module="static"
2208 # end --with-tcl_module
2211 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2212 if test "${with_xxslurpdoptions+set}" = set; then
2213 withval="$with_xxslurpdoptions"
2217 # OpenLDAP --enable-slurpd
2218 # Check whether --enable-slurpd or --disable-slurpd was given.
2219 if test "${enable_slurpd+set}" = set; then
2220 enableval="$enable_slurpd"
2223 for ol_val in auto yes no ; do
2224 if test "$enableval" = "$ol_val" ; then
2228 if test "$ol_arg" = "invalid" ; then
2229 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2231 ol_enable_slurpd="$ol_arg"
2234 ol_enable_slurpd="auto"
2236 # end --enable-slurpd
2238 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2239 if test "${with_xxliboptions+set}" = set; then
2240 withval="$with_xxliboptions"
2244 # Check whether --enable-static or --disable-static was given.
2245 if test "${enable_static+set}" = set; then
2246 enableval="$enable_static"
2247 p=${PACKAGE-default}
2248 case "$enableval" in
2249 yes) enable_static=yes ;;
2250 no) enable_static=no ;;
2253 # Look at the argument we got. We use all the common list separators.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2255 for pkg in $enableval; do
2256 if test "X$pkg" = "X$p"; then
2267 # Check whether --enable-shared or --disable-shared was given.
2268 if test "${enable_shared+set}" = set; then
2269 enableval="$enable_shared"
2270 p=${PACKAGE-default}
2271 case "$enableval" in
2272 yes) enable_shared=yes ;;
2273 no) enable_shared=no ;;
2276 # Look at the argument we got. We use all the common list separators.
2277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2278 for pkg in $enableval; do
2279 if test "X$pkg" = "X$p"; then
2293 if test $ol_enable_slapd = no ; then
2294 if test $ol_enable_bdb = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2297 if test $ol_enable_dnssrv = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2300 if test $ol_enable_ldap = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2303 if test $ol_enable_ldbm = yes ; then
2304 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2306 if test $ol_enable_passwd = yes ; then
2307 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2309 if test $ol_enable_perl = yes ; then
2310 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2312 if test $ol_enable_shell = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2315 if test $ol_enable_tcl = yes ; then
2316 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2318 if test $ol_enable_sql = yes ; then
2319 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2321 if test $ol_enable_modules = yes ; then
2322 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2324 if test $ol_enable_wrappers = yes ; then
2325 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2327 if test $ol_enable_phonetic = yes ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2330 if test $ol_enable_rlookups = yes ; then
2331 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2333 if test $ol_enable_aci = yes ; then
2334 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2336 if test $ol_with_ldbm_api != auto ; then
2337 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2339 if test $ol_with_ldbm_type != auto ; then
2340 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2342 if test $ol_with_bdb_module != static ; then
2343 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2345 if test $ol_with_dnssrv_module != static ; then
2346 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2348 if test $ol_with_ldap_module != static ; then
2349 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2351 if test $ol_with_ldbm_module != static ; then
2352 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2354 if test $ol_with_passwd_module != static ; then
2355 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2357 if test $ol_with_perl_module != static ; then
2358 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2360 if test $ol_with_shell_module != static ; then
2361 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2363 if test $ol_with_tcl_module != static ; then
2364 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2366 if test $ol_with_sql_module != static ; then
2367 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2369 if test $ol_enable_slurpd = yes ; then
2370 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2373 # force settings to no
2384 ol_enable_modules=no
2385 ol_enable_phonetic=no
2386 ol_enable_rlookups=no
2388 ol_enable_wrappers=no
2389 ol_enable_dynamic=no
2392 ol_with_ldbm_type=no
2394 ol_with_bdb_module=static
2395 ol_with_dnssrv_module=static
2396 ol_with_ldap_module=static
2397 ol_with_ldbm_module=static
2398 ol_with_passwd_module=static
2399 ol_with_perl_module=static
2400 ol_with_shell_module=static
2401 ol_with_tcl_module=static
2402 ol_with_sql_module=static
2406 elif test $ol_enable_ldbm = no ; then
2408 if test $ol_with_ldbm_api != auto ; then
2409 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2412 if test $ol_with_ldbm_type != auto ; then
2413 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2416 if test $ol_with_ldbm_module != static ; then
2417 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2420 if test $ol_enable_modules != yes -a \
2421 $ol_enable_bdb = no -a \
2422 $ol_enable_dnssrv = no -a \
2423 $ol_enable_ldap = no -a \
2424 $ol_enable_passwd = no -a \
2425 $ol_enable_perl = no -a \
2426 $ol_enable_shell = no -a \
2427 $ol_enable_sql = no -a \
2428 $ol_enable_tcl = no ; then
2429 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2433 ol_with_ldbm_type=no
2434 ol_with_ldbm_module=static
2437 if test $ol_with_ldbm_api = gdbm -a \
2438 $ol_with_ldbm_type = btree ; then
2439 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2441 if test $ol_with_ldbm_api = mdbm -a \
2442 $ol_with_ldbm_type = btree ; then
2443 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2445 if test $ol_with_ldbm_api = ndbm -a \
2446 $ol_with_ldbm_type = btree ; then
2447 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2451 if test $ol_enable_slurpd = yes ; then
2452 if test $ol_with_threads = no ; then
2453 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2457 if test $ol_enable_lmpasswd = yes ; then
2458 if test $ol_with_tls = no ; then
2459 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2463 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2464 if test $ol_with_kerberos = no ; then
2465 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2467 ol_with_kerberos=yes
2468 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2469 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2470 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2475 if test $ol_enable_spasswd = yes ; then
2476 if test $ol_with_cyrus_sasl = no ; then
2477 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2479 ol_with_cyrus_sasl=yes
2482 echo "$ac_t""done" 1>&6
2508 BUILD_BDB_DYNAMIC=static
2509 BUILD_DNSSRV_DYNAMIC=static
2510 BUILD_LDAP_DYNAMIC=static
2511 BUILD_LDBM_DYNAMIC=static
2512 BUILD_PASSWD_DYNAMIC=static
2513 BUILD_PERL_DYNAMIC=static
2514 BUILD_SHELL_DYNAMIC=static
2515 BUILD_TCL_DYNAMIC=static
2516 BUILD_SQL_DYNAMIC=static
2518 SLAPD_MODULES_LDFLAGS=
2519 SLAPD_MODULES_CPPFLAGS=
2544 cat >> confdefs.h <<\EOF
2545 #define HAVE_MKVERSION 1
2553 *-*-aix*) if test -z "$CC" ; then
2554 case "$ol_with_threads" in
2555 auto | yes | posix) ol_aix_threads=yes ;;
2561 if test $ol_aix_threads = yes ; then
2562 if test -z "${CC}" ; then
2563 for ac_prog in cc_r xlc_r cc
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_word" >&5
2569 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2577 for ac_dir in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir=.
2579 if test -f $ac_dir/$ac_word; then
2580 ac_cv_prog_CC="$ac_prog"
2588 if test -n "$CC"; then
2589 echo "$ac_t""$CC" 1>&6
2591 echo "$ac_t""no" 1>&6
2594 test -n "$CC" && break
2598 if test "$CC" = cc ; then
2599 if test $ol_with_threads != auto ; then
2600 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2602 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2608 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2609 ol_with_threads=posix
2610 ol_cv_pthread_create=yes
2614 if test -z "${CC}"; then
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_word" >&5
2621 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2629 for ac_dir in $ac_dummy; do
2630 test -z "$ac_dir" && ac_dir=.
2631 if test -f $ac_dir/$ac_word; then
2632 ac_cv_prog_CC="$ac_prog"
2640 if test -n "$CC"; then
2641 echo "$ac_t""$CC" 1>&6
2643 echo "$ac_t""no" 1>&6
2646 test -n "$CC" && break
2654 # Check whether --enable-fast-install or --disable-fast-install was given.
2655 if test "${enable_fast_install+set}" = set; then
2656 enableval="$enable_fast_install"
2657 p=${PACKAGE-default}
2658 case "$enableval" in
2659 yes) enable_fast_install=yes ;;
2660 no) enable_fast_install=no ;;
2662 enable_fast_install=no
2663 # Look at the argument we got. We use all the common list separators.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2665 for pkg in $enableval; do
2666 if test "X$pkg" = "X$p"; then
2667 enable_fast_install=yes
2674 enable_fast_install=yes
2677 # Extract the first word of "ranlib", so it can be a program name with args.
2678 set dummy ranlib; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 if test -n "$RANLIB"; then
2685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_prog_RANLIB="ranlib"
2697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2700 RANLIB="$ac_cv_prog_RANLIB"
2701 if test -n "$RANLIB"; then
2702 echo "$ac_t""$RANLIB" 1>&6
2704 echo "$ac_t""no" 1>&6
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2719 for ac_dir in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir=.
2721 if test -f $ac_dir/$ac_word; then
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_word" >&5
2741 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2750 for ac_dir in $ac_dummy; do
2751 test -z "$ac_dir" && ac_dir=.
2752 if test -f $ac_dir/$ac_word; then
2753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2754 ac_prog_rejected=yes
2762 if test $ac_prog_rejected = yes; then
2763 # We found a bogon in the path, so make sure we never use it.
2764 set dummy $ac_cv_prog_CC
2766 if test $# -gt 0; then
2767 # We chose a different compiler from the bogus one.
2768 # However, it has the same basename, so the bogon will be chosen
2769 # first if we set CC to just the basename; use the full file name.
2771 set dummy "$ac_dir/$ac_word" "$@"
2779 if test -n "$CC"; then
2780 echo "$ac_t""$CC" 1>&6
2782 echo "$ac_t""no" 1>&6
2785 if test -z "$CC"; then
2786 case "`uname -s`" in
2787 *win32* | *WIN32* | *CYGWIN*)
2788 # Extract the first word of "cl", so it can be a program name with args.
2789 set dummy cl; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2823 echo "configure:2824: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2830 cross_compiling=$ac_cv_prog_cc_cross
2832 cat > conftest.$ac_ext << EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 ac_cv_prog_cc_works=yes
2841 # If we can't run a trivial program, we are probably using a cross compiler.
2842 if (./conftest; exit) 2>/dev/null; then
2843 ac_cv_prog_cc_cross=no
2845 ac_cv_prog_cc_cross=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 ac_cv_prog_cc_works=no
2854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2858 cross_compiling=$ac_cv_prog_cc_cross
2860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2861 if test $ac_cv_prog_cc_works = no; then
2862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2865 echo "configure:2866: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2867 cross_compiling=$ac_cv_prog_cc_cross
2869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2870 echo "configure:2871: checking whether we are using GNU C" >&5
2871 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.c <<EOF
2879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2888 if test $ac_cv_prog_gcc = yes; then
2894 ac_test_CFLAGS="${CFLAGS+set}"
2895 ac_save_CFLAGS="$CFLAGS"
2897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2898 echo "configure:2899: checking whether ${CC-cc} accepts -g" >&5
2899 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 echo 'void f(){}' > conftest.c
2903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2913 if test "$ac_test_CFLAGS" = set; then
2914 CFLAGS="$ac_save_CFLAGS"
2915 elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2922 if test "$GCC" = yes; then
2929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2930 if test "${with_gnu_ld+set}" = set; then
2931 withval="$with_gnu_ld"
2932 test "$withval" = no || with_gnu_ld=yes
2938 if test "$ac_cv_prog_gcc" = yes; then
2939 # Check if gcc -print-prog-name=ld gives a path.
2940 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2941 echo "configure:2942: checking for ld used by GCC" >&5
2942 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2944 # Accept absolute paths.
2945 [\\/]* | [A-Za-z]:[\\/]*)
2946 re_direlt='/[^/][^/]*/\.\./'
2947 # Canonicalize the path of ld
2948 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2950 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952 test -z "$LD" && LD="$ac_prog"
2955 # If it fails, then pretend we aren't using GCC.
2959 # If it is relative, then search for the first ld in PATH.
2963 elif test "$with_gnu_ld" = yes; then
2964 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2965 echo "configure:2966: checking for GNU ld" >&5
2967 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2968 echo "configure:2969: checking for non-GNU ld" >&5
2970 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test -z "$LD"; then
2974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2975 for ac_dir in $PATH; do
2976 test -z "$ac_dir" && ac_dir=.
2977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2978 ac_cv_path_LD="$ac_dir/$ac_prog"
2979 # Check to see if the program is GNU ld. I'd rather use --version,
2980 # but apparently some GNU ld's only accept -v.
2981 # Break only if it was the GNU/non-GNU ld that we prefer.
2982 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2983 test "$with_gnu_ld" != no && break
2985 test "$with_gnu_ld" != yes && break
2991 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2996 if test -n "$LD"; then
2997 echo "$ac_t""$LD" 1>&6
2999 echo "$ac_t""no" 1>&6
3001 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3002 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3003 echo "configure:3004: checking if the linker ($LD) is GNU ld" >&5
3004 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3008 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3009 ac_cv_prog_gnu_ld=yes
3011 ac_cv_prog_gnu_ld=no
3015 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3018 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3019 echo "configure:3020: checking for BSD-compatible nm" >&5
3020 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$NM"; then
3024 # Let the user override the test.
3027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3028 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3031 # Check to see if the nm accepts a BSD-compat flag.
3032 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3033 # nm: unknown option "B" ignored
3034 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3035 ac_cv_path_NM="$ac_dir/nm -B"
3037 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3038 ac_cv_path_NM="$ac_dir/nm -p"
3041 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3042 continue # so that we can try to find one that supports BSD flags
3047 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3052 echo "$ac_t""$NM" 1>&6
3054 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether ln -s works" >&5
3056 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3060 if ln -s X conftestdata 2>/dev/null
3063 ac_cv_prog_LN_S="ln -s"
3068 LN_S="$ac_cv_prog_LN_S"
3069 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3070 echo "$ac_t""yes" 1>&6
3072 echo "$ac_t""no" 1>&6
3075 if test $host != $build; then
3076 ac_tool_prefix=${host_alias}-
3083 NONE) lt_target="$host" ;;
3084 *) lt_target="$target" ;;
3087 # Check for any special flags to pass to ltconfig.
3088 libtool_flags="--cache-file=$cache_file"
3089 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3090 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3091 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3092 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3093 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3094 libtool_flags="$libtool_flags --enable-dlopen"
3095 libtool_flags="$libtool_flags --enable-win32-dll"
3096 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3097 if test "${enable_libtool_lock+set}" = set; then
3098 enableval="$enable_libtool_lock"
3102 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3103 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3105 # Some flags need to be propagated to the compiler or linker for good
3107 case "$lt_target" in
3109 # Find out which ABI we are using.
3110 echo '#line 3111 "configure"' > conftest.$ac_ext
3111 if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 case "`/usr/bin/file conftest.o`" in
3128 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3129 SAVE_CFLAGS="$CFLAGS"
3130 CFLAGS="$CFLAGS -belf"
3131 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3132 echo "configure:3133: checking whether the C compiler needs -belf" >&5
3133 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3144 if { (eval echo configure:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3146 lt_cv_cc_needs_belf=yes
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3151 lt_cv_cc_needs_belf=no
3156 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3159 CFLAGS="$SAVE_CFLAGS"
3163 *-*-cygwin* | *-*-mingw*)
3164 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_word" >&5
3168 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$DLLTOOL"; then
3172 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3176 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 if test -f $ac_dir/$ac_word; then
3179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3186 DLLTOOL="$ac_cv_prog_DLLTOOL"
3187 if test -n "$DLLTOOL"; then
3188 echo "$ac_t""$DLLTOOL" 1>&6
3190 echo "$ac_t""no" 1>&6
3194 if test -z "$ac_cv_prog_DLLTOOL"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "dlltool", so it can be a program name with args.
3197 set dummy dlltool; ac_word=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3208 for ac_dir in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_DLLTOOL="dlltool"
3216 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3219 DLLTOOL="$ac_cv_prog_DLLTOOL"
3220 if test -n "$DLLTOOL"; then
3221 echo "$ac_t""$DLLTOOL" 1>&6
3223 echo "$ac_t""no" 1>&6
3231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}as; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$AS"; then
3239 ac_cv_prog_AS="$AS" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_AS="${ac_tool_prefix}as"
3254 if test -n "$AS"; then
3255 echo "$ac_t""$AS" 1>&6
3257 echo "$ac_t""no" 1>&6
3261 if test -z "$ac_cv_prog_AS"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "as", so it can be a program name with args.
3264 set dummy as; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS="$AS" # Let the user override the test.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3275 for ac_dir in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir=.
3277 if test -f $ac_dir/$ac_word; then
3283 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3287 if test -n "$AS"; then
3288 echo "$ac_t""$AS" 1>&6
3290 echo "$ac_t""no" 1>&6
3298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_word" >&5
3302 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 if test -n "$OBJDUMP"; then
3306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3310 for ac_dir in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir=.
3312 if test -f $ac_dir/$ac_word; then
3313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3320 OBJDUMP="$ac_cv_prog_OBJDUMP"
3321 if test -n "$OBJDUMP"; then
3322 echo "$ac_t""$OBJDUMP" 1>&6
3324 echo "$ac_t""no" 1>&6
3328 if test -z "$ac_cv_prog_OBJDUMP"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "objdump", so it can be a program name with args.
3331 set dummy objdump; ac_word=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3342 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_OBJDUMP="objdump"
3350 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3353 OBJDUMP="$ac_cv_prog_OBJDUMP"
3354 if test -n "$OBJDUMP"; then
3355 echo "$ac_t""$OBJDUMP" 1>&6
3357 echo "$ac_t""no" 1>&6
3370 # Save cache, so that ltconfig can load it
3373 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3374 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3375 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3376 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3377 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3378 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3379 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3380 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3382 # Reload cache, that may have been modified by ltconfig
3385 # This can be used to rebuild libtool when needed
3386 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3388 # Always use our own libtool.
3389 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3391 # Redirect the config.log output again, so that the ltconfig log is not
3392 # clobbered by the next message.
3393 exec 5>>./config.log
3396 for ac_prog in mawk gawk nawk awk
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_word" >&5
3402 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 if test -n "$AWK"; then
3406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3410 for ac_dir in $ac_dummy; do
3411 test -z "$ac_dir" && ac_dir=.
3412 if test -f $ac_dir/$ac_word; then
3413 ac_cv_prog_AWK="$ac_prog"
3420 AWK="$ac_cv_prog_AWK"
3421 if test -n "$AWK"; then
3422 echo "$ac_t""$AWK" 1>&6
3424 echo "$ac_t""no" 1>&6
3427 test -n "$AWK" && break
3430 # test for ln hardlink support
3431 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3432 echo "configure:3433: checking whether ln works" >&5
3433 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 rm -f conftest.src conftest.dst
3437 echo "conftest" > conftest.src
3438 if ln conftest.src conftest.dst 2>/dev/null
3440 ol_cv_prog_LN_H="ln"
3442 ol_cv_prog_LN_H="cp"
3444 rm -f conftest.src conftest.dst
3447 LN_H="$ol_cv_prog_LN_H"
3448 if test "$ol_cv_prog_LN_H" = "ln"; then
3449 echo "$ac_t""yes" 1>&6
3451 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3455 echo "configure:3456: checking whether ln -s works" >&5
3456 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3460 if ln -s X conftestdata 2>/dev/null
3463 ac_cv_prog_LN_S="ln -s"
3468 LN_S="$ac_cv_prog_LN_S"
3469 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3470 echo "$ac_t""yes" 1>&6
3472 echo "$ac_t""no" 1>&6
3476 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3480 # Extract the first word of "sendmail", so it can be a program name with args.
3481 set dummy sendmail; ac_word=$2
3482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3483 echo "configure:3484: checking for $ac_word" >&5
3484 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3492 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3496 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3505 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3509 SENDMAIL="$ac_cv_path_SENDMAIL"
3510 if test -n "$SENDMAIL"; then
3511 echo "$ac_t""$SENDMAIL" 1>&6
3513 echo "$ac_t""no" 1>&6
3516 # Extract the first word of "vi", so it can be a program name with args.
3517 set dummy vi; ac_word=$2
3518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_word" >&5
3520 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3528 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3532 ac_dummy="$PATH:/usr/ucb"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3541 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3545 EDITOR="$ac_cv_path_EDITOR"
3546 if test -n "$EDITOR"; then
3547 echo "$ac_t""$EDITOR" 1>&6
3549 echo "$ac_t""no" 1>&6
3552 # Extract the first word of "finger", so it can be a program name with args.
3553 set dummy finger; ac_word=$2
3554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_word" >&5
3556 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3564 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3568 ac_dummy="$PATH:/usr/ucb"
3569 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 if test -f $ac_dir/$ac_word; then
3572 ac_cv_path_FINGER="$ac_dir/$ac_word"
3577 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3581 FINGER="$ac_cv_path_FINGER"
3582 if test -n "$FINGER"; then
3583 echo "$ac_t""$FINGER" 1>&6
3585 echo "$ac_t""no" 1>&6
3590 if test $ol_enable_perl != no ; then
3591 # Extract the first word of "perl", so it can be a program name with args.
3592 set dummy perl; ac_word=$2
3593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_word" >&5
3595 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3603 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3616 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3620 PERLBIN="$ac_cv_path_PERLBIN"
3621 if test -n "$PERLBIN"; then
3622 echo "$ac_t""$PERLBIN" 1>&6
3624 echo "$ac_t""no" 1>&6
3628 if test "no$PERLBIN" = "no" ; then
3629 if test $ol_enable_perl = yes ; then
3630 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3634 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3635 if test x"$ol_with_perl_module" = "xstatic" ; then
3636 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3638 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3644 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3645 echo "configure:3646: checking how to run the C preprocessor" >&5
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3650 if test -z "$CPP"; then
3651 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 # This must be in double quotes, not single quotes, because CPP may get
3655 # substituted into the Makefile and "${CC-cc}" will confuse make.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp.
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3666 { (eval echo configure:3667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3668 if test -z "$ac_err"; then
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3675 CPP="${CC-cc} -E -traditional-cpp"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3683 { (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3685 if test -z "$ac_err"; then
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 CPP="${CC-cc} -nologo -E"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3700 { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3702 if test -z "$ac_err"; then
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3716 ac_cv_prog_CPP="$CPP"
3718 CPP="$ac_cv_prog_CPP"
3720 ac_cv_prog_CPP="$CPP"
3722 echo "$ac_t""$CPP" 1>&6
3725 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3726 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3728 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3729 echo "configure: warning: programs compiled here do run here..." 1>&2
3730 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3732 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3733 echo "configure: warning: programs compiled here do not run here..." 1>&2
3734 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3737 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3738 echo "configure:3739: checking for AIX" >&5
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 egrep "yes" >/dev/null 2>&1; then
3750 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3751 #define _ALL_SOURCE 1
3756 echo "$ac_t""no" 1>&6
3761 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3762 echo "configure:3763: checking for POSIXized ISC" >&5
3763 if test -d /etc/conf/kconfig.d &&
3764 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3766 echo "$ac_t""yes" 1>&6
3767 ISC=yes # If later tests want to check for ISC.
3768 cat >> confdefs.h <<\EOF
3769 #define _POSIX_SOURCE 1
3772 if test "$GCC" = yes; then
3778 echo "$ac_t""no" 1>&6
3782 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3783 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3784 echo "configure:3785: checking for minix/config.h" >&5
3785 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <minix/config.h>
3793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3794 { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3796 if test -z "$ac_err"; then
3798 eval "ac_cv_header_$ac_safe=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_header_$ac_safe=no"
3808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3812 echo "$ac_t""no" 1>&6
3816 if test "$MINIX" = yes; then
3817 cat >> confdefs.h <<\EOF
3818 #define _POSIX_SOURCE 1
3821 cat >> confdefs.h <<\EOF
3822 #define _POSIX_1_SOURCE 2
3825 cat >> confdefs.h <<\EOF
3832 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3833 echo "configure:3834: checking for Cygwin environment" >&5
3834 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3844 #define __CYGWIN__ __CYGWIN32__
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3861 echo "$ac_t""$ac_cv_cygwin" 1>&6
3863 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3864 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3865 echo "configure:3866: checking for mingw32 environment" >&5
3866 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3889 echo "$ac_t""$ac_cv_mingw32" 1>&6
3891 test "$ac_cv_mingw32" = yes && MINGW32=yes
3892 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3893 echo "configure:3894: checking for EMX OS/2 environment" >&5
3894 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3917 echo "$ac_t""$ac_cv_emxos2" 1>&6
3919 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3923 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3924 echo "configure:3925: checking for executable suffix" >&5
3925 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3932 echo 'int main () { return 0; }' > conftest.$ac_ext
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3935 for file in conftest.*; do
3937 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3938 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3942 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3945 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3950 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3951 echo "$ac_t""${ac_cv_exeext}" 1>&6
3954 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3955 echo "configure:3956: checking for object suffix" >&5
3956 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3960 echo 'int i = 1;' > conftest.$ac_ext
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 for ac_file in conftest.*; do
3965 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3969 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3974 echo "$ac_t""$ac_cv_objext" 1>&6
3975 OBJEXT=$ac_cv_objext
3976 ac_objext=$ac_cv_objext
3979 cat >> confdefs.h <<EOF
3980 #define EXEEXT "${EXEEXT}"
3984 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3985 echo "configure:3986: checking for be_app in -lbe" >&5
3986 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 ac_save_LIBS="$LIBS"
3991 LIBS="-lbe -lroot -lnet $LIBS"
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 /* We use char because int might match the return type of a gcc2
3997 builtin and then its argument prototype would still apply. */
4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 eval "ac_cv_lib_$ac_lib_var=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4011 eval "ac_cv_lib_$ac_lib_var=no"
4014 LIBS="$ac_save_LIBS"
4017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4019 LIBS="$LIBS -lbe -lroot -lnet"
4021 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4030 echo "configure:4031: checking for ${CC-cc} option to accept ANSI C" >&5
4031 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 am_cv_prog_cc_stdc=no
4036 # Don't try gcc -ansi; that turns off useful extensions and
4037 # breaks some systems' header files.
4038 # AIX -qlanglvl=ansi
4039 # Ultrix and OSF/1 -std1
4040 # HP-UX 10.20 and later -Ae
4041 # HP-UX older versions -Aa -D_HPUX_SOURCE
4042 # SVR4 -Xc -D__EXTENSIONS__
4043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4071 int test (int i, double x);
4072 struct s1 {int (*f) (int a);};
4073 struct s2 {int (*f) (double a);};
4074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 am_cv_prog_cc_stdc="$ac_arg"; break
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4097 if test -z "$am_cv_prog_cc_stdc"; then
4098 echo "$ac_t""none needed" 1>&6
4100 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4102 case "x$am_cv_prog_cc_stdc" in
4104 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4107 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4108 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4111 # test for make depend flag
4114 if test -z "${MKDEP}"; then
4116 if test -z "${MKDEP_FLAGS}"; then
4117 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4118 echo "configure:4119: checking for ${OL_MKDEP} depend flag" >&5
4119 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4124 for flag in "-M" "-xM"; do
4125 cat > conftest.c <<EOF
4128 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4129 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4131 if test ! -f conftest."${ac_object}" ; then
4133 OL_MKDEP_FLAGS="$flag"
4142 echo "$ac_t""$ol_cv_mkdep" 1>&6
4145 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4150 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4155 if test "${ol_cv_mkdep}" = no ; then
4156 # this will soon become an error
4157 echo "configure: warning: do not know how to generate dependencies" 1>&2
4160 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4161 echo "configure:4162: checking for afopen in -ls" >&5
4162 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 ac_save_LIBS="$LIBS"
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* Override any gcc2 internal prototype to avoid an error. */
4172 /* We use char because int might match the return type of a gcc2
4173 builtin and then its argument prototype would still apply. */
4180 if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4182 eval "ac_cv_lib_$ac_lib_var=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 eval "ac_cv_lib_$ac_lib_var=no"
4190 LIBS="$ac_save_LIBS"
4193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4197 cat >> confdefs.h <<\EOF
4198 #define HAVE_AIX_SECURITY 1
4203 echo "$ac_t""no" 1>&6
4209 if test $ol_enable_modules != no ; then
4210 for ac_hdr in ltdl.h
4212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h <<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4251 if test $ac_cv_header_ltdl_h = no ; then
4252 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4255 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4256 echo "configure:4257: checking for lt_dlinit in -lltdl" >&5
4257 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4292 cat >> confdefs.h <<\EOF
4293 #define HAVE_LIBLTDL 1
4298 echo "$ac_t""no" 1>&6
4302 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4303 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4307 ol_with_bdb_module=static
4308 ol_with_dnssrv_module=static
4309 ol_with_ldap_module=static
4310 ol_with_ldbm_module=static
4311 ol_with_passwd_module=static
4312 ol_with_perl_module=static
4313 ol_with_shell_module=static
4314 ol_with_tcl_module=static
4315 ol_with_sql_module=static
4319 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4320 echo "configure:4321: checking for EBCDIC" >&5
4321 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4330 #include <__ASCII__/generate_error.h>
4334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 ol_cv_cpp_ebcdic=yes
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4350 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4351 if test $ol_cv_cpp_ebcdic = yes ; then
4352 cat >> confdefs.h <<\EOF
4353 #define HAVE_EBCDIC 1
4358 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4359 echo "configure:4360: checking for ANSI C header files" >&5
4360 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372 { (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374 if test -z "$ac_err"; then
4376 ol_cv_header_stdc=yes
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 ol_cv_header_stdc=no
4386 if test $ol_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "memchr" >/dev/null 2>&1; then
4398 ol_cv_header_stdc=no
4404 if test $ol_cv_header_stdc = yes; then
4405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "free" >/dev/null 2>&1; then
4416 ol_cv_header_stdc=no
4422 if test $ol_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4424 if test "$cross_compiling" = yes; then
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
4438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 int main () { int i; for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 ol_cv_header_stdc=no
4461 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4462 if test $ol_cv_header_stdc = yes; then
4463 cat >> confdefs.h <<\EOF
4464 #define STDC_HEADERS 1
4468 ac_cv_header_stdc=disable
4471 if test $ol_cv_header_stdc != yes; then
4472 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4476 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4479 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_hdr that defines DIR" >&5
4481 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 #include <sys/types.h>
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 eval "ac_cv_header_dirent_$ac_safe=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_header_dirent_$ac_safe=no"
4504 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4505 echo "$ac_t""yes" 1>&6
4506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4507 cat >> confdefs.h <<EOF
4508 #define $ac_tr_hdr 1
4510 ac_header_dirent=$ac_hdr; break
4512 echo "$ac_t""no" 1>&6
4515 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4516 if test $ac_header_dirent = dirent.h; then
4517 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4518 echo "configure:4519: checking for opendir in -ldir" >&5
4519 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 ac_save_LIBS="$LIBS"
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4539 eval "ac_cv_lib_$ac_lib_var=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_lib_$ac_lib_var=no"
4547 LIBS="$ac_save_LIBS"
4550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4559 echo "configure:4560: checking for opendir in -lx" >&5
4560 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 ac_save_LIBS="$LIBS"
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* Override any gcc2 internal prototype to avoid an error. */
4570 /* We use char because int might match the return type of a gcc2
4571 builtin and then its argument prototype would still apply. */
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580 eval "ac_cv_lib_$ac_lib_var=yes"
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4585 eval "ac_cv_lib_$ac_lib_var=no"
4588 LIBS="$ac_save_LIBS"
4591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4595 echo "$ac_t""no" 1>&6
4600 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4601 echo "configure:4602: checking for sys/wait.h that is POSIX.1 compatible" >&5
4602 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <sys/types.h>
4609 #include <sys/wait.h>
4611 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4614 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4622 if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 ac_cv_header_sys_wait_h=yes
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 ac_cv_header_sys_wait_h=no
4634 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4635 if test $ac_cv_header_sys_wait_h = yes; then
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_SYS_WAIT_H 1
4642 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4643 echo "configure:4644: checking POSIX termios" >&5
4644 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 #include <sys/types.h>
4652 #include <termios.h>
4654 /* SunOS 4.0.3 has termios.h but not the library calls. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 am_cv_sys_posix_termios=yes
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 am_cv_sys_posix_termios=no
4670 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4673 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4675 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4680 gwinsz_in_termios_h=no
4681 if test $am_cv_sys_posix_termios = yes; then
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 # include <termios.h>
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 egrep "yes" >/dev/null 2>&1; then
4695 gwinsz_in_termios_h=yes
4701 if test $gwinsz_in_termios_h = no; then
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <sys/types.h>
4706 # include <sys/ioctl.h>
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 egrep "yes" >/dev/null 2>&1; then
4715 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4723 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4724 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4725 cat >> confdefs.h <<\EOF
4726 #define GWINSZ_IN_SYS_IOCTL 1
4731 if test $am_cv_sys_posix_termios = yes ; then
4732 cat >> confdefs.h <<\EOF
4733 #define HAVE_POSIX_TERMIOS 1
4784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_hdr" >&5
4787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4796 { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4798 if test -z "$ac_err"; then
4800 eval "ac_cv_header_$ac_safe=yes"
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 eval "ac_cv_header_$ac_safe=no"
4810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_hdr 1
4818 echo "$ac_t""no" 1>&6
4825 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4826 echo "configure:4827: checking for sigset in -lV3" >&5
4827 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4828 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 ac_save_LIBS="$LIBS"
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847 eval "ac_cv_lib_$ac_lib_var=yes"
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4852 eval "ac_cv_lib_$ac_lib_var=no"
4855 LIBS="$ac_save_LIBS"
4858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4861 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4862 cat >> confdefs.h <<EOF
4863 #define $ac_tr_lib 1
4869 echo "$ac_t""no" 1>&6
4873 if test $ac_cv_header_winsock_h = yes; then
4874 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4875 echo "configure:4876: checking for winsock" >&5
4876 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 #include <winsock.h>
4886 select(0,NULL,NULL,NULL,NULL);
4888 gethostname(NULL,0);
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4904 echo "$ac_t""$ol_cv_winsock" 1>&6
4906 if test $ol_cv_winsock = yes ; then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_WINSOCK 1
4911 ac_cv_func_socket=yes
4912 ac_cv_func_select=yes
4913 ac_cv_func_closesocket=yes
4914 ac_cv_func_gethostname=yes
4919 echo $ac_n "checking for socket""... $ac_c" 1>&6
4920 echo "configure:4921: checking for socket" >&5
4921 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure"
4926 #include "confdefs.h"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char socket(); below. */
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_socket) || defined (__stub___socket)
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951 eval "ac_cv_func_socket=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_func_socket=no"
4961 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4965 echo "$ac_t""no" 1>&6
4967 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4968 echo "configure:4969: checking for main in -lsocket" >&5
4969 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4973 ac_save_LIBS="$LIBS"
4974 LIBS="-lsocket $LIBS"
4975 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 eval "ac_cv_lib_$ac_lib_var=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 eval "ac_cv_lib_$ac_lib_var=no"
4993 LIBS="$ac_save_LIBS"
4996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
4998 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5000 cat >> confdefs.h <<EOF
5001 #define $ac_tr_lib 1
5004 LIBS="-lsocket $LIBS"
5007 echo "$ac_t""no" 1>&6
5010 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5011 echo "configure:5012: checking for main in -lnet" >&5
5012 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 ac_save_LIBS="$LIBS"
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 eval "ac_cv_lib_$ac_lib_var=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 eval "ac_cv_lib_$ac_lib_var=no"
5036 LIBS="$ac_save_LIBS"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5043 cat >> confdefs.h <<EOF
5044 #define $ac_tr_lib 1
5050 echo "$ac_t""no" 1>&6
5053 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5054 echo "configure:5055: checking for main in -lnsl_s" >&5
5055 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 ac_save_LIBS="$LIBS"
5060 LIBS="-lnsl_s $LIBS"
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5079 LIBS="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5086 cat >> confdefs.h <<EOF
5087 #define $ac_tr_lib 1
5090 LIBS="-lnsl_s $LIBS"
5093 echo "$ac_t""no" 1>&6
5096 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5097 echo "configure:5098: checking for main in -lnsl" >&5
5098 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5099 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 ac_save_LIBS="$LIBS"
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 eval "ac_cv_lib_$ac_lib_var=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 eval "ac_cv_lib_$ac_lib_var=no"
5122 LIBS="$ac_save_LIBS"
5125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5129 cat >> confdefs.h <<EOF
5130 #define $ac_tr_lib 1
5136 echo "$ac_t""no" 1>&6
5139 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5140 echo "configure:5141: checking for socket in -linet" >&5
5141 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 ac_save_LIBS="$LIBS"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 eval "ac_cv_lib_$ac_lib_var=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5166 eval "ac_cv_lib_$ac_lib_var=no"
5169 LIBS="$ac_save_LIBS"
5172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5176 cat >> confdefs.h <<EOF
5177 #define $ac_tr_lib 1
5183 echo "$ac_t""no" 1>&6
5186 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5187 echo "configure:5188: checking for main in -lgen" >&5
5188 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 ac_save_LIBS="$LIBS"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5204 eval "ac_cv_lib_$ac_lib_var=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 eval "ac_cv_lib_$ac_lib_var=no"
5212 LIBS="$ac_save_LIBS"
5215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5219 cat >> confdefs.h <<EOF
5220 #define $ac_tr_lib 1
5226 echo "$ac_t""no" 1>&6
5233 echo $ac_n "checking for select""... $ac_c" 1>&6
5234 echo "configure:5235: checking for select" >&5
5235 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 /* System header to define __stub macros and hopefully few prototypes,
5242 which can conflict with char select(); below. */
5244 /* Override any gcc2 internal prototype to avoid an error. */
5245 /* We use char because int might match the return type of a gcc2
5246 builtin and then its argument prototype would still apply. */
5252 /* The GNU C library defines this for functions which it implements
5253 to always fail with ENOSYS. Some functions are actually named
5254 something starting with __ and the normal name is an alias. */
5255 #if defined (__stub_select) || defined (__stub___select)
5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265 eval "ac_cv_func_select=yes"
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 eval "ac_cv_func_select=no"
5275 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5276 echo "$ac_t""yes" 1>&6
5279 echo "$ac_t""no" 1>&6
5280 { echo "configure: error: select() required." 1>&2; exit 1; }
5284 if test "${ac_cv_header_winsock_h}" != yes; then
5285 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5286 echo "configure:5287: checking types of arguments for select()" >&5
5287 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5297 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5298 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 #ifdef HAVE_SYS_TYPES_H
5303 #include <sys/types.h>
5305 #ifdef HAVE_SYS_TIME_H
5306 #include <sys/time.h>
5308 #ifdef HAVE_SYS_SELECT_H
5309 #include <sys/select.h>
5311 #ifdef HAVE_SYS_SOCKET_H
5312 #include <sys/socket.h>
5314 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);
5319 if { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 ac_not_found=no ; break 3
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5338 if test "$ac_not_found" = yes; then
5339 ac_cv_func_select_arg1=int
5340 ac_cv_func_select_arg234='int *'
5341 ac_cv_func_select_arg5='struct timeval *'
5343 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5344 cat >> confdefs.h <<EOF
5345 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5348 cat >> confdefs.h <<EOF
5349 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5352 cat >> confdefs.h <<EOF
5353 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5360 for ac_hdr in regex.h
5362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5364 echo "configure:5365: checking for $ac_hdr" >&5
5365 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5374 { (eval echo configure:5375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5376 if test -z "$ac_err"; then
5378 eval "ac_cv_header_$ac_safe=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_header_$ac_safe=no"
5388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5391 cat >> confdefs.h <<EOF
5392 #define $ac_tr_hdr 1
5396 echo "$ac_t""no" 1>&6
5400 if test "$ac_cv_header_regex_h" != yes ; then
5401 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5403 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5404 echo "configure:5405: checking for regfree" >&5
5405 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412 which can conflict with char regfree(); below. */
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. */
5422 /* The GNU C library defines this for functions which it implements
5423 to always fail with ENOSYS. Some functions are actually named
5424 something starting with __ and the normal name is an alias. */
5425 #if defined (__stub_regfree) || defined (__stub___regfree)
5433 if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 eval "ac_cv_func_regfree=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 eval "ac_cv_func_regfree=no"
5445 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5446 echo "$ac_t""yes" 1>&6
5449 echo "$ac_t""no" 1>&6
5450 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5455 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5456 echo "configure:5457: checking for compatible POSIX regex" >&5
5457 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5461 if test "$cross_compiling" = yes; then
5462 ol_cv_c_posix_regex=cross
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5468 #include <sys/types.h>
5470 static char *pattern, *string;
5478 if(regcomp(&re, pattern, 0)) {
5482 string = "ALL MATCH";
5484 rc = regexec(&re, string, 0, (void*)0, 0);
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5493 ol_cv_c_posix_regex=yes
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 ol_cv_c_posix_regex=no
5505 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5507 if test "$ol_cv_c_posix_regex" = no ; then
5508 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5512 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5513 echo "configure:5514: checking for res_query" >&5
5514 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 /* System header to define __stub macros and hopefully few prototypes,
5521 which can conflict with char res_query(); below. */
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5531 /* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534 #if defined (__stub_res_query) || defined (__stub___res_query)
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 eval "ac_cv_func_res_query=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 eval "ac_cv_func_res_query=no"
5554 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5558 echo "$ac_t""no" 1>&6
5561 if test $ac_cv_func_res_query = no ; then
5562 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5563 echo "configure:5564: checking for res_query in -lbind" >&5
5564 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 ac_save_LIBS="$LIBS"
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5584 eval "ac_cv_lib_$ac_lib_var=yes"
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5589 eval "ac_cv_lib_$ac_lib_var=no"
5592 LIBS="$ac_save_LIBS"
5595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5597 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_lib 1
5606 echo "$ac_t""no" 1>&6
5609 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5612 if test $ac_cv_func_res_query = no ; then
5613 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5614 echo "configure:5615: checking for __res_query in -lbind" >&5
5615 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5619 ac_save_LIBS="$LIBS"
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5635 eval "ac_cv_lib_$ac_lib_var=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5640 eval "ac_cv_lib_$ac_lib_var=no"
5643 LIBS="$ac_save_LIBS"
5646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5647 echo "$ac_t""yes" 1>&6
5648 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5650 cat >> confdefs.h <<EOF
5651 #define $ac_tr_lib 1
5657 echo "$ac_t""no" 1>&6
5660 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5663 if test $ac_cv_func_res_query = no ; then
5664 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5665 echo "configure:5666: checking for res_query in -lresolv" >&5
5666 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 ac_save_LIBS="$LIBS"
5671 LIBS="-lresolv $LIBS"
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5686 eval "ac_cv_lib_$ac_lib_var=yes"
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 eval "ac_cv_lib_$ac_lib_var=no"
5694 LIBS="$ac_save_LIBS"
5697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5698 echo "$ac_t""yes" 1>&6
5699 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5701 cat >> confdefs.h <<EOF
5702 #define $ac_tr_lib 1
5705 LIBS="-lresolv $LIBS"
5708 echo "$ac_t""no" 1>&6
5711 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5714 if test "$ac_cv_func_res_query" = yes ; then
5715 cat >> confdefs.h <<\EOF
5716 #define HAVE_RES_QUERY 1
5720 if test $ol_enable_dnssrv != no ; then
5725 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5726 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5729 for ac_func in getaddrinfo
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func(); below. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5750 /* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_func_$ac_func=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_func_$ac_func=no"
5773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
5775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5776 cat >> confdefs.h <<EOF
5777 #define $ac_tr_func 1
5781 echo "$ac_t""no" 1>&6
5787 if test $ac_cv_func_getaddrinfo = no ; then
5788 if test $ol_enable_ipv6 = yes ; then
5789 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
5792 for ac_func in gai_strerror
5794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5795 echo "configure:5796: checking for $ac_func" >&5
5796 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5802 /* System header to define __stub macros and hopefully few prototypes,
5803 which can conflict with char $ac_func(); below. */
5805 /* Override any gcc2 internal prototype to avoid an error. */
5806 /* We use char because int might match the return type of a gcc2
5807 builtin and then its argument prototype would still apply. */
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 eval "ac_cv_func_$ac_func=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_func_$ac_func=no"
5836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5839 cat >> confdefs.h <<EOF
5840 #define $ac_tr_func 1
5844 echo "$ac_t""no" 1>&6
5849 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5850 echo "configure:5851: checking INET6_ADDRSTRLEN" >&5
5851 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5852 echo $ac_n "(cached) $ac_c" 1>&6
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5859 # include <netinet/in.h>
5860 # ifdef INET6_ADDRSTRLEN
5861 __has_inet6_addrstrlen__;
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5868 ol_cv_inet6_addrstrlen=yes
5871 ol_cv_inet6_addrstrlen=no
5877 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5879 if test $ol_cv_inet6_addrstrlen = yes ; then
5881 elif test $ol_enable_ipv6 = yes ; then
5882 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5886 if test $ol_enable_local != no ; then
5887 for ac_hdr in sys/un.h
5889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_hdr" >&5
5892 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 if test -z "$ac_err"; then
5905 eval "ac_cv_header_$ac_safe=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_header_$ac_safe=no"
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_hdr 1
5923 echo "$ac_t""no" 1>&6
5928 if test $ol_enable_local = auto ; then
5929 ol_enable_local=$ac_cv_header_sys_un_h
5930 elif test $ac_cv_header_sys_un_h = no ; then
5931 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5940 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5941 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5942 -o $ol_with_kerberos = k425 ; then
5944 for ac_hdr in krb5.h
5946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_hdr" >&5
5949 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5952 cat > conftest.$ac_ext <<EOF
5953 #line 5954 "configure"
5954 #include "confdefs.h"
5957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5958 { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5960 if test -z "$ac_err"; then
5962 eval "ac_cv_header_$ac_safe=yes"
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 eval "ac_cv_header_$ac_safe=no"
5972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5973 echo "$ac_t""yes" 1>&6
5974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5975 cat >> confdefs.h <<EOF
5976 #define $ac_tr_hdr 1
5980 echo "$ac_t""no" 1>&6
5985 if test $ac_cv_header_krb5_h = yes ; then
5986 for ac_hdr in heim_err.h
5988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_hdr" >&5
5991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 eval "ac_cv_header_$ac_safe=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_header_$ac_safe=no"
6014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6017 cat >> confdefs.h <<EOF
6018 #define $ac_tr_hdr 1
6022 echo "$ac_t""no" 1>&6
6026 if test $ac_cv_header_heim_err_h = yes ; then
6032 if test $krb5_impl = mit; then
6033 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6034 echo "configure:6035: checking for main in -lkrb5" >&5
6035 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 ac_save_LIBS="$LIBS"
6040 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_lib_$ac_lib_var=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_lib_$ac_lib_var=no"
6059 LIBS="$ac_save_LIBS"
6062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6065 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6067 echo "$ac_t""no" 1>&6
6072 elif test $krb5_impl = heimdal; then
6073 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6074 echo "configure:6075: checking for main in -lkrb5" >&5
6075 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6079 ac_save_LIBS="$LIBS"
6080 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6091 eval "ac_cv_lib_$ac_lib_var=yes"
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 eval "ac_cv_lib_$ac_lib_var=no"
6099 LIBS="$ac_save_LIBS"
6102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6103 echo "$ac_t""yes" 1>&6
6105 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6107 echo "$ac_t""no" 1>&6
6112 cat >> confdefs.h <<\EOF
6113 #define HAVE_HEIMDAL_KERBEROS 1
6118 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6121 if test $have_krb5 = yes ; then
6124 cat >> confdefs.h <<\EOF
6129 if test $ol_enable_kpasswd != no ; then
6130 ol_link_kpasswd=yes;
6133 if test $ol_with_kerberos = k5only ; then
6134 ol_with_kerberos=found
6137 elif test $ol_with_kerberos != auto ; then
6138 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6144 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6145 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6147 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6151 echo "configure:6152: checking for $ac_hdr" >&5
6152 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6161 { (eval echo configure:6162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6163 if test -z "$ac_err"; then
6165 eval "ac_cv_header_$ac_safe=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_header_$ac_safe=no"
6175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6176 echo "$ac_t""yes" 1>&6
6177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6178 cat >> confdefs.h <<EOF
6179 #define $ac_tr_hdr 1
6183 echo "$ac_t""no" 1>&6
6188 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6189 if test $krb5_impl = mit; then
6190 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6191 echo "configure:6192: checking for main in -lkrb4" >&5
6192 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6196 ac_save_LIBS="$LIBS"
6197 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6208 eval "ac_cv_lib_$ac_lib_var=yes"
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6213 eval "ac_cv_lib_$ac_lib_var=no"
6216 LIBS="$ac_save_LIBS"
6219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6220 echo "$ac_t""yes" 1>&6
6222 KRB4_LIBS="-lkrb4 -ldes425"
6224 echo "$ac_t""no" 1>&6
6229 elif test $krb5_impl = heimdal; then
6230 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6231 echo "configure:6232: checking for main in -lkrb4" >&5
6232 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6233 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6236 ac_save_LIBS="$LIBS"
6237 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 eval "ac_cv_lib_$ac_lib_var=yes"
6250 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6253 eval "ac_cv_lib_$ac_lib_var=no"
6256 LIBS="$ac_save_LIBS"
6259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6264 echo "$ac_t""no" 1>&6
6271 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6274 if test $have_k425 = yes ; then
6275 ol_with_kerberos=found
6278 cat >> confdefs.h <<\EOF
6279 #define HAVE_KRB425 1
6282 cat >> confdefs.h <<\EOF
6287 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6288 echo "configure:6289: checking for des_debug in Kerberos libraries" >&5
6289 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6294 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6299 #include <kerberosIV/krb.h>
6300 #include <kerberosIV/des.h>
6301 extern int des_debug;
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6311 ol_cv_var_des_debug=yes
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 ol_cv_var_des_debug=no
6323 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6325 if test $ol_cv_var_des_debug = yes ; then
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE_DES_DEBUG 1
6337 if test $ol_link_krb5 = yes ; then
6338 ol_with_kerberos=found
6341 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6342 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6344 for ac_hdr in krb.h des.h krb-archaeology.h
6346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6348 echo "configure:6349: checking for $ac_hdr" >&5
6349 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6352 cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6358 { (eval echo configure:6359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6360 if test -z "$ac_err"; then
6362 eval "ac_cv_header_$ac_safe=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 eval "ac_cv_header_$ac_safe=no"
6372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6373 echo "$ac_t""yes" 1>&6
6374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6375 cat >> confdefs.h <<EOF
6376 #define $ac_tr_hdr 1
6380 echo "$ac_t""no" 1>&6
6385 if test $ac_cv_header_krb_h = yes ; then
6386 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6387 echo "configure:6388: checking for main in -lkrb" >&5
6388 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6389 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6392 ac_save_LIBS="$LIBS"
6393 LIBS="-lkrb -ldes $LIBS"
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 eval "ac_cv_lib_$ac_lib_var=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_lib_$ac_lib_var=no"
6412 LIBS="$ac_save_LIBS"
6415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6419 echo "$ac_t""no" 1>&6
6424 if test $have_k4 = yes ; then
6425 ol_with_kerberos=found
6428 cat >> confdefs.h <<\EOF
6433 KRB4_LIBS="-lkrb -ldes"
6435 if test $ac_cv_header_krb_archaeology_h = yes ; then
6436 cat >> confdefs.h <<\EOF
6437 #define HAVE_KTH_KERBEROS 1
6445 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6449 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6452 elif test $ol_enable_kbind = yes ; then
6453 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6456 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6457 cat >> confdefs.h <<\EOF
6458 #define HAVE_KERBEROS 1
6462 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6463 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6467 if test $ol_with_tls != no ; then
6468 for ac_hdr in openssl/ssl.h ssl.h
6470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_hdr" >&5
6473 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6482 { (eval echo configure:6483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6484 if test -z "$ac_err"; then
6486 eval "ac_cv_header_$ac_safe=yes"
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6492 eval "ac_cv_header_$ac_safe=no"
6496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6497 echo "$ac_t""yes" 1>&6
6498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6499 cat >> confdefs.h <<EOF
6500 #define $ac_tr_hdr 1
6504 echo "$ac_t""no" 1>&6
6509 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6510 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6511 echo "configure:6512: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6512 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6513 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 ac_save_LIBS="$LIBS"
6517 LIBS="-lssl -lcrypto $LIBS"
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524 char SSLeay_add_ssl_algorithms();
6527 SSLeay_add_ssl_algorithms()
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 eval "ac_cv_lib_$ac_lib_var=no"
6540 LIBS="$ac_save_LIBS"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6548 echo "$ac_t""no" 1>&6
6553 if test $have_ssleay = no ; then
6554 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6555 echo "configure:6556: checking for SSL_library_init in -lssl" >&5
6556 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 ac_save_LIBS="$LIBS"
6561 LIBS="-lssl -lcrypto $LIBS"
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* Override any gcc2 internal prototype to avoid an error. */
6566 /* We use char because int might match the return type of a gcc2
6567 builtin and then its argument prototype would still apply. */
6568 char SSL_library_init();
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 eval "ac_cv_lib_$ac_lib_var=yes"
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6581 eval "ac_cv_lib_$ac_lib_var=no"
6584 LIBS="$ac_save_LIBS"
6587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6592 echo "$ac_t""no" 1>&6
6598 if test $have_ssleay = no ; then
6599 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6600 echo "configure:6601: checking for ssl3_accept in -lssl" >&5
6601 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6602 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 ac_save_LIBS="$LIBS"
6606 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6621 eval "ac_cv_lib_$ac_lib_var=yes"
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 eval "ac_cv_lib_$ac_lib_var=no"
6629 LIBS="$ac_save_LIBS"
6632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6633 echo "$ac_t""yes" 1>&6
6637 echo "$ac_t""no" 1>&6
6643 if test $have_ssleay = yes ; then
6647 cat >> confdefs.h <<\EOF
6648 #define HAVE_SSLEAY 1
6652 if test $need_rsaref = yes; then
6653 cat >> confdefs.h <<\EOF
6654 #define HAVE_RSAREF 1
6658 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6660 TLS_LIBS="-lssl -lcrypto"
6666 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6669 if test $ol_link_tls = yes ; then
6670 cat >> confdefs.h <<\EOF
6675 elif test $ol_with_tls = auto ; then
6676 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6677 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6679 elif test $ol_with_tls != no ; then
6680 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6683 if test $ol_enable_lmpasswd != no; then
6684 if test $ol_link_tls != yes ; then
6685 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6688 cat >> confdefs.h <<\EOF
6689 #define SLAPD_LMHASH 1
6696 gethostbyname_r gethostbyaddr_r \
6699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6700 echo "configure:6701: checking for $ac_func" >&5
6701 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* System header to define __stub macros and hopefully few prototypes,
6708 which can conflict with char $ac_func(); below. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6718 /* The GNU C library defines this for functions which it implements
6719 to always fail with ENOSYS. Some functions are actually named
6720 something starting with __ and the normal name is an alias. */
6721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 eval "ac_cv_func_$ac_func=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_func_$ac_func=no"
6741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6744 cat >> confdefs.h <<EOF
6745 #define $ac_tr_func 1
6749 echo "$ac_t""no" 1>&6
6754 if test "$ac_cv_func_ctime_r" = no ; then
6755 ol_cv_func_ctime_r_nargs=0
6757 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6758 echo "configure:6759: checking number of arguments of ctime_r" >&5
6759 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6767 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6770 if { (eval echo configure:6771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6772 ol_cv_func_ctime_r_nargs3=yes
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 ol_cv_func_ctime_r_nargs3=no
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6786 time_t ti; char *buffer; ctime_r(&ti,buffer);
6789 if { (eval echo configure:6790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6791 ol_cv_func_ctime_r_nargs2=yes
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 ol_cv_func_ctime_r_nargs2=no
6800 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6801 $ol_cv_func_ctime_r_nargs2 = no ; then
6803 ol_cv_func_ctime_r_nargs=3
6805 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6806 $ol_cv_func_ctime_r_nargs2 = yes ; then
6808 ol_cv_func_ctime_r_nargs=2
6811 ol_cv_func_ctime_r_nargs=0
6816 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6818 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6819 cat >> confdefs.h <<EOF
6820 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6827 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6828 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6829 echo "configure:6830: checking number of arguments of gethostbyname_r" >&5
6830 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 #include <sys/types.h>
6837 #include <sys/socket.h>
6838 #include <netinet/in.h>
6840 #define BUFSIZE (sizeof(struct hostent)+10)
6842 struct hostent hent; char buffer[BUFSIZE];
6843 int bufsize=BUFSIZE;int h_errno;
6844 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6845 buffer, bufsize, &h_errno);
6848 if { (eval echo configure:6849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6850 ol_cv_func_gethostbyname_r_nargs5=yes
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6855 ol_cv_func_gethostbyname_r_nargs5=no
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 #include <sys/types.h>
6863 #include <sys/socket.h>
6864 #include <netinet/in.h>
6866 #define BUFSIZE (sizeof(struct hostent)+10)
6868 struct hostent hent;struct hostent *rhent;
6869 char buffer[BUFSIZE];
6870 int bufsize=BUFSIZE;int h_errno;
6871 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6875 if { (eval echo configure:6876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6877 ol_cv_func_gethostbyname_r_nargs6=yes
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 ol_cv_func_gethostbyname_r_nargs6=no
6886 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6887 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6889 ol_cv_func_gethostbyname_r_nargs=5
6891 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6892 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6894 ol_cv_func_gethostbyname_r_nargs=6
6897 ol_cv_func_gethostbyname_r_nargs=0
6902 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6903 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6904 cat >> confdefs.h <<EOF
6905 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6911 ol_cv_func_gethostbyname_r_nargs=0
6914 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6915 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6916 echo "configure:6917: checking number of arguments of gethostbyaddr_r" >&5
6917 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 #include <sys/types.h>
6924 #include <sys/socket.h>
6925 #include <netinet/in.h>
6927 #define BUFSIZE (sizeof(struct hostent)+10)
6929 struct hostent hent; char buffer[BUFSIZE];
6931 size_t alen=sizeof(struct in_addr);
6932 int bufsize=BUFSIZE;int h_errno;
6933 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6934 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6937 if { (eval echo configure:6938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6939 ol_cv_func_gethostbyaddr_r_nargs7=yes
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 ol_cv_func_gethostbyaddr_r_nargs7=no
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 #include <sys/types.h>
6952 #include <sys/socket.h>
6953 #include <netinet/in.h>
6955 #define BUFSIZE (sizeof(struct hostent)+10)
6957 struct hostent hent;
6958 struct hostent *rhent; char buffer[BUFSIZE];
6960 size_t alen=sizeof(struct in_addr);
6961 int bufsize=BUFSIZE;int h_errno;
6962 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6963 alen, AF_INET, &hent, buffer, bufsize,
6967 if { (eval echo configure:6968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6969 ol_cv_func_gethostbyaddr_r_nargs8=yes
6971 echo "configure: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 ol_cv_func_gethostbyaddr_r_nargs8=no
6978 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6979 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6981 ol_cv_func_gethostbyaddr_r_nargs=7
6983 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6984 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6986 ol_cv_func_gethostbyaddr_r_nargs=8
6989 ol_cv_func_gethostbyaddr_r_nargs=0
6994 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6995 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6996 cat >> confdefs.h <<EOF
6997 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7003 ol_cv_func_gethostbyaddr_r_nargs=0
7006 if test "$ac_cv_func_ctime_r" = yes \
7007 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7008 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7009 -a "$ac_cv_func_gethostbyname_r" = yes \
7010 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7011 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7012 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7013 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7014 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7017 cat >> confdefs.h <<\EOF
7018 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7025 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7026 -o $ol_with_threads = nt ; then
7029 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7030 echo "configure:7031: checking for NT Threads" >&5
7031 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7032 echo $ac_n "(cached) $ac_c" 1>&6
7035 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7036 echo "configure:7037: checking for _beginthread" >&5
7037 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 /* System header to define __stub macros and hopefully few prototypes,
7044 which can conflict with char _beginthread(); below. */
7046 /* Override any gcc2 internal prototype to avoid an error. */
7047 /* We use char because int might match the return type of a gcc2
7048 builtin and then its argument prototype would still apply. */
7049 char _beginthread();
7054 /* The GNU C library defines this for functions which it implements
7055 to always fail with ENOSYS. Some functions are actually named
7056 something starting with __ and the normal name is an alias. */
7057 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7067 eval "ac_cv_func__beginthread=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7072 eval "ac_cv_func__beginthread=no"
7077 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7079 ol_cv_nt_threads=yes
7081 echo "$ac_t""no" 1>&6
7088 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7090 if test $ol_cv_nt_threads = yes ; then
7091 cat >> confdefs.h <<\EOF
7092 #define HAVE_NT_THREADS 1
7098 if test "$ol_cv_nt_threads" = yes ; then
7100 ol_with_threads=found
7101 ol_with_yielding_select=yes
7103 cat >> confdefs.h <<\EOF
7104 #define HAVE_NT_SERVICE_MANAGER 1
7107 cat >> confdefs.h <<\EOF
7108 #define HAVE_NT_EVENT_LOG 1
7113 if test $ol_with_threads = nt ; then
7114 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7118 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7119 -o $ol_with_threads = posix ; then
7121 for ac_hdr in pthread.h
7123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_hdr" >&5
7126 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7135 { (eval echo configure:7136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7137 if test -z "$ac_err"; then
7139 eval "ac_cv_header_$ac_safe=yes"
7142 echo "configure: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7145 eval "ac_cv_header_$ac_safe=no"
7149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7150 echo "$ac_t""yes" 1>&6
7151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7152 cat >> confdefs.h <<EOF
7153 #define $ac_tr_hdr 1
7157 echo "$ac_t""no" 1>&6
7162 if test $ac_cv_header_pthread_h = yes ; then
7163 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7164 echo "configure:7165: checking POSIX thread version" >&5
7165 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7173 # include <pthread.h>
7174 /* this check could be improved */
7175 # ifdef PTHREAD_ONCE_INIT
7176 pthread_version_final;
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 egrep "pthread_version_final" >/dev/null 2>&1; then
7183 ol_pthread_final=yes
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7195 # include <pthread.h>
7196 /* this check could be improved */
7197 # ifdef pthread_once_init
7198 pthread_version_draft4;
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7205 ol_pthread_draft4=yes
7208 ol_pthread_draft4=no
7213 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7214 ol_cv_pthread_version=final
7215 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7216 ol_cv_pthread_version=draft4
7218 ol_cv_pthread_version=unknown
7223 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7226 if test $ol_cv_pthread_version = final ; then
7227 cat >> confdefs.h <<\EOF
7228 #define HAVE_PTHREADS_FINAL 1
7231 elif test $ol_cv_pthread_version = draft4 ; then
7232 cat >> confdefs.h <<\EOF
7233 #define HAVE_PTHREADS_D4 1
7237 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7240 # consider threads found
7241 ol_with_threads=found
7244 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7245 echo "configure:7246: checking for LinuxThreads pthread.h" >&5
7246 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 #include <pthread.h>
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7257 ol_cv_header_linux_threads=yes
7260 ol_cv_header_linux_threads=no
7267 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7268 if test $ol_cv_header_linux_threads = yes; then
7269 cat >> confdefs.h <<\EOF
7270 #define HAVE_LINUX_THREADS 1
7276 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7277 echo "configure:7278: checking for GNU Pth pthread.h" >&5
7278 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 #include <pthread.h>
7285 #ifdef _POSIX_THREAD_IS_GNU_PTH
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "__gnu_pth__" >/dev/null 2>&1; then
7293 ol_cv_header_gnu_pth_pthread_h=yes
7296 ol_cv_header_gnu_pth_pthread_h=no
7303 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7306 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7307 for ac_hdr in sched.h
7309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7311 echo "configure:7312: checking for $ac_hdr" >&5
7312 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7321 { (eval echo configure:7322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7323 if test -z "$ac_err"; then
7325 eval "ac_cv_header_$ac_safe=yes"
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 eval "ac_cv_header_$ac_safe=no"
7335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7338 cat >> confdefs.h <<EOF
7339 #define $ac_tr_hdr 1
7343 echo "$ac_t""no" 1>&6
7350 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7351 echo "configure:7352: checking for pthread_create in default libraries" >&5
7352 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7356 if test "$cross_compiling" = yes; then
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* pthread test headers */
7361 #include <pthread.h>
7363 #define NULL (void*)0
7366 static void *task(p)
7369 return (void *) (p == NULL);
7374 /* pthread test function */
7377 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7378 /* This system (e.g. AIX) defaults detached; must override */
7379 pthread_attr_t attr;
7381 status = pthread_attr_init(&attr);
7382 if( status ) exit( status );
7384 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7385 if( status ) exit( status );
7388 #elif defined( HAVE_PTHREADS_D4 )
7389 # define ATTR pthread_attr_default
7394 /* make sure pthread_create() isn't just a stub */
7395 status = pthread_create(&t, ATTR, task, NULL);
7396 if( status ) exit( status );
7398 /* give the thread a chance to complete...
7399 * it should remain joinable and hence detachable
7403 /* make sure pthread_detach() isn't just a stub */
7404 #if HAVE_PTHREADS_D4
7405 status = pthread_detach( &t );
7407 status = pthread_detach( t );
7410 #ifdef HAVE_LINUX_THREADS
7411 pthread_kill_other_threads_np();
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420 ol_cv_pthread_create=yes
7422 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7425 ol_cv_pthread_create=no
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 /* pthread test headers */
7433 #include <pthread.h>
7435 #define NULL (void*)0
7438 static void *task(p)
7441 return (void *) (p == NULL);
7445 int main(argc, argv)
7450 /* pthread test function */
7453 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7454 /* This system (e.g. AIX) defaults detached; must override */
7455 pthread_attr_t attr;
7457 status = pthread_attr_init(&attr);
7458 if( status ) exit( status );
7460 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7461 if( status ) exit( status );
7464 #elif defined( HAVE_PTHREADS_D4 )
7465 # define ATTR pthread_attr_default
7470 /* make sure pthread_create() isn't just a stub */
7471 status = pthread_create(&t, ATTR, task, NULL);
7472 if( status ) exit( status );
7474 /* give the thread a chance to complete...
7475 * it should remain joinable and hence detachable
7479 /* make sure pthread_detach() isn't just a stub */
7480 #if HAVE_PTHREADS_D4
7481 status = pthread_detach( &t );
7483 status = pthread_detach( t );
7486 #ifdef HAVE_LINUX_THREADS
7487 pthread_kill_other_threads_np();
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7497 ol_cv_pthread_create=yes
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 ol_cv_pthread_create=no
7509 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7511 if test $ol_cv_pthread_create != no ; then
7512 ol_link_threads=posix
7516 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7517 if test "$ol_link_threads" = no ; then
7519 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7520 echo "configure:7521: checking for pthread link with -kthread" >&5
7521 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7527 LIBS="-kthread $LIBS"
7529 if test "$cross_compiling" = yes; then
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7533 /* pthread test headers */
7534 #include <pthread.h>
7536 #define NULL (void*)0
7539 static void *task(p)
7542 return (void *) (p == NULL);
7547 /* pthread test function */
7550 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7551 /* This system (e.g. AIX) defaults detached; must override */
7552 pthread_attr_t attr;
7554 status = pthread_attr_init(&attr);
7555 if( status ) exit( status );
7557 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7558 if( status ) exit( status );
7561 #elif defined( HAVE_PTHREADS_D4 )
7562 # define ATTR pthread_attr_default
7567 /* make sure pthread_create() isn't just a stub */
7568 status = pthread_create(&t, ATTR, task, NULL);
7569 if( status ) exit( status );
7571 /* give the thread a chance to complete...
7572 * it should remain joinable and hence detachable
7576 /* make sure pthread_detach() isn't just a stub */
7577 #if HAVE_PTHREADS_D4
7578 status = pthread_detach( &t );
7580 status = pthread_detach( t );
7583 #ifdef HAVE_LINUX_THREADS
7584 pthread_kill_other_threads_np();
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7593 ol_cv_pthread_kthread=yes
7595 echo "configure: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7598 ol_cv_pthread_kthread=no
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7605 /* pthread test headers */
7606 #include <pthread.h>
7608 #define NULL (void*)0
7611 static void *task(p)
7614 return (void *) (p == NULL);
7618 int main(argc, argv)
7623 /* pthread test function */
7626 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7627 /* This system (e.g. AIX) defaults detached; must override */
7628 pthread_attr_t attr;
7630 status = pthread_attr_init(&attr);
7631 if( status ) exit( status );
7633 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7634 if( status ) exit( status );
7637 #elif defined( HAVE_PTHREADS_D4 )
7638 # define ATTR pthread_attr_default
7643 /* make sure pthread_create() isn't just a stub */
7644 status = pthread_create(&t, ATTR, task, NULL);
7645 if( status ) exit( status );
7647 /* give the thread a chance to complete...
7648 * it should remain joinable and hence detachable
7652 /* make sure pthread_detach() isn't just a stub */
7653 #if HAVE_PTHREADS_D4
7654 status = pthread_detach( &t );
7656 status = pthread_detach( t );
7659 #ifdef HAVE_LINUX_THREADS
7660 pthread_kill_other_threads_np();
7668 if { (eval echo configure:7669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7670 ol_cv_pthread_kthread=yes
7672 echo "configure: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7675 ol_cv_pthread_kthread=no
7686 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7688 if test $ol_cv_pthread_kthread = yes ; then
7689 ol_link_pthreads="-kthread"
7690 ol_link_threads=posix
7694 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7695 if test "$ol_link_threads" = no ; then
7697 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7698 echo "configure:7699: checking for pthread link with -pthread" >&5
7699 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7705 LIBS="-pthread $LIBS"
7707 if test "$cross_compiling" = yes; then
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7711 /* pthread test headers */
7712 #include <pthread.h>
7714 #define NULL (void*)0
7717 static void *task(p)
7720 return (void *) (p == NULL);
7725 /* pthread test function */
7728 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7729 /* This system (e.g. AIX) defaults detached; must override */
7730 pthread_attr_t attr;
7732 status = pthread_attr_init(&attr);
7733 if( status ) exit( status );
7735 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7736 if( status ) exit( status );
7739 #elif defined( HAVE_PTHREADS_D4 )
7740 # define ATTR pthread_attr_default
7745 /* make sure pthread_create() isn't just a stub */
7746 status = pthread_create(&t, ATTR, task, NULL);
7747 if( status ) exit( status );
7749 /* give the thread a chance to complete...
7750 * it should remain joinable and hence detachable
7754 /* make sure pthread_detach() isn't just a stub */
7755 #if HAVE_PTHREADS_D4
7756 status = pthread_detach( &t );
7758 status = pthread_detach( t );
7761 #ifdef HAVE_LINUX_THREADS
7762 pthread_kill_other_threads_np();
7769 if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7771 ol_cv_pthread_pthread=yes
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 ol_cv_pthread_pthread=no
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* pthread test headers */
7784 #include <pthread.h>
7786 #define NULL (void*)0
7789 static void *task(p)
7792 return (void *) (p == NULL);
7796 int main(argc, argv)
7801 /* pthread test function */
7804 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7805 /* This system (e.g. AIX) defaults detached; must override */
7806 pthread_attr_t attr;
7808 status = pthread_attr_init(&attr);
7809 if( status ) exit( status );
7811 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7812 if( status ) exit( status );
7815 #elif defined( HAVE_PTHREADS_D4 )
7816 # define ATTR pthread_attr_default
7821 /* make sure pthread_create() isn't just a stub */
7822 status = pthread_create(&t, ATTR, task, NULL);
7823 if( status ) exit( status );
7825 /* give the thread a chance to complete...
7826 * it should remain joinable and hence detachable
7830 /* make sure pthread_detach() isn't just a stub */
7831 #if HAVE_PTHREADS_D4
7832 status = pthread_detach( &t );
7834 status = pthread_detach( t );
7837 #ifdef HAVE_LINUX_THREADS
7838 pthread_kill_other_threads_np();
7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7848 ol_cv_pthread_pthread=yes
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7853 ol_cv_pthread_pthread=no
7864 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7866 if test $ol_cv_pthread_pthread = yes ; then
7867 ol_link_pthreads="-pthread"
7868 ol_link_threads=posix
7872 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7873 if test "$ol_link_threads" = no ; then
7875 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7876 echo "configure:7877: checking for pthread link with -pthreads" >&5
7877 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7878 echo $ac_n "(cached) $ac_c" 1>&6
7883 LIBS="-pthreads $LIBS"
7885 if test "$cross_compiling" = yes; then
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7889 /* pthread test headers */
7890 #include <pthread.h>
7892 #define NULL (void*)0
7895 static void *task(p)
7898 return (void *) (p == NULL);
7903 /* pthread test function */
7906 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7907 /* This system (e.g. AIX) defaults detached; must override */
7908 pthread_attr_t attr;
7910 status = pthread_attr_init(&attr);
7911 if( status ) exit( status );
7913 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7914 if( status ) exit( status );
7917 #elif defined( HAVE_PTHREADS_D4 )
7918 # define ATTR pthread_attr_default
7923 /* make sure pthread_create() isn't just a stub */
7924 status = pthread_create(&t, ATTR, task, NULL);
7925 if( status ) exit( status );
7927 /* give the thread a chance to complete...
7928 * it should remain joinable and hence detachable
7932 /* make sure pthread_detach() isn't just a stub */
7933 #if HAVE_PTHREADS_D4
7934 status = pthread_detach( &t );
7936 status = pthread_detach( t );
7939 #ifdef HAVE_LINUX_THREADS
7940 pthread_kill_other_threads_np();
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 ol_cv_pthread_pthreads=yes
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 ol_cv_pthread_pthreads=no
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* pthread test headers */
7962 #include <pthread.h>
7964 #define NULL (void*)0
7967 static void *task(p)
7970 return (void *) (p == NULL);
7974 int main(argc, argv)
7979 /* pthread test function */
7982 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7983 /* This system (e.g. AIX) defaults detached; must override */
7984 pthread_attr_t attr;
7986 status = pthread_attr_init(&attr);
7987 if( status ) exit( status );
7989 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7990 if( status ) exit( status );
7993 #elif defined( HAVE_PTHREADS_D4 )
7994 # define ATTR pthread_attr_default
7999 /* make sure pthread_create() isn't just a stub */
8000 status = pthread_create(&t, ATTR, task, NULL);
8001 if( status ) exit( status );
8003 /* give the thread a chance to complete...
8004 * it should remain joinable and hence detachable
8008 /* make sure pthread_detach() isn't just a stub */
8009 #if HAVE_PTHREADS_D4
8010 status = pthread_detach( &t );
8012 status = pthread_detach( t );
8015 #ifdef HAVE_LINUX_THREADS
8016 pthread_kill_other_threads_np();
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8026 ol_cv_pthread_pthreads=yes
8028 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8031 ol_cv_pthread_pthreads=no
8042 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8044 if test $ol_cv_pthread_pthreads = yes ; then
8045 ol_link_pthreads="-pthreads"
8046 ol_link_threads=posix
8050 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8051 if test "$ol_link_threads" = no ; then
8053 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8054 echo "configure:8055: checking for pthread link with -mthreads" >&5
8055 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8061 LIBS="-mthreads $LIBS"
8063 if test "$cross_compiling" = yes; then
8064 cat > conftest.$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 /* pthread test headers */
8068 #include <pthread.h>
8070 #define NULL (void*)0
8073 static void *task(p)
8076 return (void *) (p == NULL);
8081 /* pthread test function */
8084 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8085 /* This system (e.g. AIX) defaults detached; must override */
8086 pthread_attr_t attr;
8088 status = pthread_attr_init(&attr);
8089 if( status ) exit( status );
8091 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8092 if( status ) exit( status );
8095 #elif defined( HAVE_PTHREADS_D4 )
8096 # define ATTR pthread_attr_default
8101 /* make sure pthread_create() isn't just a stub */
8102 status = pthread_create(&t, ATTR, task, NULL);
8103 if( status ) exit( status );
8105 /* give the thread a chance to complete...
8106 * it should remain joinable and hence detachable
8110 /* make sure pthread_detach() isn't just a stub */
8111 #if HAVE_PTHREADS_D4
8112 status = pthread_detach( &t );
8114 status = pthread_detach( t );
8117 #ifdef HAVE_LINUX_THREADS
8118 pthread_kill_other_threads_np();
8125 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8127 ol_cv_pthread_mthreads=yes
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 ol_cv_pthread_mthreads=no
8136 cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8139 /* pthread test headers */
8140 #include <pthread.h>
8142 #define NULL (void*)0
8145 static void *task(p)
8148 return (void *) (p == NULL);
8152 int main(argc, argv)
8157 /* pthread test function */
8160 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8161 /* This system (e.g. AIX) defaults detached; must override */
8162 pthread_attr_t attr;
8164 status = pthread_attr_init(&attr);
8165 if( status ) exit( status );
8167 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8168 if( status ) exit( status );
8171 #elif defined( HAVE_PTHREADS_D4 )
8172 # define ATTR pthread_attr_default
8177 /* make sure pthread_create() isn't just a stub */
8178 status = pthread_create(&t, ATTR, task, NULL);
8179 if( status ) exit( status );
8181 /* give the thread a chance to complete...
8182 * it should remain joinable and hence detachable
8186 /* make sure pthread_detach() isn't just a stub */
8187 #if HAVE_PTHREADS_D4
8188 status = pthread_detach( &t );
8190 status = pthread_detach( t );
8193 #ifdef HAVE_LINUX_THREADS
8194 pthread_kill_other_threads_np();
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8204 ol_cv_pthread_mthreads=yes
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 ol_cv_pthread_mthreads=no
8220 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8222 if test $ol_cv_pthread_mthreads = yes ; then
8223 ol_link_pthreads="-mthreads"
8224 ol_link_threads=posix
8228 # Pthread try link: -thread (ol_cv_pthread_thread)
8229 if test "$ol_link_threads" = no ; then
8231 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8232 echo "configure:8233: checking for pthread link with -thread" >&5
8233 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8239 LIBS="-thread $LIBS"
8241 if test "$cross_compiling" = yes; then
8242 cat > conftest.$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* pthread test headers */
8246 #include <pthread.h>
8248 #define NULL (void*)0
8251 static void *task(p)
8254 return (void *) (p == NULL);
8259 /* pthread test function */
8262 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8263 /* This system (e.g. AIX) defaults detached; must override */
8264 pthread_attr_t attr;
8266 status = pthread_attr_init(&attr);
8267 if( status ) exit( status );
8269 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8270 if( status ) exit( status );
8273 #elif defined( HAVE_PTHREADS_D4 )
8274 # define ATTR pthread_attr_default
8279 /* make sure pthread_create() isn't just a stub */
8280 status = pthread_create(&t, ATTR, task, NULL);
8281 if( status ) exit( status );
8283 /* give the thread a chance to complete...
8284 * it should remain joinable and hence detachable
8288 /* make sure pthread_detach() isn't just a stub */
8289 #if HAVE_PTHREADS_D4
8290 status = pthread_detach( &t );
8292 status = pthread_detach( t );
8295 #ifdef HAVE_LINUX_THREADS
8296 pthread_kill_other_threads_np();
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8305 ol_cv_pthread_thread=yes
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8310 ol_cv_pthread_thread=no
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* pthread test headers */
8318 #include <pthread.h>
8320 #define NULL (void*)0
8323 static void *task(p)
8326 return (void *) (p == NULL);
8330 int main(argc, argv)
8335 /* pthread test function */
8338 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8339 /* This system (e.g. AIX) defaults detached; must override */
8340 pthread_attr_t attr;
8342 status = pthread_attr_init(&attr);
8343 if( status ) exit( status );
8345 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8346 if( status ) exit( status );
8349 #elif defined( HAVE_PTHREADS_D4 )
8350 # define ATTR pthread_attr_default
8355 /* make sure pthread_create() isn't just a stub */
8356 status = pthread_create(&t, ATTR, task, NULL);
8357 if( status ) exit( status );
8359 /* give the thread a chance to complete...
8360 * it should remain joinable and hence detachable
8364 /* make sure pthread_detach() isn't just a stub */
8365 #if HAVE_PTHREADS_D4
8366 status = pthread_detach( &t );
8368 status = pthread_detach( t );
8371 #ifdef HAVE_LINUX_THREADS
8372 pthread_kill_other_threads_np();
8380 if { (eval echo configure:8381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8382 ol_cv_pthread_thread=yes
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8387 ol_cv_pthread_thread=no
8398 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8400 if test $ol_cv_pthread_thread = yes ; then
8401 ol_link_pthreads="-thread"
8402 ol_link_threads=posix
8407 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8408 if test "$ol_link_threads" = no ; then
8409 # try -lpthread -lmach -lexc -lc_r
8410 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8411 echo "configure:8412: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8412 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8418 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8420 if test "$cross_compiling" = yes; then
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* pthread test headers */
8425 #include <pthread.h>
8427 #define NULL (void*)0
8430 static void *task(p)
8433 return (void *) (p == NULL);
8438 /* pthread test function */
8441 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8442 /* This system (e.g. AIX) defaults detached; must override */
8443 pthread_attr_t attr;
8445 status = pthread_attr_init(&attr);
8446 if( status ) exit( status );
8448 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8449 if( status ) exit( status );
8452 #elif defined( HAVE_PTHREADS_D4 )
8453 # define ATTR pthread_attr_default
8458 /* make sure pthread_create() isn't just a stub */
8459 status = pthread_create(&t, ATTR, task, NULL);
8460 if( status ) exit( status );
8462 /* give the thread a chance to complete...
8463 * it should remain joinable and hence detachable
8467 /* make sure pthread_detach() isn't just a stub */
8468 #if HAVE_PTHREADS_D4
8469 status = pthread_detach( &t );
8471 status = pthread_detach( t );
8474 #ifdef HAVE_LINUX_THREADS
8475 pthread_kill_other_threads_np();
8482 if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8484 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 /* pthread test headers */
8497 #include <pthread.h>
8499 #define NULL (void*)0
8502 static void *task(p)
8505 return (void *) (p == NULL);
8509 int main(argc, argv)
8514 /* pthread test function */
8517 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8518 /* This system (e.g. AIX) defaults detached; must override */
8519 pthread_attr_t attr;
8521 status = pthread_attr_init(&attr);
8522 if( status ) exit( status );
8524 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8525 if( status ) exit( status );
8528 #elif defined( HAVE_PTHREADS_D4 )
8529 # define ATTR pthread_attr_default
8534 /* make sure pthread_create() isn't just a stub */
8535 status = pthread_create(&t, ATTR, task, NULL);
8536 if( status ) exit( status );
8538 /* give the thread a chance to complete...
8539 * it should remain joinable and hence detachable
8543 /* make sure pthread_detach() isn't just a stub */
8544 #if HAVE_PTHREADS_D4
8545 status = pthread_detach( &t );
8547 status = pthread_detach( t );
8550 #ifdef HAVE_LINUX_THREADS
8551 pthread_kill_other_threads_np();
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8561 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8577 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8579 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8580 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8581 ol_link_threads=posix
8585 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8586 if test "$ol_link_threads" = no ; then
8587 # try -lpthread -lmach -lexc
8588 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8589 echo "configure:8590: checking for pthread link with -lpthread -lmach -lexc" >&5
8590 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8596 LIBS="-lpthread -lmach -lexc $LIBS"
8598 if test "$cross_compiling" = yes; then
8599 cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 /* pthread test headers */
8603 #include <pthread.h>
8605 #define NULL (void*)0
8608 static void *task(p)
8611 return (void *) (p == NULL);
8616 /* pthread test function */
8619 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8620 /* This system (e.g. AIX) defaults detached; must override */
8621 pthread_attr_t attr;
8623 status = pthread_attr_init(&attr);
8624 if( status ) exit( status );
8626 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8627 if( status ) exit( status );
8630 #elif defined( HAVE_PTHREADS_D4 )
8631 # define ATTR pthread_attr_default
8636 /* make sure pthread_create() isn't just a stub */
8637 status = pthread_create(&t, ATTR, task, NULL);
8638 if( status ) exit( status );
8640 /* give the thread a chance to complete...
8641 * it should remain joinable and hence detachable
8645 /* make sure pthread_detach() isn't just a stub */
8646 #if HAVE_PTHREADS_D4
8647 status = pthread_detach( &t );
8649 status = pthread_detach( t );
8652 #ifdef HAVE_LINUX_THREADS
8653 pthread_kill_other_threads_np();
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 ol_cv_pthread_lpthread_lmach_lexc=yes
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8667 ol_cv_pthread_lpthread_lmach_lexc=no
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8674 /* pthread test headers */
8675 #include <pthread.h>
8677 #define NULL (void*)0
8680 static void *task(p)
8683 return (void *) (p == NULL);
8687 int main(argc, argv)
8692 /* pthread test function */
8695 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8696 /* This system (e.g. AIX) defaults detached; must override */
8697 pthread_attr_t attr;
8699 status = pthread_attr_init(&attr);
8700 if( status ) exit( status );
8702 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8703 if( status ) exit( status );
8706 #elif defined( HAVE_PTHREADS_D4 )
8707 # define ATTR pthread_attr_default
8712 /* make sure pthread_create() isn't just a stub */
8713 status = pthread_create(&t, ATTR, task, NULL);
8714 if( status ) exit( status );
8716 /* give the thread a chance to complete...
8717 * it should remain joinable and hence detachable
8721 /* make sure pthread_detach() isn't just a stub */
8722 #if HAVE_PTHREADS_D4
8723 status = pthread_detach( &t );
8725 status = pthread_detach( t );
8728 #ifdef HAVE_LINUX_THREADS
8729 pthread_kill_other_threads_np();
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8739 ol_cv_pthread_lpthread_lmach_lexc=yes
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8744 ol_cv_pthread_lpthread_lmach_lexc=no
8755 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8757 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8758 ol_link_pthreads="-lpthread -lmach -lexc"
8759 ol_link_threads=posix
8764 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8765 if test "$ol_link_threads" = no ; then
8766 # try -lpthread -Wl,-woff,85
8767 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8768 echo "configure:8769: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8769 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8770 echo $ac_n "(cached) $ac_c" 1>&6
8775 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8777 if test "$cross_compiling" = yes; then
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 /* pthread test headers */
8782 #include <pthread.h>
8784 #define NULL (void*)0
8787 static void *task(p)
8790 return (void *) (p == NULL);
8795 /* pthread test function */
8798 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8799 /* This system (e.g. AIX) defaults detached; must override */
8800 pthread_attr_t attr;
8802 status = pthread_attr_init(&attr);
8803 if( status ) exit( status );
8805 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8806 if( status ) exit( status );
8809 #elif defined( HAVE_PTHREADS_D4 )
8810 # define ATTR pthread_attr_default
8815 /* make sure pthread_create() isn't just a stub */
8816 status = pthread_create(&t, ATTR, task, NULL);
8817 if( status ) exit( status );
8819 /* give the thread a chance to complete...
8820 * it should remain joinable and hence detachable
8824 /* make sure pthread_detach() isn't just a stub */
8825 #if HAVE_PTHREADS_D4
8826 status = pthread_detach( &t );
8828 status = pthread_detach( t );
8831 #ifdef HAVE_LINUX_THREADS
8832 pthread_kill_other_threads_np();
8839 if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8841 ol_cv_pthread_lib_lpthread_woff=yes
8843 echo "configure: failed program was:" >&5
8844 cat conftest.$ac_ext >&5
8846 ol_cv_pthread_lib_lpthread_woff=no
8850 cat > conftest.$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8853 /* pthread test headers */
8854 #include <pthread.h>
8856 #define NULL (void*)0
8859 static void *task(p)
8862 return (void *) (p == NULL);
8866 int main(argc, argv)
8871 /* pthread test function */
8874 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8875 /* This system (e.g. AIX) defaults detached; must override */
8876 pthread_attr_t attr;
8878 status = pthread_attr_init(&attr);
8879 if( status ) exit( status );
8881 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8882 if( status ) exit( status );
8885 #elif defined( HAVE_PTHREADS_D4 )
8886 # define ATTR pthread_attr_default
8891 /* make sure pthread_create() isn't just a stub */
8892 status = pthread_create(&t, ATTR, task, NULL);
8893 if( status ) exit( status );
8895 /* give the thread a chance to complete...
8896 * it should remain joinable and hence detachable
8900 /* make sure pthread_detach() isn't just a stub */
8901 #if HAVE_PTHREADS_D4
8902 status = pthread_detach( &t );
8904 status = pthread_detach( t );
8907 #ifdef HAVE_LINUX_THREADS
8908 pthread_kill_other_threads_np();
8916 if { (eval echo configure:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8918 ol_cv_pthread_lib_lpthread_woff=yes
8920 echo "configure: failed program was:" >&5
8921 cat conftest.$ac_ext >&5
8923 ol_cv_pthread_lib_lpthread_woff=no
8934 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8936 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8937 ol_link_pthreads="-lpthread -Wl,-woff,85"
8938 ol_link_threads=posix
8943 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8944 if test "$ol_link_threads" = no ; then
8946 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8947 echo "configure:8948: checking for pthread link with -lpthread" >&5
8948 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8949 echo $ac_n "(cached) $ac_c" 1>&6
8954 LIBS="-lpthread $LIBS"
8956 if test "$cross_compiling" = yes; then
8957 cat > conftest.$ac_ext <<EOF
8958 #line 8959 "configure"
8959 #include "confdefs.h"
8960 /* pthread test headers */
8961 #include <pthread.h>
8963 #define NULL (void*)0
8966 static void *task(p)
8969 return (void *) (p == NULL);
8974 /* pthread test function */
8977 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8978 /* This system (e.g. AIX) defaults detached; must override */
8979 pthread_attr_t attr;
8981 status = pthread_attr_init(&attr);
8982 if( status ) exit( status );
8984 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8985 if( status ) exit( status );
8988 #elif defined( HAVE_PTHREADS_D4 )
8989 # define ATTR pthread_attr_default
8994 /* make sure pthread_create() isn't just a stub */
8995 status = pthread_create(&t, ATTR, task, NULL);
8996 if( status ) exit( status );
8998 /* give the thread a chance to complete...
8999 * it should remain joinable and hence detachable
9003 /* make sure pthread_detach() isn't just a stub */
9004 #if HAVE_PTHREADS_D4
9005 status = pthread_detach( &t );
9007 status = pthread_detach( t );
9010 #ifdef HAVE_LINUX_THREADS
9011 pthread_kill_other_threads_np();
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9020 ol_cv_pthread_lpthread=yes
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9025 ol_cv_pthread_lpthread=no
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 /* pthread test headers */
9033 #include <pthread.h>
9035 #define NULL (void*)0
9038 static void *task(p)
9041 return (void *) (p == NULL);
9045 int main(argc, argv)
9050 /* pthread test function */
9053 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9054 /* This system (e.g. AIX) defaults detached; must override */
9055 pthread_attr_t attr;
9057 status = pthread_attr_init(&attr);
9058 if( status ) exit( status );
9060 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9061 if( status ) exit( status );
9064 #elif defined( HAVE_PTHREADS_D4 )
9065 # define ATTR pthread_attr_default
9070 /* make sure pthread_create() isn't just a stub */
9071 status = pthread_create(&t, ATTR, task, NULL);
9072 if( status ) exit( status );
9074 /* give the thread a chance to complete...
9075 * it should remain joinable and hence detachable
9079 /* make sure pthread_detach() isn't just a stub */
9080 #if HAVE_PTHREADS_D4
9081 status = pthread_detach( &t );
9083 status = pthread_detach( t );
9086 #ifdef HAVE_LINUX_THREADS
9087 pthread_kill_other_threads_np();
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9097 ol_cv_pthread_lpthread=yes
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9102 ol_cv_pthread_lpthread=no
9113 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9115 if test $ol_cv_pthread_lpthread = yes ; then
9116 ol_link_pthreads="-lpthread"
9117 ol_link_threads=posix
9121 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9122 if test "$ol_link_threads" = no ; then
9124 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9125 echo "configure:9126: checking for pthread link with -lc_r" >&5
9126 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9134 if test "$cross_compiling" = yes; then
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 /* pthread test headers */
9139 #include <pthread.h>
9141 #define NULL (void*)0
9144 static void *task(p)
9147 return (void *) (p == NULL);
9152 /* pthread test function */
9155 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9156 /* This system (e.g. AIX) defaults detached; must override */
9157 pthread_attr_t attr;
9159 status = pthread_attr_init(&attr);
9160 if( status ) exit( status );
9162 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9163 if( status ) exit( status );
9166 #elif defined( HAVE_PTHREADS_D4 )
9167 # define ATTR pthread_attr_default
9172 /* make sure pthread_create() isn't just a stub */
9173 status = pthread_create(&t, ATTR, task, NULL);
9174 if( status ) exit( status );
9176 /* give the thread a chance to complete...
9177 * it should remain joinable and hence detachable
9181 /* make sure pthread_detach() isn't just a stub */
9182 #if HAVE_PTHREADS_D4
9183 status = pthread_detach( &t );
9185 status = pthread_detach( t );
9188 #ifdef HAVE_LINUX_THREADS
9189 pthread_kill_other_threads_np();
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9198 ol_cv_pthread_lc_r=yes
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9203 ol_cv_pthread_lc_r=no
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9210 /* pthread test headers */
9211 #include <pthread.h>
9213 #define NULL (void*)0
9216 static void *task(p)
9219 return (void *) (p == NULL);
9223 int main(argc, argv)
9228 /* pthread test function */
9231 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9232 /* This system (e.g. AIX) defaults detached; must override */
9233 pthread_attr_t attr;
9235 status = pthread_attr_init(&attr);
9236 if( status ) exit( status );
9238 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9239 if( status ) exit( status );
9242 #elif defined( HAVE_PTHREADS_D4 )
9243 # define ATTR pthread_attr_default
9248 /* make sure pthread_create() isn't just a stub */
9249 status = pthread_create(&t, ATTR, task, NULL);
9250 if( status ) exit( status );
9252 /* give the thread a chance to complete...
9253 * it should remain joinable and hence detachable
9257 /* make sure pthread_detach() isn't just a stub */
9258 #if HAVE_PTHREADS_D4
9259 status = pthread_detach( &t );
9261 status = pthread_detach( t );
9264 #ifdef HAVE_LINUX_THREADS
9265 pthread_kill_other_threads_np();
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9275 ol_cv_pthread_lc_r=yes
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9280 ol_cv_pthread_lc_r=no
9291 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9293 if test $ol_cv_pthread_lc_r = yes ; then
9294 ol_link_pthreads="-lc_r"
9295 ol_link_threads=posix
9300 # Pthread try link: -threads (ol_cv_pthread_threads)
9301 if test "$ol_link_threads" = no ; then
9303 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9304 echo "configure:9305: checking for pthread link with -threads" >&5
9305 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9306 echo $ac_n "(cached) $ac_c" 1>&6
9311 LIBS="-threads $LIBS"
9313 if test "$cross_compiling" = yes; then
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9317 /* pthread test headers */
9318 #include <pthread.h>
9320 #define NULL (void*)0
9323 static void *task(p)
9326 return (void *) (p == NULL);
9331 /* pthread test function */
9334 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9335 /* This system (e.g. AIX) defaults detached; must override */
9336 pthread_attr_t attr;
9338 status = pthread_attr_init(&attr);
9339 if( status ) exit( status );
9341 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9342 if( status ) exit( status );
9345 #elif defined( HAVE_PTHREADS_D4 )
9346 # define ATTR pthread_attr_default
9351 /* make sure pthread_create() isn't just a stub */
9352 status = pthread_create(&t, ATTR, task, NULL);
9353 if( status ) exit( status );
9355 /* give the thread a chance to complete...
9356 * it should remain joinable and hence detachable
9360 /* make sure pthread_detach() isn't just a stub */
9361 #if HAVE_PTHREADS_D4
9362 status = pthread_detach( &t );
9364 status = pthread_detach( t );
9367 #ifdef HAVE_LINUX_THREADS
9368 pthread_kill_other_threads_np();
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 ol_cv_pthread_threads=yes
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 ol_cv_pthread_threads=no
9386 cat > conftest.$ac_ext <<EOF
9387 #line 9388 "configure"
9388 #include "confdefs.h"
9389 /* pthread test headers */
9390 #include <pthread.h>
9392 #define NULL (void*)0
9395 static void *task(p)
9398 return (void *) (p == NULL);
9402 int main(argc, argv)
9407 /* pthread test function */
9410 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9411 /* This system (e.g. AIX) defaults detached; must override */
9412 pthread_attr_t attr;
9414 status = pthread_attr_init(&attr);
9415 if( status ) exit( status );
9417 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9418 if( status ) exit( status );
9421 #elif defined( HAVE_PTHREADS_D4 )
9422 # define ATTR pthread_attr_default
9427 /* make sure pthread_create() isn't just a stub */
9428 status = pthread_create(&t, ATTR, task, NULL);
9429 if( status ) exit( status );
9431 /* give the thread a chance to complete...
9432 * it should remain joinable and hence detachable
9436 /* make sure pthread_detach() isn't just a stub */
9437 #if HAVE_PTHREADS_D4
9438 status = pthread_detach( &t );
9440 status = pthread_detach( t );
9443 #ifdef HAVE_LINUX_THREADS
9444 pthread_kill_other_threads_np();
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9454 ol_cv_pthread_threads=yes
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 ol_cv_pthread_threads=no
9470 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9472 if test $ol_cv_pthread_threads = yes ; then
9473 ol_link_pthreads="-threads"
9474 ol_link_threads=posix
9479 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9480 if test "$ol_link_threads" = no ; then
9481 # try -lpthreads -lmach -lexc -lc_r
9482 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9483 echo "configure:9484: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9484 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9490 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9492 if test "$cross_compiling" = yes; then
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 /* pthread test headers */
9497 #include <pthread.h>
9499 #define NULL (void*)0
9502 static void *task(p)
9505 return (void *) (p == NULL);
9510 /* pthread test function */
9513 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9514 /* This system (e.g. AIX) defaults detached; must override */
9515 pthread_attr_t attr;
9517 status = pthread_attr_init(&attr);
9518 if( status ) exit( status );
9520 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9521 if( status ) exit( status );
9524 #elif defined( HAVE_PTHREADS_D4 )
9525 # define ATTR pthread_attr_default
9530 /* make sure pthread_create() isn't just a stub */
9531 status = pthread_create(&t, ATTR, task, NULL);
9532 if( status ) exit( status );
9534 /* give the thread a chance to complete...
9535 * it should remain joinable and hence detachable
9539 /* make sure pthread_detach() isn't just a stub */
9540 #if HAVE_PTHREADS_D4
9541 status = pthread_detach( &t );
9543 status = pthread_detach( t );
9546 #ifdef HAVE_LINUX_THREADS
9547 pthread_kill_other_threads_np();
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9561 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* pthread test headers */
9569 #include <pthread.h>
9571 #define NULL (void*)0
9574 static void *task(p)
9577 return (void *) (p == NULL);
9581 int main(argc, argv)
9586 /* pthread test function */
9589 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9590 /* This system (e.g. AIX) defaults detached; must override */
9591 pthread_attr_t attr;
9593 status = pthread_attr_init(&attr);
9594 if( status ) exit( status );
9596 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9597 if( status ) exit( status );
9600 #elif defined( HAVE_PTHREADS_D4 )
9601 # define ATTR pthread_attr_default
9606 /* make sure pthread_create() isn't just a stub */
9607 status = pthread_create(&t, ATTR, task, NULL);
9608 if( status ) exit( status );
9610 /* give the thread a chance to complete...
9611 * it should remain joinable and hence detachable
9615 /* make sure pthread_detach() isn't just a stub */
9616 #if HAVE_PTHREADS_D4
9617 status = pthread_detach( &t );
9619 status = pthread_detach( t );
9622 #ifdef HAVE_LINUX_THREADS
9623 pthread_kill_other_threads_np();
9631 if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9633 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9635 echo "configure: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9638 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9649 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9651 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9652 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9653 ol_link_threads=posix
9657 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9658 if test "$ol_link_threads" = no ; then
9659 # try -lpthreads -lmach -lexc
9660 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9661 echo "configure:9662: checking for pthread link with -lpthreads -lmach -lexc" >&5
9662 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9668 LIBS="-lpthreads -lmach -lexc $LIBS"
9670 if test "$cross_compiling" = yes; then
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9674 /* pthread test headers */
9675 #include <pthread.h>
9677 #define NULL (void*)0
9680 static void *task(p)
9683 return (void *) (p == NULL);
9688 /* pthread test function */
9691 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9692 /* This system (e.g. AIX) defaults detached; must override */
9693 pthread_attr_t attr;
9695 status = pthread_attr_init(&attr);
9696 if( status ) exit( status );
9698 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9699 if( status ) exit( status );
9702 #elif defined( HAVE_PTHREADS_D4 )
9703 # define ATTR pthread_attr_default
9708 /* make sure pthread_create() isn't just a stub */
9709 status = pthread_create(&t, ATTR, task, NULL);
9710 if( status ) exit( status );
9712 /* give the thread a chance to complete...
9713 * it should remain joinable and hence detachable
9717 /* make sure pthread_detach() isn't just a stub */
9718 #if HAVE_PTHREADS_D4
9719 status = pthread_detach( &t );
9721 status = pthread_detach( t );
9724 #ifdef HAVE_LINUX_THREADS
9725 pthread_kill_other_threads_np();
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 ol_cv_pthread_lpthreads_lmach_lexc=yes
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 ol_cv_pthread_lpthreads_lmach_lexc=no
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 /* pthread test headers */
9747 #include <pthread.h>
9749 #define NULL (void*)0
9752 static void *task(p)
9755 return (void *) (p == NULL);
9759 int main(argc, argv)
9764 /* pthread test function */
9767 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9768 /* This system (e.g. AIX) defaults detached; must override */
9769 pthread_attr_t attr;
9771 status = pthread_attr_init(&attr);
9772 if( status ) exit( status );
9774 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9775 if( status ) exit( status );
9778 #elif defined( HAVE_PTHREADS_D4 )
9779 # define ATTR pthread_attr_default
9784 /* make sure pthread_create() isn't just a stub */
9785 status = pthread_create(&t, ATTR, task, NULL);
9786 if( status ) exit( status );
9788 /* give the thread a chance to complete...
9789 * it should remain joinable and hence detachable
9793 /* make sure pthread_detach() isn't just a stub */
9794 #if HAVE_PTHREADS_D4
9795 status = pthread_detach( &t );
9797 status = pthread_detach( t );
9800 #ifdef HAVE_LINUX_THREADS
9801 pthread_kill_other_threads_np();
9809 if { (eval echo configure:9810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9811 ol_cv_pthread_lpthreads_lmach_lexc=yes
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9816 ol_cv_pthread_lpthreads_lmach_lexc=no
9827 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9829 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9830 ol_link_pthreads="-lpthreads -lmach -lexc"
9831 ol_link_threads=posix
9835 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9836 if test "$ol_link_threads" = no ; then
9837 # try -lpthreads -lexc
9838 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9839 echo "configure:9840: checking for pthread link with -lpthreads -lexc" >&5
9840 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9846 LIBS="-lpthreads -lexc $LIBS"
9848 if test "$cross_compiling" = yes; then
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 /* pthread test headers */
9853 #include <pthread.h>
9855 #define NULL (void*)0
9858 static void *task(p)
9861 return (void *) (p == NULL);
9866 /* pthread test function */
9869 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9870 /* This system (e.g. AIX) defaults detached; must override */
9871 pthread_attr_t attr;
9873 status = pthread_attr_init(&attr);
9874 if( status ) exit( status );
9876 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9877 if( status ) exit( status );
9880 #elif defined( HAVE_PTHREADS_D4 )
9881 # define ATTR pthread_attr_default
9886 /* make sure pthread_create() isn't just a stub */
9887 status = pthread_create(&t, ATTR, task, NULL);
9888 if( status ) exit( status );
9890 /* give the thread a chance to complete...
9891 * it should remain joinable and hence detachable
9895 /* make sure pthread_detach() isn't just a stub */
9896 #if HAVE_PTHREADS_D4
9897 status = pthread_detach( &t );
9899 status = pthread_detach( t );
9902 #ifdef HAVE_LINUX_THREADS
9903 pthread_kill_other_threads_np();
9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9912 ol_cv_pthread_lpthreads_lexc=yes
9914 echo "configure: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9917 ol_cv_pthread_lpthreads_lexc=no
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9924 /* pthread test headers */
9925 #include <pthread.h>
9927 #define NULL (void*)0
9930 static void *task(p)
9933 return (void *) (p == NULL);
9937 int main(argc, argv)
9942 /* pthread test function */
9945 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9946 /* This system (e.g. AIX) defaults detached; must override */
9947 pthread_attr_t attr;
9949 status = pthread_attr_init(&attr);
9950 if( status ) exit( status );
9952 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9953 if( status ) exit( status );
9956 #elif defined( HAVE_PTHREADS_D4 )
9957 # define ATTR pthread_attr_default
9962 /* make sure pthread_create() isn't just a stub */
9963 status = pthread_create(&t, ATTR, task, NULL);
9964 if( status ) exit( status );
9966 /* give the thread a chance to complete...
9967 * it should remain joinable and hence detachable
9971 /* make sure pthread_detach() isn't just a stub */
9972 #if HAVE_PTHREADS_D4
9973 status = pthread_detach( &t );
9975 status = pthread_detach( t );
9978 #ifdef HAVE_LINUX_THREADS
9979 pthread_kill_other_threads_np();
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9989 ol_cv_pthread_lpthreads_lexc=yes
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 ol_cv_pthread_lpthreads_lexc=no
10005 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10007 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10008 ol_link_pthreads="-lpthreads -lexc"
10009 ol_link_threads=posix
10014 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10015 if test "$ol_link_threads" = no ; then
10017 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10018 echo "configure:10019: checking for pthread link with -lpthreads" >&5
10019 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10025 LIBS="-lpthreads $LIBS"
10027 if test "$cross_compiling" = yes; then
10028 cat > conftest.$ac_ext <<EOF
10029 #line 10030 "configure"
10030 #include "confdefs.h"
10031 /* pthread test headers */
10032 #include <pthread.h>
10034 #define NULL (void*)0
10037 static void *task(p)
10040 return (void *) (p == NULL);
10045 /* pthread test function */
10048 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10049 /* This system (e.g. AIX) defaults detached; must override */
10050 pthread_attr_t attr;
10052 status = pthread_attr_init(&attr);
10053 if( status ) exit( status );
10055 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10056 if( status ) exit( status );
10058 # define ATTR &attr
10059 #elif defined( HAVE_PTHREADS_D4 )
10060 # define ATTR pthread_attr_default
10065 /* make sure pthread_create() isn't just a stub */
10066 status = pthread_create(&t, ATTR, task, NULL);
10067 if( status ) exit( status );
10069 /* give the thread a chance to complete...
10070 * it should remain joinable and hence detachable
10074 /* make sure pthread_detach() isn't just a stub */
10075 #if HAVE_PTHREADS_D4
10076 status = pthread_detach( &t );
10078 status = pthread_detach( t );
10081 #ifdef HAVE_LINUX_THREADS
10082 pthread_kill_other_threads_np();
10089 if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10091 ol_cv_pthread_lib_lpthreads=yes
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10096 ol_cv_pthread_lib_lpthreads=no
10100 cat > conftest.$ac_ext <<EOF
10101 #line 10102 "configure"
10102 #include "confdefs.h"
10103 /* pthread test headers */
10104 #include <pthread.h>
10106 #define NULL (void*)0
10109 static void *task(p)
10112 return (void *) (p == NULL);
10116 int main(argc, argv)
10121 /* pthread test function */
10124 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10125 /* This system (e.g. AIX) defaults detached; must override */
10126 pthread_attr_t attr;
10128 status = pthread_attr_init(&attr);
10129 if( status ) exit( status );
10131 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10132 if( status ) exit( status );
10134 # define ATTR &attr
10135 #elif defined( HAVE_PTHREADS_D4 )
10136 # define ATTR pthread_attr_default
10141 /* make sure pthread_create() isn't just a stub */
10142 status = pthread_create(&t, ATTR, task, NULL);
10143 if( status ) exit( status );
10145 /* give the thread a chance to complete...
10146 * it should remain joinable and hence detachable
10150 /* make sure pthread_detach() isn't just a stub */
10151 #if HAVE_PTHREADS_D4
10152 status = pthread_detach( &t );
10154 status = pthread_detach( t );
10157 #ifdef HAVE_LINUX_THREADS
10158 pthread_kill_other_threads_np();
10166 if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10168 ol_cv_pthread_lib_lpthreads=yes
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10173 ol_cv_pthread_lib_lpthreads=no
10184 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10186 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10187 ol_link_pthreads="-lpthreads"
10188 ol_link_threads=posix
10193 if test $ol_link_threads != no ; then
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_PTHREADS 1
10199 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10201 save_CPPFLAGS="$CPPFLAGS"
10203 LIBS="$LTHREAD_LIBS $LIBS"
10205 for ac_func in sched_yield pthread_yield
10207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10208 echo "configure:10209: checking for $ac_func" >&5
10209 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 /* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func(); below. */
10217 #include <assert.h>
10218 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10226 /* The GNU C library defines this for functions which it implements
10227 to always fail with ENOSYS. Some functions are actually named
10228 something starting with __ and the normal name is an alias. */
10229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10237 if { (eval echo configure:10238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10239 eval "ac_cv_func_$ac_func=yes"
10241 echo "configure: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10244 eval "ac_cv_func_$ac_func=no"
10249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10250 echo "$ac_t""yes" 1>&6
10251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10252 cat >> confdefs.h <<EOF
10253 #define $ac_tr_func 1
10257 echo "$ac_t""no" 1>&6
10262 if test $ac_cv_func_sched_yield = no -a \
10263 $ac_cv_func_pthread_yield = no ; then
10264 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10265 echo "configure:10266: checking for sched_yield in -lrt" >&5
10266 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10267 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10270 ac_save_LIBS="$LIBS"
10272 cat > conftest.$ac_ext <<EOF
10273 #line 10274 "configure"
10274 #include "confdefs.h"
10275 /* Override any gcc2 internal prototype to avoid an error. */
10276 /* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10278 char sched_yield();
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 eval "ac_cv_lib_$ac_lib_var=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_lib_$ac_lib_var=no"
10294 LIBS="$ac_save_LIBS"
10297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_SCHED_YIELD 1
10304 ac_cv_func_sched_yield=yes
10306 echo "$ac_t""no" 1>&6
10307 ac_cv_func_sched_yield=no
10311 if test $ac_cv_func_sched_yield = no -a \
10312 $ac_cv_func_pthread_yield = no ; then
10313 for ac_func in thr_yield
10315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10316 echo "configure:10317: checking for $ac_func" >&5
10317 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 /* System header to define __stub macros and hopefully few prototypes,
10324 which can conflict with char $ac_func(); below. */
10325 #include <assert.h>
10326 /* Override any gcc2 internal prototype to avoid an error. */
10327 /* We use char because int might match the return type of a gcc2
10328 builtin and then its argument prototype would still apply. */
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10345 if { (eval echo configure:10346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10347 eval "ac_cv_func_$ac_func=yes"
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 eval "ac_cv_func_$ac_func=no"
10357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10358 echo "$ac_t""yes" 1>&6
10359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10360 cat >> confdefs.h <<EOF
10361 #define $ac_tr_func 1
10365 echo "$ac_t""no" 1>&6
10370 if test $ac_cv_func_sched_yield = no -a \
10371 $ac_cv_func_pthread_yield = no -a \
10372 "$ac_cv_func_thr_yield" = no ; then
10373 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10376 for ac_func in pthread_kill pthread_rwlock_destroy
10378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_func" >&5
10380 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 /* System header to define __stub macros and hopefully few prototypes,
10387 which can conflict with char $ac_func(); below. */
10388 #include <assert.h>
10389 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10397 /* The GNU C library defines this for functions which it implements
10398 to always fail with ENOSYS. Some functions are actually named
10399 something starting with __ and the normal name is an alias. */
10400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10408 if { (eval echo configure:10409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10410 eval "ac_cv_func_$ac_func=yes"
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 eval "ac_cv_func_$ac_func=no"
10420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10421 echo "$ac_t""yes" 1>&6
10422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10423 cat >> confdefs.h <<EOF
10424 #define $ac_tr_func 1
10428 echo "$ac_t""no" 1>&6
10433 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10434 echo "configure:10435: checking for pthread_detach with <pthread.h>" >&5
10435 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10436 echo $ac_n "(cached) $ac_c" 1>&6
10439 cat > conftest.$ac_ext <<EOF
10440 #line 10441 "configure"
10441 #include "confdefs.h"
10443 #include <pthread.h>
10445 #define NULL (void*)0
10449 pthread_detach(NULL);
10452 if { (eval echo configure:10453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10454 ol_cv_func_pthread_detach=yes
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10459 ol_cv_func_pthread_detach=no
10465 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10467 if test $ol_cv_func_pthread_detach = no ; then
10468 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_PTHREAD_DETACH 1
10477 pthread_setconcurrency \
10478 pthread_getconcurrency \
10479 thr_setconcurrency \
10480 thr_getconcurrency \
10483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10484 echo "configure:10485: checking for $ac_func" >&5
10485 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char $ac_func(); below. */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10502 /* The GNU C library defines this for functions which it implements
10503 to always fail with ENOSYS. Some functions are actually named
10504 something starting with __ and the normal name is an alias. */
10505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10513 if { (eval echo configure:10514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10515 eval "ac_cv_func_$ac_func=yes"
10517 echo "configure: failed program was:" >&5
10518 cat conftest.$ac_ext >&5
10520 eval "ac_cv_func_$ac_func=no"
10525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10526 echo "$ac_t""yes" 1>&6
10527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10528 cat >> confdefs.h <<EOF
10529 #define $ac_tr_func 1
10533 echo "$ac_t""no" 1>&6
10539 for ac_func in pthread_kill_other_threads_np
10541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10542 echo "configure:10543: checking for $ac_func" >&5
10543 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10544 echo $ac_n "(cached) $ac_c" 1>&6
10546 cat > conftest.$ac_ext <<EOF
10547 #line 10548 "configure"
10548 #include "confdefs.h"
10549 /* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char $ac_func(); below. */
10551 #include <assert.h>
10552 /* Override any gcc2 internal prototype to avoid an error. */
10553 /* We use char because int might match the return type of a gcc2
10554 builtin and then its argument prototype would still apply. */
10560 /* The GNU C library defines this for functions which it implements
10561 to always fail with ENOSYS. Some functions are actually named
10562 something starting with __ and the normal name is an alias. */
10563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10571 if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10573 eval "ac_cv_func_$ac_func=yes"
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10578 eval "ac_cv_func_$ac_func=no"
10583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10584 echo "$ac_t""yes" 1>&6
10585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10586 cat >> confdefs.h <<EOF
10587 #define $ac_tr_func 1
10591 echo "$ac_t""no" 1>&6
10595 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10596 echo "configure:10597: checking for LinuxThreads implementation" >&5
10597 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10600 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10603 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10608 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10609 echo "configure:10610: checking for LinuxThreads consistency" >&5
10610 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10614 if test $ol_cv_header_linux_threads = yes -a \
10615 $ol_cv_sys_linux_threads = yes; then
10616 ol_cv_linux_threads=yes
10617 elif test $ol_cv_header_linux_threads = no -a \
10618 $ol_cv_sys_linux_threads = no; then
10619 ol_cv_linux_threads=no
10621 ol_cv_linux_threads=error
10626 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10629 if test $ol_cv_linux_threads = error; then
10630 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10633 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10634 echo "configure:10635: checking if pthread_create() works" >&5
10635 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10636 echo $ac_n "(cached) $ac_c" 1>&6
10639 if test "$cross_compiling" = yes; then
10640 ol_cv_pthread_create_works=yes
10642 cat > conftest.$ac_ext <<EOF
10643 #line 10644 "configure"
10644 #include "confdefs.h"
10645 /* pthread test headers */
10646 #include <pthread.h>
10648 #define NULL (void*)0
10651 static void *task(p)
10654 return (void *) (p == NULL);
10658 int main(argc, argv)
10663 /* pthread test function */
10666 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10667 /* This system (e.g. AIX) defaults detached; must override */
10668 pthread_attr_t attr;
10670 status = pthread_attr_init(&attr);
10671 if( status ) exit( status );
10673 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10674 if( status ) exit( status );
10676 # define ATTR &attr
10677 #elif defined( HAVE_PTHREADS_D4 )
10678 # define ATTR pthread_attr_default
10683 /* make sure pthread_create() isn't just a stub */
10684 status = pthread_create(&t, ATTR, task, NULL);
10685 if( status ) exit( status );
10687 /* give the thread a chance to complete...
10688 * it should remain joinable and hence detachable
10692 /* make sure pthread_detach() isn't just a stub */
10693 #if HAVE_PTHREADS_D4
10694 status = pthread_detach( &t );
10696 status = pthread_detach( t );
10699 #ifdef HAVE_LINUX_THREADS
10700 pthread_kill_other_threads_np();
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10710 ol_cv_pthread_create_works=yes
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 ol_cv_pthread_create_works=no
10722 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10724 if test $ol_cv_pthread_create_works = no ; then
10725 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10728 if test $ol_with_yielding_select = auto ; then
10729 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10730 echo "configure:10731: checking if select yields when using pthreads" >&5
10731 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10732 echo $ac_n "(cached) $ac_c" 1>&6
10735 if test "$cross_compiling" = yes; then
10736 ol_cv_pthread_select_yields=cross
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10742 #include <sys/types.h>
10743 #include <sys/time.h>
10744 #include <unistd.h>
10745 #include <pthread.h>
10747 #define NULL (void*) 0
10750 static int fildes[2];
10752 static void *task(p)
10764 FD_SET(fildes[0], &rfds);
10766 /* we're not interested in any fds */
10767 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10774 exit(0); /* if we exit here, the select blocked the whole process */
10777 int main(argc, argv)
10783 /* create a pipe to select */
10784 if(pipe(&fildes[0])) {
10789 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10790 (void) pthread_setconcurrency(2);
10792 #ifdef HAVE_THR_SETCONCURRENCY
10793 /* Set Solaris LWP concurrency to 2 */
10794 thr_setconcurrency(2);
10798 #if HAVE_PTHREADS_D4
10799 pthread_create(&t, pthread_attr_default, task, NULL);
10801 pthread_create(&t, NULL, task, NULL);
10804 #if HAVE_SCHED_YIELD
10805 sched_yield(); /* make sure task runs first */
10807 #ifdef HAVE_PTHREAD_YIELD
10808 pthread_yield(); /* make sure task runs first */
10815 if { (eval echo configure:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10817 ol_cv_pthread_select_yields=no
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10822 ol_cv_pthread_select_yields=yes
10829 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10831 if test $ol_cv_pthread_select_yields = cross ; then
10832 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10835 if test $ol_cv_pthread_select_yields = yes ; then
10836 ol_with_yielding_select=yes
10840 CPPFLAGS="$save_CPPFLAGS"
10843 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10847 if test $ol_with_threads = posix ; then
10848 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10852 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10853 -o $ol_with_threads = mach ; then
10855 for ac_hdr in mach/cthreads.h
10857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10859 echo "configure:10860: checking for $ac_hdr" >&5
10860 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10869 { (eval echo configure:10870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10871 if test -z "$ac_err"; then
10873 eval "ac_cv_header_$ac_safe=yes"
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10879 eval "ac_cv_header_$ac_safe=no"
10883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10884 echo "$ac_t""yes" 1>&6
10885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10886 cat >> confdefs.h <<EOF
10887 #define $ac_tr_hdr 1
10891 echo "$ac_t""no" 1>&6
10895 if test $ac_cv_header_mach_cthreads_h = yes ; then
10896 ol_with_threads=found
10898 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10899 echo "configure:10900: checking for cthread_fork" >&5
10900 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10901 echo $ac_n "(cached) $ac_c" 1>&6
10903 cat > conftest.$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10906 /* System header to define __stub macros and hopefully few prototypes,
10907 which can conflict with char cthread_fork(); below. */
10908 #include <assert.h>
10909 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char cthread_fork();
10917 /* The GNU C library defines this for functions which it implements
10918 to always fail with ENOSYS. Some functions are actually named
10919 something starting with __ and the normal name is an alias. */
10920 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10928 if { (eval echo configure:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10930 eval "ac_cv_func_cthread_fork=yes"
10932 echo "configure: failed program was:" >&5
10933 cat conftest.$ac_ext >&5
10935 eval "ac_cv_func_cthread_fork=no"
10940 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10941 echo "$ac_t""yes" 1>&6
10942 ol_link_threads=yes
10944 echo "$ac_t""no" 1>&6
10948 if test $ol_link_threads = no ; then
10949 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10950 echo "configure:10951: checking for cthread_fork with -all_load" >&5
10951 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10956 LIBS="-all_load $LIBS"
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10960 #include <mach/cthreads.h>
10963 cthread_fork((void *)0, (void *)0);
10967 if { (eval echo configure:10968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10969 ol_cv_cthread_all_load=yes
10971 echo "configure: failed program was:" >&5
10972 cat conftest.$ac_ext >&5
10974 ol_cv_cthread_all_load=no
10981 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10983 if test $ol_cv_cthread_all_load = yes ; then
10984 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10985 ol_link_threads=mach
10989 if test $ol_link_threads != no ; then
10990 : check for cthread specific functionality here
10991 cat >> confdefs.h <<\EOF
10992 #define HAVE_MACH_CTHREADS 1
10996 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11000 if test $ol_with_threads = mach ; then
11001 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11005 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11006 -o $ol_with_threads = pth ; then
11008 for ac_hdr in pth.h
11010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11012 echo "configure:11013: checking for $ac_hdr" >&5
11013 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then
11026 eval "ac_cv_header_$ac_safe=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_header_$ac_safe=no"
11036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11039 cat >> confdefs.h <<EOF
11040 #define $ac_tr_hdr 1
11044 echo "$ac_t""no" 1>&6
11049 if test $ac_cv_header_pth_h = yes ; then
11050 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11051 echo "configure:11052: checking for pth_version in -lpth" >&5
11052 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11056 ac_save_LIBS="$LIBS"
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11061 /* Override any gcc2 internal prototype to avoid an error. */
11062 /* We use char because int might match the return type of a gcc2
11063 builtin and then its argument prototype would still apply. */
11064 char pth_version();
11070 if { (eval echo configure:11071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11072 eval "ac_cv_lib_$ac_lib_var=yes"
11074 echo "configure: failed program was:" >&5
11075 cat conftest.$ac_ext >&5
11077 eval "ac_cv_lib_$ac_lib_var=no"
11080 LIBS="$ac_save_LIBS"
11083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11084 echo "$ac_t""yes" 1>&6
11087 echo "$ac_t""no" 1>&6
11092 if test $have_pth = yes ; then
11093 cat >> confdefs.h <<\EOF
11094 #define HAVE_GNU_PTH 1
11097 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11098 ol_link_threads=pth
11100 if test $ol_with_yielding_select = auto ; then
11101 ol_with_yielding_select=yes
11107 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11108 -o $ol_with_threads = lwp ; then
11110 for ac_hdr in thread.h synch.h
11112 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11113 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11114 echo "configure:11115: checking for $ac_hdr" >&5
11115 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11124 { (eval echo configure:11125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11126 if test -z "$ac_err"; then
11128 eval "ac_cv_header_$ac_safe=yes"
11131 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11134 eval "ac_cv_header_$ac_safe=no"
11138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11139 echo "$ac_t""yes" 1>&6
11140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11141 cat >> confdefs.h <<EOF
11142 #define $ac_tr_hdr 1
11146 echo "$ac_t""no" 1>&6
11150 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11151 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11152 echo "configure:11153: checking for thr_create in -lthread" >&5
11153 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11155 echo $ac_n "(cached) $ac_c" 1>&6
11157 ac_save_LIBS="$LIBS"
11158 LIBS="-lthread $LIBS"
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 eval "ac_cv_lib_$ac_lib_var=yes"
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11178 eval "ac_cv_lib_$ac_lib_var=no"
11181 LIBS="$ac_save_LIBS"
11184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11185 echo "$ac_t""yes" 1>&6
11188 echo "$ac_t""no" 1>&6
11193 if test $have_thr = yes ; then
11194 cat >> confdefs.h <<\EOF
11198 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11199 ol_link_threads=thr
11201 if test $ol_with_yielding_select = auto ; then
11202 ol_with_yielding_select=yes
11206 thr_setconcurrency \
11207 thr_getconcurrency \
11210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11211 echo "configure:11212: checking for $ac_func" >&5
11212 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11213 echo $ac_n "(cached) $ac_c" 1>&6
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218 /* System header to define __stub macros and hopefully few prototypes,
11219 which can conflict with char $ac_func(); below. */
11220 #include <assert.h>
11221 /* Override any gcc2 internal prototype to avoid an error. */
11222 /* We use char because int might match the return type of a gcc2
11223 builtin and then its argument prototype would still apply. */
11229 /* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11242 eval "ac_cv_func_$ac_func=yes"
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 eval "ac_cv_func_$ac_func=no"
11252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11253 echo "$ac_t""yes" 1>&6
11254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11255 cat >> confdefs.h <<EOF
11256 #define $ac_tr_func 1
11260 echo "$ac_t""no" 1>&6
11267 for ac_hdr in lwp/lwp.h
11269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11271 echo "configure:11272: checking for $ac_hdr" >&5
11272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11281 { (eval echo configure:11282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11283 if test -z "$ac_err"; then
11285 eval "ac_cv_header_$ac_safe=yes"
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11291 eval "ac_cv_header_$ac_safe=no"
11295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11296 echo "$ac_t""yes" 1>&6
11297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11298 cat >> confdefs.h <<EOF
11299 #define $ac_tr_hdr 1
11303 echo "$ac_t""no" 1>&6
11307 if test $ac_cv_header_lwp_lwp_h = yes ; then
11308 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11309 echo "configure:11310: checking for lwp_create in -llwp" >&5
11310 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11312 echo $ac_n "(cached) $ac_c" 1>&6
11314 ac_save_LIBS="$LIBS"
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11319 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11328 if { (eval echo configure:11329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11330 eval "ac_cv_lib_$ac_lib_var=yes"
11332 echo "configure: failed program was:" >&5
11333 cat conftest.$ac_ext >&5
11335 eval "ac_cv_lib_$ac_lib_var=no"
11338 LIBS="$ac_save_LIBS"
11341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11342 echo "$ac_t""yes" 1>&6
11345 echo "$ac_t""no" 1>&6
11350 if test $have_lwp = yes ; then
11351 cat >> confdefs.h <<\EOF
11355 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11356 ol_link_threads=lwp
11358 if test $ol_with_yielding_select = auto ; then
11359 ol_with_yielding_select=no
11365 if test $ol_with_yielding_select = yes ; then
11366 cat >> confdefs.h <<\EOF
11367 #define HAVE_YIELDING_SELECT 1
11372 if test $ol_with_threads = manual ; then
11373 ol_link_threads=yes
11375 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11377 for ac_hdr in pthread.h sched.h
11379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11381 echo "configure:11382: checking for $ac_hdr" >&5
11382 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11391 { (eval echo configure:11392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11393 if test -z "$ac_err"; then
11395 eval "ac_cv_header_$ac_safe=yes"
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11401 eval "ac_cv_header_$ac_safe=no"
11405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11406 echo "$ac_t""yes" 1>&6
11407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11408 cat >> confdefs.h <<EOF
11409 #define $ac_tr_hdr 1
11413 echo "$ac_t""no" 1>&6
11417 for ac_func in sched_yield pthread_yield
11419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11420 echo "configure:11421: checking for $ac_func" >&5
11421 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11427 /* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char $ac_func(); below. */
11429 #include <assert.h>
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11438 /* The GNU C library defines this for functions which it implements
11439 to always fail with ENOSYS. Some functions are actually named
11440 something starting with __ and the normal name is an alias. */
11441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 eval "ac_cv_func_$ac_func=yes"
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 eval "ac_cv_func_$ac_func=no"
11461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11462 echo "$ac_t""yes" 1>&6
11463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11464 cat >> confdefs.h <<EOF
11465 #define $ac_tr_func 1
11469 echo "$ac_t""no" 1>&6
11474 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11475 echo "configure:11476: checking for LinuxThreads pthread.h" >&5
11476 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11477 echo $ac_n "(cached) $ac_c" 1>&6
11479 cat > conftest.$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11482 #include <pthread.h>
11484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11485 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11487 ol_cv_header_linux_threads=yes
11490 ol_cv_header_linux_threads=no
11497 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11498 if test $ol_cv_header_linux_threads = yes; then
11499 cat >> confdefs.h <<\EOF
11500 #define HAVE_LINUX_THREADS 1
11506 for ac_hdr in mach/cthreads.h
11508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11510 echo "configure:11511: checking for $ac_hdr" >&5
11511 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11512 echo $ac_n "(cached) $ac_c" 1>&6
11514 cat > conftest.$ac_ext <<EOF
11515 #line 11516 "configure"
11516 #include "confdefs.h"
11519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11520 { (eval echo configure:11521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11522 if test -z "$ac_err"; then
11524 eval "ac_cv_header_$ac_safe=yes"
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11530 eval "ac_cv_header_$ac_safe=no"
11534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11537 cat >> confdefs.h <<EOF
11538 #define $ac_tr_hdr 1
11542 echo "$ac_t""no" 1>&6
11546 for ac_hdr in lwp/lwp.h
11548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11550 echo "configure:11551: checking for $ac_hdr" >&5
11551 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11560 { (eval echo configure:11561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11562 if test -z "$ac_err"; then
11564 eval "ac_cv_header_$ac_safe=yes"
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11570 eval "ac_cv_header_$ac_safe=no"
11574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11577 cat >> confdefs.h <<EOF
11578 #define $ac_tr_hdr 1
11582 echo "$ac_t""no" 1>&6
11586 for ac_hdr in thread.h synch.h
11588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11590 echo "configure:11591: checking for $ac_hdr" >&5
11591 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11600 { (eval echo configure:11601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11602 if test -z "$ac_err"; then
11604 eval "ac_cv_header_$ac_safe=yes"
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11610 eval "ac_cv_header_$ac_safe=no"
11614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11617 cat >> confdefs.h <<EOF
11618 #define $ac_tr_hdr 1
11622 echo "$ac_t""no" 1>&6
11628 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11629 cat >> confdefs.h <<\EOF
11630 #define REENTRANT 1
11633 cat >> confdefs.h <<\EOF
11634 #define _REENTRANT 1
11637 cat >> confdefs.h <<\EOF
11638 #define THREAD_SAFE 1
11641 cat >> confdefs.h <<\EOF
11642 #define _THREAD_SAFE 1
11645 cat >> confdefs.h <<\EOF
11646 #define THREADSAFE 1
11649 cat >> confdefs.h <<\EOF
11650 #define _THREADSAFE 1
11653 cat >> confdefs.h <<\EOF
11654 #define _SGI_MP_SOURCE 1
11658 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11659 echo "configure:11660: checking for thread specific errno" >&5
11660 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11672 if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11674 ol_cv_errno_thread_specific=yes
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11679 ol_cv_errno_thread_specific=no
11685 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11687 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11688 echo "configure:11689: checking for thread specific h_errno" >&5
11689 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11701 if { (eval echo configure:11702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11703 ol_cv_h_errno_thread_specific=yes
11705 echo "configure: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11708 ol_cv_h_errno_thread_specific=no
11714 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11716 if test $ol_cv_errno_thread_specific != yes \
11717 -o $ol_cv_h_errno_thread_specific != yes ; then
11718 LIBS="$LTHREAD_LIBS $LIBS"
11724 if test $ol_link_threads = no ; then
11725 if test $ol_with_threads = yes ; then
11726 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11729 if test $ol_with_threads = auto ; then
11730 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11734 cat >> confdefs.h <<\EOF
11735 #define NO_THREADS 1
11741 if test $ol_link_threads != no ; then
11742 cat >> confdefs.h <<\EOF
11743 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11750 if test $ol_with_ldbm_api = auto \
11751 -o $ol_with_ldbm_api = berkeley \
11752 -o $ol_with_ldbm_api = bcompat ; then
11754 if test $ol_with_ldbm_api = bcompat; then \
11755 ol_cv_berkeley_db=no
11756 for ac_hdr in db_185.h db.h
11758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11760 echo "configure:11761: checking for $ac_hdr" >&5
11761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11762 echo $ac_n "(cached) $ac_c" 1>&6
11764 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure"
11766 #include "confdefs.h"
11769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11770 { (eval echo configure:11771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11772 if test -z "$ac_err"; then
11774 eval "ac_cv_header_$ac_safe=yes"
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11780 eval "ac_cv_header_$ac_safe=no"
11784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11785 echo "$ac_t""yes" 1>&6
11786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11787 cat >> confdefs.h <<EOF
11788 #define $ac_tr_hdr 1
11792 echo "$ac_t""no" 1>&6
11796 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11797 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11798 echo "configure:11799: checking if Berkeley DB header compatibility" >&5
11799 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11803 cat > conftest.$ac_ext <<EOF
11804 #line 11805 "configure"
11805 #include "confdefs.h"
11808 # include <db_185.h>
11813 /* this check could be improved */
11814 #ifndef DB_VERSION_MAJOR
11815 # define DB_VERSION_MAJOR 1
11818 #if DB_VERSION_MAJOR == 1
11823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11824 egrep "__db_version_1" >/dev/null 2>&1; then
11826 ol_cv_header_db1=yes
11829 ol_cv_header_db1=no
11835 echo "$ac_t""$ol_cv_header_db1" 1>&6
11837 if test ol_cv_header_db1=yes ; then
11839 if test $ol_cv_lib_db = no ; then
11840 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11841 echo "configure:11842: checking for Berkeley DB link (default)" >&5
11842 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11843 echo $ac_n "(cached) $ac_c" 1>&6
11848 LIBS="$ol_DB_LIB $LIBS"
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11854 #ifdef HAVE_DB_185_H
11855 # include <db_185.h>
11860 #ifndef DB_VERSION_MAJOR
11861 # define DB_VERSION_MAJOR 1
11865 #define NULL ((void*)0)
11870 #if DB_VERSION_MAJOR > 2
11871 db_env_create( NULL, 0 );
11872 #elif DB_VERSION_MAJOR > 1
11873 db_appexit( NULL );
11875 (void) dbopen( NULL, 0, 0, 0, NULL);
11880 if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11895 echo "$ac_t""$ol_cv_db_none" 1>&6
11897 if test $ol_cv_db_none = yes ; then
11902 if test $ol_cv_lib_db = no ; then
11903 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11904 echo "configure:11905: checking for Berkeley DB link (-ldb)" >&5
11905 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11911 LIBS="$ol_DB_LIB $LIBS"
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11917 #ifdef HAVE_DB_185_H
11918 # include <db_185.h>
11923 #ifndef DB_VERSION_MAJOR
11924 # define DB_VERSION_MAJOR 1
11928 #define NULL ((void*)0)
11933 #if DB_VERSION_MAJOR > 2
11934 db_env_create( NULL, 0 );
11935 #elif DB_VERSION_MAJOR > 1
11936 db_appexit( NULL );
11938 (void) dbopen( NULL, 0, 0, 0, NULL);
11943 if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11958 echo "$ac_t""$ol_cv_db_db" 1>&6
11960 if test $ol_cv_db_db = yes ; then
11965 if test $ol_cv_lib_db = no ; then
11966 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11967 echo "configure:11968: checking for Berkeley DB link (-ldb3)" >&5
11968 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11974 LIBS="$ol_DB_LIB $LIBS"
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11980 #ifdef HAVE_DB_185_H
11981 # include <db_185.h>
11986 #ifndef DB_VERSION_MAJOR
11987 # define DB_VERSION_MAJOR 1
11991 #define NULL ((void*)0)
11996 #if DB_VERSION_MAJOR > 2
11997 db_env_create( NULL, 0 );
11998 #elif DB_VERSION_MAJOR > 1
11999 db_appexit( NULL );
12001 (void) dbopen( NULL, 0, 0, 0, NULL);
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12021 echo "$ac_t""$ol_cv_db_db3" 1>&6
12023 if test $ol_cv_db_db3 = yes ; then
12028 if test $ol_cv_lib_db = no ; then
12029 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12030 echo "configure:12031: checking for Berkeley DB link (-ldb2)" >&5
12031 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12032 echo $ac_n "(cached) $ac_c" 1>&6
12037 LIBS="$ol_DB_LIB $LIBS"
12039 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12043 #ifdef HAVE_DB_185_H
12044 # include <db_185.h>
12049 #ifndef DB_VERSION_MAJOR
12050 # define DB_VERSION_MAJOR 1
12054 #define NULL ((void*)0)
12059 #if DB_VERSION_MAJOR > 2
12060 db_env_create( NULL, 0 );
12061 #elif DB_VERSION_MAJOR > 1
12062 db_appexit( NULL );
12064 (void) dbopen( NULL, 0, 0, 0, NULL);
12069 if { (eval echo configure:12070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12084 echo "$ac_t""$ol_cv_db_db2" 1>&6
12086 if test $ol_cv_db_db2 = yes ; then
12091 if test $ol_cv_lib_db = no ; then
12092 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12093 echo "configure:12094: checking for Berkeley DB link (-ldb1)" >&5
12094 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12095 echo $ac_n "(cached) $ac_c" 1>&6
12100 LIBS="$ol_DB_LIB $LIBS"
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12106 #ifdef HAVE_DB_185_H
12107 # include <db_185.h>
12112 #ifndef DB_VERSION_MAJOR
12113 # define DB_VERSION_MAJOR 1
12117 #define NULL ((void*)0)
12122 #if DB_VERSION_MAJOR > 2
12123 db_env_create( NULL, 0 );
12124 #elif DB_VERSION_MAJOR > 1
12125 db_appexit( NULL );
12127 (void) dbopen( NULL, 0, 0, 0, NULL);
12132 if { (eval echo configure:12133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12136 echo "configure: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12147 echo "$ac_t""$ol_cv_db_db1" 1>&6
12149 if test $ol_cv_db_db1 = yes ; then
12155 if test "$ol_cv_lib_db" != no ; then
12156 ol_cv_berkeley_db=yes
12162 ol_cv_berkeley_db=no
12165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12167 echo "configure:12168: checking for $ac_hdr" >&5
12168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12169 echo $ac_n "(cached) $ac_c" 1>&6
12171 cat > conftest.$ac_ext <<EOF
12172 #line 12173 "configure"
12173 #include "confdefs.h"
12176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12177 { (eval echo configure:12178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12179 if test -z "$ac_err"; then
12181 eval "ac_cv_header_$ac_safe=yes"
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12187 eval "ac_cv_header_$ac_safe=no"
12191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12192 echo "$ac_t""yes" 1>&6
12193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12194 cat >> confdefs.h <<EOF
12195 #define $ac_tr_hdr 1
12199 echo "$ac_t""no" 1>&6
12203 if test $ac_cv_header_db_h = yes; then
12205 if test $ol_cv_lib_db = no ; then
12206 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12207 echo "configure:12208: checking for Berkeley DB link (default)" >&5
12208 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12214 LIBS="$ol_DB_LIB $LIBS"
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12220 #ifdef HAVE_DB_185_H
12221 # include <db_185.h>
12226 #ifndef DB_VERSION_MAJOR
12227 # define DB_VERSION_MAJOR 1
12231 #define NULL ((void*)0)
12236 #if DB_VERSION_MAJOR > 2
12237 db_env_create( NULL, 0 );
12238 #elif DB_VERSION_MAJOR > 1
12239 db_appexit( NULL );
12241 (void) dbopen( NULL, 0, 0, 0, NULL);
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12261 echo "$ac_t""$ol_cv_db_none" 1>&6
12263 if test $ol_cv_db_none = yes ; then
12268 if test $ol_cv_lib_db = no ; then
12269 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12270 echo "configure:12271: checking for Berkeley DB link (-ldb)" >&5
12271 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12272 echo $ac_n "(cached) $ac_c" 1>&6
12277 LIBS="$ol_DB_LIB $LIBS"
12279 cat > conftest.$ac_ext <<EOF
12280 #line 12281 "configure"
12281 #include "confdefs.h"
12283 #ifdef HAVE_DB_185_H
12284 # include <db_185.h>
12289 #ifndef DB_VERSION_MAJOR
12290 # define DB_VERSION_MAJOR 1
12294 #define NULL ((void*)0)
12299 #if DB_VERSION_MAJOR > 2
12300 db_env_create( NULL, 0 );
12301 #elif DB_VERSION_MAJOR > 1
12302 db_appexit( NULL );
12304 (void) dbopen( NULL, 0, 0, 0, NULL);
12309 if { (eval echo configure:12310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12313 echo "configure: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12324 echo "$ac_t""$ol_cv_db_db" 1>&6
12326 if test $ol_cv_db_db = yes ; then
12331 if test $ol_cv_lib_db = no ; then
12332 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12333 echo "configure:12334: checking for Berkeley DB link (-ldb3)" >&5
12334 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12340 LIBS="$ol_DB_LIB $LIBS"
12342 cat > conftest.$ac_ext <<EOF
12343 #line 12344 "configure"
12344 #include "confdefs.h"
12346 #ifdef HAVE_DB_185_H
12347 # include <db_185.h>
12352 #ifndef DB_VERSION_MAJOR
12353 # define DB_VERSION_MAJOR 1
12357 #define NULL ((void*)0)
12362 #if DB_VERSION_MAJOR > 2
12363 db_env_create( NULL, 0 );
12364 #elif DB_VERSION_MAJOR > 1
12365 db_appexit( NULL );
12367 (void) dbopen( NULL, 0, 0, 0, NULL);
12372 if { (eval echo configure:12373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12376 echo "configure: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12387 echo "$ac_t""$ol_cv_db_db3" 1>&6
12389 if test $ol_cv_db_db3 = yes ; then
12394 if test $ol_cv_lib_db = no ; then
12395 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12396 echo "configure:12397: checking for Berkeley DB link (-ldb2)" >&5
12397 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
12403 LIBS="$ol_DB_LIB $LIBS"
12405 cat > conftest.$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12409 #ifdef HAVE_DB_185_H
12410 # include <db_185.h>
12415 #ifndef DB_VERSION_MAJOR
12416 # define DB_VERSION_MAJOR 1
12420 #define NULL ((void*)0)
12425 #if DB_VERSION_MAJOR > 2
12426 db_env_create( NULL, 0 );
12427 #elif DB_VERSION_MAJOR > 1
12428 db_appexit( NULL );
12430 (void) dbopen( NULL, 0, 0, 0, NULL);
12435 if { (eval echo configure:12436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12439 echo "configure: failed program was:" >&5
12440 cat conftest.$ac_ext >&5
12450 echo "$ac_t""$ol_cv_db_db2" 1>&6
12452 if test $ol_cv_db_db2 = yes ; then
12457 if test $ol_cv_lib_db = no ; then
12458 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12459 echo "configure:12460: checking for Berkeley DB link (-ldb1)" >&5
12460 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12461 echo $ac_n "(cached) $ac_c" 1>&6
12466 LIBS="$ol_DB_LIB $LIBS"
12468 cat > conftest.$ac_ext <<EOF
12469 #line 12470 "configure"
12470 #include "confdefs.h"
12472 #ifdef HAVE_DB_185_H
12473 # include <db_185.h>
12478 #ifndef DB_VERSION_MAJOR
12479 # define DB_VERSION_MAJOR 1
12483 #define NULL ((void*)0)
12488 #if DB_VERSION_MAJOR > 2
12489 db_env_create( NULL, 0 );
12490 #elif DB_VERSION_MAJOR > 1
12491 db_appexit( NULL );
12493 (void) dbopen( NULL, 0, 0, 0, NULL);
12498 if { (eval echo configure:12499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12513 echo "$ac_t""$ol_cv_db_db1" 1>&6
12515 if test $ol_cv_db_db1 = yes ; then
12521 if test "$ol_cv_lib_db" != no ; then
12522 ol_cv_berkeley_db=yes
12523 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12524 echo "configure:12525: checking for Berkeley DB thread support" >&5
12525 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12530 if test $ol_cv_lib_db != yes ; then
12531 LIBS="$ol_cv_lib_db"
12534 if test "$cross_compiling" = yes; then
12535 ol_cv_berkeley_db_thread=cross
12537 cat > conftest.$ac_ext <<EOF
12538 #line 12539 "configure"
12539 #include "confdefs.h"
12541 #ifdef HAVE_DB_185_H
12547 #define NULL ((void *)0)
12552 u_int32_t flags = DB_CREATE | DB_THREAD;
12554 #if DB_VERSION_MAJOR > 2
12555 DB_ENV *env = NULL;
12557 rc = db_env_create( &env, 0 );
12560 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12561 rc = env->open( env, NULL, flags, 0 );
12563 rc = env->open( env, NULL, NULL, flags, 0 );
12569 memset( &env, '\0', sizeof(env) );
12571 rc = db_appinit( NULL, NULL, &env, flags );
12574 db_appexit( &env );
12577 #if DB_VERSION_MAJOR > 2
12578 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12579 env->remove( env, NULL, DB_FORCE);
12581 env->remove( env, NULL, NULL, DB_FORCE);
12588 if { (eval echo configure:12589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12590 ol_cv_berkeley_db_thread=yes
12592 echo "configure: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12595 ol_cv_berkeley_db_thread=no
12603 if test $ol_cv_berkeley_db_thread != no ; then
12604 cat >> confdefs.h <<\EOF
12605 #define HAVE_BERKELEY_DB_THREAD 1
12612 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12618 if test $ol_cv_berkeley_db != no ; then
12619 cat >> confdefs.h <<\EOF
12620 #define HAVE_BERKELEY_DB 1
12624 ol_link_ldbm=berkeley
12625 ol_with_ldbm_api=db
12627 if test $ol_with_ldbm_type = hash ; then
12628 cat >> confdefs.h <<\EOF
12629 #define LDBM_USE_DBHASH 1
12633 cat >> confdefs.h <<\EOF
12634 #define LDBM_USE_DBBTREE 1
12639 if test $ol_cv_lib_db != yes ; then
12640 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12645 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12646 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12647 ol_with_ldbm_api=none
12650 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12651 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12652 echo "configure:12653: checking for MDBM library" >&5
12653 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12657 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12658 echo "configure:12659: checking for mdbm_set_chain" >&5
12659 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12660 echo $ac_n "(cached) $ac_c" 1>&6
12662 cat > conftest.$ac_ext <<EOF
12663 #line 12664 "configure"
12664 #include "confdefs.h"
12665 /* System header to define __stub macros and hopefully few prototypes,
12666 which can conflict with char mdbm_set_chain(); below. */
12667 #include <assert.h>
12668 /* Override any gcc2 internal prototype to avoid an error. */
12669 /* We use char because int might match the return type of a gcc2
12670 builtin and then its argument prototype would still apply. */
12671 char mdbm_set_chain();
12676 /* The GNU C library defines this for functions which it implements
12677 to always fail with ENOSYS. Some functions are actually named
12678 something starting with __ and the normal name is an alias. */
12679 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12682 f = mdbm_set_chain;
12687 if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12689 eval "ac_cv_func_mdbm_set_chain=yes"
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12694 eval "ac_cv_func_mdbm_set_chain=no"
12699 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12700 echo "$ac_t""yes" 1>&6
12703 echo "$ac_t""no" 1>&6
12705 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12706 echo "configure:12707: checking for mdbm_set_chain in -lmdbm" >&5
12707 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12709 echo $ac_n "(cached) $ac_c" 1>&6
12711 ac_save_LIBS="$LIBS"
12712 LIBS="-lmdbm $LIBS"
12713 cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12716 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719 char mdbm_set_chain();
12725 if { (eval echo configure:12726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12727 eval "ac_cv_lib_$ac_lib_var=yes"
12729 echo "configure: failed program was:" >&5
12730 cat conftest.$ac_ext >&5
12732 eval "ac_cv_lib_$ac_lib_var=no"
12735 LIBS="$ac_save_LIBS"
12738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12739 echo "$ac_t""yes" 1>&6
12740 ol_cv_lib_mdbm=-lmdbm
12742 echo "$ac_t""no" 1>&6
12753 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12756 for ac_hdr in mdbm.h
12758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12760 echo "configure:12761: checking for $ac_hdr" >&5
12761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12764 cat > conftest.$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12770 { (eval echo configure:12771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12772 if test -z "$ac_err"; then
12774 eval "ac_cv_header_$ac_safe=yes"
12777 echo "configure: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12780 eval "ac_cv_header_$ac_safe=no"
12784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12787 cat >> confdefs.h <<EOF
12788 #define $ac_tr_hdr 1
12792 echo "$ac_t""no" 1>&6
12796 echo $ac_n "checking for db""... $ac_c" 1>&6
12797 echo "configure:12798: checking for db" >&5
12798 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12799 echo $ac_n "(cached) $ac_c" 1>&6
12802 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12810 echo "$ac_t""$ol_cv_mdbm" 1>&6
12811 if test $ol_cv_mdbm = yes ; then
12812 cat >> confdefs.h <<\EOF
12813 #define HAVE_MDBM 1
12819 if test $ol_cv_mdbm = yes ; then
12821 ol_with_ldbm_api=mdbm
12822 if test $ol_cv_lib_mdbm != yes ; then
12823 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12828 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12829 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12830 echo "configure:12831: checking for GDBM library" >&5
12831 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12832 echo $ac_n "(cached) $ac_c" 1>&6
12835 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12836 echo "configure:12837: checking for gdbm_open" >&5
12837 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12838 echo $ac_n "(cached) $ac_c" 1>&6
12840 cat > conftest.$ac_ext <<EOF
12841 #line 12842 "configure"
12842 #include "confdefs.h"
12843 /* System header to define __stub macros and hopefully few prototypes,
12844 which can conflict with char gdbm_open(); below. */
12845 #include <assert.h>
12846 /* Override any gcc2 internal prototype to avoid an error. */
12847 /* We use char because int might match the return type of a gcc2
12848 builtin and then its argument prototype would still apply. */
12854 /* The GNU C library defines this for functions which it implements
12855 to always fail with ENOSYS. Some functions are actually named
12856 something starting with __ and the normal name is an alias. */
12857 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12865 if { (eval echo configure:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12867 eval "ac_cv_func_gdbm_open=yes"
12869 echo "configure: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12872 eval "ac_cv_func_gdbm_open=no"
12877 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12878 echo "$ac_t""yes" 1>&6
12881 echo "$ac_t""no" 1>&6
12883 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12884 echo "configure:12885: checking for gdbm_open in -lgdbm" >&5
12885 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12886 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12887 echo $ac_n "(cached) $ac_c" 1>&6
12889 ac_save_LIBS="$LIBS"
12890 LIBS="-lgdbm $LIBS"
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12894 /* Override any gcc2 internal prototype to avoid an error. */
12895 /* We use char because int might match the return type of a gcc2
12896 builtin and then its argument prototype would still apply. */
12903 if { (eval echo configure:12904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12905 eval "ac_cv_lib_$ac_lib_var=yes"
12907 echo "configure: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12910 eval "ac_cv_lib_$ac_lib_var=no"
12913 LIBS="$ac_save_LIBS"
12916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12917 echo "$ac_t""yes" 1>&6
12918 ol_cv_lib_gdbm=-lgdbm
12920 echo "$ac_t""no" 1>&6
12931 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12934 for ac_hdr in gdbm.h
12936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12938 echo "configure:12939: checking for $ac_hdr" >&5
12939 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12940 echo $ac_n "(cached) $ac_c" 1>&6
12942 cat > conftest.$ac_ext <<EOF
12943 #line 12944 "configure"
12944 #include "confdefs.h"
12947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12948 { (eval echo configure:12949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12950 if test -z "$ac_err"; then
12952 eval "ac_cv_header_$ac_safe=yes"
12955 echo "configure: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12958 eval "ac_cv_header_$ac_safe=no"
12962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12963 echo "$ac_t""yes" 1>&6
12964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12965 cat >> confdefs.h <<EOF
12966 #define $ac_tr_hdr 1
12970 echo "$ac_t""no" 1>&6
12974 echo $ac_n "checking for db""... $ac_c" 1>&6
12975 echo "configure:12976: checking for db" >&5
12976 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12980 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12988 echo "$ac_t""$ol_cv_gdbm" 1>&6
12989 if test $ol_cv_gdbm = yes ; then
12990 cat >> confdefs.h <<\EOF
12991 #define HAVE_GDBM 1
12997 if test $ol_cv_gdbm = yes ; then
12999 ol_with_ldbm_api=gdbm
13001 if test $ol_cv_lib_gdbm != yes ; then
13002 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13007 if test $ol_with_ldbm_api = ndbm ; then
13008 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13009 echo "configure:13010: checking for NDBM library" >&5
13010 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13011 echo $ac_n "(cached) $ac_c" 1>&6
13014 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13015 echo "configure:13016: checking for dbm_open" >&5
13016 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13017 echo $ac_n "(cached) $ac_c" 1>&6
13019 cat > conftest.$ac_ext <<EOF
13020 #line 13021 "configure"
13021 #include "confdefs.h"
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char dbm_open(); below. */
13024 #include <assert.h>
13025 /* Override any gcc2 internal prototype to avoid an error. */
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13033 /* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13046 eval "ac_cv_func_dbm_open=yes"
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13051 eval "ac_cv_func_dbm_open=no"
13056 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13060 echo "$ac_t""no" 1>&6
13062 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13063 echo "configure:13064: checking for dbm_open in -lndbm" >&5
13064 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13066 echo $ac_n "(cached) $ac_c" 1>&6
13068 ac_save_LIBS="$LIBS"
13069 LIBS="-lndbm $LIBS"
13070 cat > conftest.$ac_ext <<EOF
13071 #line 13072 "configure"
13072 #include "confdefs.h"
13073 /* Override any gcc2 internal prototype to avoid an error. */
13074 /* We use char because int might match the return type of a gcc2
13075 builtin and then its argument prototype would still apply. */
13082 if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13084 eval "ac_cv_lib_$ac_lib_var=yes"
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13089 eval "ac_cv_lib_$ac_lib_var=no"
13092 LIBS="$ac_save_LIBS"
13095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13096 echo "$ac_t""yes" 1>&6
13097 ol_cv_lib_ndbm=-lndbm
13099 echo "$ac_t""no" 1>&6
13101 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13102 echo "configure:13103: checking for dbm_open in -ldbm" >&5
13103 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13105 echo $ac_n "(cached) $ac_c" 1>&6
13107 ac_save_LIBS="$LIBS"
13109 cat > conftest.$ac_ext <<EOF
13110 #line 13111 "configure"
13111 #include "confdefs.h"
13112 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13121 if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13123 eval "ac_cv_lib_$ac_lib_var=yes"
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13128 eval "ac_cv_lib_$ac_lib_var=no"
13131 LIBS="$ac_save_LIBS"
13134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13135 echo "$ac_t""yes" 1>&6
13136 ol_cv_lib_ndbm=-ldbm
13138 echo "$ac_t""no" 1>&6
13151 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13154 for ac_hdr in ndbm.h
13156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13158 echo "configure:13159: checking for $ac_hdr" >&5
13159 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13160 echo $ac_n "(cached) $ac_c" 1>&6
13162 cat > conftest.$ac_ext <<EOF
13163 #line 13164 "configure"
13164 #include "confdefs.h"
13167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13168 { (eval echo configure:13169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13170 if test -z "$ac_err"; then
13172 eval "ac_cv_header_$ac_safe=yes"
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13178 eval "ac_cv_header_$ac_safe=no"
13182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13183 echo "$ac_t""yes" 1>&6
13184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13185 cat >> confdefs.h <<EOF
13186 #define $ac_tr_hdr 1
13190 echo "$ac_t""no" 1>&6
13194 echo $ac_n "checking for db""... $ac_c" 1>&6
13195 echo "configure:13196: checking for db" >&5
13196 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13197 echo $ac_n "(cached) $ac_c" 1>&6
13200 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13208 echo "$ac_t""$ol_cv_ndbm" 1>&6
13209 if test $ol_cv_ndbm = yes ; then
13210 cat >> confdefs.h <<\EOF
13211 #define HAVE_NDBM 1
13217 if test $ol_cv_ndbm = yes ; then
13219 ol_with_ldbm_api=ndbm
13221 if test $ol_cv_lib_ndbm != yes ; then
13222 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13227 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13228 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13229 if test $ol_enable_ldbm = yes ; then
13230 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13233 echo "configure: warning: disabling LDBM" 1>&2
13237 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13238 LINK_BINS_DYNAMIC="yes"
13240 LINK_BINS_DYNAMIC="no"
13243 if test $ol_enable_wrappers != no ; then
13244 for ac_hdr in tcpd.h
13246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13248 echo "configure:13249: checking for $ac_hdr" >&5
13249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13250 echo $ac_n "(cached) $ac_c" 1>&6
13252 cat > conftest.$ac_ext <<EOF
13253 #line 13254 "configure"
13254 #include "confdefs.h"
13257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13258 { (eval echo configure:13259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13260 if test -z "$ac_err"; then
13262 eval "ac_cv_header_$ac_safe=yes"
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13268 eval "ac_cv_header_$ac_safe=no"
13272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13273 echo "$ac_t""yes" 1>&6
13274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13275 cat >> confdefs.h <<EOF
13276 #define $ac_tr_hdr 1
13280 echo "$ac_t""no" 1>&6
13285 if test $ac_cv_header_tcpd_h != yes ; then
13288 cat > conftest.$ac_ext <<EOF
13289 #line 13290 "configure"
13290 #include "confdefs.h"
13292 int allow_severity = 0;
13293 int deny_severity = 0;
13299 if { (eval echo configure:13300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13303 echo "configure: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13311 if test $have_wrappers = yes ; then
13312 cat >> confdefs.h <<\EOF
13313 #define HAVE_TCPD 1
13318 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13319 echo "configure:13320: checking for main in -lnsl" >&5
13320 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13322 echo $ac_n "(cached) $ac_c" 1>&6
13324 ac_save_LIBS="$LIBS"
13326 cat > conftest.$ac_ext <<EOF
13327 #line 13328 "configure"
13328 #include "confdefs.h"
13334 if { (eval echo configure:13335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13336 eval "ac_cv_lib_$ac_lib_var=yes"
13338 echo "configure: failed program was:" >&5
13339 cat conftest.$ac_ext >&5
13341 eval "ac_cv_lib_$ac_lib_var=no"
13344 LIBS="$ac_save_LIBS"
13347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13348 echo "$ac_t""yes" 1>&6
13349 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13351 cat >> confdefs.h <<EOF
13352 #define $ac_tr_lib 1
13358 echo "$ac_t""no" 1>&6
13362 echo "configure: warning: could not find -lwrap" 1>&2
13363 if test $ol_enable_wrappers = yes ; then
13364 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13367 echo "configure: warning: disabling wrappers support" 1>&2
13368 ol_enable_wrappers=no
13373 if test $ol_enable_syslog != no ; then
13374 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13375 echo "configure:13376: checking for openlog" >&5
13376 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13377 echo $ac_n "(cached) $ac_c" 1>&6
13379 cat > conftest.$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13382 /* System header to define __stub macros and hopefully few prototypes,
13383 which can conflict with char openlog(); below. */
13384 #include <assert.h>
13385 /* Override any gcc2 internal prototype to avoid an error. */
13386 /* We use char because int might match the return type of a gcc2
13387 builtin and then its argument prototype would still apply. */
13393 /* The GNU C library defines this for functions which it implements
13394 to always fail with ENOSYS. Some functions are actually named
13395 something starting with __ and the normal name is an alias. */
13396 #if defined (__stub_openlog) || defined (__stub___openlog)
13404 if { (eval echo configure:13405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13406 eval "ac_cv_func_openlog=yes"
13408 echo "configure: failed program was:" >&5
13409 cat conftest.$ac_ext >&5
13411 eval "ac_cv_func_openlog=no"
13416 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13417 echo "$ac_t""yes" 1>&6
13420 echo "$ac_t""no" 1>&6
13423 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13424 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13426 ol_enable_syslog=$ac_cv_func_openlog
13431 if test $ol_enable_sql != no ; then
13432 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13433 echo "configure:13434: checking for SQLDriverConnect in -liodbc" >&5
13434 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13435 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13436 echo $ac_n "(cached) $ac_c" 1>&6
13438 ac_save_LIBS="$LIBS"
13439 LIBS="-liodbc $LIBS"
13440 cat > conftest.$ac_ext <<EOF
13441 #line 13442 "configure"
13442 #include "confdefs.h"
13443 /* Override any gcc2 internal prototype to avoid an error. */
13444 /* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13446 char SQLDriverConnect();
13452 if { (eval echo configure:13453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13454 eval "ac_cv_lib_$ac_lib_var=yes"
13456 echo "configure: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13459 eval "ac_cv_lib_$ac_lib_var=no"
13462 LIBS="$ac_save_LIBS"
13465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13466 echo "$ac_t""yes" 1>&6
13469 echo "$ac_t""no" 1>&6
13473 if test $have_iodbc = yes ; then
13474 ol_link_sql="-liodbc"
13476 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13477 echo "configure:13478: checking for SQLDriverConnect in -lodbc" >&5
13478 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13480 echo $ac_n "(cached) $ac_c" 1>&6
13482 ac_save_LIBS="$LIBS"
13483 LIBS="-lodbc $LIBS"
13484 cat > conftest.$ac_ext <<EOF
13485 #line 13486 "configure"
13486 #include "confdefs.h"
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 /* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13490 char SQLDriverConnect();
13496 if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13498 eval "ac_cv_lib_$ac_lib_var=yes"
13500 echo "configure: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13503 eval "ac_cv_lib_$ac_lib_var=no"
13506 LIBS="$ac_save_LIBS"
13509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13510 echo "$ac_t""yes" 1>&6
13513 echo "$ac_t""no" 1>&6
13517 if test $have_odbc = yes ; then
13518 ol_link_sql="-lodbc"
13522 if test $ol_link_sql != no ; then
13523 SLAPD_SQL_LIBS="$ol_link_sql"
13525 elif test $ol_enable_sql != auto ; then
13526 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13530 if test $ol_enable_tcl != no ; then
13531 for ac_hdr in tcl.h
13533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13535 echo "configure:13536: checking for $ac_hdr" >&5
13536 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13537 echo $ac_n "(cached) $ac_c" 1>&6
13539 cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13545 { (eval echo configure:13546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13547 if test -z "$ac_err"; then
13549 eval "ac_cv_header_$ac_safe=yes"
13552 echo "configure: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13555 eval "ac_cv_header_$ac_safe=no"
13559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13560 echo "$ac_t""yes" 1>&6
13561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13562 cat >> confdefs.h <<EOF
13563 #define $ac_tr_hdr 1
13567 echo "$ac_t""no" 1>&6
13572 if test $ac_cv_header_tcl_h != yes ; then
13575 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13576 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13577 echo "configure:13578: checking for main in -l$lib" >&5
13578 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13580 echo $ac_n "(cached) $ac_c" 1>&6
13582 ac_save_LIBS="$LIBS"
13583 LIBS="-l$lib $LIBS"
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13592 if { (eval echo configure:13593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13594 eval "ac_cv_lib_$ac_lib_var=yes"
13596 echo "configure: failed program was:" >&5
13597 cat conftest.$ac_ext >&5
13599 eval "ac_cv_lib_$ac_lib_var=no"
13602 LIBS="$ac_save_LIBS"
13605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13606 echo "$ac_t""yes" 1>&6
13608 if test x"$ol_with_tcl_module" = "xstatic" ; then
13609 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13611 MOD_TCL_LIB="-l${lib}"
13614 echo "$ac_t""no" 1>&6
13621 if test $have_tcl != yes ; then
13622 echo "configure: warning: could not find -ltcl" 1>&2
13623 if test $ol_enable_tcl = yes ; then
13624 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13632 for ac_hdr in termcap.h ncurses.h
13634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13636 echo "configure:13637: checking for $ac_hdr" >&5
13637 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13638 echo $ac_n "(cached) $ac_c" 1>&6
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13646 { (eval echo configure:13647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13648 if test -z "$ac_err"; then
13650 eval "ac_cv_header_$ac_safe=yes"
13653 echo "configure: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13656 eval "ac_cv_header_$ac_safe=no"
13660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13661 echo "$ac_t""yes" 1>&6
13662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13663 cat >> confdefs.h <<EOF
13664 #define $ac_tr_hdr 1
13668 echo "$ac_t""no" 1>&6
13673 if test $ol_link_termcap = no ; then
13674 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13675 echo "configure:13676: checking for tputs in -ltermcap" >&5
13676 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13677 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13678 echo $ac_n "(cached) $ac_c" 1>&6
13680 ac_save_LIBS="$LIBS"
13681 LIBS="-ltermcap $LIBS"
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13685 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13696 eval "ac_cv_lib_$ac_lib_var=yes"
13698 echo "configure: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13701 eval "ac_cv_lib_$ac_lib_var=no"
13704 LIBS="$ac_save_LIBS"
13707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13708 echo "$ac_t""yes" 1>&6
13711 echo "$ac_t""no" 1>&6
13715 if test $have_termcap = yes ; then
13716 cat >> confdefs.h <<\EOF
13717 #define HAVE_TERMCAP 1
13720 ol_link_termcap=yes
13721 TERMCAP_LIBS=-ltermcap
13725 if test $ol_link_termcap = no ; then
13726 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13727 echo "configure:13728: checking for initscr in -lncurses" >&5
13728 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13730 echo $ac_n "(cached) $ac_c" 1>&6
13732 ac_save_LIBS="$LIBS"
13733 LIBS="-lncurses $LIBS"
13734 cat > conftest.$ac_ext <<EOF
13735 #line 13736 "configure"
13736 #include "confdefs.h"
13737 /* Override any gcc2 internal prototype to avoid an error. */
13738 /* We use char because int might match the return type of a gcc2
13739 builtin and then its argument prototype would still apply. */
13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 eval "ac_cv_lib_$ac_lib_var=yes"
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 eval "ac_cv_lib_$ac_lib_var=no"
13756 LIBS="$ac_save_LIBS"
13759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13760 echo "$ac_t""yes" 1>&6
13763 echo "$ac_t""no" 1>&6
13767 if test $have_ncurses = yes ; then
13768 cat >> confdefs.h <<\EOF
13769 #define HAVE_NCURSES 1
13772 ol_link_termcap=yes
13773 TERMCAP_LIBS=-lncurses
13777 if test $ol_link_termcap = no ; then
13778 cat >> confdefs.h <<\EOF
13779 #define NO_TERMCAP 1
13787 if test $ol_with_cyrus_sasl != no ; then
13788 for ac_hdr in sasl.h
13790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13792 echo "configure:13793: checking for $ac_hdr" >&5
13793 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13794 echo $ac_n "(cached) $ac_c" 1>&6
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13802 { (eval echo configure:13803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13804 if test -z "$ac_err"; then
13806 eval "ac_cv_header_$ac_safe=yes"
13809 echo "configure: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13812 eval "ac_cv_header_$ac_safe=no"
13816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13817 echo "$ac_t""yes" 1>&6
13818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13819 cat >> confdefs.h <<EOF
13820 #define $ac_tr_hdr 1
13824 echo "$ac_t""no" 1>&6
13829 if test $ac_cv_header_sasl_h = yes ; then
13830 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13831 echo "configure:13832: checking for sasl_client_init in -lsasl" >&5
13832 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13833 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13834 echo $ac_n "(cached) $ac_c" 1>&6
13836 ac_save_LIBS="$LIBS"
13837 LIBS="-lsasl $LIBS"
13838 cat > conftest.$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13841 /* Override any gcc2 internal prototype to avoid an error. */
13842 /* We use char because int might match the return type of a gcc2
13843 builtin and then its argument prototype would still apply. */
13844 char sasl_client_init();
13850 if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 eval "ac_cv_lib_$ac_lib_var=yes"
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13857 eval "ac_cv_lib_$ac_lib_var=no"
13860 LIBS="$ac_save_LIBS"
13863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13864 echo "$ac_t""yes" 1>&6
13865 have_cyrus_sasl=yes
13867 echo "$ac_t""no" 1>&6
13872 if test $have_cyrus_sasl != no ; then
13874 cat >> confdefs.h <<\EOF
13875 #define HAVE_CYRUS_SASL 1
13882 if test $ol_link_sasl = no ; then
13883 if test $ol_with_cyrus_sasl != auto ; then
13884 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13886 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13887 echo "configure: warning: SASL authentication not supported!" 1>&2
13888 if test $ol_link_tls = no ; then
13889 echo "configure: warning: Strong authentication not supported!" 1>&2
13893 elif test $ol_enable_spasswd != no ; then
13894 ol_link_spasswd=yes
13898 echo "configure: warning: SASL authentication not supported!" 1>&2
13899 if test $ol_link_tls = no ; then
13900 echo "configure: warning: Strong authentication not supported!" 1>&2
13904 if test $cross_compiling != yes ; then
13906 if test -r /dev/urandom ; then
13907 dev="/dev/urandom";
13908 elif test -r /idev/urandom ; then
13909 dev="/idev/urandom";
13910 elif test -r /dev/srandom ; then
13911 dev="/dev/srandom";
13912 elif test -r /dev/random ; then
13914 elif test -r /idev/random ; then
13915 dev="/idev/random";
13918 if test $dev != no ; then
13919 cat >> confdefs.h <<EOF
13920 #define URANDOM_DEVICE "$dev"
13927 if test $ol_with_fetch != no ; then
13929 LIBS="-lfetch -lcom_err $LIBS"
13930 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13931 echo "configure:13932: checking fetch(3) library" >&5
13932 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13933 echo $ac_n "(cached) $ac_c" 1>&6
13936 cat > conftest.$ac_ext <<EOF
13937 #line 13938 "configure"
13938 #include "confdefs.h"
13940 #include <sys/param.h>
13944 struct url *u = fetchParseURL("file:///");
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949 ol_cv_lib_fetch=yes
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13959 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13961 if test $ol_cv_lib_fetch != no ; then
13962 ol_link_fetch="-lfetch -lcom_err"
13963 cat >> confdefs.h <<\EOF
13964 #define HAVE_FETCH 1
13970 if test $ol_cv_lib_fetch != no ; then
13971 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13972 ol_link_fetch=freebsd
13974 elif test $ol_with_fetch != auto ; then
13975 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13979 ol_link_readline=no
13980 if test $ol_with_readline != no ; then
13981 for ac_hdr in readline/readline.h readline/history.h
13983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13985 echo "configure:13986: checking for $ac_hdr" >&5
13986 if eval "test \"\${ac_cv_header_$ac_safe+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"
13994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13995 { (eval echo configure:13996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13997 if test -z "$ac_err"; then
13999 eval "ac_cv_header_$ac_safe=yes"
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14005 eval "ac_cv_header_$ac_safe=no"
14009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14010 echo "$ac_t""yes" 1>&6
14011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14012 cat >> confdefs.h <<EOF
14013 #define $ac_tr_hdr 1
14017 echo "$ac_t""no" 1>&6
14022 if test $ac_cv_header_readline_readline_h = yes ; then
14024 LIBS="$TERMCAP_LIBS $LIBS"
14025 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14026 echo "configure:14027: checking for readline in -lreadline" >&5
14027 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14031 ac_save_LIBS="$LIBS"
14032 LIBS="-lreadline $LIBS"
14033 cat > conftest.$ac_ext <<EOF
14034 #line 14035 "configure"
14035 #include "confdefs.h"
14036 /* Override any gcc2 internal prototype to avoid an error. */
14037 /* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14045 if { (eval echo configure:14046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14047 eval "ac_cv_lib_$ac_lib_var=yes"
14049 echo "configure: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14052 eval "ac_cv_lib_$ac_lib_var=no"
14055 LIBS="$ac_save_LIBS"
14058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14059 echo "$ac_t""yes" 1>&6
14062 echo "$ac_t""no" 1>&6
14068 if test $have_readline = yes ; then
14069 ol_with_readline=found
14070 ol_link_readline=yes
14072 READLINE_LIBS="-lreadline"
14077 if test $ol_link_readline = yes ; then
14078 cat >> confdefs.h <<\EOF
14079 #define HAVE_READLINE 1
14085 if test $ol_enable_crypt != no ; then
14086 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14087 echo "configure:14088: checking for crypt" >&5
14088 if eval "test \"\${ac_cv_func_crypt+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"
14094 /* System header to define __stub macros and hopefully few prototypes,
14095 which can conflict with char crypt(); below. */
14096 #include <assert.h>
14097 /* Override any gcc2 internal prototype to avoid an error. */
14098 /* We use char because int might match the return type of a gcc2
14099 builtin and then its argument prototype would still apply. */
14105 /* The GNU C library defines this for functions which it implements
14106 to always fail with ENOSYS. Some functions are actually named
14107 something starting with __ and the normal name is an alias. */
14108 #if defined (__stub_crypt) || defined (__stub___crypt)
14116 if { (eval echo configure:14117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14118 eval "ac_cv_func_crypt=yes"
14120 echo "configure: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14123 eval "ac_cv_func_crypt=no"
14128 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14129 echo "$ac_t""yes" 1>&6
14132 echo "$ac_t""no" 1>&6
14134 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14135 echo "configure:14136: checking for crypt in -lcrypt" >&5
14136 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14138 echo $ac_n "(cached) $ac_c" 1>&6
14140 ac_save_LIBS="$LIBS"
14141 LIBS="-lcrypt $LIBS"
14142 cat > conftest.$ac_ext <<EOF
14143 #line 14144 "configure"
14144 #include "confdefs.h"
14145 /* Override any gcc2 internal prototype to avoid an error. */
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14154 if { (eval echo configure:14155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14156 eval "ac_cv_lib_$ac_lib_var=yes"
14158 echo "configure: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14161 eval "ac_cv_lib_$ac_lib_var=no"
14164 LIBS="$ac_save_LIBS"
14167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14168 echo "$ac_t""yes" 1>&6
14169 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14172 echo "$ac_t""no" 1>&6
14179 if test $have_crypt = yes ; then
14180 cat >> confdefs.h <<\EOF
14181 #define HAVE_CRYPT 1
14185 echo "configure: warning: could not find crypt" 1>&2
14186 if test $ol_enable_crypt = yes ; then
14187 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14190 echo "configure: warning: disabling crypt support" 1>&2
14195 if test $ol_enable_proctitle != no ; then
14196 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14197 echo "configure:14198: checking for setproctitle" >&5
14198 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14199 echo $ac_n "(cached) $ac_c" 1>&6
14201 cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14204 /* System header to define __stub macros and hopefully few prototypes,
14205 which can conflict with char setproctitle(); below. */
14206 #include <assert.h>
14207 /* Override any gcc2 internal prototype to avoid an error. */
14208 /* We use char because int might match the return type of a gcc2
14209 builtin and then its argument prototype would still apply. */
14210 char setproctitle();
14215 /* The GNU C library defines this for functions which it implements
14216 to always fail with ENOSYS. Some functions are actually named
14217 something starting with __ and the normal name is an alias. */
14218 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14226 if { (eval echo configure:14227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14228 eval "ac_cv_func_setproctitle=yes"
14230 echo "configure: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14233 eval "ac_cv_func_setproctitle=no"
14238 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14239 echo "$ac_t""yes" 1>&6
14240 have_setproctitle=yes
14242 echo "$ac_t""no" 1>&6
14244 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14245 echo "configure:14246: checking for setproctitle in -lutil" >&5
14246 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14248 echo $ac_n "(cached) $ac_c" 1>&6
14250 ac_save_LIBS="$LIBS"
14251 LIBS="-lutil $LIBS"
14252 cat > conftest.$ac_ext <<EOF
14253 #line 14254 "configure"
14254 #include "confdefs.h"
14255 /* Override any gcc2 internal prototype to avoid an error. */
14256 /* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
14258 char setproctitle();
14264 if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14266 eval "ac_cv_lib_$ac_lib_var=yes"
14268 echo "configure: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14271 eval "ac_cv_lib_$ac_lib_var=no"
14274 LIBS="$ac_save_LIBS"
14277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14278 echo "$ac_t""yes" 1>&6
14279 have_setproctitle=yes
14280 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14282 echo "$ac_t""no" 1>&6
14283 have_setproctitle=no
14284 LIBOBJS="$LIBOBJS setproctitle.o"
14285 LIBSRCS="$LIBSRCS setproctitle.c"
14291 if test $have_setproctitle = yes ; then
14292 cat >> confdefs.h <<\EOF
14293 #define HAVE_SETPROCTITLE 1
14299 if test $ol_enable_slp != no ; then
14300 for ac_hdr in slp.h
14302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14304 echo "configure:14305: checking for $ac_hdr" >&5
14305 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14306 echo $ac_n "(cached) $ac_c" 1>&6
14308 cat > conftest.$ac_ext <<EOF
14309 #line 14310 "configure"
14310 #include "confdefs.h"
14313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14314 { (eval echo configure:14315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14316 if test -z "$ac_err"; then
14318 eval "ac_cv_header_$ac_safe=yes"
14321 echo "configure: failed program was:" >&5
14322 cat conftest.$ac_ext >&5
14324 eval "ac_cv_header_$ac_safe=no"
14328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14329 echo "$ac_t""yes" 1>&6
14330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14331 cat >> confdefs.h <<EOF
14332 #define $ac_tr_hdr 1
14336 echo "$ac_t""no" 1>&6
14341 if test $ac_cv_header_slp_h = yes ; then
14342 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
14343 echo "configure:14344: checking for SLPOpen in -lslp" >&5
14344 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
14345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14346 echo $ac_n "(cached) $ac_c" 1>&6
14348 ac_save_LIBS="$LIBS"
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353 /* Override any gcc2 internal prototype to avoid an error. */
14354 /* We use char because int might match the return type of a gcc2
14355 builtin and then its argument prototype would still apply. */
14362 if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14364 eval "ac_cv_lib_$ac_lib_var=yes"
14366 echo "configure: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14369 eval "ac_cv_lib_$ac_lib_var=no"
14372 LIBS="$ac_save_LIBS"
14375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14376 echo "$ac_t""yes" 1>&6
14379 echo "$ac_t""no" 1>&6
14383 if test $have_slp = yes ; then
14384 cat >> confdefs.h <<\EOF
14388 SLAPD_SLP_LIBS=-lslp
14391 elif test $ol_enable_slp = yes ; then
14392 { echo "configure: error: SLP not found" 1>&2; exit 1; }
14396 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14397 echo "configure:14398: checking for ANSI C header files" >&5
14398 if eval "test \"\${ac_cv_header_stdc+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"
14404 #include <stdlib.h>
14405 #include <stdarg.h>
14406 #include <string.h>
14409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14410 { (eval echo configure:14411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14412 if test -z "$ac_err"; then
14414 ac_cv_header_stdc=yes
14417 echo "configure: failed program was:" >&5
14418 cat conftest.$ac_ext >&5
14420 ac_cv_header_stdc=no
14424 if test $ac_cv_header_stdc = yes; then
14425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14426 cat > conftest.$ac_ext <<EOF
14427 #line 14428 "configure"
14428 #include "confdefs.h"
14429 #include <string.h>
14431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14432 egrep "memchr" >/dev/null 2>&1; then
14436 ac_cv_header_stdc=no
14442 if test $ac_cv_header_stdc = yes; then
14443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14444 cat > conftest.$ac_ext <<EOF
14445 #line 14446 "configure"
14446 #include "confdefs.h"
14447 #include <stdlib.h>
14449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14450 egrep "free" >/dev/null 2>&1; then
14454 ac_cv_header_stdc=no
14460 if test $ac_cv_header_stdc = yes; then
14461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14462 if test "$cross_compiling" = yes; then
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14469 #if ((' ' & 0x0FF) == 0x020)
14470 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14471 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14473 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14474 || ('j' <= (c) && (c) <= 'r') \
14475 || ('s' <= (c) && (c) <= 'z'))
14476 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14479 int main () { int i; for (i = 0; i < 256; i++)
14480 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14488 echo "configure: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14491 ac_cv_header_stdc=no
14499 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14500 if test $ac_cv_header_stdc = yes; then
14501 cat >> confdefs.h <<\EOF
14502 #define STDC_HEADERS 1
14507 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14508 echo "configure:14509: checking for mode_t" >&5
14509 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14510 echo $ac_n "(cached) $ac_c" 1>&6
14512 cat > conftest.$ac_ext <<EOF
14513 #line 14514 "configure"
14514 #include "confdefs.h"
14515 #include <sys/types.h>
14517 #include <stdlib.h>
14518 #include <stddef.h>
14522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14523 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14525 eval "ac_cv_type_mode_t=yes"
14528 eval "ac_cv_type_mode_t=no"
14533 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14534 echo "$ac_t""yes" 1>&6
14536 echo "$ac_t""no" 1>&6
14537 cat >> confdefs.h <<EOF
14543 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14544 echo "configure:14545: checking for off_t" >&5
14545 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14546 echo $ac_n "(cached) $ac_c" 1>&6
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14551 #include <sys/types.h>
14553 #include <stdlib.h>
14554 #include <stddef.h>
14558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14559 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14561 eval "ac_cv_type_off_t=yes"
14564 eval "ac_cv_type_off_t=no"
14569 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14570 echo "$ac_t""yes" 1>&6
14572 echo "$ac_t""no" 1>&6
14573 cat >> confdefs.h <<EOF
14579 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14580 echo "configure:14581: checking for pid_t" >&5
14581 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14584 cat > conftest.$ac_ext <<EOF
14585 #line 14586 "configure"
14586 #include "confdefs.h"
14587 #include <sys/types.h>
14589 #include <stdlib.h>
14590 #include <stddef.h>
14594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14595 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14597 eval "ac_cv_type_pid_t=yes"
14600 eval "ac_cv_type_pid_t=no"
14605 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14606 echo "$ac_t""yes" 1>&6
14608 echo "$ac_t""no" 1>&6
14609 cat >> confdefs.h <<EOF
14615 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14616 echo "configure:14617: checking for ptrdiff_t" >&5
14617 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14618 echo $ac_n "(cached) $ac_c" 1>&6
14620 cat > conftest.$ac_ext <<EOF
14621 #line 14622 "configure"
14622 #include "confdefs.h"
14623 #include <stddef.h>
14628 if { (eval echo configure:14629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14630 am_cv_type_ptrdiff_t=yes
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14635 am_cv_type_ptrdiff_t=no
14640 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14641 if test $am_cv_type_ptrdiff_t = yes; then
14642 cat >> confdefs.h <<\EOF
14643 #define HAVE_PTRDIFF_T 1
14648 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14649 echo "configure:14650: checking return type of signal handlers" >&5
14650 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14651 echo $ac_n "(cached) $ac_c" 1>&6
14653 cat > conftest.$ac_ext <<EOF
14654 #line 14655 "configure"
14655 #include "confdefs.h"
14656 #include <sys/types.h>
14657 #include <signal.h>
14662 extern "C" void (*signal (int, void (*)(int)))(int);
14664 void (*signal ()) ();
14671 if { (eval echo configure:14672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14673 ac_cv_type_signal=void
14675 echo "configure: failed program was:" >&5
14676 cat conftest.$ac_ext >&5
14678 ac_cv_type_signal=int
14683 echo "$ac_t""$ac_cv_type_signal" 1>&6
14684 cat >> confdefs.h <<EOF
14685 #define RETSIGTYPE $ac_cv_type_signal
14689 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14690 echo "configure:14691: checking for size_t" >&5
14691 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14692 echo $ac_n "(cached) $ac_c" 1>&6
14694 cat > conftest.$ac_ext <<EOF
14695 #line 14696 "configure"
14696 #include "confdefs.h"
14697 #include <sys/types.h>
14699 #include <stdlib.h>
14700 #include <stddef.h>
14704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14705 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14707 eval "ac_cv_type_size_t=yes"
14710 eval "ac_cv_type_size_t=no"
14715 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14718 echo "$ac_t""no" 1>&6
14719 cat >> confdefs.h <<EOF
14720 #define size_t unsigned
14726 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14727 echo "configure:14728: checking for ssize_t" >&5
14728 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14729 echo $ac_n "(cached) $ac_c" 1>&6
14731 cat > conftest.$ac_ext <<EOF
14732 #line 14733 "configure"
14733 #include "confdefs.h"
14734 #include <sys/types.h>
14736 #include <stdlib.h>
14737 #include <stddef.h>
14741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14742 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14744 eval "ac_cv_type_ssize_t=yes"
14747 eval "ac_cv_type_ssize_t=no"
14752 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14753 echo "$ac_t""yes" 1>&6
14755 echo "$ac_t""no" 1>&6
14756 cat >> confdefs.h <<EOF
14757 #define ssize_t signed int
14762 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14763 echo "configure:14764: checking for caddr_t" >&5
14764 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 #include <sys/types.h>
14772 #include <stdlib.h>
14773 #include <stddef.h>
14777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14778 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14780 eval "ac_cv_type_caddr_t=yes"
14783 eval "ac_cv_type_caddr_t=no"
14788 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14789 echo "$ac_t""yes" 1>&6
14791 echo "$ac_t""no" 1>&6
14792 cat >> confdefs.h <<EOF
14793 #define caddr_t char *
14799 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14800 echo "configure:14801: checking for socklen_t" >&5
14801 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14802 echo $ac_n "(cached) $ac_c" 1>&6
14804 cat > conftest.$ac_ext <<EOF
14805 #line 14806 "configure"
14806 #include "confdefs.h"
14808 #ifdef HAVE_SYS_TYPES_H
14809 #include <sys/types.h>
14811 #ifdef HAVE_SYS_SOCKET_H
14812 #include <sys/socket.h>
14819 if { (eval echo configure:14820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14821 ol_cv_type_socklen_t=yes
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14826 ol_cv_type_socklen_t=no
14831 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14832 if test $ol_cv_type_socklen_t = no; then
14833 cat >> confdefs.h <<\EOF
14834 #define socklen_t int
14839 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14840 echo "configure:14841: checking for member st_blksize in aggregate type struct stat" >&5
14841 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14844 cat > conftest.$ac_ext <<EOF
14845 #line 14846 "configure"
14846 #include "confdefs.h"
14847 #include <sys/types.h>
14848 #include <sys/stat.h>
14850 struct stat foo; foo.st_blksize;
14853 if { (eval echo configure:14854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14855 ac_cv_c_struct_member_st_blksize=yes
14857 echo "configure: failed program was:" >&5
14858 cat conftest.$ac_ext >&5
14860 ac_cv_c_struct_member_st_blksize=no
14865 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14866 st_blksize="$ac_cv_c_struct_member_st_blksize"
14867 if test $ac_cv_c_struct_member_st_blksize = yes; then
14868 cat >> confdefs.h <<\EOF
14869 #define HAVE_ST_BLKSIZE 1
14874 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14875 echo "configure:14876: checking whether time.h and sys/time.h may both be included" >&5
14876 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14877 echo $ac_n "(cached) $ac_c" 1>&6
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14882 #include <sys/types.h>
14883 #include <sys/time.h>
14889 if { (eval echo configure:14890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14891 ac_cv_header_time=yes
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14896 ac_cv_header_time=no
14901 echo "$ac_t""$ac_cv_header_time" 1>&6
14902 if test $ac_cv_header_time = yes; then
14903 cat >> confdefs.h <<\EOF
14904 #define TIME_WITH_SYS_TIME 1
14909 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14910 echo "configure:14911: checking whether struct tm is in sys/time.h or time.h" >&5
14911 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14912 echo $ac_n "(cached) $ac_c" 1>&6
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 #include <sys/types.h>
14920 struct tm *tp; tp->tm_sec;
14923 if { (eval echo configure:14924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14925 ac_cv_struct_tm=time.h
14927 echo "configure: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14930 ac_cv_struct_tm=sys/time.h
14935 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14936 if test $ac_cv_struct_tm = sys/time.h; then
14937 cat >> confdefs.h <<\EOF
14938 #define TM_IN_SYS_TIME 1
14943 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14944 echo "configure:14945: checking for uid_t in sys/types.h" >&5
14945 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14946 echo $ac_n "(cached) $ac_c" 1>&6
14948 cat > conftest.$ac_ext <<EOF
14949 #line 14950 "configure"
14950 #include "confdefs.h"
14951 #include <sys/types.h>
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954 egrep "uid_t" >/dev/null 2>&1; then
14956 ac_cv_type_uid_t=yes
14959 ac_cv_type_uid_t=no
14965 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14966 if test $ac_cv_type_uid_t = no; then
14967 cat >> confdefs.h <<\EOF
14971 cat >> confdefs.h <<\EOF
14977 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14978 echo "configure:14979: checking for sig_atomic_t" >&5
14979 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14980 echo $ac_n "(cached) $ac_c" 1>&6
14982 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure"
14984 #include "confdefs.h"
14985 #include <signal.h>
14987 sig_atomic_t atomic;
14990 if { (eval echo configure:14991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14992 ol_cv_type_sig_atomic_t=yes
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14997 ol_cv_type_sig_atomic_t=no
15002 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15003 if test $ol_cv_type_sig_atomic_t = no; then
15004 cat >> confdefs.h <<\EOF
15005 #define sig_atomic_t int
15012 # test for pw_gecos in struct passwd
15013 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15014 echo "configure:15015: checking struct passwd for pw_gecos" >&5
15015 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15016 echo $ac_n "(cached) $ac_c" 1>&6
15019 cat > conftest.$ac_ext <<EOF
15020 #line 15021 "configure"
15021 #include "confdefs.h"
15026 pwd.pw_gecos = pwd.pw_name;
15030 if { (eval echo configure:15031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15032 ol_cv_struct_passwd_pw_gecos=yes
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15037 ol_cv_struct_passwd_pw_gecos=no
15042 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15043 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15044 cat >> confdefs.h <<\EOF
15045 #define HAVE_PW_GECOS 1
15050 # test for pw_passwd in struct passwd
15051 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15052 echo "configure:15053: checking struct passwd for pw_passwd" >&5
15053 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15064 pwd.pw_passwd = pwd.pw_name;
15068 if { (eval echo configure:15069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15070 ol_cv_struct_passwd_pw_passwd=yes
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 ol_cv_struct_passwd_pw_passwd=no
15080 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15081 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15082 cat >> confdefs.h <<\EOF
15083 #define HAVE_PW_PASSWD 1
15089 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15090 echo "configure:15091: checking if toupper() requires islower()" >&5
15091 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15092 echo $ac_n "(cached) $ac_c" 1>&6
15095 if test "$cross_compiling" = yes; then
15096 ol_cv_c_upper_lower=safe
15098 cat > conftest.$ac_ext <<EOF
15099 #line 15100 "configure"
15100 #include "confdefs.h"
15105 if ('C' == toupper('C'))
15111 if { (eval echo configure:15112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15113 ol_cv_c_upper_lower=no
15115 echo "configure: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15118 ol_cv_c_upper_lower=yes
15125 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15126 if test $ol_cv_c_upper_lower != no ; then
15127 cat >> confdefs.h <<\EOF
15128 #define C_UPPER_LOWER 1
15133 echo $ac_n "checking for working const""... $ac_c" 1>&6
15134 echo "configure:15135: checking for working const" >&5
15135 if eval "test \"\${ac_cv_c_const+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"
15144 /* Ultrix mips cc rejects this. */
15145 typedef int charset[2]; const charset x;
15146 /* SunOS 4.1.1 cc rejects this. */
15147 char const *const *ccp;
15149 /* NEC SVR4.0.2 mips cc rejects this. */
15150 struct point {int x, y;};
15151 static struct point const zero = {0,0};
15152 /* AIX XL C 1.02.0.0 rejects this.
15153 It does not let you subtract one const X* pointer from another in an arm
15154 of an if-expression whose if-part is not a constant expression */
15155 const char *g = "string";
15156 ccp = &g + (g ? g-g : 0);
15157 /* HPUX 7.0 cc rejects these. */
15160 ccp = (char const *const *) p;
15161 { /* SCO 3.2v4 cc rejects this. */
15163 char const *s = 0 ? (char *) 0 : (char const *) 0;
15167 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15168 int x[] = {25, 17};
15169 const int *foo = &x[0];
15172 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15173 typedef const int *iptr;
15177 { /* AIX XL C 1.02.0.0 rejects this saying
15178 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15179 struct s { int j; const int *ap[3]; };
15180 struct s *b; b->j = 5;
15182 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15183 const int foo = 10;
15188 if { (eval echo configure:15189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15192 echo "configure: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15200 echo "$ac_t""$ac_cv_c_const" 1>&6
15201 if test $ac_cv_c_const = no; then
15202 cat >> confdefs.h <<\EOF
15208 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15209 echo "configure:15210: checking if compiler understands volatile" >&5
15210 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15211 echo $ac_n "(cached) $ac_c" 1>&6
15213 cat > conftest.$ac_ext <<EOF
15214 #line 15215 "configure"
15215 #include "confdefs.h"
15218 volatile int a; int * volatile b = x ? &y : &z;
15219 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15223 if { (eval echo configure:15224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15225 ol_cv_c_volatile=yes
15227 echo "configure: failed program was:" >&5
15228 cat conftest.$ac_ext >&5
15230 ol_cv_c_volatile=no
15235 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15236 if test $ol_cv_c_volatile = yes; then
15239 cat >> confdefs.h <<\EOF
15246 if test $cross_compiling = yes ; then
15247 cat >> confdefs.h <<\EOF
15248 #define CROSS_COMPILING 1
15252 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15253 echo "configure:15254: checking whether byte ordering is bigendian" >&5
15254 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15255 echo $ac_n "(cached) $ac_c" 1>&6
15257 ac_cv_c_bigendian=unknown
15258 # See if sys/param.h defines the BYTE_ORDER macro.
15259 cat > conftest.$ac_ext <<EOF
15260 #line 15261 "configure"
15261 #include "confdefs.h"
15262 #include <sys/types.h>
15263 #include <sys/param.h>
15266 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15267 bogus endian macros
15271 if { (eval echo configure:15272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15273 # It does; now see whether it defined to BIG_ENDIAN or not.
15274 cat > conftest.$ac_ext <<EOF
15275 #line 15276 "configure"
15276 #include "confdefs.h"
15277 #include <sys/types.h>
15278 #include <sys/param.h>
15281 #if BYTE_ORDER != BIG_ENDIAN
15286 if { (eval echo configure:15287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15288 ac_cv_c_bigendian=yes
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15293 ac_cv_c_bigendian=no
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15301 if test $ac_cv_c_bigendian = unknown; then
15302 if test "$cross_compiling" = yes; then
15303 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15305 cat > conftest.$ac_ext <<EOF
15306 #line 15307 "configure"
15307 #include "confdefs.h"
15309 /* Are we little or big endian? From Harbison&Steele. */
15313 char c[sizeof (long)];
15316 exit (u.c[sizeof (long) - 1] == 1);
15319 if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15321 ac_cv_c_bigendian=no
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15326 ac_cv_c_bigendian=yes
15334 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15335 if test $ac_cv_c_bigendian = yes; then
15336 cat >> confdefs.h <<\EOF
15337 #define WORDS_BIGENDIAN 1
15344 echo $ac_n "checking size of short""... $ac_c" 1>&6
15345 echo "configure:15346: checking size of short" >&5
15346 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15347 echo $ac_n "(cached) $ac_c" 1>&6
15349 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15350 cat > conftest.$ac_ext <<EOF
15351 #line 15352 "configure"
15352 #include "confdefs.h"
15353 #include "confdefs.h"
15354 #include <sys/types.h>
15358 switch (0) case 0: case (sizeof (short) == $ac_size):;
15361 if { (eval echo configure:15362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15363 ac_cv_sizeof_short=$ac_size
15365 echo "configure: failed program was:" >&5
15366 cat conftest.$ac_ext >&5
15369 if test x$ac_cv_sizeof_short != x ; then break; fi
15374 if test x$ac_cv_sizeof_short = x ; then
15375 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15377 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15378 cat >> confdefs.h <<EOF
15379 #define SIZEOF_SHORT $ac_cv_sizeof_short
15383 echo $ac_n "checking size of int""... $ac_c" 1>&6
15384 echo "configure:15385: checking size of int" >&5
15385 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15386 echo $ac_n "(cached) $ac_c" 1>&6
15388 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15389 cat > conftest.$ac_ext <<EOF
15390 #line 15391 "configure"
15391 #include "confdefs.h"
15392 #include "confdefs.h"
15393 #include <sys/types.h>
15397 switch (0) case 0: case (sizeof (int) == $ac_size):;
15400 if { (eval echo configure:15401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15402 ac_cv_sizeof_int=$ac_size
15404 echo "configure: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15408 if test x$ac_cv_sizeof_int != x ; then break; fi
15413 if test x$ac_cv_sizeof_int = x ; then
15414 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15416 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15417 cat >> confdefs.h <<EOF
15418 #define SIZEOF_INT $ac_cv_sizeof_int
15422 echo $ac_n "checking size of long""... $ac_c" 1>&6
15423 echo "configure:15424: checking size of long" >&5
15424 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15427 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15428 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 #include "confdefs.h"
15432 #include <sys/types.h>
15436 switch (0) case 0: case (sizeof (long) == $ac_size):;
15439 if { (eval echo configure:15440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15441 ac_cv_sizeof_long=$ac_size
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15447 if test x$ac_cv_sizeof_long != x ; then break; fi
15452 if test x$ac_cv_sizeof_long = x ; then
15453 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15455 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15456 cat >> confdefs.h <<EOF
15457 #define SIZEOF_LONG $ac_cv_sizeof_long
15462 if test "$ac_cv_sizeof_int" -lt 4 ; then
15463 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15465 cat >> confdefs.h <<\EOF
15466 #define LBER_INT_T long
15470 cat >> confdefs.h <<\EOF
15471 #define LBER_INT_T int
15476 cat >> confdefs.h <<\EOF
15477 #define LBER_LEN_T long
15480 cat >> confdefs.h <<\EOF
15481 #define LBER_SOCKET_T int
15484 cat >> confdefs.h <<\EOF
15485 #define LBER_TAG_T long
15489 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15490 echo "configure:15491: checking for 8-bit clean memcmp" >&5
15491 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15492 echo $ac_n "(cached) $ac_c" 1>&6
15494 if test "$cross_compiling" = yes; then
15495 ac_cv_func_memcmp_clean=no
15497 cat > conftest.$ac_ext <<EOF
15498 #line 15499 "configure"
15499 #include "confdefs.h"
15503 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15504 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15508 if { (eval echo configure:15509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15510 ac_cv_func_memcmp_clean=yes
15512 echo "configure: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15515 ac_cv_func_memcmp_clean=no
15522 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15523 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15525 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15526 echo "configure:15527: checking for strftime" >&5
15527 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15528 echo $ac_n "(cached) $ac_c" 1>&6
15530 cat > conftest.$ac_ext <<EOF
15531 #line 15532 "configure"
15532 #include "confdefs.h"
15533 /* System header to define __stub macros and hopefully few prototypes,
15534 which can conflict with char strftime(); below. */
15535 #include <assert.h>
15536 /* Override any gcc2 internal prototype to avoid an error. */
15537 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
15544 /* The GNU C library defines this for functions which it implements
15545 to always fail with ENOSYS. Some functions are actually named
15546 something starting with __ and the normal name is an alias. */
15547 #if defined (__stub_strftime) || defined (__stub___strftime)
15555 if { (eval echo configure:15556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15557 eval "ac_cv_func_strftime=yes"
15559 echo "configure: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15562 eval "ac_cv_func_strftime=no"
15567 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15568 echo "$ac_t""yes" 1>&6
15569 cat >> confdefs.h <<\EOF
15570 #define HAVE_STRFTIME 1
15574 echo "$ac_t""no" 1>&6
15575 # strftime is in -lintl on SCO UNIX.
15576 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15577 echo "configure:15578: checking for strftime in -lintl" >&5
15578 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15580 echo $ac_n "(cached) $ac_c" 1>&6
15582 ac_save_LIBS="$LIBS"
15583 LIBS="-lintl $LIBS"
15584 cat > conftest.$ac_ext <<EOF
15585 #line 15586 "configure"
15586 #include "confdefs.h"
15587 /* Override any gcc2 internal prototype to avoid an error. */
15588 /* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15596 if { (eval echo configure:15597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15598 eval "ac_cv_lib_$ac_lib_var=yes"
15600 echo "configure: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15603 eval "ac_cv_lib_$ac_lib_var=no"
15606 LIBS="$ac_save_LIBS"
15609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15610 echo "$ac_t""yes" 1>&6
15611 cat >> confdefs.h <<\EOF
15612 #define HAVE_STRFTIME 1
15615 LIBS="-lintl $LIBS"
15617 echo "$ac_t""no" 1>&6
15623 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15624 echo "configure:15625: checking for inet_aton()" >&5
15625 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15626 echo $ac_n "(cached) $ac_c" 1>&6
15628 cat > conftest.$ac_ext <<EOF
15629 #line 15630 "configure"
15630 #include "confdefs.h"
15632 #ifdef HAVE_SYS_TYPES_H
15633 # include <sys/types.h>
15635 #ifdef HAVE_SYS_SOCKET_H
15636 # include <sys/socket.h>
15637 # ifdef HAVE_SYS_SELECT_H
15638 # include <sys/select.h>
15640 # include <netinet/in.h>
15641 # ifdef HAVE_ARPA_INET_H
15642 # include <arpa/inet.h>
15648 int rc = inet_aton( "255.255.255.255", &in );
15651 if { (eval echo configure:15652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15653 ol_cv_func_inet_aton=yes
15655 echo "configure: failed program was:" >&5
15656 cat conftest.$ac_ext >&5
15658 ol_cv_func_inet_aton=no
15663 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15664 if test $ol_cv_func_inet_aton != no; then
15665 cat >> confdefs.h <<\EOF
15666 #define HAVE_INET_ATON 1
15672 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15673 echo "configure:15674: checking for _spawnlp" >&5
15674 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15675 echo $ac_n "(cached) $ac_c" 1>&6
15677 cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 /* System header to define __stub macros and hopefully few prototypes,
15681 which can conflict with char _spawnlp(); below. */
15682 #include <assert.h>
15683 /* Override any gcc2 internal prototype to avoid an error. */
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15691 /* The GNU C library defines this for functions which it implements
15692 to always fail with ENOSYS. Some functions are actually named
15693 something starting with __ and the normal name is an alias. */
15694 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15702 if { (eval echo configure:15703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15704 eval "ac_cv_func__spawnlp=yes"
15706 echo "configure: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15709 eval "ac_cv_func__spawnlp=no"
15714 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15715 echo "$ac_t""yes" 1>&6
15716 cat >> confdefs.h <<\EOF
15717 #define HAVE_SPAWNLP 1
15721 echo "$ac_t""no" 1>&6
15725 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15726 echo "configure:15727: checking for _snprintf" >&5
15727 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15728 echo $ac_n "(cached) $ac_c" 1>&6
15730 cat > conftest.$ac_ext <<EOF
15731 #line 15732 "configure"
15732 #include "confdefs.h"
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char _snprintf(); below. */
15735 #include <assert.h>
15736 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15744 /* The GNU C library defines this for functions which it implements
15745 to always fail with ENOSYS. Some functions are actually named
15746 something starting with __ and the normal name is an alias. */
15747 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15755 if { (eval echo configure:15756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15757 eval "ac_cv_func__snprintf=yes"
15759 echo "configure: failed program was:" >&5
15760 cat conftest.$ac_ext >&5
15762 eval "ac_cv_func__snprintf=no"
15767 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15768 echo "$ac_t""yes" 1>&6
15769 ac_cv_func_snprintf=yes
15770 cat >> confdefs.h <<\EOF
15771 #define snprintf _snprintf
15776 echo "$ac_t""no" 1>&6
15780 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15781 echo "configure:15782: checking for _vsnprintf" >&5
15782 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15785 cat > conftest.$ac_ext <<EOF
15786 #line 15787 "configure"
15787 #include "confdefs.h"
15788 /* System header to define __stub macros and hopefully few prototypes,
15789 which can conflict with char _vsnprintf(); below. */
15790 #include <assert.h>
15791 /* Override any gcc2 internal prototype to avoid an error. */
15792 /* We use char because int might match the return type of a gcc2
15793 builtin and then its argument prototype would still apply. */
15799 /* The GNU C library defines this for functions which it implements
15800 to always fail with ENOSYS. Some functions are actually named
15801 something starting with __ and the normal name is an alias. */
15802 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15810 if { (eval echo configure:15811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15812 eval "ac_cv_func__vsnprintf=yes"
15814 echo "configure: failed program was:" >&5
15815 cat conftest.$ac_ext >&5
15817 eval "ac_cv_func__vsnprintf=no"
15822 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15823 echo "$ac_t""yes" 1>&6
15824 ac_cv_func_vsnprintf=yes
15825 cat >> confdefs.h <<\EOF
15826 #define vsnprintf _vsnprintf
15831 echo "$ac_t""no" 1>&6
15835 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15836 echo "configure:15837: checking for vprintf" >&5
15837 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15838 echo $ac_n "(cached) $ac_c" 1>&6
15840 cat > conftest.$ac_ext <<EOF
15841 #line 15842 "configure"
15842 #include "confdefs.h"
15843 /* System header to define __stub macros and hopefully few prototypes,
15844 which can conflict with char vprintf(); below. */
15845 #include <assert.h>
15846 /* Override any gcc2 internal prototype to avoid an error. */
15847 /* We use char because int might match the return type of a gcc2
15848 builtin and then its argument prototype would still apply. */
15854 /* The GNU C library defines this for functions which it implements
15855 to always fail with ENOSYS. Some functions are actually named
15856 something starting with __ and the normal name is an alias. */
15857 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15865 if { (eval echo configure:15866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15867 eval "ac_cv_func_vprintf=yes"
15869 echo "configure: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15872 eval "ac_cv_func_vprintf=no"
15877 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15878 echo "$ac_t""yes" 1>&6
15879 cat >> confdefs.h <<\EOF
15880 #define HAVE_VPRINTF 1
15884 echo "$ac_t""no" 1>&6
15887 if test "$ac_cv_func_vprintf" != yes; then
15888 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15889 echo "configure:15890: checking for _doprnt" >&5
15890 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15891 echo $ac_n "(cached) $ac_c" 1>&6
15893 cat > conftest.$ac_ext <<EOF
15894 #line 15895 "configure"
15895 #include "confdefs.h"
15896 /* System header to define __stub macros and hopefully few prototypes,
15897 which can conflict with char _doprnt(); below. */
15898 #include <assert.h>
15899 /* Override any gcc2 internal prototype to avoid an error. */
15900 /* We use char because int might match the return type of a gcc2
15901 builtin and then its argument prototype would still apply. */
15907 /* The GNU C library defines this for functions which it implements
15908 to always fail with ENOSYS. Some functions are actually named
15909 something starting with __ and the normal name is an alias. */
15910 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15918 if { (eval echo configure:15919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15920 eval "ac_cv_func__doprnt=yes"
15922 echo "configure: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15925 eval "ac_cv_func__doprnt=no"
15930 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15931 echo "$ac_t""yes" 1>&6
15932 cat >> confdefs.h <<\EOF
15933 #define HAVE_DOPRNT 1
15937 echo "$ac_t""no" 1>&6
15943 if test $ac_cv_func_vprintf = yes ; then
15944 for ac_func in vsnprintf vsprintf
15946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15947 echo "configure:15948: checking for $ac_func" >&5
15948 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15949 echo $ac_n "(cached) $ac_c" 1>&6
15951 cat > conftest.$ac_ext <<EOF
15952 #line 15953 "configure"
15953 #include "confdefs.h"
15954 /* System header to define __stub macros and hopefully few prototypes,
15955 which can conflict with char $ac_func(); below. */
15956 #include <assert.h>
15957 /* Override any gcc2 internal prototype to avoid an error. */
15958 /* We use char because int might match the return type of a gcc2
15959 builtin and then its argument prototype would still apply. */
15965 /* The GNU C library defines this for functions which it implements
15966 to always fail with ENOSYS. Some functions are actually named
15967 something starting with __ and the normal name is an alias. */
15968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15976 if { (eval echo configure:15977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15978 eval "ac_cv_func_$ac_func=yes"
15980 echo "configure: failed program was:" >&5
15981 cat conftest.$ac_ext >&5
15983 eval "ac_cv_func_$ac_func=no"
15988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15989 echo "$ac_t""yes" 1>&6
15990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15991 cat >> confdefs.h <<EOF
15992 #define $ac_tr_func 1
15996 echo "$ac_t""no" 1>&6
16054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16055 echo "configure:16056: checking for $ac_func" >&5
16056 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16057 echo $ac_n "(cached) $ac_c" 1>&6
16059 cat > conftest.$ac_ext <<EOF
16060 #line 16061 "configure"
16061 #include "confdefs.h"
16062 /* System header to define __stub macros and hopefully few prototypes,
16063 which can conflict with char $ac_func(); below. */
16064 #include <assert.h>
16065 /* Override any gcc2 internal prototype to avoid an error. */
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16073 /* The GNU C library defines this for functions which it implements
16074 to always fail with ENOSYS. Some functions are actually named
16075 something starting with __ and the normal name is an alias. */
16076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16084 if { (eval echo configure:16085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16086 eval "ac_cv_func_$ac_func=yes"
16088 echo "configure: failed program was:" >&5
16089 cat conftest.$ac_ext >&5
16091 eval "ac_cv_func_$ac_func=no"
16096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16097 echo "$ac_t""yes" 1>&6
16098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16099 cat >> confdefs.h <<EOF
16100 #define $ac_tr_func 1
16104 echo "$ac_t""no" 1>&6
16109 for ac_func in getopt tempnam
16111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16112 echo "configure:16113: checking for $ac_func" >&5
16113 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16114 echo $ac_n "(cached) $ac_c" 1>&6
16116 cat > conftest.$ac_ext <<EOF
16117 #line 16118 "configure"
16118 #include "confdefs.h"
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char $ac_func(); below. */
16121 #include <assert.h>
16122 /* Override any gcc2 internal prototype to avoid an error. */
16123 /* We use char because int might match the return type of a gcc2
16124 builtin and then its argument prototype would still apply. */
16130 /* The GNU C library defines this for functions which it implements
16131 to always fail with ENOSYS. Some functions are actually named
16132 something starting with __ and the normal name is an alias. */
16133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16141 if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16143 eval "ac_cv_func_$ac_func=yes"
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16148 eval "ac_cv_func_$ac_func=no"
16153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16154 echo "$ac_t""yes" 1>&6
16155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16156 cat >> confdefs.h <<EOF
16157 #define $ac_tr_func 1
16161 echo "$ac_t""no" 1>&6
16162 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16168 if test "$ac_cv_func_getopt" != yes; then
16169 LIBSRCS="$LIBSRCS getopt.c"
16172 if test "$ac_cv_func_tempnam" != yes; then
16173 LIBSRCS="$LIBSRCS tempnam.c"
16176 # Check Configuration
16177 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16178 echo "configure:16179: checking declaration of sys_errlist" >&5
16179 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16180 echo $ac_n "(cached) $ac_c" 1>&6
16183 cat > conftest.$ac_ext <<EOF
16184 #line 16185 "configure"
16185 #include "confdefs.h"
16188 #include <sys/types.h>
16191 #include <stdlib.h>
16194 char *c = (char *) *sys_errlist
16197 if { (eval echo configure:16198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16199 ol_cv_dcl_sys_errlist=yes
16200 ol_cv_have_sys_errlist=yes
16202 echo "configure: failed program was:" >&5
16203 cat conftest.$ac_ext >&5
16205 ol_cv_dcl_sys_errlist=no
16210 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16212 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16213 if test $ol_cv_dcl_sys_errlist = no ; then
16214 cat >> confdefs.h <<\EOF
16215 #define DECL_SYS_ERRLIST 1
16219 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16220 echo "configure:16221: checking existence of sys_errlist" >&5
16221 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16222 echo $ac_n "(cached) $ac_c" 1>&6
16225 cat > conftest.$ac_ext <<EOF
16226 #line 16227 "configure"
16227 #include "confdefs.h"
16230 char *c = (char *) *sys_errlist
16233 if { (eval echo configure:16234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16235 ol_cv_have_sys_errlist=yes
16237 echo "configure: failed program was:" >&5
16238 cat conftest.$ac_ext >&5
16240 ol_cv_have_sys_errlist=no
16245 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16247 if test $ol_cv_have_sys_errlist = yes ; then
16248 cat >> confdefs.h <<\EOF
16249 #define HAVE_SYS_ERRLIST 1
16256 if test "$ol_enable_debug" != no ; then
16257 cat >> confdefs.h <<\EOF
16258 #define LDAP_DEBUG 1
16262 if test "$ol_enable_syslog" = yes ; then
16263 cat >> confdefs.h <<\EOF
16264 #define LDAP_SYSLOG 1
16268 if test "$ol_enable_cache" = no ; then
16269 cat >> confdefs.h <<\EOF
16270 #define LDAP_NOCACHE 1
16274 if test "$ol_link_kbind" != no ; then
16275 cat >> confdefs.h <<\EOF
16276 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16280 if test "$ol_enable_proctitle" != no ; then
16281 cat >> confdefs.h <<\EOF
16282 #define LDAP_PROCTITLE 1
16286 if test "$ol_enable_referrals" != no ; then
16287 cat >> confdefs.h <<\EOF
16288 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16292 if test "$ol_enable_local" != no; then
16293 cat >> confdefs.h <<\EOF
16294 #define LDAP_PF_LOCAL 1
16298 if test "$ol_link_ipv6" != no; then
16299 cat >> confdefs.h <<\EOF
16300 #define LDAP_PF_INET6 1
16304 if test "$ol_enable_cleartext" != no ; then
16305 cat >> confdefs.h <<\EOF
16306 #define SLAPD_CLEARTEXT 1
16310 if test "$ol_enable_crypt" != no ; then
16311 cat >> confdefs.h <<\EOF
16312 #define SLAPD_CRYPT 1
16316 if test "$ol_link_kpasswd" != no ; then
16317 cat >> confdefs.h <<\EOF
16318 #define SLAPD_KPASSWD 1
16322 if test "$ol_link_spasswd" != no ; then
16323 cat >> confdefs.h <<\EOF
16324 #define SLAPD_SPASSWD 1
16328 if test "$ol_enable_phonetic" != no ; then
16329 cat >> confdefs.h <<\EOF
16330 #define SLAPD_PHONETIC 1
16334 if test "$ol_enable_rlookups" != no ; then
16335 cat >> confdefs.h <<\EOF
16336 #define SLAPD_RLOOKUPS 1
16340 if test "$ol_enable_aci" != no ; then
16341 cat >> confdefs.h <<\EOF
16342 #define SLAPD_ACI_ENABLED 1
16347 if test "$ol_link_modules" != no ; then
16348 cat >> confdefs.h <<\EOF
16349 #define SLAPD_MODULES 1
16353 SLAPD_MODULES_LDFLAGS="-dlopen self"
16356 if test "$ol_enable_bdb" != no ; then
16357 cat >> confdefs.h <<\EOF
16358 #define SLAPD_BDB 1
16363 if test "$ol_with_bdb_module" != static ; then
16364 cat >> confdefs.h <<\EOF
16365 #define SLAPD_BDB_DYNAMIC 1
16369 BUILD_BDB_DYNAMIC=shared
16370 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16374 if test "$ol_link_dnssrv" != no ; then
16375 cat >> confdefs.h <<\EOF
16376 #define SLAPD_DNSSRV 1
16381 if test "$ol_with_dnssrv_module" != static ; then
16382 cat >> confdefs.h <<\EOF
16383 #define SLAPD_DNSSRV_DYNAMIC 1
16387 BUILD_DNSSRV_DYNAMIC=shared
16388 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16392 if test "$ol_enable_ldap" != no ; then
16393 cat >> confdefs.h <<\EOF
16394 #define SLAPD_LDAP 1
16399 if test "$ol_with_ldap_module" != static ; then
16400 cat >> confdefs.h <<\EOF
16401 #define SLAPD_LDAP_DYNAMIC 1
16405 BUILD_LDAP_DYNAMIC=shared
16406 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16410 if test "$ol_link_ldbm" != no ; then
16411 cat >> confdefs.h <<\EOF
16412 #define SLAPD_LDBM 1
16417 if test "$ol_with_ldbm_module" != static ; then
16418 cat >> confdefs.h <<\EOF
16419 #define SLAPD_LDBM_DYNAMIC 1
16423 BUILD_LDBM_DYNAMIC=shared
16424 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16428 if test "$ol_enable_passwd" != no ; then
16429 cat >> confdefs.h <<\EOF
16430 #define SLAPD_PASSWD 1
16435 if test "$ol_with_passwd_module" != static ; then
16436 cat >> confdefs.h <<\EOF
16437 #define SLAPD_PASSWD_DYNAMIC 1
16441 BUILD_PASSWD_DYNAMIC=shared
16442 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16446 if test "$ol_link_perl" != no ; then
16447 cat >> confdefs.h <<\EOF
16448 #define SLAPD_PERL 1
16453 if test "$ol_with_perl_module" != static ; then
16454 cat >> confdefs.h <<\EOF
16455 #define SLAPD_PERL_DYNAMIC 1
16459 BUILD_PERL_DYNAMIC=shared
16460 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16464 if test "$ol_enable_shell" != no ; then
16465 cat >> confdefs.h <<\EOF
16466 #define SLAPD_SHELL 1
16471 if test "$ol_with_shell_module" != static ; then
16472 cat >> confdefs.h <<\EOF
16473 #define SLAPD_SHELL_DYNAMIC 1
16477 BUILD_SHELL_DYNAMIC=shared
16478 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16482 if test "$ol_enable_tcl" != no ; then
16483 cat >> confdefs.h <<\EOF
16484 #define SLAPD_TCL 1
16489 if test "$ol_with_tcl_module" != static; then
16490 cat >> confdefs.h <<\EOF
16491 #define SLAPD_TCL_DYNAMIC 1
16495 BUILD_TCL_DYNAMIC=shared
16496 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16500 if test "$ol_link_sql" != no ; then
16501 cat >> confdefs.h <<\EOF
16502 #define SLAPD_SQL 1
16507 if test "$ol_with_sql_module" != static; then
16508 cat >> confdefs.h <<\EOF
16509 #define SLAPD_SQL_DYNAMIC 1
16513 BUILD_SQL_DYNAMIC=shared
16514 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16518 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16519 $BUILD_SLAPD = yes ; then
16524 if test "$LINK_BINS_DYNAMIC" = yes; then
16526 LT_LIB_LINKAGE=shared
16529 LT_LIB_LINKAGE=static
16532 if test "$ac_cv_mingw32" = yes ; then
16605 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16608 # Let make expand exec_prefix.
16609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16611 # Any assignment to VPATH causes Sun make to only execute
16612 # the first set of double-colon rules, so remove it if not needed.
16613 # If there is a colon in the path, we need to keep it.
16614 if test "x$srcdir" = x.; then
16615 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16618 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16620 DEFS=-DHAVE_CONFIG_H
16622 # Without the "./", some shells look in PATH for config.status.
16623 : ${CONFIG_STATUS=./config.status}
16625 echo creating $CONFIG_STATUS
16626 rm -f $CONFIG_STATUS
16627 cat > $CONFIG_STATUS <<EOF
16629 # Generated automatically by configure.
16630 # Run this file to recreate the current configuration.
16631 # This directory was configured as follows,
16632 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16634 # $0 $ac_configure_args
16636 # Compiler output produced by configure, useful for debugging
16637 # configure, is in ./config.log if it exists.
16639 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16642 case "\$ac_option" in
16643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16644 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16645 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16646 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16647 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16649 -help | --help | --hel | --he | --h)
16650 echo "\$ac_cs_usage"; exit 0 ;;
16651 *) echo "\$ac_cs_usage"; exit 1 ;;
16655 ac_given_srcdir=$srcdir
16656 ac_given_INSTALL="$INSTALL"
16658 trap 'rm -fr `echo "\
16659 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16660 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16661 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16662 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16663 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16664 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16665 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16666 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16667 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16668 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16669 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16670 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16671 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16672 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16673 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16674 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16675 include/Makefile:build/top.mk:include/Makefile.in \
16676 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16677 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16678 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16679 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16680 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16681 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16682 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16683 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16684 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16685 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16686 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16687 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16688 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16689 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16690 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16691 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16692 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16693 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16694 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16695 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16696 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16697 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16698 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16699 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16700 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16701 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16702 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16703 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16704 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16706 cat >> $CONFIG_STATUS <<EOF
16708 # Protect against being on the right side of a sed subst in config.status.
16709 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16710 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16714 s%@CFLAGS@%$CFLAGS%g
16715 s%@CPPFLAGS@%$CPPFLAGS%g
16716 s%@CXXFLAGS@%$CXXFLAGS%g
16717 s%@FFLAGS@%$FFLAGS%g
16719 s%@LDFLAGS@%$LDFLAGS%g
16721 s%@exec_prefix@%$exec_prefix%g
16722 s%@prefix@%$prefix%g
16723 s%@program_transform_name@%$program_transform_name%g
16724 s%@bindir@%$bindir%g
16725 s%@sbindir@%$sbindir%g
16726 s%@libexecdir@%$libexecdir%g
16727 s%@datadir@%$datadir%g
16728 s%@sysconfdir@%$sysconfdir%g
16729 s%@sharedstatedir@%$sharedstatedir%g
16730 s%@localstatedir@%$localstatedir%g
16731 s%@libdir@%$libdir%g
16732 s%@includedir@%$includedir%g
16733 s%@oldincludedir@%$oldincludedir%g
16734 s%@infodir@%$infodir%g
16735 s%@mandir@%$mandir%g
16737 s%@host_alias@%$host_alias%g
16738 s%@host_cpu@%$host_cpu%g
16739 s%@host_vendor@%$host_vendor%g
16740 s%@host_os@%$host_os%g
16741 s%@target@%$target%g
16742 s%@target_alias@%$target_alias%g
16743 s%@target_cpu@%$target_cpu%g
16744 s%@target_vendor@%$target_vendor%g
16745 s%@target_os@%$target_os%g
16747 s%@build_alias@%$build_alias%g
16748 s%@build_cpu@%$build_cpu%g
16749 s%@build_vendor@%$build_vendor%g
16750 s%@build_os@%$build_os%g
16751 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16752 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16753 s%@INSTALL_DATA@%$INSTALL_DATA%g
16754 s%@PACKAGE@%$PACKAGE%g
16755 s%@VERSION@%$VERSION%g
16756 s%@ACLOCAL@%$ACLOCAL%g
16757 s%@AUTOCONF@%$AUTOCONF%g
16758 s%@AUTOMAKE@%$AUTOMAKE%g
16759 s%@AUTOHEADER@%$AUTOHEADER%g
16760 s%@MAKEINFO@%$MAKEINFO%g
16761 s%@install_sh@%$install_sh%g
16764 s%@AMTARFLAGS@%$AMTARFLAGS%g
16765 s%@SET_MAKE@%$SET_MAKE%g
16766 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16767 s%@top_builddir@%$top_builddir%g
16768 s%@ldap_subdir@%$ldap_subdir%g
16770 s%@RANLIB@%$RANLIB%g
16772 s%@DLLTOOL@%$DLLTOOL%g
16774 s%@OBJDUMP@%$OBJDUMP%g
16775 s%@LIBTOOL@%$LIBTOOL%g
16777 s%@SENDMAIL@%$SENDMAIL%g
16778 s%@EDITOR@%$EDITOR%g
16779 s%@FINGER@%$FINGER%g
16780 s%@PERLBIN@%$PERLBIN%g
16782 s%@EXEEXT@%$EXEEXT%g
16783 s%@OBJEXT@%$OBJEXT%g
16784 s%@OL_MKDEP@%$OL_MKDEP%g
16785 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16786 s%@LIBOBJS@%$LIBOBJS%g
16787 s%@LIBSRCS@%$LIBSRCS%g
16789 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16790 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16791 s%@DYN_EXT@%$DYN_EXT%g
16792 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16793 s%@BUILD_BDB@%$BUILD_BDB%g
16794 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16795 s%@BUILD_LDAP@%$BUILD_LDAP%g
16796 s%@BUILD_LDBM@%$BUILD_LDBM%g
16797 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16798 s%@BUILD_PERL@%$BUILD_PERL%g
16799 s%@BUILD_SHELL@%$BUILD_SHELL%g
16800 s%@BUILD_SQL@%$BUILD_SQL%g
16801 s%@BUILD_TCL@%$BUILD_TCL%g
16802 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
16803 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16804 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16805 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16806 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16807 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16808 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16809 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16810 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16811 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16812 s%@LDAP_LIBS@%$LDAP_LIBS%g
16813 s%@LDIF_LIBS@%$LDIF_LIBS%g
16814 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16815 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16816 s%@LDBM_LIBS@%$LDBM_LIBS%g
16817 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16818 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16819 s%@WRAP_LIBS@%$WRAP_LIBS%g
16820 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16821 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16822 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16823 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16824 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16825 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16826 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16827 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16828 s%@KRB4_LIBS@%$KRB4_LIBS%g
16829 s%@KRB5_LIBS@%$KRB5_LIBS%g
16830 s%@READLINE_LIBS@%$READLINE_LIBS%g
16831 s%@SASL_LIBS@%$SASL_LIBS%g
16832 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16833 s%@TLS_LIBS@%$TLS_LIBS%g
16834 s%@MODULES_LIBS@%$MODULES_LIBS%g
16835 s%@AUTH_LIBS@%$AUTH_LIBS%g
16836 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
16837 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16838 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16839 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16844 cat >> $CONFIG_STATUS <<\EOF
16846 # Split the substitutions into bite-sized pieces for seds with
16847 # small command number limits, like on Digital OSF/1 and HP-UX.
16848 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16849 ac_file=1 # Number of current file.
16850 ac_beg=1 # First line for current file.
16851 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16854 while $ac_more_lines; do
16855 if test $ac_beg -gt 1; then
16856 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16858 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16860 if test ! -s conftest.s$ac_file; then
16861 ac_more_lines=false
16862 rm -f conftest.s$ac_file
16864 if test -z "$ac_sed_cmds"; then
16865 ac_sed_cmds="sed -f conftest.s$ac_file"
16867 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16869 ac_file=`expr $ac_file + 1`
16871 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16874 if test -z "$ac_sed_cmds"; then
16879 cat >> $CONFIG_STATUS <<EOF
16881 CONFIG_FILES=\${CONFIG_FILES-"\
16882 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16883 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16884 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16885 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16886 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16887 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16888 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16889 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16890 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16891 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16892 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16893 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16894 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16895 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16896 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16897 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16898 include/Makefile:build/top.mk:include/Makefile.in \
16899 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16900 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16901 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16902 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16903 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16904 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16905 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16906 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16907 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16908 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16909 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16910 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16911 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16912 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16913 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16914 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16915 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16916 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16917 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16918 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16919 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16920 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16921 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16922 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16923 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16924 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16925 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16926 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16929 cat >> $CONFIG_STATUS <<\EOF
16930 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16933 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16934 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16935 *) ac_file_in="${ac_file}.in" ;;
16938 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16940 # Remove last slash and all that follows it. Not all systems have dirname.
16941 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16942 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16943 # The file is in a subdirectory.
16944 test ! -d "$ac_dir" && mkdir "$ac_dir"
16945 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16946 # A "../" for each directory in $ac_dir_suffix.
16947 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16949 ac_dir_suffix= ac_dots=
16952 case "$ac_given_srcdir" in
16954 if test -z "$ac_dots"; then top_srcdir=.
16955 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16956 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16957 *) # Relative path.
16958 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16959 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16962 case "$ac_given_INSTALL" in
16963 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16964 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16967 echo creating "$ac_file"
16969 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16971 *[Mm]akefile*) ac_comsub="1i\\
16972 # $configure_input" ;;
16976 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16978 s%@configure_input@%$configure_input%g
16979 s%@srcdir@%$srcdir%g
16980 s%@top_srcdir@%$top_srcdir%g
16981 s%@INSTALL@%$INSTALL%g
16982 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16986 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16987 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16989 # ac_d sets the value in "#define NAME VALUE" lines.
16990 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16991 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16994 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16995 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16996 ac_uB='\([ ]\)%\1#\2define\3'
16999 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17000 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17001 ac_eB='$%\1#\2define\3'
17005 if test "${CONFIG_HEADERS+set}" != set; then
17007 cat >> $CONFIG_STATUS <<EOF
17008 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17010 cat >> $CONFIG_STATUS <<\EOF
17012 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17015 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17016 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17017 *) ac_file_in="${ac_file}.in" ;;
17020 echo creating $ac_file
17022 rm -f conftest.frag conftest.in conftest.out
17023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17024 cat $ac_file_inputs > conftest.in
17028 # Transform confdefs.h into a sed script conftest.vals that substitutes
17029 # the proper values into config.h.in to produce config.h. And first:
17030 # Protect against being on the right side of a sed subst in config.status.
17031 # Protect against being in an unquoted here document in config.status.
17032 rm -f conftest.vals
17033 cat > conftest.hdr <<\EOF
17036 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17040 sed -n -f conftest.hdr confdefs.h > conftest.vals
17043 # This sed command replaces #undef with comments. This is necessary, for
17044 # example, in the case of _POSIX_SOURCE, which is predefined and required
17045 # on some systems where configure will not decide to define it.
17046 cat >> conftest.vals <<\EOF
17047 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17050 # Break up conftest.vals because some shells have a limit on
17051 # the size of here documents, and old seds have small limits too.
17053 rm -f conftest.tail
17056 ac_lines=`grep -c . conftest.vals`
17057 # grep -c gives empty output for an empty file on some AIX systems.
17058 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17059 # Write a limited-size here document to conftest.frag.
17060 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17061 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17063 sed -f conftest.frag conftest.in > conftest.out
17065 mv conftest.out conftest.in
17066 ' >> $CONFIG_STATUS
17067 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17068 rm -f conftest.vals
17069 mv conftest.tail conftest.vals
17071 rm -f conftest.vals
17073 cat >> $CONFIG_STATUS <<\EOF
17074 rm -f conftest.frag conftest.h
17075 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17076 cat conftest.in >> conftest.h
17078 if cmp -s $ac_file conftest.h 2>/dev/null; then
17079 echo "$ac_file is unchanged"
17082 # Remove last slash and all that follows it. Not all systems have dirname.
17083 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17084 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17085 # The file is in a subdirectory.
17086 test ! -d "$ac_dir" && mkdir "$ac_dir"
17089 mv conftest.h $ac_file
17094 cat >> $CONFIG_STATUS <<EOF
17097 cat >> $CONFIG_STATUS <<\EOF
17100 echo Please \"make depend\" to build dependencies
17104 chmod +x $CONFIG_STATUS
17105 rm -fr confdefs* $ac_clean_files
17106 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1